Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 864 Bytes

convert-a-sequence-to-a-generic-list.md

File metadata and controls

23 lines (17 loc) · 864 Bytes
description title ms.date dev_langs ms.assetid
Learn more about: Convert a Sequence to a Generic List
Convert a Sequence to a Generic List
03/30/2017
csharp
vb
7ab76d93-6898-4e75-b76f-290a66ecead8

Convert a Sequence to a Generic List

Use xref:System.Linq.Enumerable.ToList%2A to create a generic List from a sequence.

Example

The following sample uses xref:System.Linq.Enumerable.ToList%2A to immediately evaluate a query into a generic xref:System.Collections.Generic.List%601.

[!code-csharpDLinqQueryExamples#45] [!code-vbDLinqQueryExamples#45]

See also