static Unit() { Converter.AddTypedConverter <Unit, decimal>(input => (decimal)input); Converter.AddTypedConverter <Unit, double>(input => (double)input); Converter.AddTypedConverter <decimal, Unit>(input => input); Converter.AddTypedConverter <int, Unit>(input => input); Converter.AddTypedConverter <double, Unit>(input => input); }
static Currency() { Converter.AddTypedConverter <Currency, decimal>(input => (decimal)input); Converter.AddTypedConverter <decimal, Currency>(input => input); }