Open sandboxFocus

Interface IRef<T>

Represents a reference to an IDeclaration or IType, which is valid across different compilation versions (i.e. ICompilation) and, when serialized, across projects and processes. References can be resolved using GetTarget<T>(IRef<T>, ICompilation, IGenericContext?).

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

The type of the target object of the declaration or type.

Remarks

Use RefEqualityComparer<T> to compare instances of IRef.

Extension Methods