using System.Collections.Generic;
public static void Main()
var type = new List<int>() { 1, 2, 3, 4 };
var classes = new List<Tov>()
new Tov(1, "Автомобиль"),
select new { Type = t, Mass = mass };
v.ToList().ForEach(t => Console.WriteLine("Key={0}, Count={1}", t.Type, t.Mass.Count()));
public Tov(int id, string val)