Skip to content

Releases: MyNihongo/Optional

Version 2.2.0

30 Nov 11:25
50c859b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.0.6...v2.2.0

Version 2.0.6

06 Aug 20:20
639be46
Compare
Choose a tag to compare

Added more extensions

  • IfHasValueAsync
  • ValueOrAsync
  • ConvertOrNewAsync
  • ValueOrNull

Version 2.0.5

15 Jun 09:16
67c48d9
Compare
Choose a tag to compare

Add support for NET4.0

Version 2.0.4

31 Mar 14:38
8411799
Compare
Choose a tag to compare

Added extension methods for objects:

  • AsNonNullOptional()
  • AsNonNullOptionalAsync()

Added extension methods for optional:

  • ValueOrDefault()
  • ValueOr(() => func);
  • OrElse()

Version 2.0.3

25 Mar 14:48
ec2ce96
Compare
Choose a tag to compare
  • fix a bug in LastOrDefault for IList types
  • add a class OptionalElse to invoke functions if there are no values
  • add unit tests (test coverage 100%)
    image

Version 2.0.2

23 Mar 16:05
21eb928
Compare
Choose a tag to compare
  • async extensions for IfHasValue

Version 2.0.1

16 Mar 06:54
21eb928
Compare
Choose a tag to compare
  • ValueOr returns T

Version 2.0.0

09 Mar 20:11
3d4bcd6
Compare
Choose a tag to compare
Fix file locations (#2)

* Update and rename Optional.cs to src/Optional.cs

* Update MyNihongo.Option.csproj