c# string replace comma with newline

C#
string res = res.Replace(',', '\n');
Source

Also in C#: