Lists say I have a list List {1,2,3,4,5}
List {1,2,3,4,5}
Rotate means:
=> {2,3,4,5,1} => {3,4,5,1,2} => {4,5,1,2,3}
I use this one:
public static List Rotate(this List list, int offset) { return list.Skip(offset).Concat(list.Take(offset)).ToList(); }