/// <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); }
/// <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); }
/// <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); }
/// <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); }
public static void AddToMember(ref DynaConstructor memberObj, string LiteralExpression) { memberObj.AddStatement(LiteralExpression); }
public void AddToMember(ref DynaConstructor value) { value.AddStatement(this); }