Class PlaceConverter
Inheritance
TypeConverter
PlaceConverter
Assembly: Xareus.Scenarios.dll
Syntax
[TypeConverterFor(typeof(Place))]
public class PlaceConverter : TypeConverter
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
Type |
sourceType |
|
Returns
Overrides
System.ComponentModel.TypeConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Type)
CanConvertTo(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
Type |
destinationType |
|
Returns
Overrides
System.ComponentModel.TypeConverter.CanConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Type)
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Convert from state to Place
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
CultureInfo |
culture |
|
object |
value |
|
Returns
Overrides
System.ComponentModel.TypeConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object)
ConvertStateToPlace(State)
Perform the conversion from a State to a Place.
Declaration
public static Place ConvertStateToPlace(State state)
Parameters
Type |
Name |
Description |
State |
state |
|
Returns
See Also
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Calls the other sequence type converter to avoid code duplication
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
CultureInfo |
culture |
|
object |
value |
|
Type |
destinationType |
|
Returns
Overrides
System.ComponentModel.TypeConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object, System.Type)