次の方法で共有


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

Name Value Description
None 0

Specifies that no miscellaneous options should be applied.

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.

EscapeKeywordIdentifiers 2

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

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).

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.

ExpandNullable 32

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

IncludeNullableReferenceTypeModifier 64

Append '?' to nullable reference types.

AllowDefaultLiteral 128

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

IncludeNotNullableReferenceTypeModifier 256

Append '!' to non-nullable reference types.

CollapseTupleTypes 512

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

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))

Applies to