ASP.Net MVC / C# Convert List to List in one line in C# - 08.10.20 - ErcanOPAK string sNumbers = "1,2,3,4,5"; var numbers = sNumbers.Split(',').Select(Int32.Parse).ToList(); Related posts:Using View Model to pass Multiple Models in Single View in MVCASPxGridView - Disable CheckBox based on condition in GridViewCommandColumnHow to add default value for Entity Framework migrations for DateTime and BoolHow to calculate the sum of the datatable column in asp.net? Post Views: 3