public IObjectDescriptor Read(object target) { var description = baseDescriptor.GetCustomAttribute <DescriptionAttribute>(); return(description != null ? new CommentsObjectDescriptor(baseDescriptor.Read(target), description.Description) : baseDescriptor.Read(target)); }
public IObjectDescriptor Read(object target) { var comment = baseDescriptor.GetCustomAttribute <CommentAttribute>(); return(comment != null ? new CommentsObjectDescriptor(baseDescriptor.Read(target), comment.Comment) : baseDescriptor.Read(target)); }
public void Update() { if (canUpdate) { targetProperty.Write(targetObject, sourceProperty.Read(sourceObject)); } }
public IObjectDescriptor Read(object target) { return(baseDescriptor.Read(target)); }
public object Read(object target) { return(property.Read(holder.Read(target))); }