list remove positions c#

41

list remove positions c# -

List<string> AuthorList = new List<string>();  
AuthorList.Add("Mahesh Chand");  
AuthorList.Add("Praveen Kumar");  
AuthorList.Add("Raj Kumar");  
AuthorList.Add("Nipun Tomar");  
AuthorList.Add("Dinesh Beniwal");  
  
AuthorList.Remove("Mahesh Chand"); 
AuthorList.RemoveAt(2); //<<--------------------list remove positions c#
AuthorList.RemoveRange(3, 2);

Comments

Submit
0 Comments