StyleCop.CSharp by StyleCop contributors, Andy Reeves, Chris Dahlberg

<PackageReference Include="StyleCop.CSharp" Version="6.2.0" />

.NET API 245,760 bytes

 Region

public sealed class Region : Preprocessor
Describes a region directive.
using System; namespace StyleCop.CSharp { public sealed class Region : Preprocessor { private readonly bool beginning; public bool Beginning => beginning; public bool IsGeneratedCodeRegion { get { if (base.PreprocessorType == "region") return Text.IndexOf("generated code", StringComparison.OrdinalIgnoreCase) != -1; return false; } } public Region Partner { get; set; } internal Region(string text, CodeLocation location, Reference<ICodePart> parent, bool beginning, bool generated) : base(text, CsTokenClass.RegionDirective, location, parent, generated) { this.beginning = beginning; } } }