Last active
January 14, 2022 09:49
-
-
Save rootn3rd/0e738923d1df6f25d050e23f89b7c7a9 to your computer and use it in GitHub Desktop.
Quine C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var s = @"class Program {{ | |
static void Main(string[] args) {{ | |
var s = @{0}{1}{0}; | |
System.Console.WriteLine(s, (char)34, s); | |
}} | |
}}"; | |
System.Console.WriteLine(s, (char)34, s); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Indeed it is. Thanks for pointing it out. :)