TIL

TIL: Tuples and Pattern Matching in C# switch Statements

TIL. abbreviation for today I learned
used in writing, for example on social media, before giving interesting new information

It may not happen all the time, but every now and then there are cases where a certain outcome is expected due to two or more variables. For example the help or validation text for variable min and max values. Until now I have solved this with these monstrous “if – else if” nestings:

Read More »TIL: Tuples and Pattern Matching in C# switch Statements