using System.Collections.Generic;
public Verlof(int nr, string name) {
public int nr {get; set;}
public string name {get;set;}
public static void Main()
var lijst = new List<Verlof> {
var result = lijst.GroupBy(x => x.nr);
foreach(var item in result) {
Console.WriteLine(item.Key);