Javatpoint Logo
Javatpoint Logo

LINQ AsEnumrable() Method

In LINQ, AsEnumerble() method is used to convert the specific type of given list to its IEnumerable() equivalent type.

Syntax of LINQ AsEnumerable() Method

C# Code

In the above syntax, we are converting the list of "numarray" to IEnumerable type.

Example of LINQ AsEnumerable() method

Here is the example of using the LINQ AsEnumerable method to convert the list to IEnumerable.

In the above example, we are converting the list of "NumArray" to IEnumerable type by using the AsEnumerable method.

Output:

LINQ AsEnumrable() Method




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA