Ejemplo n.º 1
0
        public static MethodBase ImplicitStandardConversionExists(MethodGroupExpr mg, Type target_type)
        {
            if (target_type == TypeManager.delegate_type || target_type == TypeManager.multicast_delegate_type)
            {
                return(null);
            }

            foreach (MethodInfo mi in mg.Methods)
            {
                MethodBase mb = Delegate.VerifyMethod(mg.DeclaringType, target_type, mg, mi);
                if (mb != null)
                {
                    return(mb);
                }
            }
            return(null);
        }