Click or drag to resize

CSharpCompilationRemoveSyntaxTrees Method (SyntaxTree)



Creates a new compilation without the specified syntax trees. Preserves metadata info for use with trees added later.

Namespace:  Microsoft.CodeAnalysis.CSharp
Assembly:  Microsoft.CodeAnalysis.CSharp (in Microsoft.CodeAnalysis.CSharp.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public CSharpCompilation RemoveSyntaxTrees(
	params SyntaxTree[] trees
)

Parameters

trees
Type: Microsoft.CodeAnalysisSyntaxTree

Return Value

Type: CSharpCompilation
See Also