Simple optional types with basic helpers and converters
Maybe<T>
value or nothingTry<T>
value or errorEither<TLeft, TRight>
value either value
For version 3.0 this lib was completely rewritten with some breaking changes
- All types are now
class
instead ofstruct
- Remove some logically obscure methods
IComparable
implementation (problems with comparingnull
and empty item)- Type cast operators (unused)
Try.SelectOrDefault
andTry.ValueOrDefault
(implicitly hides error, can be replaced withTry.AsMaybe
)
- Async extensions completely rewritten using
ValueTask
and moved to separate package
Types and basic helpers
Async helpers
If you find a bug, have a question or something else - you are friendly welcome to open an issue.
Copyright © 2021 Anton Andryushchenko. AInq.Optional is licensed under Apache License 2.0