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); }
public FileProcessingJournalEntry() { EntryData = new JournalDataCollection <FileProcessingJournalEntryDataBase>(); }