Created
July 21, 2022 16:43
-
-
Save neon-sunset/bba296c77b7c00ad3656b7e7ce60c34c to your computer and use it in GitHub Desktop.
Don't do it
This file contains hidden or 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
using System.Runtime.InteropServices; | |
var writeable = MemoryMarshal | |
.AsMemory(false.ToString().AsMemory()) | |
.Span; | |
"True\0".CopyTo(writeable); | |
Console.WriteLine((object)false); // Prints 'True' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment