示例#1
0
 public PropInfo(FieldInfo fi, BonPropAttribute att)
 {
     this.fi      = fi;
     this.name    = fi.Name;
     this.type    = fi.FieldType;
     this.propAtt = att;
     this.alias   = propAtt != null && propAtt.alias != null ? propAtt.alias : name;
     this.canRead = this.canWrite = true;
 }
示例#2
0
 public PropInfo(PropertyInfo pi, BonPropAttribute att)
 {
     this.pi       = pi;
     this.name     = pi.Name;
     this.type     = pi.PropertyType;
     this.propAtt  = att;
     this.alias    = propAtt != null && propAtt.alias != null ? propAtt.alias : name;
     this.canRead  = pi.CanRead;
     this.canWrite = pi.CanWrite;
 }