MethodInfo GetFromDecimalConversionMethod(IType type)
{
string toType = "To" + type.Name;
MethodInfo method =
typeof(Decimal).GetMethod(toType, new Type[] { typeof(Decimal) });
if (method == null)
{
NotImplemented(string.Format("Numeric promotion for decimal to {0} not implemented!", type));
}
return method;
}