ICSharpCode.NRefactory.CSharp.TextWriterTokenWriter.ConvertCharLiteral C# (CSharp) Method

ConvertCharLiteral() public static method

Gets the escape sequence for the specified character within a char literal. Does not include the single quotes surrounding the char literal.
public static ConvertCharLiteral ( char ch ) : string
ch char
return string
		public static string ConvertCharLiteral(char ch)
		{
			if (ch == '\'') {
				return "\\'";
			}
			return ConvertChar(ch);
		}