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

DynamicBindingNeedsRestrictions() static private method

InvalidOperationException with message like "The result of the dynamic binding produced by the object with type '{0}' for the binder '{1}' needs at least one restriction."
static private DynamicBindingNeedsRestrictions ( object p0, object p1 ) : Exception
p0 object
p1 object
return System.Exception
        internal static Exception DynamicBindingNeedsRestrictions(object p0, object p1)
        {
            return new InvalidOperationException(Strings.DynamicBindingNeedsRestrictions(p0, p1));
        }
        /// <summary>
Error