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