Advertisement
kyrathasoft

badbackslash

Jul 23rd, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. using System;
  2.   /*
  3. from Lesson 7 of C# console programming tutorial series at following URL:
  4. http://williammillerservices.com/windows-c-console-programming/
  5. !!! WON'T COMPILE !!!
  6. demonstrates improperly escaped backslash
  7. GitHub gist -> https://gist.github.com/kyrathasoft/eac1e11ef32a00bdf910ed889b3589ba
  8. Pastebin.com -> https://pastebin.com/AQwEc7RM
  9. */
  10. namespace ExampleOfBackslashImproperlyEscaped
  11. {
  12.     class BadBackslash
  13.     {
  14.         static void Main(string[] args)
  15.         {
  16.             Console.Write("\ is a backslash character.");
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement