SymbolDisplay.ToDisplayParts Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
ToDisplayParts(ISymbol, SymbolDisplayFormat) |
Convertissez un symbole en tableau de parties de chaîne, chacun ayant un type. Utile pour coloriser la chaîne d’affichage. |
ToDisplayParts(ITypeSymbol, NullableAnnotation, SymbolDisplayFormat) | |
ToDisplayParts(ITypeSymbol, NullableFlowState, SymbolDisplayFormat) |
ToDisplayParts(ISymbol, 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
- Source:
- SymbolDisplay.cs
Convertissez un symbole en tableau de parties de chaîne, chacun ayant un type. Utile pour coloriser la chaîne d’affichage.
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToDisplayParts (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.SymbolDisplayFormat format = default);
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToDisplayParts (Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.SymbolDisplayFormat? format = default);
static member ToDisplayParts : Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.SymbolDisplayFormat -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart>
Public Shared Function ToDisplayParts (symbol As ISymbol, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart)
Paramètres
- symbol
- ISymbol
Symbole à afficher.
- format
- SymbolDisplayFormat
Options de mise en forme à appliquer. Si la valeur null est passée, CSharpErrorMessageFormat elle sera utilisée.
Retours
Liste des parties d’affichage.
Remarques
Les parties ne sont pas localisées tant qu’elles ne sont pas converties en chaînes.
S’applique à
ToDisplayParts(ITypeSymbol, NullableAnnotation, 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
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToDisplayParts (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableAnnotation nullableAnnotation, Microsoft.CodeAnalysis.SymbolDisplayFormat format = default);
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToDisplayParts (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableAnnotation nullableAnnotation, Microsoft.CodeAnalysis.SymbolDisplayFormat? format = default);
static member ToDisplayParts : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.NullableAnnotation * Microsoft.CodeAnalysis.SymbolDisplayFormat -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart>
Public Shared Function ToDisplayParts (symbol As ITypeSymbol, nullableAnnotation As NullableAnnotation, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart)
Paramètres
- symbol
- ITypeSymbol
- nullableAnnotation
- NullableAnnotation
- format
- SymbolDisplayFormat
Retours
S’applique à
ToDisplayParts(ITypeSymbol, NullableFlowState, 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
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToDisplayParts (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableFlowState nullableFlowState, Microsoft.CodeAnalysis.SymbolDisplayFormat format = default);
public static System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart> ToDisplayParts (Microsoft.CodeAnalysis.ITypeSymbol symbol, Microsoft.CodeAnalysis.NullableFlowState nullableFlowState, Microsoft.CodeAnalysis.SymbolDisplayFormat? format = default);
static member ToDisplayParts : Microsoft.CodeAnalysis.ITypeSymbol * Microsoft.CodeAnalysis.NullableFlowState * Microsoft.CodeAnalysis.SymbolDisplayFormat -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.SymbolDisplayPart>
Public Shared Function ToDisplayParts (symbol As ITypeSymbol, nullableFlowState As NullableFlowState, Optional format As SymbolDisplayFormat = Nothing) As ImmutableArray(Of SymbolDisplayPart)
Paramètres
- symbol
- ITypeSymbol
- nullableFlowState
- NullableFlowState
- format
- SymbolDisplayFormat