EnumFormatter<T> Class |
Efficient formatter for enums.
System.Object
PostSharp.Patterns.Formatters.Formatter<T>
PostSharp.Patterns.Formatters.EnumFormatter<T>
PostSharp.Patterns.Formatters.Formatter<T>
PostSharp.Patterns.Formatters.EnumFormatter<T>
Namespace: PostSharp.Patterns.Formatters
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
The EnumFormatter<T> type exposes the following members.
Name | Description | |
---|---|---|
EnumFormatter<T> | Initializes a new instance of the EnumFormatter<T> class |
Name | Description | |
---|---|---|
Attributes |
Gets the formatter attributes.
(Inherited from Formatter<T>.) |
Name | Description | |
---|---|---|
GetString |
Returns the string value of the given enum value.
| |
WithOptions | (Inherited from Formatter<T>.) | |
Write(UnsafeStringBuilder, T) |
Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).
(Overrides Formatter<T>.Write(UnsafeStringBuilder, Object).) | |
Write(UnsafeStringBuilder, Object) |
Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).
(Inherited from Formatter<T>.) |
Name | Description | |
---|---|---|
Instance |
The singleton instance of EnumFormatter<T>.
|