September 20, 2020
C# Simplify Validation With Guard Clauses
A guard clause is a coding approach for pulling out validation and edge case checks scattered throughout a method and putting them at the start of the method (to validate input parameters) and / or at the end of a method (to validate output after the main processing has taken place in a method). My