Gets a unique ID for the symbol. Note that the symbol ID is
not fully-qualified and is therefore only unique within a namespace.
Nested types are prefixed with their parent type names.
- Namespace
- Statiq
.CodeAnalysis - Containing Type
- ISymbolExtensions
Syntax
public static string GetId(this ISymbol symbol)
Parameters
| Name | Type | Description |
|---|---|---|
| symbol | ISymbol | The symbol. |
Return Value
| Type | Description |
|---|---|
| string | A unique (within a namespace) ID. |