コード例 #1
0
        /// <summary>
        /// Creates a new entry point member within this DynaClass object.
        /// When adding this class to an DynaCode object containing other classes, there should be only *one* (1) EntryPoint for the entire DynaCode object.
        /// </summary>
        /// <param name="Arguements">An array of DynaArguement objects containing the incoming arguements for the new entry point.</param></param>
        /// <param name="Statements">An array of DynaStatement objects containing the expression statements contained within the new entry point.</param></param>
        /// <param name="Scope">A value of type MemberAttributes indicating the scope of this class constructor.</param>
        public void CreateEntryPoint(DynaArgument[] Arguements, DynaExpression[] Statements, System.CodeDom.MemberAttributes Scope)
        {
            DynaEntryPoint ep = new DynaEntryPoint();

            ep.TypeMember.Attributes = Scope;
            foreach (DynaExpression stmt in Statements)
            {
                ep.TypeMember.Statements.Add(stmt.Expression);
            }
            AddEntryPoint(ep);
        }
コード例 #2
0
 /// <summary>
 /// Adds a new program EntryPoint to this DynaClass object.
 /// When adding this class to an DynaCode object containing other classes, there should be only *one* (1) EntryPoint for the entire DynaCode object.
 /// </summary>
 /// <param name="newEntryPoint">A DynaEntryPoint object containing the details of the entry point you want to add.</param>
 public void AddEntryPoint(DynaEntryPoint newEntryPoint)
 {
     this._dynaCls.Members.Add(newEntryPoint.TypeMember);
 }
コード例 #3
0
 /// <summary>
 /// Creates a new entry point member within this DynaClass object.
 /// When adding this class to an DynaCode object containing other classes, there should be only *one* (1) EntryPoint for the entire DynaCode object.
 /// </summary>
 /// <param name="Arguements">An array of DynaArguement objects containing the incoming arguements for the new entry point.</param></param>
 /// <param name="Statements">An array of DynaStatement objects containing the expression statements contained within the new entry point.</param></param>
 /// <param name="Scope">A value of type MemberAttributes indicating the scope of this class constructor.</param>
 public void CreateEntryPoint(DynaArgument[] Arguements, DynaExpression[] Statements, System.CodeDom.MemberAttributes Scope)
 {
     DynaEntryPoint ep = new DynaEntryPoint();
     ep.TypeMember.Attributes = Scope;
     foreach (DynaExpression stmt in Statements)
         ep.TypeMember.Statements.Add(stmt.Expression);
     AddEntryPoint(ep);
 }
コード例 #4
0
 /// <summary>
 /// Adds a new program EntryPoint to this DynaClass object.
 /// When adding this class to an DynaCode object containing other classes, there should be only *one* (1) EntryPoint for the entire DynaCode object.
 /// </summary>
 /// <param name="newEntryPoint">A DynaEntryPoint object containing the details of the entry point you want to add.</param>
 public void AddEntryPoint(DynaEntryPoint newEntryPoint)
 {
     this._dynaCls.Members.Add(newEntryPoint.TypeMember);
 }
コード例 #5
0
 public static void AddToMember(ref DynaEntryPoint memberObj, string LiteralExpression)
 {
     memberObj.AddStatement(LiteralExpression);
 }
コード例 #6
0
 public void AddToMember(ref DynaEntryPoint value)
 {
     value.AddStatement(this);
 }