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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -