WorkspaceExtensions.RemoveRegionAsync(Document, RegionInfo, CancellationToken) Method
Containing Type: WorkspaceExtensions
Assembly: Roslynator.CSharp.Workspaces.dll
Creates a new document with the specified region removed.
public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Document> RemoveRegionAsync(this Microsoft.CodeAnalysis.Document document, Roslynator.CSharp.Syntax.RegionInfo region, System.Threading.CancellationToken cancellationToken = default)
Parameters
document Document
region RegionInfo
cancellationToken CancellationToken