About This Title

Pages: 120
Published: April 2025
ISBN: 9798888651353
In Beta

Skill Level Meter

C# Brain Teasers

Exercise Your Mind

by Steve Love

C# is a deceptively easy language to learn, but you’ll soon discover that its underlying complexity conceals many pitfalls for the unwary programmer. C# Brain Teasers exposes some of those perils in the form of puzzles to test and expand your knowledge of C#, and shows how to avoid or defeat them using simple and modern techniques. Whether you’re fairly new to C# or an experienced veteran, this book is sure to improve your understanding of C#, and boost your productivity.

eBook Formats:

  • PDF for desktop/tablets

  • epub for Apple Books, e-readers

  • mobi for Kindle readers

Get all eBook formats here for $14.95 (USD)

Add to Cart we accept visa, mastercard, amex, discover, paypal

This book is in Beta, final version expected Apr 2025

Beta Books: What do I get?


Although C#’s designers have ensured that new features play nicely with long-standing mechanisms, C#’s complexity means it has many dark corners to explore. This book shines a light into a few of those places to help you write better C# programs and more deeply understand how to use its features safely and to your advantage.

The puzzles in C# Brain Teasers cover a broad section of C# features. You’ll work from common issues associated with loops, methods, and numbers, through more complex concepts such as exceptions and object lifetime. You’ll see some more advanced topics such as the intricacies of type conversions, object construction and initialization, and pattern matching. Along the way we’ll investigate some of the hazards associated with asynchronous methods, the `Dispose` method for explicit lifetime management, primary constructors, and more. At each step you’ll learn to identify problems and ways to avoid them.

C# Brain Teasers is not just a show-and-tell. Each puzzle spotlights a real-world problem that you’ll be able to recognize in your own programs, and learn how to fix or avoid it.

What You Need

The book’s examples are written using C# v12 (.NET v8.0). No other dependencies are required, but an IDE such as Microsoft Visual Studio (v2022 minimum), JetBrains’ Rider, or VSCode with .NET development extensions installed can be useful.

Resources

Releases:

  • B1.0 2024/11/04

Contents & Extracts

Note: Contents and extracts of beta books will change as the book is developed.

  • Introduction
  • All the Things
  • Advance with Caution
  • Nothing to See Here
  • What Was the Year?
  • Unexpected Item in the Bagging Area
  • Precision Instruments
  • Inequality Among Equals
  • Double Jeopardy
  • So, What’s Left?
  • New Tricks
  • Property Development
  • Default Setting
  • Chicken or Egg?
  • The Optional Default
  • Deferred Judgment
  • A Promising Future
  • Fire and Forget
  • Exceptional Circumstances
  • Hanging Around
  • The Sentinel
  • A Narrowing Experience

Author

Steve Love is an author and professional programmer who has been using C# since it was first introduced in 2002. He is a regular speaker at technical conferences, and the editor of C Vu magazine, the journal of the ACCU.

eBook Formats:

  • PDF for desktop/tablets

  • epub for Apple Books, e-readers

  • mobi for Kindle readers

Get all eBook formats here for $14.95 (USD)

Add to Cart we accept visa, mastercard, amex, discover, paypal

This book is in Beta, final version expected Apr 2025

Beta Books: What do I get?

Related Titles:

Skill Level Meter

About This Title

Pages: 120
Published: April 2025
ISBN: 9798888651353
Edition: 1
In Beta