CODEKILLER

반응형

String.Replace Test
String.Replace Test

public class Example
{
    public static void Main()
    {
        string orgin = "CodeKiller is Korean and male.";
        var replace = orgin.Replace("male", "female");
        Console.WriteLine($"The source string is <{orgin}>");
        Console.WriteLine($"The replace string is <{replace}>");
    }
}
반응형

공유하기

facebook twitter kakaoTalk kakaostory naver band