Snippets tagged interop

  • .NET Interop

    Facilities for interop with languages supporting null.

    3 people like this

    Posted: 6 years ago by Daniel Robinson

  • Higher-Order Functions for Excel

    Some of the standard higher-order functions (like Seq.map, Seq.iter, Seq.filter) but implemented for Excel interop. Effortlessly iterate across ranges of cells, reading them, updating them or formatting them. NB. Type-information won't be displayed correctly on fssnip (Office not installed on server presumably), so to get this working paste the code into VS, make yourself a spreadsheet with a range called 'MyRange' and use FSI to explore.

    15 people like this

    Posted: 5 years ago by Kit Eason

  • Unmanaged memory search

    Useful for pinvoke stuff where your native API requires that you have a unmanaged buffer containing the data you want to work on. Edit: Changed native calls, removed Marshal.Copy (there is a async corner case but I won't delve into it here) and replaced with pinning.

    4 people like this

    Posted: 4 years ago by David Klein

  • Make option type usable in C#

    Using FSharpOption is painful from C#, but it doesn't have to.

    0 people like this

    Posted: 2 years ago by Gauthier Segay