• Api Documentation
Show / Hide Table of Contents
  • Ubiquity.NET.ArgValidators
    • ValidatedNotNullAttribute
    • Validators
      • ValidateDefined
      • ValidateLength
      • ValidateNotDefault
      • ValidateNotNull
      • ValidateNotNullOrWhiteSpace
      • ValidatePattern
      • ValidateRange

Method ValidateDefined

 

ValidateDefined<T>(T, String)

Validates that a value is defined on the Enum type.

Declaration
public static T ValidateDefined<T>(this T value, string paramName)
    where T : Enum

Parameters

T value

Value to check is defined.

System.String paramName

name of the parameter owning the value.

Returns

T

value for fluent design usage.

Type Parameters

T

Enumeration type.

Back to top Copyright (C) 2017-2021, Ubiquity.NET Contributors
Build: 7.0.0