Home » c# » C# Move multiple item in a list-Exceptionshub

C# Move multiple item in a list-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

I want to move the first x items on my list to the end of my list while keeping the order of the first x. I come up with this and would like to know if there is a better way to do it.

    List<GameObject> temp = Entities.GetRange(0,200);
    Entities.RemoveRange(0,200);
    Entities.AddRange(temp);
How to&Answers: