dotNetTips.Spargine icon indicating copy to clipboard operation
dotNetTips.Spargine copied to clipboard

Ensure All Collection Extensions Has Consistant DoesNotHaveItems Methods

Open RealDotNetDave opened this issue 4 years ago • 0 comments

Make sure that all the collection extensions has a DoesNotHaveItems method. Example:

public static bool DoesNotHaveItems<T>(this ObservableCollection<T> list) => list?.Count <= 0;

  1. ArrayExtensions
  2. ListExtensions
  3. ReadOnlyCollectionExtensions
  4. SortedDictionaryExtensions
  5. SortedSetExtensions

RealDotNetDave avatar Aug 27 '21 16:08 RealDotNetDave