Exemple #1
0
 /// <summary>
 /// Copy Constructor.
 /// </summary>
 /// <remarks>
 /// Source and Destination extra values are shallow copied.
 /// </remarks>
 /// <param name="other">Extras to copy from.</param>
 public Extras(Extras other)
 {
     if (other.SourceExtras != null)
     {
         SourceExtras = new Dictionary <string, object>();
         foreach (var entry in other.SourceExtras)
         {
             SourceExtras[entry.Key] = entry.Value;
         }
     }
     if (other.DestExtras != null)
     {
         DestExtras = new Dictionary <string, object>();
         foreach (var entry in other.DestExtras)
         {
             DestExtras[entry.Key] = entry.Value;
         }
     }
 }