|
이 문서는 수동으로 번역한 것입니다. 원본 텍스트를 보려면 포인터를 문서의 문장 위로 올리십시오.
|
번역
원본
|
String.Replace 메서드 (Char, Char)
Silverlight
네임스페이스: System
어셈블리: mscorlib(mscorlib.dll)
매개 변수
- oldChar
- 형식: System.Char
새 문자열로 바꿀 유니코드 문자입니다.
- newChar
- 형식: System.Char
발견되는 모든 oldChar를 바꿀 유니코드 문자입니다.
using System; class Example { public static void Demo(System.Windows.Controls.TextBlock outputBlock) { String str = "1 2 3 4 5 6 7 8 9"; outputBlock.Text += String.Format("Original string: \"{0}\"", str) + "\n"; outputBlock.Text += String.Format("CSV string: \"{0}\"", str.Replace(' ', ',')) + "\n"; } } // // This example produces the following output: // Original string: "1 2 3 4 5 6 7 8 9" // CSV string: "1,2,3,4,5,6,7,8,9" //
Silverlight에서 지원되는 운영 체제 및 브라우저에 대한 자세한 내용은 지원되는 운영 체제 및 브라우저을 참조하십시오.
참고: