populating a list of a list of strings but
<p>I have a method that returns a list of lists of strings. It iterates through some objects to populate the list of strings. There is something wrong as it only repeatedly stores the first object. This is for an assignment. Any suggestions greatly appreciated</p>

<pre><code>public List&lt;List&lt;string&gt;&gt; BookDetails()
    {
        List&lt;List&lt;string&gt;&gt; listOfBooks = new List&lt;List&lt;string&gt;&gt;();
        List&lt;string&gt; bookDetails = new List&lt;string&gt;();
        List&lt;Book&gt; b;

        foreach (Library lib in libraryList)
        {
            b = lib.Booklist;

            foreach (Book book in b)
            {
                bookDetails.Add(book.BookTitle);
                bookDetails.Add(book.BookAuthor);
                bookDetails.Add(lib.LibraryName);
                bookDetails.Add(book.BookGenre);

                listOfBooks.Add(bookDetails);
            }

        }

       return listOfBooks;

    }
</code></pre>
