Compartilhar via


CSharpCompilation.ReplaceSyntaxTree(SyntaxTree, SyntaxTree) Método

Definição

Cria uma nova compilação sem a árvore antiga, mas com a nova árvore.

public:
 Microsoft::CodeAnalysis::CSharp::CSharpCompilation ^ ReplaceSyntaxTree(Microsoft::CodeAnalysis::SyntaxTree ^ oldTree, Microsoft::CodeAnalysis::SyntaxTree ^ newTree);
public Microsoft.CodeAnalysis.CSharp.CSharpCompilation ReplaceSyntaxTree (Microsoft.CodeAnalysis.SyntaxTree oldTree, Microsoft.CodeAnalysis.SyntaxTree newTree);
public Microsoft.CodeAnalysis.CSharp.CSharpCompilation ReplaceSyntaxTree (Microsoft.CodeAnalysis.SyntaxTree oldTree, Microsoft.CodeAnalysis.SyntaxTree? newTree);
override this.ReplaceSyntaxTree : Microsoft.CodeAnalysis.SyntaxTree * Microsoft.CodeAnalysis.SyntaxTree -> Microsoft.CodeAnalysis.CSharp.CSharpCompilation
Public Function ReplaceSyntaxTree (oldTree As SyntaxTree, newTree As SyntaxTree) As CSharpCompilation

Parâmetros

oldTree
SyntaxTree
newTree
SyntaxTree

Retornos

Aplica-se a