EscapeControlChars() 공개 정적인 메소드

Converts any control characters in a string to their escaped representation.
public static EscapeControlChars ( string s ) : string
s string The string to be converted
리턴 string
예제 #1
0
 public static void EscapeNullCharInString()
 {
     Assert.That(MsgUtils.EscapeControlChars("\0"), Is.EqualTo("\\0"));
 }
예제 #2
0
 public static void EscapeControlCharsTest(string input, string expected)
 {
     Assert.That(MsgUtils.EscapeControlChars(input), Is.EqualTo(expected));
 }