CSharpCompilation.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 without the old tree but with the new tree.
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
Parameters
- oldTree
- SyntaxTree
- newTree
- SyntaxTree
Returns
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.