System.ComponentModel.BooleanConverter Class

Provides a type converter to convert Boolean objects to and from various other representations.

See Also: BooleanConverter


public class BooleanConverter : TypeConverter


This converter can only convert a Boolean object to and from a string.

For more information about type converters, see the TypeConverter base class and How to: Implement a Type Converter.


You should never create an instance of a BooleanConverter. Instead, call the TypeDescriptor.GetConverter(Object) method of the TypeDescriptor class. For more information, see the examples in the TypeConverter base class.


Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,,

The members of System.ComponentModel.BooleanConverter are listed below.

See Also: TypeConverter

Public Constructors

Initializes a new instance of the BooleanConverter class.

Public Methods

CanConvertFrom(ITypeDescriptorContext, Type) : Boolean

Gets a value indicating whether this converter can convert an object in the given source type to a Boolean object using the specified context.

ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) : Object

Converts the given value object to a Boolean object.

GetStandardValues(ITypeDescriptorContext) : TypeConverter+StandardValuesCollection

Gets a collection of standard values for the Boolean data type.

GetStandardValuesExclusive(ITypeDescriptorContext) : Boolean

Gets a value indicating whether the list of standard values returned from the BooleanConverter.GetStandardValues(ITypeDescriptorContext) method is an exclusive list.

GetStandardValuesSupported(ITypeDescriptorContext) : Boolean

Gets a value indicating whether this object supports a standard set of values that can be picked from a list.