nested class list in c# code example
Example: c# nested list
using System;
using System.Collections;
using System.Collections.Generic;
//^^^ Needed libraries
List<List<type>> name = new List<List<type>>
{
new List<type> {"Hi", "How are you?"},
new List<type> {"Hope this was helpful"}
};