Guard Methods |
[This is preliminary documentation and is subject to change.]
The Guard type exposes the following members.
Name | Description | |
---|---|---|
AreNotSameT |
Checks if object1 is not the same as object2 | |
AreSameT |
Checks if object1 is the same as object2 | |
HasAtLeastNElementsT(IEnumerableT, Int32, String, String) |
Checks if items has at least count number of items in its collection
| |
HasAtLeastNElementsT(IReadOnlyListT, Int32, String, String) |
Checks if items has at least count number of items in its collection
| |
HasExactlyNElementsT |
Checks if items has exactly count number of items in its collection
| |
HasNElementsInRangeT |
Checks if items has at least minimum and at most maximum number of items.
| |
IsAssignableToTAssigner |
Checks if type inherits from TAssigner | |
IsCollectionType |
Checks if t is a collection type
| |
IsDefinedT(T, String) |
Checks if enumValue is defined on the enum type
| |
IsDefinedT(T, String, T) |
Checks if enumValue is defined on T and is defined in allowedValues | |
IsEnum |
Checks if param is an enum.
| |
IsExistingDirectory |
Checks if folder exists on disk
| |
IsExistingFile |
Checks if fileFullPath exists on disk
| |
IsGreaterThan |
Checks if value is greater than minimum | |
IsInRangeT |
Checks if the value falls within min and max inclusive
| |
IsLargerThanOtherArgument |
Checks if original is larger then other | |
IsNaturalNumber(Int32, String) |
Checks if value is a natural number
| |
IsNaturalNumber(Int64, String) |
Checks if value is a natural number
| |
IsNotEmpty |
Checks if guid is not an empty guid
| |
IsNotNullT |
Checks if param is not NULL.
| |
IsNotNullOrWhiteSpace |
Checks if stringValue is not NULL or whitespace
| |
IsOfType(Type, Object, String) |
Checks if item is of type t | |
IsOfTypeT(Object, String) |
Checks if item is of type T | |
IsReadable |
Checks if stream is read-able
| |
IsTrueTex | ||
IsValidPointer |
Checks if pointer is not a zero pointer
| |
IsWritable |
Checks if stream is write-able
| |
StringStartsWith |
Checks if value starts with startsWith |