Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new class constructor member within this AosDynaClass object.
        /// </summary>
        /// <param name="Arguements">An array of DynaArguement objects containing the incoming arguements for this class constructor.</param>
        /// <param name="Statements">An array of DynaStatement objects containing the expression statements contained within this class constructor.</param>
        /// <param name="Scope">A value of type MemberAttributes indicating the scope of this class constructor.</param>
        public void CreateConstructor(DynaArgument[] Arguments, DynaExpression[] Statements, System.CodeDom.MemberAttributes Scope)
        {
            DynaConstructor cc = new DynaConstructor();

            cc.TypeMember.Attributes = Scope;
            foreach (DynaExpression stmt in Statements)
            {
                cc.TypeMember.Statements.Add(stmt.Expression);
            }
            AddConstructor(cc);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds a new class constructor to this DynaClass object.
 /// </summary>
 /// <param name="newConstructor">A DynaConstructor object containing the details of the constructor you want to add.</param>
 public void AddConstructor(DynaConstructor newConstructor)
 {
     this._dynaCls.Members.Add(newConstructor.TypeMember);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Adds a new class constructor to this DynaClass object.
 /// </summary>
 /// <param name="newConstructor">A DynaConstructor object containing the details of the constructor you want to add.</param>
 public void AddConstructor(DynaConstructor newConstructor)
 {
     this._dynaCls.Members.Add(newConstructor.TypeMember);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates a new class constructor member within this AosDynaClass object.
 /// </summary>
 /// <param name="Arguements">An array of DynaArguement objects containing the incoming arguements for this class constructor.</param>
 /// <param name="Statements">An array of DynaStatement objects containing the expression statements contained within this class constructor.</param>
 /// <param name="Scope">A value of type MemberAttributes indicating the scope of this class constructor.</param>
 public void CreateConstructor(DynaArgument[] Arguments, DynaExpression[] Statements, System.CodeDom.MemberAttributes Scope)
 {
     DynaConstructor cc = new DynaConstructor();
     cc.TypeMember.Attributes = Scope;
     foreach (DynaExpression stmt in Statements)
         cc.TypeMember.Statements.Add(stmt.Expression);
     AddConstructor(cc);
 }
Ejemplo n.º 5
0
 public static void AddToMember(ref DynaConstructor memberObj, string LiteralExpression)
 {
     memberObj.AddStatement(LiteralExpression);
 }
Ejemplo n.º 6
0
 public void AddToMember(ref DynaConstructor value)
 {
     value.AddStatement(this);
 }