Open sandboxFocus

Class RefExtensions

Extension methods for the IRef<T> interface.

Inheritance
RefExtensions
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class RefExtensions

Methods

Name Description
GetTargetOrNull<T>(IRef<T>, ReferenceResolutionOptions)

Gets the target of the reference for the current execution context, or returns null if the reference cannot be resolved.

GetTarget<T>(IRef<T>, ReferenceResolutionOptions)

Gets the target of the reference for the current execution context, or throws an exception if the reference cannot be resolved.