ArgumentHelper Members
The ArgumentHelper type exposes the following members.
Methods
Name | Description | |
---|---|---|
AssertArgTwoAssignableFromArgOne | ||
AssertEnumMember<(Of <<'(TEnum>)>>)(TEnum) |
Ensures that enumValue is a valid member of the TEnum enumeration. If it
is not, an ArgumentException is thrown.
|
|
AssertEnumMember<(Of <<'(TEnum>)>>)(TEnum, array<TEnum>[]()[][]) |
Ensures that enumValue is included in the values specified by validValues. If
it is not, an ArgumentException is thrown.
|
|
AssertNotEmptyAndNotNull |
Ensures that arg is not null. If it is, an ArgumentNullException is thrown.
If it is an empty string an ArgumentNullException is thrown.
|
|
AssertNotEmptyNotNullAndLength |
Ensures that arg is not null. If it is, an ArgumentNullException is thrown.
If it is an empty string an ArgumentNullException is thrown.
If it is greater than max length an ArgumentOutOfRangeException is thrown.
|
|
AssertNotNull<(Of <<'(T>)>>) | ||
AssertOutOfRange |
Ensures that arg is within the specifed range. If it is not, an ArgumentOutOfRangeException is thrown.
|
|
GetEnumDescription |
Gets the enum description.
|