How do I validate that a method argument is a valid enum using CuttingEdge.Conditions

83 views Asked by At

In the SO post Implementation and usage of logger wrapper for Serilog, the author, Steven, shows a reference to a fluent method called IsValidEnum() as part of the Requires precondition (from the CuttingEdge.Conditions library, I assume). However, I cannot find that method in the v1.2.0 Nuget package. Is this a custom extension of the library? Is there a newer version of CuttingEdge.Conditions that I have not found. I would like to use this validation. Can anyone point me to the relevant library or provide a code snip?

Thanks

0

There are 0 answers