简体   繁体   English

Properties.Settings.Default中的BigInteger

[英]BigInteger in Properties.Settings.Default

I'm trying to get a BigInteger value to be persistent after the application closes. 我正在尝试使BigInteger值在应用程序关闭后保持不变。 I also need to write to it after the application is done running. 应用程序运行完成后,我还需要对其进行写操作。

Unfortunately when I select the System.Numerics namespace from Browse under the Properties -> Settings menu in Visual Studio, it doesn't give me anything I can select to store this value. 不幸的是,当我从Visual Studio中“属性”->“设置”菜单下的“浏览”中选择“ System.Numerics”命名空间时,它没有提供任何可供选择的值来存储此值。

Is there another way I can store my BigInteger without creating another file to store it in? 还有另一种方法可以存储BigInteger而不创建另一个文件来存储它吗?

将其另存为字符串并执行BigInteger.Parse(string);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM