MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeDeclaration­ExtensionsTry­For­Compilation
Open sandboxFocus

DeclarationExtensions.TryForCompilation Method

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)
where T : class, ICompilationElement
Parameters
Type Name Description
T compilationElement
ICompilation compilation
T translated
ReferenceResolutionOptions options
Returns
Type Description
System.Boolean
Type Parameters
Name Description
T