c# .net

how to convert array of strings to list?

how to convert array of strings to list?, someone asked me to explain?

[Solved]how to convert array of strings to list?

string[] arr = { "rasik", "thivan", "mydeen" };

 If  you want to convert array  to list

List<string> Liststring = new List<string>(); 
foreach (string arrItem in arr){   
Liststring.Add(arrItem);
}

Without going for looping standard way to convert to list.

string[] arr = { "rasik", "thivan", "mydeen" };
List<string> list = new List<string>(arr);

Post your comments / questions