This repository contains various small projects that demonstrate awful creative things one can do with C#.
Unsafely mutating a string to change its contents (no unsafe
required).
Unsafely changing string.Empty
to no longer be empty (and very likely causing a crash).
Creating a DateTime
that exceeds DateTime.MaxValue
.
Approximating a 1-second sleep by passing a very large struct
around.
A needlessly complicated and convoluted way of printing Hello, world!
to the console.
These are projects that did not work out (which is probably for the best).
Extending a struct's memory layout backwards from its starting location.
Creating an object of type System.Void
.
The code in this repository is licensed under the MIT License.
But, like... please don't actually use any of this code.