Photo by Eyestetix Studio on Unsplash

Spooky Behaviors in C#

Michael Moreno
Nerd For Tech
Published in
5 min readNov 1, 2022

--

Today’s article is about a few surprising behaviors that I’ve stumbled upon lurking in the C# language and its libraries. I wouldn’t go as far as to call them bugs, but they’re the sort of things that can catch you off guard if you’re not careful.

Nullable Math

The first of these concerns nullable integers. Integers in C# are integral numeric types, and ordinarily they would have a default…

--

--