Horje
replace space with underscore in c# Code Example
js replace space with underscore
var string = "my name";
string = string.replace(/ /g,"_"); //returns my_name
replace space with underscore in c#
using System;
class Demo {
   static void Main() {
      String str, str2;
      str ="Hello World !";
      Console.WriteLine("String: "+str);
      str2 = str.Replace(" ", "-");
      Console.WriteLine("String (After replacing): "+str2);
   }
}




Csharp

Related
c# input Code Example c# input Code Example
react for loop Code Example react for loop Code Example
how to clear datagridview c# Code Example how to clear datagridview c# Code Example
c# convert datetime to unix timestamp Code Example c# convert datetime to unix timestamp Code Example
convert comma separated string to array c# Code Example convert comma separated string to array c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9