Class ThrowIf
Validator class that throws exceptions if conditions are not met.
Assembly: Glitch9.dll
Syntax
public static class ThrowIf
Methods
|
Edit this page
View Source
NullOrEmpty(string, string, string)
Declaration
public static void NullOrEmpty(string arg, string name = null, string caller = null)
Parameters
|
Edit this page
View Source
NullOrEmpty<T>(ICollection<T>, string, string)
Declaration
public static void NullOrEmpty<T>(ICollection<T> arg, string name = null, string caller = null)
Parameters
Type Parameters
|
Edit this page
View Source
NullOrEmpty<T>(T, string, string)
Declaration
public static void NullOrEmpty<T>(T arg, string name = null, string caller = null) where T : IEmptiable
Parameters
Type Parameters
|
Edit this page
View Source
NullOrWhiteSpace(string, string, string)
Declaration
public static void NullOrWhiteSpace(string arg, string name = null, string caller = null)
Parameters
|
Edit this page
View Source
Null<T>(T, string, string)
Declaration
public static void Null<T>(T arg, string name = null, string caller = null)
Parameters
Type Parameters