There is a List<int> containing some set of numbers. By chance, I choose an index that will be processed separately (let's call it a master). Now I want to exclude this specific index and get all the other List elements (call them subordinates).
var items = new List<int> { 55, 66, 77, 88, 99 }; int MasterIndex = new Random().Next(0, items .Count); var master = items.Skip(MasterIndex).First();
Join , Select , Except - any of them and how?
EDIT: It is not possible to remove any item from the original list, otherwise I have to save the two lists.
Ajay
source share