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