StationsList trainStations = new StationsList(); trainStations.Add("New York"); trainStations.Add("Philadelphia"); trainStations.Add("Baltimore"); trainStations.Add("Washington DC");
trainStations.Insert(2, "Wilmington");
trainStations.Remove("Philadelphia");
bool containsNewYork = trainStations.Contains("New York");These examples demonstrate how StationsList can be used to keep track of a list of stations for a transportation system. This class is part of the System.Collections.Generic namespace in the .NET Framework.