I have problem in c# with convert decimal number from string to byte array. I want creat BigInteger with using byte array.
I try:
string Astr = "123456789123456789123456789123456789123456789123456789123456789123456789123456789";
byte[] AByte = Astr.Select(c => (byte)(c - '0')).ToArray(); //This is problem because array padding wrong.
Tnaks for your ideas. :)
BigIntegerstructure has an Byte array constructor. Did you tried it? Note: It is not a CLS compliant.