We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure that the collection Extensions classes have consistent HasItems methods. They should be like this:
[MethodImpl(MethodImplOptions.NoInlining)] public static bool HasItems<T>([NotNull] this List<T> list, [NotNull] Predicate<T> action) { return list.TrueForAll(action); } public static bool HasItems([NotNull] this IEnumerable list) => list.Count() > 0; public static bool HasItems([NotNull] this IEnumerable list, int count) => list.Count() == count; Add to: 1. ArrayExtensions *+ 2. CollectionExtensions *+ 3. DictionaryExtensions *+ 4. EnumerableExtensions *+ 5. ImmutableArrayExtensions *+ 6. ObservableCollectionExtensions *+ 7. ReadOnlyCollectionExtensions *+ 8. SortedDictionaryExtensions *+ 9. SortedSetExtensions *+
The text was updated successfully, but these errors were encountered:
Make HasItems in Extensions Consistent #52: Added appropriate methods…
69cd895
… to collection extensions. Code cleanup.
Make HasItems in Extensions Consistent #52: Added unit tests.
fc081f3
RealDotNetDave
No branches or pull requests
Ensure that the collection Extensions classes have consistent HasItems methods. They should be like this:
The text was updated successfully, but these errors were encountered: