Its called technology! Code: int i = 0; foreach(var wins in Player.MatchesWon()) { if(wins.mod == MatchMode.EscapeMod) i++; } if( i > 5) //Do something usefull I cant believe in cpp it would be any harder!