How to remove particular items from List collection?

 Posted by Rajesh_Kumar on 1/18/2014 | Category: ASP.NET Interview questions | Views: 1859 | Points: 40

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 

Comments or Responses

Login to post response