GetTarget<T>(IRef<T>, ICompilation, IGenericContext?)
Declaration
public static T GetTarget<T>(this IRef<T> reference, ICompilation compilation, IGenericContext? genericContext = null) where T : class, ICompilationElement
Parameters
Returns
Type Parameters
GetTarget(IRef, ICompilation, IGenericContext?, Type?)
Declaration
public static ICompilationElement GetTarget(this IRef reference, ICompilation compilation, IGenericContext? genericContext = null, Type? interfaceType = null)
Parameters
Returns
Gets the target of the reference for the current execution context, or throws an exception if the reference cannot be resolved.
Declaration
public static T GetTarget<T>(this IRef<T> reference) where T : class, ICompilationElement
Parameters
Type |
Name |
Description |
IRef<T> |
reference |
|
Returns
Type Parameters