xpiervluqk
New Member
I have defined one list as\[code\]List<List<int>> thirdLevelIntersection = new List<List<int>>();\[/code\]I wrote the code as\[code\]for(int i = 0; i < 57; i++){ if(my condition) thirdLevelIntersection = null; else { //some logic } }\[/code\]so i get the list for 0 to 56 values and some arbitrary values are null like thirdlevelIntersection[1],thirdlevelIntersection[10],thirdlevelIntersection[21],thirdlevelIntersection[21],thirdlevelIntersection[14],thirdlevelIntersection[15],thirdlevelIntersection[51](total 7). Now i want to remove this values from the list.And have a list from thirdlevelIntersection[0] thirdlevelIntersection[49].What should I do?