string tags = \"9,3,12,43,2\" List TagIds = tags.Split(\',\');
This doesn\'t work cause the split method returns a string[]
Here is one way of doing it:
List TagIds = tags.Split(',').Select(int.Parse).ToList();