C# :: Lecture & TIPs

[C#] 문자열 치환 수행하기

using System;
using System.Text;

 class Test {
     public static void main(){
        StringBuilder str = new StringBuilder();
        str.Append("Visual C# 사랑해요");
        str.Replace("Visual C#", "Visual Basic .NET");

위와 같이 StringBuilder 클래스를 이용하여 문자열을 치환하실 수 있습니다.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: