Answer: There is a Remove method of List collection,we pass List item value to Remove method depends upon data-type meaning that if collection is of Integer type then we have to pass numeric value to Remove method.
For Example:-
List<int> lst = new List<int>();
lst.Remove(int item);
List<string> lst = new List<string>();
lst.Remove(string item);
Asked In: Many Interviews |
Alert Moderator