Sdílet prostřednictvím


SymbolInfo Struct

Definition

public value class SymbolInfo : IEquatable<Microsoft::CodeAnalysis::SymbolInfo>
public struct SymbolInfo : IEquatable<Microsoft.CodeAnalysis.SymbolInfo>
public readonly struct SymbolInfo : IEquatable<Microsoft.CodeAnalysis.SymbolInfo>
type SymbolInfo = struct
Public Structure SymbolInfo
Implements IEquatable(Of SymbolInfo)
Inheritance
SymbolInfo
Implements

Properties

CandidateReason

If the expression did not successfully resolve to a symbol, but there were one or more symbols that may have been considered but discarded, this property describes why those symbol or symbols were not considered suitable.

CandidateSymbols

If the expression did not successfully resolve to a symbol, but there were one or more symbols that may have been considered but discarded, this property returns those symbols. The reason that the symbols did not successfully resolve to a symbol are available in the CandidateReason property. For example, if the symbol was inaccessible, ambiguous, or used in the wrong context.

Symbol

The symbol that was referred to by the syntax node, if any. Returns null if the given expression did not bind successfully to a single symbol. If null is returned, it may still be that case that we have one or more "best guesses" as to what symbol was intended. These best guesses are available via the CandidateSymbols property.

Methods

Equals(Object)
Equals(SymbolInfo)
GetHashCode()

Applies to