15 public Type
From => typeof(decimal);
20 public Type
To => typeof(
double);
30 if (Value is decimal d)
33 throw new ArgumentException(
"Expected decimal value.", nameof(Value));
45 if (Value is decimal d)
48 throw new ArgumentException(
"Expected decimal value.", nameof(Value));
Converts decimal numbers to double numbers.
Type From
Converts double numbers to decimal numbers.
IElement ConvertToElement(object Value)
Converts the object in Value to an object of type To, encapsulated in an IElement.
object Convert(object Value)
Converts the object in Value to an object of type To.
Type To
Converter converts objects to this type.
Basic interface for all types of elements.
Converts an object of one type to an object of another type.