Exemple #1
0
            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));
            }
Exemple #3
0
 public void Update()
 {
     if (canUpdate)
     {
         targetProperty.Write(targetObject, sourceProperty.Read(sourceObject));
     }
 }
Exemple #4
0
 public IObjectDescriptor Read(object target)
 {
     return(baseDescriptor.Read(target));
 }
Exemple #5
0
 public object Read(object target)
 {
     return(property.Read(holder.Read(target)));
 }