Optional
Optional copied to clipboard
A robust option type for C#
As discussed in #79
In the following code ```c# IEnumerable result = aValues .Select(a => (a, a.ComputeB()) ``` I wish to transform the value `(A, Option)` to `Option`. For this operation a `Map` operation...
This PR is to resolve issue #69 It adds a new Filter method to the `Option` class. The method is `public Option Filter(Func predicate, Func exceptionFactory)` and its goal is...
This PR builds on top of #19 and addresses #20 to fully address the examples called out in #17. The `IFormattable` implementation is explicit.
```c# private static void Main(string[] args){ var number = MyMethod1(); // How to use number in method 2? } int? MyMethod1(){ return 1; } void MyMethod2(Option aNumber){ // Do Something....
The library has the MIT Licence in the Github repository, but the NuGet package doesn't define any licence. Also, the NuGet package should define the licence.
__First and foremost:__ *Thanks an absolutely awesome library. I still prefer this to new and improved null-handling as of today.* Case in point. I'm sending an async lamdba into .Match()...
A list of the added extensions. ```csharp Task SomeNotNullAsync(this Task task, TException exception); Task SomeWhenAsync(this Task valueTask, Func predicate, Func exceptionFactory); Task SomeWhenAsync(this Task task, Func predicate, TException exception); Task...
Could you please sign binaries, produced for NuGET? This will allow for your libraries to be referenced from strong named assemblies (signed).