Class InteractionOperatorKindConverter
Implements a type converter for the enumeration InteractionOperatorKind
public class InteractionOperatorKindConverter : TypeConverter
- Inheritance
-
InteractionOperatorKindConverter
- Inherited Members
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Determines whether the converter can convert from the provided source type into InteractionOperatorKind
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
context
ITypeDescriptorContextthe context in which the value should be transformed
sourceType
Typethe 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 InteractionOperatorKind
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
context
ITypeDescriptorContextthe context in which the value should be transformed
destinationType
Typethe 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 InteractionOperatorKind
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
context
ITypeDescriptorContextthe context in which the value should be transformed
culture
CultureInfothe culture in which the value should be converted
value
objectthe value to convert
Returns
- object
the converted value as a InteractionOperatorKind
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Convert the provided value into a InteractionOperatorKind
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
context
ITypeDescriptorContextthe context in which the value should be transformed
culture
CultureInfothe culture in which the value should be converted
value
objectthe value to convert
destinationType
Typethe destination type
Returns
- object
the converted value