Boo.Lang.Compiler.Steps.EmitAssembly.GetToDecimalConversionMethod C# (CSharp) Метод

GetToDecimalConversionMethod() приватный Метод

private GetToDecimalConversionMethod ( IType type ) : MethodInfo
type IType
Результат System.Reflection.MethodInfo
        MethodInfo GetToDecimalConversionMethod(IType type)
        {
            MethodInfo method =
                typeof(Decimal).GetMethod("op_Implicit", new Type[] { GetSystemType(type) });

            if (method == null)
            {
                method =
                    typeof(Decimal).GetMethod("op_Explicit", new Type[] { GetSystemType(type) });
                if (method == null)
                {
                    NotImplemented(string.Format("Numeric promotion for {0} to decimal not implemented!", type));
                }
            }
            return method;
        }
EmitAssembly