Skip to main content

SyntaxInfo.RegionInfo Method

Containing Type: SyntaxInfo

Assembly: Roslynator.CSharp.dll

Overloads

MethodSummary
RegionInfo(EndRegionDirectiveTriviaSyntax)Creates a new RegionInfo from the specified endregion directive.
RegionInfo(RegionDirectiveTriviaSyntax)Creates a new RegionInfo from the specified region directive.

RegionInfo(EndRegionDirectiveTriviaSyntax)

Creates a new RegionInfo from the specified endregion directive.

public static Roslynator.CSharp.Syntax.RegionInfo RegionInfo(Microsoft.CodeAnalysis.CSharp.Syntax.EndRegionDirectiveTriviaSyntax endRegionDirective)

Parameters

endRegionDirective EndRegionDirectiveTriviaSyntax

Returns

RegionInfo

RegionInfo(RegionDirectiveTriviaSyntax)

Creates a new RegionInfo from the specified region directive.

public static Roslynator.CSharp.Syntax.RegionInfo RegionInfo(Microsoft.CodeAnalysis.CSharp.Syntax.RegionDirectiveTriviaSyntax regionDirective)

Parameters

regionDirective RegionDirectiveTriviaSyntax

Returns

RegionInfo