Open sandboxFocus

Class EnumDataTypeAttributeHelper

Provides runtime helper methods for validating enum values, used by EnumDataTypeAttribute.

Inheritance
EnumDataTypeAttributeHelper
Namespace: Metalama.Patterns.Contracts
Assembly: Metalama.Patterns.Contracts.dll
Syntax
public static class EnumDataTypeAttributeHelper

Methods

Name Description
IsValidEnumValue(object?, Type)

Determines whether the specified object value is a valid member of the specified enumeration type.

IsValidEnumValue(string, Type)

Determines whether the specified string value is a valid member of the specified enumeration type.

See Also