AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

ArgumentHelper Methods

The ArgumentHelper type exposes the following members.

Methods


  Name Description
Public method Static member AssertArgTwoAssignableFromArgOne
Ensures that arg2 is assignable from arg1. If it is not, an ArgumentException is thrown.
Public method Static member AssertEnumMember<(Of <<'(TEnum>)>>)(TEnum)
Ensures that enumValue is a valid member of the TEnum enumeration. If it is not, an ArgumentException is thrown.
Public method Static member 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.
Public method Static member AssertNotEmptyAndNotNull
Ensures that arg is not null. If it is, an ArgumentNullException is thrown. If it is an empty string an ArgumentNullException is thrown.
Public method Static member 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.
Public method Static member AssertNotNull<(Of <<'(T>)>>)
Ensures that arg is not null. If it is, an ArgumentNullException is thrown.
Public method Static member AssertOutOfRange
Ensures that arg is within the specifed range. If it is not, an ArgumentOutOfRangeException is thrown.
Public method Static member GetEnumDescription
Gets the enum description.