ToDictionary and ToList are prefixed with To because they don’t necessarily preserve the structural identity of the original collection or its properties.
- Transforming a
List<T>into aDictionary<K, V>creates a collection with a whole new structure. - Transforming a
HashSet<T>into aList<T>removes the uniqueness property of sets.
Methods prefixed with As don’t do any of these things – they simply provide an alternative view of the original collection. They enrich it.