We are supposed to put log entries (title and entry) in a sort of journal. That means having a list with each containing an array with room for two strings.
Now. We've worked with arrays and lists but never together.
Considering this is a school assignment I'm only asking for guidance to point me in the right direction.
So creating a list that on each entry contains space for an array of size 2. How should I think about this concept baring in mind I've only used them separately before?
List<string[]>would be perfectly valid, although aList<Tuple<string, string>>or aList<LogEntry>whereLogEntryis a class with two string properties would be more idiomatic. Note that there's not a declarative way to set the size of the underlying array.List<List<string>>, though Stanley's answer is better in terms of design. If you need to use arrays and lists, hisList<string[]>solution is the way to go.