Beispiel #1
0
 public PropertyAccessor(TypeAccessor accessor, Type type, string name)
 {
     Type = type;
     _accessor = accessor;
     Name = name;
     ScanAttributes(accessor, name);
 }
 public TypeAccessorWrapper(object target, TypeAccessor accessor)
 {
     this.target = target;
     this.accessor = accessor;
 }
Beispiel #3
0
 private void ScanAttributes(TypeAccessor accessor, string name)
 {
     var pi = accessor.PropertyInfos.SingleOrDefault(p => p.Name == name);
     if (pi == null) return;
     Attributes = pi.GetCustomAttributes(true).Cast<Attribute>();
 }