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

InvalidCast() static private method

InvalidOperationException with message like "Cannot cast from type '{0}' to type '{1}"
static private InvalidCast ( object p0, object p1 ) : Exception
p0 object
p1 object
return System.Exception
        internal static Exception InvalidCast(object p0, object p1)
        {
            return new InvalidOperationException(Strings.InvalidCast(p0, p1));
        }
        /// <summary>
Error