feO2x / Light.GuardClauses

A lightweight .NET library for expressive Guard Clauses.
MIT License
85 stars 8 forks source link

Add string assertion "MustBeTrimmed" #78

Closed feO2x closed 1 year ago

feO2x commented 2 years ago

We should add the following assertions for string, ReadOnlySpan<char> and Span<char>:

feO2x commented 1 year ago

We can leave out the Span<T> overloads because there is an implicit conversion from Span<T> to ReadOnlySpan<T>.