Click or drag to resize

SymbolInfo Class



Inheritance Hierarchy
SystemValueType
  Microsoft.CodeAnalysisSymbolInfo

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public sealed class SymbolInfo : ValueType, 
	IEquatable

The SymbolInfo type exposes the following members.

Properties
  NameDescription
Public propertyCandidateReason
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.
Public propertyCandidateSymbols
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.
Public propertySymbol
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.
Top
Methods
See Also