BindingListlist = new BindingList (); list.Add("apple"); list.Add("banana"); list.Add("cherry"); list.Clear();
public class Person { public string Name { get; set; } public int Age { get; set; } } BindingListPackage/library: The BindingList class is part of the System.ComponentModel namespace in the .NET Framework.list = new BindingList (); list.Add(new Person { Name = "Alice", Age = 25 }); list.Add(new Person { Name = "Bob", Age = 30 }); list.Add(new Person { Name = "Charlie", Age = 35 }); list.Clear();