SymbolDisplay.ToMinimalDisplayString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ToMinimalDisplayString(ISymbol, SemanticModel, Int32, SymbolDisplayFormat) |
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. |
ToMinimalDisplayString(ITypeSymbol, NullableAnnotation, SemanticModel, Int32, SymbolDisplayFormat) | |
ToMinimalDisplayString(ITypeSymbol, NullableFlowState, SemanticModel, Int32, SymbolDisplayFormat) |
ToMinimalDisplayString(ISymbol, SemanticModel, Int32, SymbolDisplayFormat)
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
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.
public static string ToMinimalDisplayString (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat format = default);
public static string ToMinimalDisplayString (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat? format = default);
static member ToMinimalDisplayString : Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.SymbolDisplayFormat -> string
Public Shared Function ToMinimalDisplayString (symbol As ISymbol, semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As String
Parameters
- symbol
- ISymbol
The symbol to be displayed.
- semanticModel
- SemanticModel
Semantic information about the context in which the symbol is being displayed.
- position
- Int32
A position within the SyntaxTree or semanticModel
.
- format
- SymbolDisplayFormat
The formatting options to apply. If null is passed, CSharpErrorMessageFormat will be used.
Returns
A formatted string that can be displayed to the user.
Remarks
The return value is not expected to be syntactically valid C#.
Applies to
ToMinimalDisplayString(ITypeSymbol, NullableAnnotation, SemanticModel, Int32, SymbolDisplayFormat)
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
public static string ToMinimalDisplayString (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableAnnotation nullableAnnotation, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat format = default);
public static string ToMinimalDisplayString (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableAnnotation nullableAnnotation, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat? format = default);
static member ToMinimalDisplayString : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.NullableAnnotation * Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.SymbolDisplayFormat -> string
Public Shared Function ToMinimalDisplayString (symbol As ITypeSymbol, nullableAnnotation As NullableAnnotation, semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As String
Parameters
- symbol
- ITypeSymbol
- nullableAnnotation
- NullableAnnotation
- semanticModel
- SemanticModel
- position
- Int32
- format
- SymbolDisplayFormat
Returns
Applies to
ToMinimalDisplayString(ITypeSymbol, NullableFlowState, SemanticModel, Int32, SymbolDisplayFormat)
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
- Source:
- SymbolDisplay.cs
public static string ToMinimalDisplayString (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableFlowState nullableFlowState, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat format = default);
public static string ToMinimalDisplayString (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableFlowState nullableFlowState, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat? format = default);
static member ToMinimalDisplayString : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.NullableFlowState * Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.SymbolDisplayFormat -> string
Public Shared Function ToMinimalDisplayString (symbol As ITypeSymbol, nullableFlowState As NullableFlowState, semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As String
Parameters
- symbol
- ITypeSymbol
- nullableFlowState
- NullableFlowState
- semanticModel
- SemanticModel
- position
- Int32
- format
- SymbolDisplayFormat