C#
stringOperation
myVisualStudioStudy

Csharp > string > 置換 > Replace()

動作環境
ideone > C# (gmcs 4.6.2)

https://ideone.com/4D4OKS

using System;

public class Test
{
    public static void Main()
    {
        string txt = "Hello";
        txt = txt.Replace("l", ":");
        Console.WriteLine(txt);
    }
}
run
Success #stdin #stdout 0.01s 131648KB
He::o

link

https://msdn.microsoft.com/ja-jp/library/fk49wtc1(v=vs.110).aspx