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; }
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>(); }