I'm trying to convert a large binary string to a BigInteger number in C#. After doing some research a line such as the one below should work but for the 2 reasons below it isn't. Am I missing something?
BigInteger bi = new BigInteger("100101000111111110000", 2);
Error CS1503 Argument 1: cannot convert from 'string' to 'System.ReadOnlySpan'
Error CS1503 Argument 2: cannot convert from 'int' to 'bool'
BigIntegerconstructor nor itsParsemethod have an overload that accepts astringand numeric base. Are you sure you're looking at .NET documentation, and notBigIntegerfrom Java or some other framework?BigInteger. Where have you found this code? Is this from Java one?