16 public Type
From => typeof(
double);
21 public Type
To => typeof(BigInteger);
31 if (Value is
double d)
33 BigInteger i = (BigInteger)d;
40 throw new ArgumentException(
"Expected BigInteger value.", nameof(Value));
52 if (Value is
double d)
54 BigInteger i = (BigInteger)d;
61 throw new ArgumentException(
"Expected double value.", nameof(Value));
Converts a double number to a BigInteger, if possible.
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.
Type From
Converter converts objects of this type.
Basic interface for all types of elements.
Converts an object of one type to an object of another type.