Class PrimitiveConverter
Base class for all primitive converters
Inheritance
TypeConverter
PrimitiveConverter
Inherited Members
Namespace: Xareus.Scenarios.Converter
Assembly: Xareus.Scenarios.dll
Syntax
public class PrimitiveConverter : TypeConverter
Constructors
PrimitiveConverter()
Declaration
protected PrimitiveConverter()
Fields
primitiveConverter
the converter of the implementation (the primitive type)
Declaration
protected TypeConverter primitiveConverter
Field Value
Type | Description |
---|---|
TypeConverter |
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
Type | Name | Description |
---|---|---|
ITypeDescriptorContext | context | |
Type | sourceType |
Returns
Type | Description |
---|---|
bool |
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
Type | Description |
---|---|
bool |
Overrides
System.ComponentModel.TypeConverter.CanConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Type)
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Convert from Parameter to primitive type
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Type | Name | Description |
---|---|---|
ITypeDescriptorContext | context | |
CultureInfo | culture | |
object | value |
Returns
Type | Description |
---|---|
object |
Overrides
System.ComponentModel.TypeConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object)
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Convert from primitive type to Parameter
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
Type | Description |
---|---|
object |
Overrides
System.ComponentModel.TypeConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object, System.Type)