#region...#endregion: C# syntax

#region lets you specify a block of code that you can expand or collapse when using the outlining feature of the Visual Studio Code Editor.
与代码逻辑无关.
Example
// preprocessor_region.cs
#region MyClass definition
public class MyClass
{
public static void Main()
{
}
}
#endregion

你可能感兴趣的:(reg)