Skip to content

Version 9.2.0

Compare
Choose a tag to compare
@MrMatthewLayton MrMatthewLayton released this 31 Jul 23:36
· 12 commits to main since this release

ONIXLabs .NET Library 9.2.0

We are excited to announce the release of ONIXLabs .NET Library version 9.2.0, now available on NuGet. This version includes new features and associated unit tests.

Core Updates

  • Introduced new pre-condition checks and requirements to check Result, Result<T> and Optional<T> types.
  • Re-added collection generator functions.

Whilst collection expressions are a much welcomed addition to .NET, they have their limitations; i.e. you cannot chain functions to the end of a collection expression; for example;

List<int> numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].Where(number => number % 2 is 0);

In contrast, this can be done with collection generators; for example:

List<int> numbers = ListOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10).Where(number => number % 2 is 0);