F# – Make extension methods visible to C#
In F# you can write an extension method like this: Whilst this will work perfectly fine in your F# code, the extension method will not be visible to any C# code using the FileInfo type because F# and C# compiles extension methods differently. To make C#-compatible extension methods in F#, here’s what you need to …