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

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

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

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