-
-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make type parameter T of the Null() method nullable and add overload …
…for value types. (#261) * Add nullable annotation "?" to T of Null() to supress null warnings on returned value. * Add overload of Null() with generic constraint for value types to allow assignment of return value to non-nullable value types when passed a nullable value type. * Add unit tests to ensure that Null() returns a non-nullable value type when passed a nullable value type * Update GuardClauses.csproj * Update GuardClauses.UnitTests.csproj * Revert "Update to dotnet 7.0" --------- Co-authored-by: amalkrishna <[email protected]> Co-authored-by: Steve Smith <[email protected]>
- Loading branch information
1 parent
f26fb99
commit e6388c9
Showing
2 changed files
with
72 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters