Mono missing System.Numerics.BigInteger.Parse(string,IFormatProvider)

前端 未结 4 1376
栀梦
栀梦 2021-01-11 18:39

I\'m currently getting the following error using the Json.NET/Newtonsoft.JSON library:

Missing method System.Numerics.BigInteger::Parse(string,IFormatProvide         


        
相关标签:
4条回答
  • 2021-01-11 18:56

    To fix this you can add a reference to System.Numerics and then set its property Copy Local to true.

    0 讨论(0)
  • 2021-01-11 18:56

    Have you tried any other method for converting strings to ints? I usually use Convert.ToInt32(//string) or if you want huge ints, then use Convert.ToInt64(//string)

    Otherwise, check out. The TryParse() function is pretty handy:

    http://www.dotnetperls.com/convert-string-int

    0 讨论(0)
  • 2021-01-11 19:07

    Use a 4.5 version of Json.NET until Mono fix it.

    0 讨论(0)
  • 2021-01-11 19:14

    If the method is not implemented, the best thing to do is implement it. Mono is an open source project. As such, if you cannot wait for the developers to implement something, you should step up and implement it, and send a pull request with your change.

    0 讨论(0)
提交回复
热议问题