Mitc.Support.Require 1.0.0
Mitc.Support.Require
A small library which simplifies and enhances inline assertions.
Usage:
internal sealed class TestClass
{
public TestClass(string? prop1, object? prop2)
{
Prop1 = Require.NotNullOrWhiteSpace(prop1);
Prop2 = Require.NotNull(prop2);
}
public string Prop1 { get; set; }
public object Prop2 { get; set; }
}
Note: No compiler warnings about possibly assigning null values = )
Output:
C:\Users\skuehlshelby.MITC\source\repos\GuardConditionHelpers\Tests\TheTests.cs
.ctor(), Line 64: Must not be null, empty, or whitespace. (Parameter 'prop1')
Showing the top 20 packages that depend on Mitc.Support.Require.
| Packages | Downloads |
|---|---|
|
Mitc.Support.Pagination
A return type for paginated API responses.
|
0 |
.NET 5.0
- No dependencies.
.NET 6.0
- No dependencies.
.NET 7.0
- No dependencies.
.NET 8.0
- No dependencies.
.NET Standard 2.0
- No dependencies.
| Version | Downloads | Last updated |
|---|---|---|
| 1.0.0 | 0 | 7/18/2025 |