Skip to content

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.TypeConverter

T
The value wrapper struct type.

V
The underlying value type.

Inheritance Object → TypeConverter → ValueWrapperTypeConverter<T, V>

protected ValueWrapperTypeConverter()
protected abstract T Create(V value)

value V

T

CanConvertFrom(ITypeDescriptorContext, Type)

Section titled “CanConvertFrom(ITypeDescriptorContext, Type)”
public bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)

context ITypeDescriptorContext

sourceType Type

Boolean

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

Section titled “ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)”
public object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)

context ITypeDescriptorContext

culture CultureInfo

value Object

Object

CanConvertTo(ITypeDescriptorContext, Type)

Section titled “CanConvertTo(ITypeDescriptorContext, Type)”
public bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)

context ITypeDescriptorContext

destinationType Type

Boolean

ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)

Section titled “ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)”
public object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)

context ITypeDescriptorContext

culture CultureInfo

value Object

destinationType Type

Object