This example shows how to construct an empty DistanceList instance as well as a DistanceList instance from an existing enumerable collection of Distance instances. A copy of the collection is created, modifying the original collection does not affect the constructed DistanceList.
// By default the constructor creates an empty list.
// enumerable collection) of Distance instances.
// Distance lists created this way contain a copy of the source collection.
// Modifying the original collection does not affect the constructed list.