throw
A simple, fluent, extensible, and fully customizable library for throwing exceptions for projects using .NET 6+ (by amantinband)
GuardClauses
A simple package with guard clause extensions. (by ardalis)
throw | GuardClauses | |
---|---|---|
1 | 8 | |
1,181 | 2,922 | |
- | - | |
2.7 | 8.0 | |
8 months ago | 23 days ago | |
C# | C# | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
throw
Posts with mentions or reviews of throw.
We have used some of these posts to build our list of alternatives
and similar projects.
GuardClauses
Posts with mentions or reviews of GuardClauses.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-17.
-
Why doesn't eager loading work with EF?
You could also use the Ardalis Guard Clause, Ardalis Result and Fluent Validation
-
3 things to avoid when implementing Domain-Driven Design (DDD)
Here is an example how one would make sure our order total is valid. For this purpose I use an amazing library called GuardClauses.
- What your hidden nuget gems ?
-
Implementing a Clean Architecture in ASP.NET Core 6
GuardClauses
-
Announcing .NET Community Toolkit v8.0.0 Preview 1
I'm guessing it's just a port of Ardalis' Guard class since he helped a lot with Microsoft's web projects.
-
How can I avoid IEnumerable multiple iterations? Is it bad to cast IEnumerable --> ICollection --> IEnumerable to perform validation?
The Guard Clauses are from: https://github.com/ardalis/GuardClauses
-
When to explicitly throw ArgumentNullException?
In terms of readability concerns, I definitely hear you on that. Using something like this can cut down on code bloat that comes with param validation and help with readability.
-
What a good Starter Kit for WebAPI for Asp.NET Core
It's made by Ardalis, who wrote Microsoft's architectural guide for ASP.NET Core Web APIs. I like his GuardClauses library too.
What are some alternatives?
When comparing throw and GuardClauses you can also consider the following projects:
SmartAnnotations - A library for .NET that uses source generators to automatically generate data annotations for your models.
CleanArchitecture - Clean Architecture Solution Template: A starting point for Clean Architecture with ASP.NET Core