Table of Contents

Class PseudostateKindConverter

Namespace
NMF.Interop.Uml
Assembly
NMF.UMLInterop.dll

Implements a type converter for the enumeration PseudostateKind

public class PseudostateKindConverter : TypeConverter
Inheritance
PseudostateKindConverter
Inherited Members

Methods

CanConvertFrom(ITypeDescriptorContext, Type)

Determines whether the converter can convert from the provided source type into PseudostateKind

public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)

Parameters

context ITypeDescriptorContext

the context in which the value should be transformed

sourceType Type

the source type

Returns

bool

true, if the converter can convert from the source type, otherwise false

CanConvertTo(ITypeDescriptorContext, Type)

Determines whether the converter can convert to the destination type from PseudostateKind

public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)

Parameters

context ITypeDescriptorContext

the context in which the value should be transformed

destinationType Type

the destination type

Returns

bool

true, if the converter can convert from the source type, otherwise false

ConvertFrom(ITypeDescriptorContext, CultureInfo, object)

Convert the provided value into a PseudostateKind

public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)

Parameters

context ITypeDescriptorContext

the context in which the value should be transformed

culture CultureInfo

the culture in which the value should be converted

value object

the value to convert

Returns

object

the converted value as a PseudostateKind

ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)

Convert the provided value into a PseudostateKind

public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)

Parameters

context ITypeDescriptorContext

the context in which the value should be transformed

culture CultureInfo

the culture in which the value should be converted

value object

the value to convert

destinationType Type

the destination type

Returns

object

the converted value