fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int k = int.MinValue;
  8. string str = Convert.ToBase64String(BitConverter.GetBytes(k));
  9. Console.WriteLine(str);
  10. int x = BitConverter.ToInt32(Convert.FromBase64String(str), 0);
  11. Console.WriteLine("{0} {1} {2}", k, x, x==k);
  12. }
  13. }
Success #stdin #stdout 0.02s 26260KB
stdin
Standard input is empty
stdout
AAAAgA==
-2147483648 -2147483648 True