List dansConList = new List(); dansConList[0] = 1; dansConList[1] = 2; dansConList[2] = 3; List dansRandomList = new List
Caveat: returns true if empty.
var list = new int[] {-1,0,1,2,3}; var isConsecutive = list.Select((n,index) => n == index+list.ElementAt(0)).All (n => n);