MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeRef­Extensions
Open sandboxFocus

RefExtensions Class

Extension methods for the IRef<T> interface.

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

Methods

Name Description
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.

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.