Skip to content

DevAndersen/c-sharp-silliness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C# Silliness

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

Successful projects

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.

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

Languages