System.ComponentModel.DecimalConverter Class

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

See Also: DecimalConverter


public class DecimalConverter : BaseNumberConverter


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


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

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


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

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

See Also: BaseNumberConverter

Public Constructors

Initializes a new instance of the DecimalConverter class.

Public Methods

CanConvertTo(ITypeDescriptorContext, Type) : Boolean

Gets a value indicating whether this converter can convert an object to the given destination type using the context.

ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) : Object

Converts the given value object to a Decimal using the arguments.