System.Linq.Expressions.Strings.InstanceAndMethodTypeMismatch C# (CSharp) Метод

InstanceAndMethodTypeMismatch() статический приватный Метод

A string like "Method '{0}' declared on type '{1}' cannot be called with instance of type '{2}'"
static private InstanceAndMethodTypeMismatch ( object p0, object p1, object p2 ) : string
p0 object
p1 object
p2 object
Результат string
        internal static string InstanceAndMethodTypeMismatch(object p0, object p1, object p2) => SR.Format(SR.InstanceAndMethodTypeMismatch, p0, p1, p2);

Usage Example

Пример #1
0
 internal static Exception InstanceAndMethodTypeMismatch(object p0, object p1, object p2)
 {
     return(new ArgumentException(Strings.InstanceAndMethodTypeMismatch(p0, p1, p2)));
 }
Strings