System.Linq.Expressions.Strings.DynamicObjectResultNotAssignable C# (CSharp) Method

DynamicObjectResultNotAssignable() static private method

A string like "The result type '{0}' of the dynamic binding produced by the object with type '{1}' for the binder '{2}' is not compatible with the result type '{3}' expected by the call site."
static private DynamicObjectResultNotAssignable ( object p0, object p1, object p2, object p3 ) : string
p0 object
p1 object
p2 object
p3 object
return string
        internal static string DynamicObjectResultNotAssignable(object p0, object p1, object p2, object p3) => SR.Format(SR.DynamicObjectResultNotAssignable, p0, p1, p2, p3);

Usage Example

 internal static Exception DynamicObjectResultNotAssignable(object p0, object p1, object p2, object p3)
 {
     return(new InvalidCastException(Strings.DynamicObjectResultNotAssignable(p0, p1, p2, p3)));
 }
Strings