Answer the question
In order to leave comments, you need to log in
How to convert string[] to List?
Good afternoon!
It seems to be a banal question, but somehow there are no thoughts on how to do this, tell me ...
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
var stringArray = new string[];
var list = new List(stringArray)
или
list.AddRange(stringArray);
или
List list = stringArray.OfType().ToList();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question