how to remove all comma from string csharp

Code Example - how to remove all comma from string csharp

                
                        string data="Mumbai,400049,Andheri ";
//Removing All Comma's from String
string address=data.Replace(","," ");
                    
                
 

remove comma from string csharp

                        
                                string data="DIKhan,Pakistan";
//Removing All Comma's from String
string address=data.Replace(","," ");
// OutPut will be: DIKhan Pakistan
                            
                        
 

csharp find comma in text and remove

                        
                                a = a.Replace("," , "");