Open sandboxFocus

Interface IDurableRef<T>

A strongly-typed IRef<T> that stores only a string identifier and therefore does not keep the compilation it came from in memory.

Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
[InternalImplement]
public interface IDurableRef<out T> : IRef<T>, IDurableRef, IRef, IEquatable<IRef> where T : class, ICompilationElement
Type Parameters
Name Description
T

The type of the target object, such as IMethod, IProperty, INamedType, or any other ICompilationElement.

Remarks

This is the strongly-typed variant of IDurableRef, which documents when to use it. Obtain one by calling ToDurableRef<T>(T) on a declaration or a type, or ToDurable() on a reference.

Extension Methods

See Also