Try using
MyClass[] myArray = list.ToArray();
More Related Contents:
- Using LINQ to remove elements from a List
- printing all contents of array in C#
- How do I concatenate two arrays in C#?
- How do arrays in C# partially implement IList?
- Easiest way to Rotate a List in c#
- Using Linq Except not Working as I Thought
- Get all checked nodes of a treeview
- Determine if a number can be made with prepicked numbers and times
- How to flatten tree via LINQ?
- Convert string[] to int[] in one line of code using LINQ
- LINQ – Left Join, Group By, and Count
- Convert a list to a string in C#
- Extension methods must be defined in a non-generic static class
- Declare a const array
- Why do C# multidimensional arrays not implement IEnumerable?
- C# – code to order by a property using the property name as a string [duplicate]
- Can I specify my explicit type comparator inline?
- How to initialize a List to a given size (as opposed to capacity)?
- Find the most occurring number in a List
- DISTINCT() and ORDERBY issue
- Can I LINQ a JSON?
- C#: How to convert a list of objects to a list of a single property of that object?
- Find substring in a list of strings
- WriteLine with a class
- ArgumentOutOfRangeException on initialized List
- How to sort a dictionary by key
- Issues Doing a String Comparison in LINQ
- How to sort list of Ip Addresses using c#
- Linq Query keeps throwing “Unable to create a constant value of type System.Object….”, Why?
- selecting a property from FirstOrDefault in case FirstOrDefault returns null