11 F# Interop

This chapter covers

  • Working with C# code and common .NET constructs
  • Consuming NuGet packages
  • Mixed-language solutions
  • JavaScript and F#

Just to reiterate, F# runs primarily on .NET—and a great deal of .NET, such as the base class library and most NuGet packages, is written in C#. This chapter shows you the techniques for how best to consume such code as well as how to write F# APIs that C# developers can more easily consume.

11.1 Working with other .NET code

You might have already realized this, but you already know how to consume C# from F#: pretty much the entire .NET framework class library is written in C#. This means that virtually all the APIs in the System namespace that are available out of the box are written in C#. F# ...

Get F# in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.