ok = false;
}
if (!ok)
- throw new ArgumentException ("The last element of an eight element tuple must be a Tuple.");
+ throw new ArgumentException ("rest", "The last element of an eight element tuple must be a Tuple.");
}
}
var t = other as Tuple<T1>;
if (t == null) {
if (other == null) return 1;
- throw new ArgumentException ();
+ throw new ArgumentException ("other");
}
return comparer.Compare (item1, t.item1);
var t = other as Tuple<T1, T2>;
if (t == null) {
if (other == null) return 1;
- throw new ArgumentException ();
+ throw new ArgumentException ("other");
}
int res = comparer.Compare (item1, t.item1);
var t = other as Tuple<T1, T2, T3>;
if (t == null) {
if (other == null) return 1;
- throw new ArgumentException ();
+ throw new ArgumentException ("other");
}
int res = comparer.Compare (item1, t.item1);
var t = other as Tuple<T1, T2, T3, T4>;
if (t == null) {
if (other == null) return 1;
- throw new ArgumentException ();
+ throw new ArgumentException ("other");
}
int res = comparer.Compare (item1, t.item1);
var t = other as Tuple<T1, T2, T3, T4, T5>;
if (t == null) {
if (other == null) return 1;
- throw new ArgumentException ();
+ throw new ArgumentException ("other");
}
int res = comparer.Compare (item1, t.item1);
var t = other as Tuple<T1, T2, T3, T4, T5, T6>;
if (t == null) {
if (other == null) return 1;
- throw new ArgumentException ();
+ throw new ArgumentException ("other");
}
int res = comparer.Compare (item1, t.item1);
var t = other as Tuple<T1, T2, T3, T4, T5, T6, T7>;
if (t == null) {
if (other == null) return 1;
- throw new ArgumentException ();
+ throw new ArgumentException ("other");
}
int res = comparer.Compare (item1, t.item1);
var t = other as Tuple<T1, T2, T3, T4, T5, T6, T7, TRest>;
if (t == null) {
if (other == null) return 1;
- throw new ArgumentException ();
+ throw new ArgumentException ("other");
}
int res = comparer.Compare (item1, t.item1);
Console.WriteLine ("\t\t\tvar t = other as {0};", type_name);
Console.WriteLine ("\t\t\tif (t == null) {");
Console.WriteLine ("\t\t\t\tif (other == null) return 1;");
- Console.WriteLine ("\t\t\t\tthrow new ArgumentException ();");
+ Console.WriteLine ("\t\t\t\tthrow new ArgumentException ("other");");
Console.WriteLine ("\t\t\t}");
Console.WriteLine ();