string tags = \"9,3,12,43,2\" List TagIds = tags.Split(\',\');
This doesn\'t work cause the split method returns a string[]
If you are using C# 3.5 you can use Linq to achieve this
string tags = "9,3,12,43,2"; List tagIds = tags.Split(',').Select(s=>int.Parse(s)).ToList();
or the short one
string tags = "9,3,12,43,2"; List tagIds = tags.Split(',').Select(int.Parse).ToList();