Every C# developer knows there are classes and structs, and at least once in an interview was asked about boxing. Additionally, they understand the concepts of mutable and immutable. This is where this puzzle will focus today. Note: Scroll selectively to not spoil the results. Lets jump into it. We have a class with anContinue reading “C# Puzzles – Puzzle #3: Mutable Structs”
Category Archives: Puzzles
C# Puzzles – Puzzle #2: Static Generics
For this puzzle, there is a little code snippet at the end that may help you in the future. The puzzle really isn’t super hard to figure out. Unfortunately, it is a either you know it or you don’t. Note: Scroll selectively to not spoil the results. Lets jump into it. What do you expectContinue reading “C# Puzzles – Puzzle #2: Static Generics”
C# Puzzles – Puzzle #1
I think it is fun to find abnormal behavior in the language you use, but C# is a language that doesn’t have many abnormal behaviors. I plan on posting a few that I know, and hope to find more. This is my first puzzle and it stems back 10 years for me. I once spentContinue reading “C# Puzzles – Puzzle #1”