Skip to main content

SyntaxExtensions.GetRegionDirective(EndRegionDirectiveTriviaSyntax) Method

Containing Type: SyntaxExtensions

Assembly: Roslynator.CSharp.dll

Returns region directive that is related to the specified endregion directive. Returns null if no matching region directive is found.

public static Microsoft.CodeAnalysis.CSharp.Syntax.RegionDirectiveTriviaSyntax? GetRegionDirective(this Microsoft.CodeAnalysis.CSharp.Syntax.EndRegionDirectiveTriviaSyntax endRegionDirective)

Parameters

endRegionDirective EndRegionDirectiveTriviaSyntax

Returns

RegionDirectiveTriviaSyntax