Skip to content

Releases: YoussefSell/Result.Net

v1.5.0

09 May 21:01
Compare
Choose a tag to compare

For more details click here to get to our CHANGELOG.

Changes:

  • added a Cast<>() extension method that allows you to cast a Result instance into a Result{TData} instance.
  • Removed ListResult<> no need for this type, to simplify the usage the Result<data[]> can be used instead.
  • Removed Clone() methods, the new Cast<>() method should be used instead.
  • All properties on the Result instance will not be set and they will have their default value (null, or empty string).
  • Fixed JSON Deserialization issue by removing all constructors from the Result class and only setting one default constructor.

v1.4.0

10 Nov 21:23
Compare
Choose a tag to compare

For more details click here to get to our CHANGELOG.

Changes:

  • added a new extension method WithLocalizedMessage() on the Result type to allow setting localized messages on the Result object instance.

v1.3.0

03 Jun 20:57
Compare
Choose a tag to compare

For more details click here to get to our CHANGELOG.

Changes:

  • added a Match() extension method on the Result type to run logic based on the result status.
  • added Exception property to ResultError.
  • added new extension methods on the Result type to attach errors.
  • removed Type property from ResultError.
  • updated some comments.

v1.2.1

06 Dec 21:35
Compare
Choose a tag to compare

For more details click here to get to our CHANGELOG.

Changes:

  • fixed null key issue if the exception key type is different than string, when converting an exception to Result object using ToResult() method.

v1.2.0

02 Aug 20:47
Compare
Choose a tag to compare

For more details click here to get to our CHANGELOG.

Changes:

  • Changed package namespace from Result.Net to ResultNet.
  • Changed ResultError type from class to struct.

v1.1.0

28 Jul 20:57
Compare
Choose a tag to compare

For more details click here to get to our CHANGELOG.

Changes:

  • Added a function FailedBecause to check if the result has failed because of a specified error code.
  • Added a function As to cast exceptions to a given type.
  • Updated some comments.

First release

23 Jul 22:08
Compare
Choose a tag to compare

For more details click here to get to our CHANGELOG.

Changes:

  • First release.