Tuesday, June 17, 2025

How to split the comma separated string to list of array in C#

string tags = "9,3,12,43,2"


 tags.Split(',').Select(int.Parse).ToList();

No comments:

Post a Comment