Class StringConverter
Inheritance
TypeConverter
StringConverter
Assembly: Xareus.Scenarios.dll
Syntax
[TypeConverterFor(typeof(string))]
public class StringConverter : StringConverter
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
Type |
sourceType |
|
Returns
Overrides
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 Parameter to string
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
CultureInfo |
culture |
|
object |
value |
|
Returns
Overrides
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Convert from string 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
Overrides
System.ComponentModel.TypeConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object, System.Type)