- Home /
Converting Builtin Array to Generic List
Quick question, is there an easy, fast, reliable way to convert builtin arrays to generic list - is there some type of function or something that does it for you?
               Comment
              
 
               
              Answer by whydoidoit · Feb 19, 2014 at 09:08 AM
Yes use Linq:
   using System.Linq;
    var someList = someArray.ToList();
Answer by hexagonius · Nov 13, 2017 at 01:05 PM
If you don't want to use Linq:
 var someList = new... (or call Clear on existing)
 someList.AddRange(someArray);
Your answer
 
 
             Follow this Question
Related Questions
how to assign mesh.vertices ToList linq extension 1 Answer
Show Top 10 Of 1 GameType 2 Answers
How do you initialize a List or Array? 2 Answers
Remove and Add to List By Name aad 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                