Method Validate
Validate(AddressKind, string)
Validates
value, ensuring that it is a valid AddressKind.public static void Validate(this AddressKind value, string argName = "")
Parameters
valueAddressKind- The value to validate.
argNamestring- The name of the argument.
Exceptions
- ArgumentOutOfRangeException
- Thrown if
valueis invalid.