IsDurable
Gets a value indicating whether the reference stores only a string identifier rather than holding a reference to the compilation state. This is an internal concept with no user-facing scenario; there is no public API to create durable references.
Declaration
bool IsDurable { get; }Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Non-durable references (when IsDurable is false) are bound to a specific compilation
context. They are faster to resolve because they have direct access to the underlying symbol, but they
prevent that compilation from being garbage-collected as long as the reference is held in memory.
References returned by ToRef() are always non-durable.
Durable references (when IsDurable is true) store only a string-based identifier.
They are slower to resolve but do not hold any reference to the compilation. There is no public API
to create durable references; they are used internally at design time to persist references between
IDE compilation updates without causing memory leaks.