string name = "John,Calvin,Steve";
string [] arr = name.Split(new char[]{','});
R
Ramesh Muthiah
@Ramesh Muthiah
Posts
-
convert string to array -
How can convert a lit<> to a DataTable?Best you would create a DataRow and add the content, then add it to IList collection. it will give a new extension method CopyToDataTable() which you can easily make conversion. IList iRows = new List(); DataTable iTable = iRows.CopyToDataTable();
-
Finding value in a listIEnumerable filteredCountry = countries.Where(f => f.GetAbbreviation == "EG"); if (filteredCountry != null) { Country countryOne = filteredCountry.First(); } try out the above code !!!! :)