Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / Ref­Extensions / Get­Target

Method GetTarget

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

Gets the target of the reference for the current execution context.

Declaration
public static T GetTarget<T>(this IRef<T> reference, ReferenceResolutionOptions options)
where T : class, ICompilationElement
Parameters
Type Name Description
IRef<T> reference
ReferenceResolutionOptions options
Returns
Type Description
T
Type Parameters
Name Description
T