A simple extensible package with guard clause extensions. A guard clause is a software pattern that simplifies complex functions by "failing fast", checking for invalid inputs up front and immediately failing if any are found. Remember to update the PackageVersion in the csproj file and then a build-on master should automatically publish the new package to NuGet.

Features

  • Supports Guard.Against.Null (throws if input is null)
  • Supports Guard.Against.NullOrEmpty (throws if string, guid or array input is null or empty)
  • Supports Guard.Against.NullOrWhiteSpace (throws if string input is null, empty or whitespace)
  • Supports Guard.Against.OutOfRange (throws if integer/DateTime/enum input is outside a provided range)
  • Supports Guard.Against.EnumOutOfRange (throws if a enum value is outside a provided Enum range)
  • Supports Guard.Against.OutOfSQLDateRange (throws if DateTime input is outside the valid range of SQL Server DateTime values)
  • Supports Guard.Against.Zero (throws if number input is zero)

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow Guard Clauses

Guard Clauses Web Site

Other Useful Business Software
AestheticsPro Medical Spa Software Icon
AestheticsPro Medical Spa Software

Our new software release will dramatically improve your medspa business performance while enhancing the customer experience

AestheticsPro is the most complete Aesthetics Software on the market today. HIPAA Cloud Compliant with electronic charting, integrated POS, targeted marketing and results driven reporting; AestheticsPro delivers the tools you need to manage your medical spa business. It is our mission To Provide an All-in-One Cutting Edge Software to the Aesthetics Industry.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Guard Clauses!

Additional Project Details

Programming Language

C#

Related Categories

C# Frameworks

Registered

2022-09-14