Class Guard
Inherited Members
Namespace: PoeShared
Assembly: PoeShared.dll
Syntax
public static class Guard
Methods
| Name | Description |
|---|---|
| ArgumentCondition<T>(Expression<Func<T>>, Expression<Func<T, bool>>) | Checks if the given value meets the given condition. |
| ArgumentCondition<T>(T, string, Expression<Func<T, bool>>) | Checks if the given value meets the given condition. |
| ArgumentHasLength(Expression<Func<string>>, int) | Checks if the given string has the expected length |
| ArgumentHasLength(string, string, int) | Checks if the given string has the expected length |
| ArgumentHasMaxLength(Expression<Func<string>>, int) | Checks if the given string has a length which exceeds given max length. |
| ArgumentHasMaxLength(string, string, int) | Checks if the given string has a length which exceeds given max length. |
| ArgumentHasMinLength(Expression<Func<string>>, int) | Checks if the given string has a length which is at least given min length long. |
| ArgumentHasMinLength(string, string, int) | Checks if the given string has a length which is at least given min length long. |
| ArgumentIsBetween<T>(Expression<Func<T>>, T, T, bool) | Checks if given argument is between given lower value and upper value. |
| ArgumentIsFalse(bool, string) | Checks if the given |
| ArgumentIsFalse(Expression<Func<bool>>) | Checks if the given |
| ArgumentIsGreaterOrEqual<T>(Expression<Func<T>>, T) | Checks if given argument is greater or equal to given value. |
| ArgumentIsGreaterThan<T>(Expression<Func<T>>, T) | Checks if given argument is greater than given value. |
| ArgumentIsLowerOrEqual<T>(Expression<Func<T>>, T) | Checks if given argument is lower or equal to given value. |
| ArgumentIsLowerThan<T>(Expression<Func<T>>, T) | Checks if given argument is lower than given value. |
| ArgumentIsNotNegative<T>(Expression<Func<T>>) | Verifies the |
| ArgumentIsNotNegative<T>(T, string) | Checks if |
| ArgumentIsTrue(bool, string) | Checks if the given |
| ArgumentIsTrue(Expression<Func<bool>>) | Checks if the given |
| ArgumentMustBeInterface(Type) | Checks if the given |
| ArgumentMustBeOfType<T>(object, string) | |
| ArgumentMustNotBeInterface(Type) | Checks if the given |
| ArgumentNotNullOrEmpty(IEnumerable, string) | Checks if the given string is not null or empty. |
| ArgumentNotNullOrEmpty(Expression<Func<IEnumerable>>) | Checks if the given string is not null or empty. |
| ArgumentNotNullOrEmpty(Expression<Func<string>>) | Checks if the given string is not null or empty. |
| ArgumentNotNullOrEmpty(string, string) | Checks if the given string is not null or empty. |
| ArgumentNotNull<T>(Expression<Func<T>>) | Checks if the given value is not null. |
| ArgumentNotNull<T>(T, string) | Checks if the given value is not null. |
| ArgumentNull<T>(Expression<Func<T>>) | Checks if the given value is not null. |
| ArgumentNull<T>(T, string) | Checks if the given value is not null. |