在AS3中是否有等同于C#的#region指令?

ano*_*ous 5 c# flashdevelop actionscript-3

刚开始使用FlashDevelop在AS3中进行编码并来自C#背景,我想知道是否有与AS3中的#region指令相同的东西?

C#中的#region指令实质上允许IDE(例如Visual Studio)折叠或扩展一段代码以提高可读性.使用#region指令,您可以在代码中拆分代码,例如构造函数,属性,公共/私有方法,以帮助其他人仔细阅读代码.

所以下面的C#代码......

interface IPurchaseOrder
{
    #region Properties

    bool IsProcessed { get; set; }
    bool ISValidOrder { get; set; }

    #endregion Properties

    #region Methods

    bool ProcessOrder();

    #endregion Methods
}
Run Code Online (Sandbox Code Playgroud)

interface IPurchaseOrder
{
    Properties

    Methods
}
Run Code Online (Sandbox Code Playgroud)

Sma*_*cat 9

使用flashdevelop,它的工作原理如下:

//{ region region name

  ...your code here

//} endregion 
Run Code Online (Sandbox Code Playgroud)