Open sandboxFocus

Method ForCompilation

ForCompilation<T>(T?, ICompilation, ReferenceResolutionOptions)

Gets a representation of the current declaration in a different version of the compilation.

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