16 public Type
From => typeof(
double);
21 public Type
To => typeof(Complex);
31 if (Value is
double d)
32 return new Complex(d, 0);
34 throw new ArgumentException(
"Expected double value.", nameof(Value));
46 if (Value is
double d)
49 throw new ArgumentException(
"Expected double value.", nameof(Value));
Converts double numbers to complex numbers
object Convert(object Value)
Converts the object in Value to an object of type To.
Type From
Converter converts objects of this type.
IElement ConvertToElement(object Value)
Converts the object in Value to an object of type To, encapsulated in an IElement.
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.