Open sandboxFocus

Method TryForCompilation

TryForCompilation<T>(T?, ICompilation, out T?, ReferenceResolutionOptions)

Tries to get a representation of the current declaration in a different version of the compilation.

Declaration
public static bool TryForCompilation<T>(this T? compilationElement, ICompilation compilation, out T? translated, ReferenceResolutionOptions options = ReferenceResolutionOptions.Default) where T : class, ICompilationElement
Parameters
Type Name Description
T compilationElement
ICompilation compilation
T translated
ReferenceResolutionOptions options
Returns
Type Description
bool
Type Parameters
Name Description
T