I have list of countries in DetailList.country and I would like to remove Russia from this collection if it exists in the collection. Any in-built function available in C#?
Here collection is System.Collections.ObjectModel.Collection
DetailListclass:
public class DetailList
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public string Country { get; set; }
}
Collection<DetailList> list = new Collection<DetailList>();