how to remove space between string in c#

101

how to remove space between string in c# -

string str = "C Sharp";
str = Regex.Replace(str, @"\s", "");

Comments

Submit
0 Comments