System.Linq.Expressions.Expression.ValidateCallInstanceType C# (CSharp) Method

ValidateCallInstanceType() private static method

private static ValidateCallInstanceType ( Type instanceType, MethodInfo method ) : void
instanceType Type
method MethodInfo
return void
        private static void ValidateCallInstanceType(Type instanceType, MethodInfo method)
        {
            if (!TypeUtils.IsValidInstanceType(method, instanceType))
            {
                throw Error.InstanceAndMethodTypeMismatch(method, method.DeclaringType, instanceType);
            }
        }
Expression