ghuntley / conditions

If you are just starting out on a new project I recommend using https://github.com/adamralph/liteguard instead of conditions. Especially if using in a mobile application, less allocations and better performance. This project is deprecated and needs a new maintainer. Contact me if you want to take over.
MIT License
56 stars 10 forks source link

extension methods make code awkard to read #11

Open SurajGupta opened 7 years ago

SurajGupta commented 7 years ago

I think in the latest update, Requires was made an extension method. Unfortunately, ReSharper now bugs me to to use the extension method form. In that form, the code doesn't read as well: myArgument.Requires().IsNotNull();

It would be better if it read like this: myArgument.Must().NotBeNull();

Not sure if there an easy solution, just wanted to point it out.