Friday, July 3, 2009

Download and install the F# September 2008 CTP.This will add the necessary assembly's needed to access the F# BigInt class from C#.

Then just add a reference to the FSharp.Core assembly:If you can't find the assembly try restarting Visual Studio and/or reinstalling the F# runtime.Dont forget to add an "using Microsoft.FSharp.Math" statement like done below.

Example:

using System;using Microsoft.FSharp.Math;

namespace BigIntExample{class Program{staticvoid Main(string[] args){//make a BigInt with the max value of a longBigInt x = new BigInt(long.MaxValue);