SymbolDisplayMiscellaneousOptions Enum

Definition

Specifies miscellaneous options about the format of symbol descriptions.

This enumeration supports a bitwise combination of its member values.

public enum class SymbolDisplayMiscellaneousOptions
[System.Flags]
public enum SymbolDisplayMiscellaneousOptions
[<System.Flags>]
type SymbolDisplayMiscellaneousOptions = 
Public Enum SymbolDisplayMiscellaneousOptions
Inheritance
SymbolDisplayMiscellaneousOptions
Attributes

Fields

AllowDefaultLiteral 128

Allow the use of default instead of default(T) where applicable.

CollapseTupleTypes 512

Insert a tuple into the display parts as a single part instead of multiple parts (similar to how anonymous types are inserted).

EscapeKeywordIdentifiers 2

Escapes identifiers that are also keywords. For example, "@true" instead of "true" in C# or "[True]" instead of "True" in Visual Basic.

ExpandNullable 32

Displays Nullable<T> as a normal generic type, rather than with the special question mark syntax.

ExpandValueTuple 1024

Displays ValueTuple as a normal generic type, rather than with the special parenthetical syntax (e.g. ValueTuple<int, string> instead of (int, string))

IncludeNotNullableReferenceTypeModifier 256

Append '!' to non-nullable reference types.

IncludeNullableReferenceTypeModifier 64

Append '?' to nullable reference types.

None 0

Specifies that no miscellaneous options should be applied.

RemoveAttributeSuffix 16

Displays attributes names without the "Attribute" suffix, if possible.

Has no effect outside ToMinimalDisplayString(SemanticModel, Int32, SymbolDisplayFormat) and only applies if the context location is one where an attribute ca be referenced without the suffix.

UseAsterisksInMultiDimensionalArrays 4

Displays asterisks between commas in multi-dimensional arrays. For example, "int[][,]" instead of "int[][,]" in C# or "Integer()(,)" instead of "Integer()(,) in Visual Basic.

UseErrorTypeSymbolName 8

Displays "?" for erroneous types that lack names (perhaps due to faulty metadata).

UseSpecialTypes 1

Uses keywords for predefined types. For example, "int" instead of "System.Int32" in C# or "Integer" instead of "System.Integer" in Visual Basic.

Applies to