แชร์ผ่าน


EnumStringsAttribute Class

Definition

Provides information to guide the production of an extension method to efficiently convert an enum value into string form.

public ref class EnumStringsAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Enum, AllowMultiple=true)]
[System.Diagnostics.Conditional("CODE_GENERATION_ATTRIBUTES")]
public sealed class EnumStringsAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Enum, AllowMultiple=true)>]
[<System.Diagnostics.Conditional("CODE_GENERATION_ATTRIBUTES")>]
type EnumStringsAttribute = class
    inherit Attribute
Public NotInheritable Class EnumStringsAttribute
Inherits Attribute
Inheritance
EnumStringsAttribute
Attributes

Constructors

EnumStringsAttribute()

Initializes a new instance of the EnumStringsAttribute class.

EnumStringsAttribute(Type)

Initializes a new instance of the EnumStringsAttribute class.

Properties

EnumType

Gets the type of the enum to annotate.

ExtensionClassModifiers

Gets or sets the modifiers to apply to the generated class.

ExtensionClassName

Gets or sets the name of the generated class.

ExtensionMethodName

Gets or sets the name of the generated extension method.

ExtensionNamespace

Gets or sets the namespace of the generated class.

Applies to