TryForCompilation<T>(T?, ICompilation, out T?)
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) where T : class, ICompilationElementParameters
| Type | Name | Description |
|---|---|---|
| T | compilationElement | The compilation element to translate. |
| ICompilation | compilation | The target compilation. |
| T | translated | When this method returns |
Returns
| Type | Description |
|---|---|
| bool |
|
Type Parameters
| Name | Description |
|---|---|
| T | The type of compilation element. |