Compilation.ReplaceSyntaxTree(SyntaxTree, SyntaxTree) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new compilation with an old syntax tree replaced with a new syntax tree. Reuses metadata from old compilation object.
public:
Microsoft::CodeAnalysis::Compilation ^ ReplaceSyntaxTree(Microsoft::CodeAnalysis::SyntaxTree ^ oldTree, Microsoft::CodeAnalysis::SyntaxTree ^ newTree);
public Microsoft.CodeAnalysis.Compilation ReplaceSyntaxTree (Microsoft.CodeAnalysis.SyntaxTree oldTree, Microsoft.CodeAnalysis.SyntaxTree newTree);
member this.ReplaceSyntaxTree : Microsoft.CodeAnalysis.SyntaxTree * Microsoft.CodeAnalysis.SyntaxTree -> Microsoft.CodeAnalysis.Compilation
Public Function ReplaceSyntaxTree (oldTree As SyntaxTree, newTree As SyntaxTree) As Compilation
Parameters
- oldTree
- SyntaxTree
The old tree.
- newTree
- SyntaxTree
The new tree.
Returns
A new compilation.
Applies to
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.