Class StringToNumberConverter
public class StringToNumberConverter : AbstractToNumberConverter, IConditionalGenericConverter, IConditionalConverter, IGenericConverter
- Inheritance
-
StringToNumberConverter
- Implements
- Inherited Members
Constructors
StringToNumberConverter()
public StringToNumberConverter()
Methods
Convert(object, Type, Type)
Convert the source object to the target type.
public override object Convert(object source, Type sourceType, Type targetType)
Parameters
sourceobjectthe object to convert; the source can be null
sourceTypeTypethe type of the source that should be used during the conversion. Can be null, and defaults to the type of the source object
targetTypeTypethe type we are converting to
Returns
- object
the converted object