using System; using System.Collections.Generic; namespace TeraTail35197 { class Program { class Data { public List names; public List prices; } static void Main(string[] args) { var data = new List() { new Data() { names = new List { "Apple", "Orange", "Grape" }, prices = new List { 200, 300, 150 } }, new Data() { names = new List { "Carrot", "Tomato", "Cucumber" }, prices = new List { 100, 200, 300 } }, }; foreach (var x in data) { foreach(var name in x.names) { Console.WriteLine($"name: { name }"); } foreach (var price in x.prices) { Console.WriteLine($"price: { price }"); } } } } }