System.Linq.Expressions.Error.InstanceAndMethodTypeMismatch C# (CSharp) Method

InstanceAndMethodTypeMismatch() static private method

ArgumentException with message like "Method '{0}' declared on type '{1}' cannot be called with instance of type '{2}'"
static private InstanceAndMethodTypeMismatch ( object p0, object p1, object p2 ) : Exception
p0 object
p1 object
p2 object
return System.Exception
        internal static Exception InstanceAndMethodTypeMismatch(object p0, object p1, object p2)
        {
            return new ArgumentException(Strings.InstanceAndMethodTypeMismatch(p0, p1, p2));
        }
Error