You don't. You use that class as a variable.
Except that you need to do something like that in a loop, reading your lines in, and then creating a new LogEntry, then adding that LogEntry into the ArrayList.
You can use DateTime.Parse (which should work with a string like this: 03/01/2009 05:42:00 see this link for more details) or you can create a new DateTime(year, month, day, hour, minute, second.
Code:
ArrayList list = new ArrayList(); LogEntry le = new LogEntry(DateTime.Parse("12/1/2008","Something"); list.Add(le);
You can use DateTime.Parse (which should work with a string like this: 03/01/2009 05:42:00 see this link for more details) or you can create a new DateTime(year, month, day, hour, minute, second.
Comment