Skip to content

v1.6.0

Latest
Compare
Choose a tag to compare
@JeevanJames JeevanJames released this 20 Feb 20:51
· 58 commits to master since this release

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 on IEnumerable<T> that determines whether a predicate matches all or none of the elements in a sequence.

  • Added an IsNotNullOrEmpty extension, which is the opposite of IsNullOrEmpty.