c# 3.0 - Remove all commas from a string in C# 3 -
i have string type variable a="a,b,c,d";
i want remove commas , new value abcd
.i tried a.replace(",","")
not working.i using c# 3.0
try instead
a = a.replace("," , "");
edit
your code correct far using replace() function goes. missing replace() not modify orignal string, returns new (updated) string should save.
Comments
Post a Comment