.NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and part of the .NET Foundation.
Guard provides IsNotEmpty overloads for many collection types. It should also provide IsNotNullOrEmpty overloads.
API breakdown
public static class Guard
{
public static void IsNotNullOrEmpty<T>(ICollection<T> collection, [CallerArgumentExpression("collection")] string name = "");
// Also other overloads like already exist for 'IsNotEmpty'.
}
Overview
Guard
providesIsNotEmpty
overloads for many collection types. It should also provideIsNotNullOrEmpty
overloads.API breakdown
Usage example
Guard.IsNotNullOrEmpty(myCollection);
Breaking change?
No
Alternatives
Additional context
No response
Help us help you
No, just wanted to propose this