c# remove all commas from string code example
Example 1: remove comma from string c#
string data="DIKhan,Pakistan";
//Removing All Comma's from String
string address=data.Replace(","," ");
// OutPut will be: DIKhan Pakistan
Example 2: c# find comma in text and remove
a = a.Replace("," , "");