Assembly: Mondop.Guard.Dll
Namespace: Mondop.Guard
Ensure is a class that allows you to check for null or empty parameters in methods. When a parameter is null or empty an ArgumentException is thrown.
IsNotNull(TArg,string) | Checks if the parameter argument is not null. If so the method will raise an ArgumentNullException. The name parameter is used in the exception. |
IsNotNullOrEmpty(string,string) | Checks if the parameter argument is not null or an empty string. If so the method will raise an ArgumentNullException |
IsNotNullOrWhiteSpace(string,string) | Checks if the parameter argument is not null or an empty string or a string that only contains white space. If so the method will raise an ArgumentNullException |