Warning! In C#, X + 1 does Not Necessarily Equal X + 1
In C#, when you add 1 to the largest value an Int32 can hold, you don’t get an error, you get a wrong answer. Below, we set max to the largest Int32 value possible....
In C#, when you add 1 to the largest value an Int32 can hold, you don’t get an error, you get a wrong answer. Below, we set max to the largest Int32 value possible....
Note: This is an enhancement of the static HTTPClientHelper class introduced here. Here’s a new and improved class that abstracts HttpClient calls. You add the class to your dependency injection container and then just...
Note: This class has been updated. Here’s a generic class that abstracts async HttpClient calls in .NET Core. It can be used, for example, to make calls from a desktop application or web site...
I often want to get (and less frequently set) the value of a class property using a string containing the property name rather than a standard dot reference. So instead of this: I want...