Guard Members
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The latest Unity Application Block information can be found at the Unity Application Block site. |
The Guard type exposes the following members.
Methods
Name | Description | |
---|---|---|
ArgumentNotNull |
Throws ArgumentNullException if the given argument is null.
|
|
ArgumentNotNullOrEmpty |
Throws an exception if the tested string argument is null or the empty string.
|
|
TypeIsAssignable |
Verifies that an argument type is assignable from the provided type (meaning interfaces are implemented, or classes exist in the base class hierarchy).
|