METHOD
Enumerable.ToList
Materializes elements into a new list.
Formal Syntax & Structure
csharp syntaxcsharp
List<T> ToList<T>(IEnumerable<T> source)Working Example
Example Snippetcsharp
using System;using System.Linq;var list = new[] {1,2}.Where(n=>n>1).ToList();