Class EnumDataTypeAttribute
Custom attribute that, when added to a field, property or parameter, throws an ArgumentException if the target is assigned a value that is not a valid member of an enumeration.
Namespace: PostSharp.Patterns.Contracts
Assembly: PostSharp.Patterns.Common.dll
Syntax
[HasConstraint]
public sealed class EnumDataTypeAttribute : LocationContractAttribute, ILocationLevelAspect, IAspect
Constructors
Name | Description |
---|---|
EnumDataTypeAttribute(Type) | Initializes a new EnumDataTypeAttribute. |
Properties
Name | Description |
---|---|
EnumType | Gets the enumeration type. |