When to use ToList or ToArray
Generally, simply put it depends on the use case:
Method | When to use |
---|---|
ToList() | When the values are to be mutated by adding or removing items. |
ToArray() | When enumerating or mutating existing values in the collection. |