A guard clause, is a check of integrity preconditions used to avoid errors during execution. It helps you to simplify code by removing useless nested branching conditions and returning meaningful errors. To achieve it in .NET you can do it using a library or writing your own defensive code, in this article I’ll show you […]