7 public static ArgumentNullException ArgumentNull (string parameter)
9 return new ArgumentNullException (parameter);
12 public static ArgumentOutOfRangeException ArgumentOutOfRange (string parameter)
14 return new ArgumentOutOfRangeException (parameter);
17 public static ArgumentException ArgumentNotValid (string parameter)
19 return new ArgumentException (parameter);
22 public static NotSupportedException NotSupported ()
24 return new NotSupportedException ();
27 public static InvalidOperationException NoElements ()
29 return new InvalidOperationException (Strings.NoElements);
32 public static InvalidOperationException NoMatch ()
34 return new InvalidOperationException (Strings.NoMatch);
37 public static InvalidOperationException MoreThanOneElement ()
39 return new InvalidOperationException (Strings.MoreThanOneElement);
42 public static InvalidOperationException MoreThanOneMatch ()
44 return new InvalidOperationException (Strings.MoreThanOneMatch);
47 public static ArgumentException ArgumentNotIEnumerableGeneric (object message)
49 return new ArgumentException (String.Format ("{0} is not IEnumerable<>", message));
52 public static InvalidOperationException NoMethodOnTypeMatchingArguments (object p0, object p1)
54 return new InvalidOperationException (Strings.NoMethodOnTypeMatchingArguments (p0, p1));
57 public static InvalidOperationException NoMethodOnType (object p0, object p1)
59 return new InvalidOperationException (Strings.NoMethodOnType (p0, p1));