a few FSharp friendly extensions to c.cs