c# - 如何在MonoDevelop中使用BigInteger类?

标签 c# monodevelop biginteger linux-mint system.numerics

我在 Linux Mint 中使用 MonoDevelop。

我的问题是我找不到引用“System.Numerics”,否则当我使用 Windows 时,我可以在 VisualStudio 中轻松找到它。

我特别想将 BigInteger 用于更大的值。 我能找到的最接近的是这个库:https://biginteger.codeplex.com/ ;这对我来说并没有真正起作用,因为我无法链接它。

(这是我在这里能找到的唯一与我的问题相似的东西,尽管对我不起作用: Mono missing System.Numerics.BigInteger.Parse(string,IFormatProvider) 。欢迎任何其他允许我使用大于 20 位数字的提案。)

最佳答案

为您的项目添加对 System.Numerics 的引用:

enter image description here

使用:

using System.Numerics

用法:

var bigInt = new BigInteger();

关于c# - 如何在MonoDevelop中使用BigInteger类?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37348987/

相关文章:

c# - 找不到类型或命名空间名称 'FormatterContext' .net 4.5

c# - WCF 错误 : 405 Method Not Allowed

c# - HttpWebRequest 序列

c# - 进程启动后立即停止

MonoDevelop:MonoMac 和 GTK# 可以使用相同的项目吗?

Java 的 BigInteger C# 以 Base 32 表示

c# - 长日期时间转换为日期时间 C#

xamarin.ios - 如何将文件夹和文档的结构添加到 MonoDevelop 项目中?

c# - 加密和解密 19 位长的 BigInteger

java - BigInteger.toByteArray() 在 java 中返回奇怪的值