Exemple #1
0
 public PropertyAccessor(PropertyInfo propertyInfo)
 {
     this.PropertyInfo = propertyInfo;
     this.fieldOrPropertyInfo = new PropertyMemberInfo(propertyInfo);
     this.InitializeGet(propertyInfo);
     this.InitializeSet(propertyInfo);
 }
Exemple #2
0
 public FieldAccessor(FieldInfo fieldInfo)
 {
     this.FieldInfo = fieldInfo;
     this.fieldOrPropertyInfo = new FieldMemberInfo(fieldInfo);
     this.InitializeGet(fieldInfo);
 }