SymbolDisplay.ToMinimalDisplayParts Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
ToMinimalDisplayParts(ISymbol, SemanticModel, Int32, SymbolDisplayFormat) |
Convierta un símbolo en una matriz de partes de cadena, cada una de las cuales tiene un tipo . Útil para colorear la cadena de presentación. |
ToMinimalDisplayParts(ITypeSymbol, NullableAnnotation, SemanticModel, Int32, SymbolDisplayFormat) | |
ToMinimalDisplayParts(ITypeSymbol, NullableFlowState, SemanticModel, Int32, SymbolDisplayFormat) |
ToMinimalDisplayParts(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
Convierta un símbolo en una matriz de partes de cadena, cada una de las cuales tiene un tipo . Útil para colorear la cadena de presentación.
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToMinimalDisplayParts (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat format = default);
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToMinimalDisplayParts (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat? format = default);
static member ToMinimalDisplayParts : Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.SymbolDisplayFormat -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart>
Public Shared Function ToMinimalDisplayParts (symbol As ISymbol, semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart)
Parámetros
- symbol
- ISymbol
Símbolo que se va a mostrar.
- semanticModel
- SemanticModel
Información semántica sobre el contexto en el que se muestra el símbolo.
- position
- Int32
Posición dentro de SyntaxTree o semanticModel
.
- format
- SymbolDisplayFormat
Las opciones de formato que se van a aplicar. Si se pasa null, CSharpErrorMessageFormat se usará.
Devoluciones
Una lista de elementos para mostrar.
Comentarios
Las partes no se localizan hasta que se convierten en cadenas.
Se aplica a
ToMinimalDisplayParts(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 System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToMinimalDisplayParts (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableAnnotation nullableAnnotation, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat format = default);
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToMinimalDisplayParts (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableAnnotation nullableAnnotation, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat? format = default);
static member ToMinimalDisplayParts : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.NullableAnnotation * Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.SymbolDisplayFormat -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart>
Public Shared Function ToMinimalDisplayParts (symbol As ITypeSymbol, nullableAnnotation As NullableAnnotation, semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart)
Parámetros
- symbol
- ITypeSymbol
- nullableAnnotation
- NullableAnnotation
- semanticModel
- SemanticModel
- position
- Int32
- format
- SymbolDisplayFormat
Devoluciones
Se aplica a
ToMinimalDisplayParts(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 System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToMinimalDisplayParts (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableFlowState nullableFlowState, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat format = default);
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToMinimalDisplayParts (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableFlowState nullableFlowState, Microsoft.CodeAnalysis.SemanticModel semanticModel, int position, Microsoft.CodeAnalysis.SymbolDisplayFormat? format = default);
static member ToMinimalDisplayParts : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.NullableFlowState * Microsoft.CodeAnalysis.SemanticModel * int * Microsoft.CodeAnalysis.SymbolDisplayFormat -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart>
Public Shared Function ToMinimalDisplayParts (symbol As ITypeSymbol, nullableFlowState As NullableFlowState, semanticModel As SemanticModel, position As Integer, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart)
Parámetros
- symbol
- ITypeSymbol
- nullableFlowState
- NullableFlowState
- semanticModel
- SemanticModel
- position
- Int32
- format
- SymbolDisplayFormat