After creating a JavaScript script that converts a string to BigInt, I encountered a challenge while trying to find a C# equivalent function. The original conversion in Javascript looked like this:
BigInt("0x40000000061c924300441104148028c80861190a0ca4088c144020c60c831088")
The output was: 28948022309972676171332135370609260321582865398090858033119816311589805691016
I attempted using the following functions in C#:
Convert.ToInt64("0x40000000061c924300441104148028c80861190a0ca4088c144020c60c831088")
and BigInteger.Parse("0x40000000061c924300441104148028c80861190a0ca4088c144020c60c831088",NumberStyles.Any)
However, both resulted in an exception stating that the value could not be parsed.
If anyone has insight or suggestions on a C# function that can achieve the same result as BigInt() in JS, it would be greatly appreciated!