Ejemplo n.º 1
0
 public CSharpClassField(string type, string name)
 {
     this.AccessAuth = AccessAuthority.PRIVATE;
     this.Type       = type;
     this.Name       = name;
     InitStatment    = "";
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 由字段构造的默认属性
 /// </summary>
 /// <param name="fieldName"></param>
 public CSharpClassAttribute(string name, CSharpClassField field)
 {
     this.AccessAuth = AccessAuthority.PUBLIC;
     this.Name       = name;
     this.Type       = field.Type;
     GetStatment     = new StringBuilder("    return " + field.Name + ";");
     SetStatment     = new StringBuilder("    " + field.Name + "=value;");
 }
Ejemplo n.º 3
0
 public CSharpClass(string name)
 {
     this.Name       = name;
     FunctionList    = new List <CSharpFunction>();
     FieldList       = new List <CSharpClassField>();
     AttributeList   = new List <CSharpClassAttribute>();
     this.AccessAuth = AccessAuthority.PRIVATE;
     this.BaseClass  = "";
 }
Ejemplo n.º 4
0
 public CSharpClass(string name)
 {
     this.Name = name;
     FunctionList = new List<CSharpFunction>();
     FieldList = new List<CSharpClassField>();
     AttributeList = new List<CSharpClassAttribute>();
     this.AccessAuth = AccessAuthority.PRIVATE;
     this.BaseClass = "";
 }
Ejemplo n.º 5
0
 public CSharpClassField(string type, string name)
 {
     this.AccessAuth = AccessAuthority.PRIVATE;
     this.Type = type;
     this.Name = name;
     InitStatment = "";
 }
Ejemplo n.º 6
0
 /// <summary>
 /// 由字段构造的默认属性
 /// </summary>
 /// <param name="fieldName"></param>
 public CSharpClassAttribute(string name,CSharpClassField field)
 {
     this.AccessAuth = AccessAuthority.PUBLIC;
     this.Name = name;
     this.Type = field.Type;
     GetStatment = new StringBuilder("    return " + field.Name + ";");
     SetStatment = new StringBuilder("    " + field.Name + "=value;");
 }