Quantcast
Channel: Puzzles – Thomas Levesque's .NET blog
Browsing latest articles
Browse All 2 View Live

C# Puzzle 1

I love to solve C# puzzles; I think it’s a great way to gain a deep understanding of the language. And besides, it’s fun! I just came up with this one: static void Test(out int x, out int y) { x = 42;...

View Article



C# Puzzle 2

Just another little puzzle based on an issue I had at work… Consider this piece of code : Console.WriteLine($"x > y is {x > y}"); Console.WriteLine($"!(x <= y) is {!(x <= y)}"); How would...

View Article
Browsing latest articles
Browse All 2 View Live


Latest Images