SyntaxExtensions.GetEndRegionDirective(RegionDirectiveTriviaSyntax) Method
Containing Type: SyntaxExtensions
Assembly: Roslynator.CSharp.dll
Returns endregion directive that is related to the specified region directive. Returns null if no matching endregion directive is found.
public static Microsoft.CodeAnalysis.CSharp.Syntax.EndRegionDirectiveTriviaSyntax? GetEndRegionDirective(this Microsoft.CodeAnalysis.CSharp.Syntax.RegionDirectiveTriviaSyntax regionDirective)
Parameters
regionDirective RegionDirectiveTriviaSyntax