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'