Open sandboxFocus

Class EnumFormatter<T>

Efficient formatter for enums.

Inheritance
EnumFormatter<T>
Namespace: PostSharp.Patterns.Formatters
Assembly: PostSharp.Patterns.Common.dll
Syntax
public sealed class EnumFormatter<T> : Formatter<T>, IFormatter<T>, IOptionAwareFormatter, IFormatter
Type Parameters
Name Description
T

Constructors

Name Description
EnumFormatter()

Fields

Name Description
Instance

The singleton instance of EnumFormatter<T>.

Methods

Name Description
GetString(T)

Returns the string value of the given enum value.

Write(UnsafeStringBuilder, T)

Appends the description of an object into given UnsafeStringBuilder (weakly-typed variant).

Extension Methods