Guard Members

GWN Framework Contact Manager

Guard Members

The Guard type exposes the following members.

Methods


  Name Description
Public method Static member ArgumentNotNull
Throws ArgumentNullException if the given argument is null.
Public method Static member ArgumentNotNullOrEmpty
Throws an exception if the tested string argument is null or the empty string.
Public method Static member InstanceIsAssignable
Verifies that an argument instance is assignable from the provided type (meaning interfaces are implemented, or classes exist in the base class hierarchy, or instance can be assigned through a runtime wrapper, as is the case for COM Objects).
Public method Static member TypeIsAssignable
Verifies that an argument type is assignable from the provided type (meaning interfaces are implemented, or classes exist in the base class hierarchy).