CollectionExtensionMethod.cs 258 B

123456789
  1. using System.Collections.Generic;
  2. namespace MyTrelloWeb.VCommon.Collections
  3. {
  4. public static class CollectionExtensionMethod
  5. {
  6. public static bool IsNullOrEmpty<T>(this ICollection<T> source) => source == null || source.Count <= 0;
  7. }
  8. }