Returns true if this symbol can be referenced by its name in code.
ContainingAssemblyGets the IAssemblySymbol for the containing assembly. Returns null if the symbol is shared across multiple assemblies.
ContainingModuleGets the IModuleSymbol for the containing module. Returns null if the symbol is shared across multiple modules.
ContainingNamespaceGets the INamespaceSymbol for the nearest enclosing namespace. Returns null if the symbol isn't contained in a namespace.
ContainingSymbolGets the ISymbol for the immediately containing symbol.
ContainingTypeGets the INamedTypeSymbol for the containing type. Returns null if the symbol is not contained within a type.
DeclaredAccessibilityGets a Accessibility indicating the declared accessibility for the symbol. Returns NotApplicable if no accessibility is declared.
DeclaringSyntaxReferencesGet the syntax node(s) where this symbol was declared in source. Some symbols (for example, partial classes) may be defined in more than one location. This property should return one or more syntax nodes only if the symbol was declared in source code and also was not implicitly declared (see the IsImplicitlyDeclared property).
Note that for namespace symbol, the declaring syntax might be declaring a nested namespace. For example, the declaring syntax node for N1 in "namespace N1.N2 {...}" is the entire NamespaceDeclarationSyntax for N1.N2. For the global namespace, the declaring syntax will be the CompilationUnitSyntax.
HasUnsupportedMetadataIndicates that this symbol uses metadata that cannot be supported by the language.
Examples include:
This is distinguished from, for example, references to metadata symbols defined in assemblies that weren't referenced. Symbols where this returns true can never be used successfully, and thus should never appear in any IDE feature.
This is set for metadata symbols, as follows:
Gets a value indicating whether the symbol is abstract.
IsDefinitionGets a value indicating whether the symbol is the original definition. Returns false if the symbol is derived from another symbol, by type substitution for instance.
IsExternGets a value indicating whether the symbol is defined externally.
IsImplicitlyDeclaredReturns true if this symbol was automatically created by the compiler, and does not have an explicit corresponding source code declaration.
IsOverrideGets a value indicating whether the symbol is an override of a base class symbol.
IsSealedGets a value indicating whether the symbol is sealed.
IsStaticGets a value indicating whether the symbol is static.
IsVirtualGets a value indicating whether the symbol is virtual.
KindGets the SymbolKind indicating what kind of symbol it is.
LanguageGets the source language ("C#" or "Visual Basic").
LocationsGets the locations where the symbol was originally defined, either in source or metadata. Some symbols (for example, partial classes) may be defined in more than one location.
MetadataNameGets the name of a symbol as it appears in metadata. Most of the time, this is the same as the Name property, with the following exceptions:
Gets the metadata token associated with this symbol, or 0 if the symbol is not loaded from metadata.
NameGets the symbol name. Returns the empty string if unnamed.
OriginalDefinitionGets the ISymbol for the original definition of the symbol. If this symbol is derived from another symbol, by type substitution for instance, this gets the original symbol, as it was defined in source or metadata.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4