> For the complete documentation index, see [llms.txt](https://kdoore.gitbook.io/cs2335/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kdoore.gitbook.io/cs2335/cs2335_f20/c-language/c_language/list_t.md).

# List< T >

Generic Collection classes includes List< T >, where < T > specifies the dataType of items that will be contained in the list.

```
using System.Collections.Generic;


//inside some class

List<string> textList;

Start(){
  textList = new List<string>();
  textList.Add("Hello, Do you want to go on an adventure?");
  textList.Add("First, you'll need to get some supplies");
  textList.Add("I hope you have some money, How much do you have?");

   foreach( string s in textList){
    Debug.Log(s);
 }
}
```
