0
comment
on 8/23/2015 11:44 AM
Turns out that there is a simpler way of dealing with optional values in c#. Include FSharpx.Extras to your c# project and then you can do the following: optionalValue.Match( ifSome: value => ProcessValue(value), ifNone: () => NoValueToProcess() ); Thanks to extension methods in this library. There are extension methods for other common discriminated unions as well.
>> Read the full article on assertfail.gewalli.se
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us
Built with WebSharper