ValueWrapperTypeConverter<T, V>
Namespace: Shadop.Archmage.Sdk
Type converter for value wrapper structs that converts between and String.
public abstract class ValueWrapperTypeConverter<T, V> : System.ComponentModel.TypeConverterType Parameters
Section titled “Type Parameters”T
The value wrapper struct type.
V
The underlying value type.
Inheritance Object → TypeConverter → ValueWrapperTypeConverter<T, V>
Constructors
Section titled “Constructors”ValueWrapperTypeConverter()
Section titled “ValueWrapperTypeConverter()”protected ValueWrapperTypeConverter()Methods
Section titled “Methods”Create(V)
Section titled “Create(V)”protected abstract T Create(V value)Parameters
Section titled “Parameters”value V
Returns
Section titled “Returns”T
CanConvertFrom(ITypeDescriptorContext, Type)
Section titled “CanConvertFrom(ITypeDescriptorContext, Type)”public bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)Parameters
Section titled “Parameters”context ITypeDescriptorContext
sourceType Type
Returns
Section titled “Returns”ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Section titled “ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)”public object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)Parameters
Section titled “Parameters”context ITypeDescriptorContext
culture CultureInfo
value Object
Returns
Section titled “Returns”CanConvertTo(ITypeDescriptorContext, Type)
Section titled “CanConvertTo(ITypeDescriptorContext, Type)”public bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)Parameters
Section titled “Parameters”context ITypeDescriptorContext
destinationType Type
Returns
Section titled “Returns”ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Section titled “ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)”public object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)Parameters
Section titled “Parameters”context ITypeDescriptorContext
culture CultureInfo
value Object
destinationType Type