Class NullableBoolTypeConverter
public class NullableBoolTypeConverter : NullableConverter
- Inheritance
-
NullableBoolTypeConverter
- Inherited Members
Constructors
NullableBoolTypeConverter()
Initializes a new instance of the Ranorex.Core.NullableBoolTypeConverter class.
public NullableBoolTypeConverter()
Methods
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
contextITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
cultureCultureInfoThe CultureInfo to use as the current culture.
valueobjectThe object to convert.
Returns
Exceptions
- NotSupportedException
The conversion cannot be performed.
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
contextITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
cultureCultureInfoThe CultureInfo to use as the current culture.
valueobjectThe object to convert.
destinationTypeTypeThe Type to convert the value parameter to.
Returns
- object
A string representation of the nullable bool if
destinationTypeis type string; otherwise the value returned by the base method.
GetStandardValues(ITypeDescriptorContext)
Gets standard values for the nullable bool type.
public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
Parameters
contextITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
Returns
- TypeConverter.StandardValuesCollection
A set of default values for the nullable bool type.