Condividi tramite


CSharpExtensions.GetDeclaredSymbol Metodo

Definizione

Overload

GetDeclaredSymbol(SemanticModel, LabeledStatementSyntax, CancellationToken)

Dato una sintassi dell'istruzione etichettata, ottenere il simbolo di etichetta corrispondente.

GetDeclaredSymbol(SemanticModel, LocalFunctionStatementSyntax, CancellationToken)

Dato una sintassi della dichiarazione di funzione locale, ottenere il simbolo corrispondente.

GetDeclaredSymbol(SemanticModel, MemberDeclarationSyntax, CancellationToken)

Dato una sintassi di dichiarazione membro, ottenere il simbolo corrispondente.

GetDeclaredSymbol(SemanticModel, NamespaceDeclarationSyntax, CancellationToken)

Dato un nodo di sintassi della dichiarazione dello spazio dei nomi, ottenere il simbolo dello spazio dei nomi corrispondente per l'assembly di dichiarazione.

GetDeclaredSymbol(SemanticModel, ParameterSyntax, CancellationToken)

Dato un nodo di sintassi della dichiarazione dei parametri, ottenere il simbolo corrispondente.

GetDeclaredSymbol(SemanticModel, PropertyDeclarationSyntax, CancellationToken)

Dato un nodo di sintassi che dichiara una proprietà, ottenere il simbolo dichiarato corrispondente.

GetDeclaredSymbol(SemanticModel, QueryClauseSyntax, CancellationToken)
GetDeclaredSymbol(SemanticModel, QueryContinuationSyntax, CancellationToken)

Ottenere la variabile di intervallo di query dichiarata in una clausola di continuazione della query.

GetDeclaredSymbol(SemanticModel, SwitchLabelSyntax, CancellationToken)

Dato una sintassi dell'etichetta switch, ottenere il simbolo di etichetta corrispondente.

GetDeclaredSymbol(SemanticModel, TupleElementSyntax, CancellationToken)

Dato una sintassi dell'elemento tuple, ottenere il simbolo corrispondente.

GetDeclaredSymbol(SemanticModel, TupleExpressionSyntax, CancellationToken)

Dato un nodo di sintassi dell'espressione tupla, ottenere il simbolo del tipo tupla.

GetDeclaredSymbol(SemanticModel, TypeParameterSyntax, CancellationToken)

Data una dichiarazione di parametro di tipo (campo o metodo), ottenere il simbolo corrispondente

GetDeclaredSymbol(SemanticModel, UsingDirectiveSyntax, CancellationToken)

Dato che una dichiarazione using ottiene il simbolo corrispondente per l'alias usato introdotto.

GetDeclaredSymbol(SemanticModel, VariableDeclaratorSyntax, CancellationToken)

Data una sintassi di dichiaratore variabile, ottenere il simbolo corrispondente.

GetDeclaredSymbol(SemanticModel, SingleVariableDesignationSyntax, CancellationToken)

Data una sintassi di dichiaratore variabile, ottenere il simbolo corrispondente.

GetDeclaredSymbol(SemanticModel, JoinIntoClauseSyntax, CancellationToken)

Ottenere la variabile dell'intervallo di query dichiarata in una clausola join.

GetDeclaredSymbol(SemanticModel, CompilationUnitSyntax, CancellationToken)

Dato una sintassi dell'unità di compilazione, ottenere il simbolo del punto di ingresso Simple Program corrispondente.

GetDeclaredSymbol(SemanticModel, ForEachStatementSyntax, CancellationToken)

Dato un'istruzione foreach, ottenere il simbolo per la variabile di iterazione

GetDeclaredSymbol(SemanticModel, AccessorDeclarationSyntax, CancellationToken)

Dato un nodo di sintassi che dichiara una proprietà o una funzione di accesso membro, ottenere il simbolo corrispondente.

GetDeclaredSymbol(SemanticModel, AnonymousObjectCreationExpressionSyntax, CancellationToken)

Dato un nodo sintassi dell'espressione di creazione di oggetti anonimi, ottenere il simbolo del tipo di oggetto anonimo.

GetDeclaredSymbol(SemanticModel, AnonymousObjectMemberDeclaratorSyntax, CancellationToken)

Dato un nodo di sintassi dell'inizializzatore di creazione di oggetti anonimi, ottenere il simbolo della proprietà dell'oggetto anonimo.

GetDeclaredSymbol(SemanticModel, ArgumentSyntax, CancellationToken)

Dato un nodo sintassi di un argomento tuple, ottenere il simbolo dell'elemento tuple.

GetDeclaredSymbol(SemanticModel, BaseMethodDeclarationSyntax, CancellationToken)

Dato una sintassi della dichiarazione del metodo di base, ottenere il simbolo del metodo corrispondente.

GetDeclaredSymbol(SemanticModel, BasePropertyDeclarationSyntax, CancellationToken)

Dato un nodo di sintassi che dichiara una proprietà, un indicizzatore o un evento, ottenere il simbolo dichiarato corrispondente.

GetDeclaredSymbol(SemanticModel, IndexerDeclarationSyntax, CancellationToken)

Dato un nodo di sintassi che dichiara un indicizzatore, ottenere il simbolo dichiarato corrispondente.

GetDeclaredSymbol(SemanticModel, BaseTypeDeclarationSyntax, CancellationToken)

Dato una dichiarazione di tipo, ottenere il simbolo di tipo corrispondente.

GetDeclaredSymbol(SemanticModel, DelegateDeclarationSyntax, CancellationToken)

Dato una dichiarazione delegato, ottenere il simbolo di tipo corrispondente.

GetDeclaredSymbol(SemanticModel, EnumMemberDeclarationSyntax, CancellationToken)

Dato una dichiarazione membro enumerazione, ottenere il simbolo di campo corrispondente.

GetDeclaredSymbol(SemanticModel, EventDeclarationSyntax, CancellationToken)

Dato un nodo di sintassi che dichiara un evento (personalizzato), ottenere il simbolo di evento corrispondente.

GetDeclaredSymbol(SemanticModel, ExternAliasDirectiveSyntax, CancellationToken)

Dato che una dichiarazione alias extern ottiene il simbolo corrispondente per l'alias introdotto.

GetDeclaredSymbol(SemanticModel, FileScopedNamespaceDeclarationSyntax, CancellationToken)

Dato un nodo di sintassi della dichiarazione dello spazio dei nomi, ottenere il simbolo dello spazio dei nomi corrispondente per l'assembly di dichiarazione.

GetDeclaredSymbol(SemanticModel, CatchDeclarationSyntax, CancellationToken)

Dato una dichiarazione catch, ottenere il simbolo per la variabile di eccezione

GetDeclaredSymbol(SemanticModel, LabeledStatementSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato una sintassi dell'istruzione etichettata, ottenere il simbolo di etichetta corrispondente.

public static Microsoft.CodeAnalysis.ILabelSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.LabeledStatementSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ILabelSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.LabeledStatementSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.LabeledStatementSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ILabelSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As LabeledStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As ILabelSymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
LabeledStatementSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, LocalFunctionStatementSyntax, CancellationToken)

Source:
CSharpExtensions.cs

Dato una sintassi della dichiarazione di funzione locale, ottenere il simbolo corrispondente.

public static Microsoft.CodeAnalysis.IMethodSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.LocalFunctionStatementSyntax node, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.LocalFunctionStatementSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IMethodSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, node As LocalFunctionStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As IMethodSymbol

Parametri

semanticModel
SemanticModel
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, MemberDeclarationSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato una sintassi di dichiarazione membro, ottenere il simbolo corrispondente.

public static Microsoft.CodeAnalysis.ISymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ISymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.MemberDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ISymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As MemberDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As ISymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
MemberDeclarationSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, NamespaceDeclarationSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato un nodo di sintassi della dichiarazione dello spazio dei nomi, ottenere il simbolo dello spazio dei nomi corrispondente per l'assembly di dichiarazione.

public static Microsoft.CodeAnalysis.INamespaceSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.INamespaceSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.NamespaceDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.INamespaceSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As NamespaceDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamespaceSymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
NamespaceDeclarationSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, ParameterSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato un nodo di sintassi della dichiarazione dei parametri, ottenere il simbolo corrispondente.

public static Microsoft.CodeAnalysis.IParameterSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IParameterSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.ParameterSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IParameterSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As ParameterSyntax, Optional cancellationToken As CancellationToken = Nothing) As IParameterSymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
ParameterSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, PropertyDeclarationSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato un nodo di sintassi che dichiara una proprietà, ottenere il simbolo dichiarato corrispondente.

public static Microsoft.CodeAnalysis.IPropertySymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IPropertySymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.PropertyDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IPropertySymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As PropertyDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As IPropertySymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
PropertyDeclarationSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, QueryClauseSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
public static Microsoft.CodeAnalysis.IRangeVariableSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.QueryClauseSyntax queryClause, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IRangeVariableSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.QueryClauseSyntax queryClause, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.QueryClauseSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IRangeVariableSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, queryClause As QueryClauseSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol

Parametri

semanticModel
SemanticModel
queryClause
QueryClauseSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, QueryContinuationSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Ottenere la variabile di intervallo di query dichiarata in una clausola di continuazione della query.

public static Microsoft.CodeAnalysis.IRangeVariableSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.QueryContinuationSyntax node, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IRangeVariableSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.QueryContinuationSyntax node, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.QueryContinuationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IRangeVariableSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, node As QueryContinuationSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol

Parametri

semanticModel
SemanticModel
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, SwitchLabelSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato una sintassi dell'etichetta switch, ottenere il simbolo di etichetta corrispondente.

public static Microsoft.CodeAnalysis.ILabelSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.SwitchLabelSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ILabelSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.SwitchLabelSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.SwitchLabelSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ILabelSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As SwitchLabelSyntax, Optional cancellationToken As CancellationToken = Nothing) As ILabelSymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
SwitchLabelSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, TupleElementSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato una sintassi dell'elemento tuple, ottenere il simbolo corrispondente.

public static Microsoft.CodeAnalysis.ISymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.TupleElementSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ISymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.TupleElementSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.TupleElementSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ISymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As TupleElementSyntax, Optional cancellationToken As CancellationToken = Nothing) As ISymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
TupleElementSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, TupleExpressionSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato un nodo di sintassi dell'espressione tupla, ottenere il simbolo del tipo tupla.

public static Microsoft.CodeAnalysis.INamedTypeSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.TupleExpressionSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.INamedTypeSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.TupleExpressionSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.TupleExpressionSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.INamedTypeSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declaratorSyntax As TupleExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamedTypeSymbol

Parametri

semanticModel
SemanticModel
declaratorSyntax
TupleExpressionSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, TypeParameterSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Data una dichiarazione di parametro di tipo (campo o metodo), ottenere il simbolo corrispondente

public static Microsoft.CodeAnalysis.ITypeParameterSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.TypeParameterSyntax typeParameter, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ITypeParameterSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.TypeParameterSyntax typeParameter, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.TypeParameterSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ITypeParameterSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, typeParameter As TypeParameterSyntax, Optional cancellationToken As CancellationToken = Nothing) As ITypeParameterSymbol

Parametri

semanticModel
SemanticModel
typeParameter
TypeParameterSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, UsingDirectiveSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato che una dichiarazione using ottiene il simbolo corrispondente per l'alias usato introdotto.

public static Microsoft.CodeAnalysis.IAliasSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IAliasSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.UsingDirectiveSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IAliasSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As UsingDirectiveSyntax, Optional cancellationToken As CancellationToken = Nothing) As IAliasSymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
UsingDirectiveSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, VariableDeclaratorSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Data una sintassi di dichiaratore variabile, ottenere il simbolo corrispondente.

public static Microsoft.CodeAnalysis.ISymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclaratorSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ISymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclaratorSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.VariableDeclaratorSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ISymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As VariableDeclaratorSyntax, Optional cancellationToken As CancellationToken = Nothing) As ISymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
VariableDeclaratorSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, SingleVariableDesignationSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Data una sintassi di dichiaratore variabile, ottenere il simbolo corrispondente.

public static Microsoft.CodeAnalysis.ISymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.SingleVariableDesignationSyntax designationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ISymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.SingleVariableDesignationSyntax designationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.SingleVariableDesignationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ISymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, designationSyntax As SingleVariableDesignationSyntax, Optional cancellationToken As CancellationToken = Nothing) As ISymbol

Parametri

semanticModel
SemanticModel
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, JoinIntoClauseSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Ottenere la variabile dell'intervallo di query dichiarata in una clausola join.

public static Microsoft.CodeAnalysis.IRangeVariableSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.JoinIntoClauseSyntax node, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IRangeVariableSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.JoinIntoClauseSyntax node, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.JoinIntoClauseSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IRangeVariableSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, node As JoinIntoClauseSyntax, Optional cancellationToken As CancellationToken = Nothing) As IRangeVariableSymbol

Parametri

semanticModel
SemanticModel
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, CompilationUnitSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato una sintassi dell'unità di compilazione, ottenere il simbolo del punto di ingresso Simple Program corrispondente.

public static Microsoft.CodeAnalysis.IMethodSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.CompilationUnitSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IMethodSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As CompilationUnitSyntax, Optional cancellationToken As CancellationToken = Nothing) As IMethodSymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
CompilationUnitSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, ForEachStatementSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato un'istruzione foreach, ottenere il simbolo per la variabile di iterazione

public static Microsoft.CodeAnalysis.ILocalSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ForEachStatementSyntax forEachStatement, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ILocalSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ForEachStatementSyntax forEachStatement, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.ForEachStatementSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ILocalSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, forEachStatement As ForEachStatementSyntax, Optional cancellationToken As CancellationToken = Nothing) As ILocalSymbol

Parametri

semanticModel
SemanticModel
forEachStatement
ForEachStatementSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, AccessorDeclarationSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato un nodo di sintassi che dichiara una proprietà o una funzione di accesso membro, ottenere il simbolo corrispondente.

public static Microsoft.CodeAnalysis.IMethodSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IMethodSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.AccessorDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IMethodSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As AccessorDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As IMethodSymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
AccessorDeclarationSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, AnonymousObjectCreationExpressionSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato un nodo sintassi dell'espressione di creazione di oggetti anonimi, ottenere il simbolo del tipo di oggetto anonimo.

public static Microsoft.CodeAnalysis.INamedTypeSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.AnonymousObjectCreationExpressionSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.INamedTypeSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.AnonymousObjectCreationExpressionSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.AnonymousObjectCreationExpressionSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.INamedTypeSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declaratorSyntax As AnonymousObjectCreationExpressionSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamedTypeSymbol

Parametri

semanticModel
SemanticModel
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, AnonymousObjectMemberDeclaratorSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato un nodo di sintassi dell'inizializzatore di creazione di oggetti anonimi, ottenere il simbolo della proprietà dell'oggetto anonimo.

public static Microsoft.CodeAnalysis.IPropertySymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.AnonymousObjectMemberDeclaratorSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IPropertySymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.AnonymousObjectMemberDeclaratorSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.AnonymousObjectMemberDeclaratorSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IPropertySymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declaratorSyntax As AnonymousObjectMemberDeclaratorSyntax, Optional cancellationToken As CancellationToken = Nothing) As IPropertySymbol

Parametri

semanticModel
SemanticModel
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, ArgumentSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato un nodo sintassi di un argomento tuple, ottenere il simbolo dell'elemento tuple.

public static Microsoft.CodeAnalysis.ISymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ArgumentSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ISymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ArgumentSyntax declaratorSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.ArgumentSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ISymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declaratorSyntax As ArgumentSyntax, Optional cancellationToken As CancellationToken = Nothing) As ISymbol

Parametri

semanticModel
SemanticModel
declaratorSyntax
ArgumentSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, BaseMethodDeclarationSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato una sintassi della dichiarazione del metodo di base, ottenere il simbolo del metodo corrispondente.

public static Microsoft.CodeAnalysis.IMethodSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IMethodSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IMethodSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As BaseMethodDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As IMethodSymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
BaseMethodDeclarationSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, BasePropertyDeclarationSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato un nodo di sintassi che dichiara una proprietà, un indicizzatore o un evento, ottenere il simbolo dichiarato corrispondente.

public static Microsoft.CodeAnalysis.ISymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.BasePropertyDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ISymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.BasePropertyDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.BasePropertyDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ISymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As BasePropertyDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As ISymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
BasePropertyDeclarationSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, IndexerDeclarationSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato un nodo di sintassi che dichiara un indicizzatore, ottenere il simbolo dichiarato corrispondente.

public static Microsoft.CodeAnalysis.IPropertySymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.IndexerDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IPropertySymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.IndexerDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.IndexerDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IPropertySymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As IndexerDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As IPropertySymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
IndexerDeclarationSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, BaseTypeDeclarationSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato una dichiarazione di tipo, ottenere il simbolo di tipo corrispondente.

public static Microsoft.CodeAnalysis.INamedTypeSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.BaseTypeDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.INamedTypeSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.BaseTypeDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.BaseTypeDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.INamedTypeSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As BaseTypeDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamedTypeSymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
BaseTypeDeclarationSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, DelegateDeclarationSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato una dichiarazione delegato, ottenere il simbolo di tipo corrispondente.

public static Microsoft.CodeAnalysis.INamedTypeSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.DelegateDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.INamedTypeSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.DelegateDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.DelegateDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.INamedTypeSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As DelegateDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamedTypeSymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
DelegateDeclarationSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, EnumMemberDeclarationSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato una dichiarazione membro enumerazione, ottenere il simbolo di campo corrispondente.

public static Microsoft.CodeAnalysis.IFieldSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.EnumMemberDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IFieldSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.EnumMemberDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.EnumMemberDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IFieldSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As EnumMemberDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As IFieldSymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
EnumMemberDeclarationSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, EventDeclarationSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato un nodo di sintassi che dichiara un evento (personalizzato), ottenere il simbolo di evento corrispondente.

public static Microsoft.CodeAnalysis.IEventSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.EventDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IEventSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.EventDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.EventDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IEventSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As EventDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As IEventSymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
EventDeclarationSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, ExternAliasDirectiveSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato che una dichiarazione alias extern ottiene il simbolo corrispondente per l'alias introdotto.

public static Microsoft.CodeAnalysis.IAliasSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ExternAliasDirectiveSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.IAliasSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.ExternAliasDirectiveSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.ExternAliasDirectiveSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.IAliasSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As ExternAliasDirectiveSyntax, Optional cancellationToken As CancellationToken = Nothing) As IAliasSymbol

Parametri

semanticModel
SemanticModel
declarationSyntax
ExternAliasDirectiveSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, FileScopedNamespaceDeclarationSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato un nodo di sintassi della dichiarazione dello spazio dei nomi, ottenere il simbolo dello spazio dei nomi corrispondente per l'assembly di dichiarazione.

public static Microsoft.CodeAnalysis.INamespaceSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.FileScopedNamespaceDeclarationSyntax declarationSyntax, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.FileScopedNamespaceDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.INamespaceSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, declarationSyntax As FileScopedNamespaceDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As INamespaceSymbol

Parametri

semanticModel
SemanticModel
cancellationToken
CancellationToken

Restituisce

Si applica a

GetDeclaredSymbol(SemanticModel, CatchDeclarationSyntax, CancellationToken)

Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs
Source:
CSharpExtensions.cs

Dato una dichiarazione catch, ottenere il simbolo per la variabile di eccezione

public static Microsoft.CodeAnalysis.ILocalSymbol GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.CatchDeclarationSyntax catchDeclaration, System.Threading.CancellationToken cancellationToken = default);
public static Microsoft.CodeAnalysis.ILocalSymbol? GetDeclaredSymbol (this Microsoft.CodeAnalysis.SemanticModel? semanticModel, Microsoft.CodeAnalysis.CSharp.Syntax.CatchDeclarationSyntax catchDeclaration, System.Threading.CancellationToken cancellationToken = default);
static member GetDeclaredSymbol : Microsoft.CodeAnalysis.SemanticModel * Microsoft.CodeAnalysis.CSharp.Syntax.CatchDeclarationSyntax * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.ILocalSymbol
<Extension()>
Public Function GetDeclaredSymbol (semanticModel As SemanticModel, catchDeclaration As CatchDeclarationSyntax, Optional cancellationToken As CancellationToken = Nothing) As ILocalSymbol

Parametri

semanticModel
SemanticModel
catchDeclaration
CatchDeclarationSyntax
cancellationToken
CancellationToken

Restituisce

Si applica a