November 9, 2022
C# Improve code Quality with Discards
With this article i will be exploring a newer C# language feature called discards. Discards are represented with the underscore character. As implied by the name, discards basically tell the reader of your code (and the compiler) that you will not utilize the result. Consider the following code as our first example: So again the