CapyKit Documentation
  • Introduction
  • Getting Started
  • API Reference
    • CapyKit
      • CapyEventArgs
      • CapyEventHandler
      • CapyEventReporter
      • Color
      • EncryptedValue<T>
      • EventLevel
      • IPasswordAlgorithm
      • NamedColor
      • Password
      • Pbkdf2Algorithm
      • PoolItem<T>
      • Pool<T>
      • PropertyComparer<T, U>
    • CapyKit.Attributes
      • EnumerationAttribute<T>
      • EnumerationDescriptionAttribute
      • ValueFormatAttribute
    • CapyKit.Enumerations
      • MeasurementSystem
    • CapyKit.Extensions
      • EnumerationExtensions
      • LINQExtensions
      • ObjectExtensions
      • StringExtensions
    • CapyKit.Helpers
      • CalculationHelper
      • CompressionHelper
      • EncryptionHelper
      • IEncryptionAlgorithm
      • KeyHelper
      • LanguageHelper
      • SecurityHelper
      • SerializationHelper
      • SettingsHelper
      • ValidCharacterCollection
Search Results for

    Show / Hide Table of Contents
    • Introduction
    • Getting Started
    • API Reference
      • CapyKit
        • CapyEventArgs
        • CapyEventHandler
        • CapyEventReporter
        • Color
        • EncryptedValue<T>
        • EventLevel
        • IPasswordAlgorithm
        • NamedColor
        • Password
        • Pbkdf2Algorithm
        • PoolItem<T>
        • Pool<T>
        • PropertyComparer<T, U>
      • CapyKit.Attributes
        • EnumerationAttribute<T>
        • EnumerationDescriptionAttribute
        • ValueFormatAttribute
      • CapyKit.Enumerations
        • MeasurementSystem
      • CapyKit.Extensions
        • EnumerationExtensions
        • LINQExtensions
        • ObjectExtensions
        • StringExtensions
      • CapyKit.Helpers
        • CalculationHelper
        • CompressionHelper
        • EncryptionHelper
        • IEncryptionAlgorithm
        • KeyHelper
        • LanguageHelper
        • SecurityHelper
        • SerializationHelper
        • SettingsHelper
        • ValidCharacterCollection

    Class EnumerationAttribute<T>

    Custom attribute class for decorating enumeration fields with additional data.

    Inheritance
    object
    Attribute
    EnumerationAttribute<T>
    EnumerationDescriptionAttribute
    Namespace: CapyKit.Attributes
    Assembly: CapyKit.dll
    Syntax
    [AttributeUsage(AttributeTargets.Field)]
    public abstract class EnumerationAttribute<T> : Attribute
    Type Parameters
    Name Description
    T

    Generic type parameter allowing for arbitrary declarations and assignments of meaning.

    Constructors

    EnumerationAttribute(T)

    Gets the value of the enumeration represented by this attribute.

    Declaration
    protected EnumerationAttribute(T value)
    Parameters
    Type Name Description
    T value

    Initializes a new instance of the EnumerationAttribute<T> class with a specified value.

    Properties

    Value

    Initializes a new instance of the EnumerationAttribute<T> class with a specified value.

    Declaration
    public T Value { get; }
    Property Value
    Type Description
    T

    The value.

    In this article
    Back to top Generated by DocFX