MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeDeclaration­ExtensionsFor­Compilation
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)
where T : class, ICompilationElement
Parameters
Type Name Description
T compilationElement
ICompilation compilation
ReferenceResolutionOptions options
Returns
Type Description
T
Type Parameters
Name Description
T

ForCompilation(IFieldOrProperty, ICompilation, ReferenceResolutionOptions)

Declaration
public static IFieldOrProperty ForCompilation(this IFieldOrProperty fieldOrProperty, ICompilation compilation, ReferenceResolutionOptions options)
Parameters
Type Name Description
IFieldOrProperty fieldOrProperty
ICompilation compilation
ReferenceResolutionOptions options
Returns
Type Description
IFieldOrProperty