예제 #1
0
        public virtual void VisitReferenceProperty(object currentSource, object currentClone, PropertyInfoEx prop)
        {
            object value = prop.Get(currentSource, true);

            prop.Set(currentClone, CloneObject(value), true);
        }
예제 #2
0
        public virtual void VisitCollectionProperty(object currentSource, object currentClone, PropertyInfoEx prop)
        {
            var value = prop.Get(currentSource);

            prop.Set(currentClone, ((IEnumerable)value).Clone(), true);
        }
예제 #3
0
        public virtual void VisitValueProperty(object currentSource, object currentClone, PropertyInfoEx prop)
        {
            object value = prop.Get(currentSource, true);

            prop.Set(currentClone, value, true);
        }