What is the difference between BigInteger type in System.Numerics.dll and the BigInteger type in FSharp.Core.dll?

StackOverflow https://stackoverflow.com/questions/23112738

  •  04-07-2023
  •  | 
  •  

Question

As I understand, .NET has two types System.Numerics.BigInteger , one defined in System.Numerics.dll, the other in FSharp.Core.dll . What's the difference? Why does F# bother to define its own BigInteger type?

Also, can one use the FSharp.Core type from C#?

Était-ce utile?

La solution

Straight from the documentation:

This type is provided for use only with the F# Core Library Versions that targets .NET Framework 2.0. If you are using .NET Framework 4, use the .NET Framework 4 type with the same name, BigInteger.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top