- Added
WithMessage
to theError
class to allow the error message to be changed. It will allow for more flexibility when handling errors;
- Added
ChainOnSuccess
andChainOnSuccessAsync
extension methods to help reduce boilerplate;
- Added
TapOnSuccess
andTapOnSuccessAsync
extension methods to help reduce boilerplate;
- Renamed method
Map
toTap
to better reflect its purpose; - Added
TapAsync
method toResult<T>
class to allow side effects without changing the result; - Added
ProcessAsync
method toResult<T>
class to allow processing the result asynchronously; - Organized the project documentation;
- Added DateTime extension methods:
DaysSince
: Returns the number of days since a given date (default: current date time);
- Added the following ListExtension methods:
Shuffle
: This method shuffles the elements of a list in place;Random
: This method returns a random element from a list;PopLast
: This method removes and returns the last element of a list;PopFirst
: This method removes and returns the first element of a list;IndexOfMax
: This method returns the index of the maximum element in a list;IndexOfMin
: This method returns the index of the minimum element in a list;RemoveDuplicates
: This method removes all duplicates from a list;
- Changed
Result
from class toreadonly struct
; - Create the convenience method
Result<T>.ForwardError<TOher>()
, which will forward the error of the currentResult<T>
to a newResult<TOther>
, if the currentResult<T>
is an error;
- Added new List extension method:
SafeAll
: This method safely checks if all elements in a non-null, non-empty sequence satisfies a given condition, returning false for null or empty sources.
- Initial release