Esempio n. 1
0
 private void copyChildren <T>(T[] originalArray, T[] arrayCopy, CopySession session)
 {
     for (int i = 0; i < originalArray.Length; i++)
     {
         arrayCopy[i] = (T)session.CopyOf(originalArray[i]);
     }
 }
Esempio n. 2
0
 public void FillCopy(object originalValue, object copyInstance, CopySession session)
 {
     foreach (var property in this.properties)
     {
         property.Copy(originalValue, copyInstance, session);
     }
 }
Esempio n. 3
0
 public void Copy(object originalObject, object objectCopy, CopySession session)
 {
     this.setter(objectCopy, Attribute.DoCopy ? session.CopyOf(this.getter(originalObject)) : null);
 }
Esempio n. 4
0
 public void FillCopy(object originalValue, object copyInstance, CopySession session)
 {
     this.copyChildrenInvoker(this, originalValue, copyInstance, session);
 }
Esempio n. 5
0
 private void copyChildren <T>(ICollection <T> originalCollection, ICollection <T> collectionCopy, CopySession session)
 {
     foreach (var element in originalCollection)
     {
         collectionCopy.Add((T)session.CopyOf(element));
     }
 }
Esempio n. 6
0
 public void FillCopy(object originalValue, object copyInstance, CopySession session)
 {
     //No operation
 }
Esempio n. 7
0
 private void copyChildren <K, V>(IDictionary <K, V> originalDictionary, IDictionary <K, V> dictionaryCopy, CopySession session)
 {
     foreach (var element in originalDictionary)
     {
         dictionaryCopy.Add((K)session.CopyOf(element.Key), (V)session.CopyOf(element.Value));
     }
 }