Skip to content

Doing things with C#, but everything is awful

License

DevAndersen/c-sharp-silliness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C# Silliness

This repository contains various small projects that demonstrate awful creative things one can do with C#.

Successful projects

Mutating a string in order to change its text (no unsafe required).

Unsafely changing string.Empty to no longer be empty (and very likely crashing the program).

Creating a DateTime that exceeds DateTime.MaxValue.

Approximating a 1-second sleep by repeatedly passing a very large struct by value.

A needlessly complicated and convoluted way of printing Hello, world! to the console.

Failed projects

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.

License

The code in this repository is licensed under the MIT License.

But, like... please don't actually use any of this code.

About

Doing things with C#, but everything is awful

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages