Change log
- Added overloads to the
Union
extension that allow single values to be added.
Where earlier you would have done this:
var nums = new int[] { 1, 2, 3, 4, 5, 6 };
nums.Union(new[] { 7 });
You can now do this:
var nums = new int[] { 1, 2, 3, 4, 5, 6 };
nums.Union(7);
Another Union
overload accepts a params
parameter:
var nums = new int[] { 1, 2, 3, 4, 5, 6 };
nums.Union(7, 8, 9);
-
Added an
AllOrNone
extension onIEnumerable<T>
that determines whether a predicate matches all or none of the elements in a sequence. -
Added an
IsNotNullOrEmpty
extension, which is the opposite ofIsNullOrEmpty
.