Exemplo n.º 1
0
 public distribution Clone()
 {
     distributeObj obj;
     distribution clone = new distribution();
     foreach (DictionaryEntry item in this.distributionList)
     {
         obj = (distributeObj)item.Value;
         clone.Add(item.Key.ToString(), obj.weight);
     }
     return clone;
 }
Exemplo n.º 2
0
        public distribution Clone()
        {
            distributeObj obj;
            distribution  clone = new distribution();

            foreach (DictionaryEntry item in this.distributionList)
            {
                obj = (distributeObj)item.Value;
                clone.Add(item.Key.ToString(), obj.weight);
            }
            return(clone);
        }