GetTargetOrNull<T>(IRef<T>, ICompilation, IGenericContext?)
Declaration
public static T? GetTargetOrNull<T>(this IRef<T> reference, ICompilation compilation, IGenericContext? genericContext = null) where T : class, ICompilationElement
Parameters
Returns
Type Parameters
GetTargetOrNull(IRef, ICompilation, IGenericContext?, Type?)
Declaration
public static ICompilationElement? GetTargetOrNull(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 returns null
if the reference cannot be resolved.
Declaration
public static T? GetTargetOrNull<T>(this IRef<T> reference) where T : class, ICompilationElement
Parameters
Type |
Name |
Description |
IRef<T> |
reference |
|
Returns
Type Parameters