Displaying a Single Quote Using an Escape Sequence : String Escape « String « C# / CSharp Tutorial






class SingleQuote
{
  static void Main()
  {
      System.Console.WriteLine('\'');
  }
}








5.13.String Escape
5.13.1.String Literal Escape Characters
5.13.2.String escape: @ (AT sign)
5.13.3.String escape: \\
5.13.4.String Escape: quote
5.13.5.Escape characters.
5.13.6.Make changes to string
5.13.7.Displaying a Single Quote Using an Escape Sequence