Ejemplo n.º 1
0
        public JournalDataCollection <T> Clone()
        {
            JournalDataCollection <T> temp = new JournalDataCollection <T>();

            foreach (var v in this)
            {
                Type t     = typeof(FileProcessingJournalEntryData <>).MakeGenericType(Type.GetType(v.type));
                var  val   = (T)t.GetMethod("Clone").Invoke(v, null);
                T    temp1 = (T)val;
                temp.Add(temp1);
            }
            return(temp);
        }
Ejemplo n.º 2
0
 public FileProcessingJournalEntry()
 {
     EntryData = new JournalDataCollection <FileProcessingJournalEntryDataBase>();
 }