Skip to content

fsprojects/FSharpPlus.CSharp

Repository files navigation

FSharpPlus.CSharp

Selected parts from FSharpX.Extras moved over to enable usage in C#.

The goal of this project is to expose selected F# classes to C#. There are some neat things about using Result, Option and Choice in your C#.


Usage

using FSharpPlusCSharp;
using Microsoft.FSharp.Core;

var a = 5.Some();
var b = 6.Some();
var sum = from x in a
          from y in b
          select x + y; // Some 11

var result = sum.ToResult("missing value");

Public APIs also include XML documentation comments so usage is rendered by standard .NET documentation tooling (for example IntelliSense).


Builds

MacOS/Linux Windows
Travis Badge Build status
Build History Build History

Nuget

Stable Prerelease
NuGet Badge NuGet Badge

Developing


Building

Make sure the following requirements are installed in your system:

> build.cmd // on windows
$ ./build.sh  // on unix

About

F#+C#  ❤️use some f# base types for great good

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors