Just started coding in AS3 with FlashDevelop and coming from a C# background, I would like to know if there's something equivalent to the #region directive in AS3?
The #region directive in C# essentially allows an IDE e.g Visual Studio to collapse or expand a section of code to improve readability. With #region directives, you can split codes in sections e.g constructors, properties, public/private methods to aid others perusing your code.
So the C# code below ...
interface IPurchaseOrder
{
#region Properties
bool IsProcessed { get; set; }
bool ISValidOrder { get; set; }
#endregion Properties
#region Methods
bool ProcessOrder();
#endregion Methods
}
becomes
interface IPurchaseOrder
{
Properties
Methods
}
The closest thing you can get is a struct .
Parameters in C functions There are two ways to pass parameters in C: Pass by Value, Pass by Reference.
The main type of templates that can be implemented in C are static templates. Static templates are created at compile time and do not perform runtime checks on sizes, because they shift that responsibility to the compiler.
Java doesn't have pointers; Java has references.
With flashdevelop it works like this:
//{ region region name
...your code here
//} endregion
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With