Esempio n. 1
0
 public EventsCollection(EventsCollection events)
 {
     if (events == null)
     {
         throw new ArgumentNullException("template");
     }
     DictionaryEntry[] entries = events.entries;
     if (entries == null)
     {
         this.entries = (DictionaryEntry[])null;
     }
     else
     {
         int length = entries.Length;
         this.entries = new DictionaryEntry[length];
         Array.Copy((Array)entries, 0, (Array)this.entries, 0, length);
     }
 }
Esempio n. 2
0
 public EventsCollection(EventsCollection events)
 {
     if (events == null)
     {
         throw new ArgumentNullException("template");
     }
     DictionaryEntry[] entryArray1 = events.entries;
     if (entryArray1 == null)
     {
         this.entries = null;
     }
     else
     {
         int num1 = entryArray1.Length;
         this.entries = new DictionaryEntry[num1];
         Array.Copy(entryArray1, 0, this.entries, 0, num1);
     }
 }