Hi

repalce of whitespace with + symbol in c#

 using System;


class Program

{

    static void Main()

    {

        string input = "This is an example string with spaces";

        string replaced = input.Replace(" ", "+");

        

        Console.WriteLine("Original: " + input);

        Console.WriteLine("Replaced: " + replaced);

    }

}


Previous
Next Post »