Click or drag to resize

SymbolDisplay Class



Displays a symbol in the C# style.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysis.CSharpSymbolDisplay

Namespace:  Microsoft.CodeAnalysis.CSharp
Assembly:  Microsoft.CodeAnalysis.CSharp (in Microsoft.CodeAnalysis.CSharp.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public static class SymbolDisplay

The SymbolDisplay type exposes the following members.

Methods
  NameDescription
Public methodStatic memberFormatLiteral(Char, Boolean)
Returns a C# character literal with the given value.
Public methodStatic memberFormatLiteral(String, Boolean)
Returns a C# string literal with the given value.
Public methodStatic memberFormatPrimitive
Returns a string representation of an object of primitive type.
Public methodStatic memberToDisplayParts
Convert a symbol to an array of string parts, each of which has a kind. Useful for colorizing the display string.
Public methodStatic memberToDisplayString
Displays a symbol in the C# style, based on a SymbolDisplayFormat.
Public methodStatic memberToMinimalDisplayParts
Convert a symbol to an array of string parts, each of which has a kind. Useful for colorizing the display string.
Public methodStatic memberToMinimalDisplayString
Displays a symbol in the C# style, based on a SymbolDisplayFormat. Based on the context, qualify type and member names as little as possible without introducing ambiguities.
Top
See Also