Class VariablePathConverter
Base converter for Variable Path
Inheritance
TypeConverter
VariablePathConverter
Inherited Members
Namespace: Xareus.Scenarios.Converter
Assembly: Xareus.Scenarios.dll
Syntax
[TypeConverterFor(typeof(VariablePath))]
public class VariablePathConverter : 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 string or Parameter to VariablePath
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 VariablePath (or any subclass) to string or 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)