public virtual void VisitReferenceProperty(object currentSource, object currentClone, PropertyInfoEx prop) { object value = prop.Get(currentSource, true); prop.Set(currentClone, CloneObject(value), true); }
public virtual void VisitCollectionProperty(object currentSource, object currentClone, PropertyInfoEx prop) { var value = prop.Get(currentSource); prop.Set(currentClone, ((IEnumerable)value).Clone(), true); }
public virtual void VisitValueProperty(object currentSource, object currentClone, PropertyInfoEx prop) { object value = prop.Get(currentSource, true); prop.Set(currentClone, value, true); }