fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. long k = 6339338941571906146L;
  8. string str = Convert.ToBase64String(BitConverter.GetBytes(k));
  9. Console.WriteLine(str);
  10. long x = BitConverter.ToInt64(Convert.FromBase64String(str), 0);
  11. Console.WriteLine("{0} {1} {2}", k, x, x==k);
  12. }
  13. }
Success #stdin #stdout 0.03s 22380KB
stdin
Standard input is empty
stdout
YroxGy7b+Vc=
6339338941571906146 6339338941571906146 True