Extension method for converting a delimited string to generic primitive type list.

public static List<T> ToList<T>(this string delimitedString, string delimiter = ",")
{
return delimitedString.Split(new[] { delimiter }, StringSplitOptions.RemoveEmptyEntries)
      .Select(t => (T)Convert.ChangeType(t, typeof(T), CultureInfo.InvariantCulture))
                     .ToList();
}
Discussion
9 X 3
** To prevent abusing comments from publishing, posted comments will be reviewed and then published!
 Mritunjay Kumar
Works at Mindfire Solutions

I mostly work with C#, ASP.NET, MVC, WCF, Web API, Entity FrameWork, MS Sql.

More under this category...
Convert data table to generic list
Convert generic list to data table
Generate random string from set of fixed chars
Google cloud storage API - Rename a file
Initializing X509Certificate2, Windows 2012 + IIS8 + .Net 4.5
Google cloud storage API - upload file with progress bar
Google cloud storage API - download file with progress bar
All under this category...