Basic Structure and Syntax

Basic Structure and Syntax

There are mandatory rules that must be followed for scripts to compile and run:

Programming LanguageMandatory StructureDescription
C#public class MainClassAll code must be contained within this class. It is essential for compilation.
VBPublic Class MainClassAll code must be contained within this class. It is essential for compilation.
C#public void Main()This method is triggered and executed first when the script runs.
VBPublic Sub MainThis subroutine (Sub) is triggered and executed first when the script runs.

Note: Users can define as many additional Classes, Subs, or Functions as they wish within the MainClass.

Leave a Reply