15 public Type
From => typeof(
double);
20 public Type
To => typeof(
short);
37 if (Value is
double d && d >=
short.MinValue && d <=
short.MaxValue && Math.Round(d) == d)
58 if (Value is
double d && d >=
short.MinValue && d <=
short.MaxValue && Math.Round(d) == d)
Converts double numbers to 16-bit integer values.
bool TryConvert(object Value, out object Result)
Converts the object in Value to an object of type To.
bool TryConvertToElement(object Value, out IElement Result)
Converts the object in Value to an object of type To, encapsulated in an IElement.
double Weight
Weight of the converter. An estimate of how well the converter performs, or how much information is r...
Type To
Converter converts objects to this type.
Type From
Converts double numbers to 16-bit integer values.
Basic interface for all types of elements.
Converts an object of one type to an object of another type.