Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / Declaration­Extensions / For­Compilation

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 declaration, ICompilation compilation, ReferenceResolutionOptions options)
where T : class, IDeclaration
Parameters
Type Name Description
T declaration
ICompilation compilation
ReferenceResolutionOptions options
Returns
Type Description
T
Type Parameters
Name Description
T