Convert a list to a string and comma separated string list to in C#,MVC.net Ask Question
By       29-Apr-2025    1

Convert a list to a string and comma separated string to list in C#,MVC.net

Solutions


Nawab

for comma separated string  to List
var myList= mystring.Split(',').ToList();

for  List  to comma separated string  
string commasepratedString = string.Join(",", myList.ToArray());

10056
Copyright Future Minutes © 2015- 2025 All Rights Reserved.   Terms of Service  |   Privacy Policy |  Contact US|  Pages|  Whats new?
Update on: Dec 20 2023 05:10 PM