c# check if next item differnent then previous in array code example
Example: c# get next item in list
MyList.SkipWhile(item => item.Name != "someName").Skip(1).FirstOrDefault()
MyList.SkipWhile(item => item.Name != "someName").Skip(1).FirstOrDefault()