title: Convert a Guid string into BigInteger and vice versa
body: <p>I can convert a Guid String into a BigInteger using method below. How can I convert BigInteger back to Guid string. </p>
  
  <pre><code>using System;
  using System.Numerics;
  
  class Class1
  {       
      public static BigInteger GuidStringToBigInt(string guidString)
      {
          Guid g = new Guid(guidString);
          BigInteger bigInt = new BigInteger(g.ToByteArray());
          return bigInt;
      }
  
      static void Main(string[] args)
      {
          string guid1 = "{90f0fb85-0f80-4466-9b8c-2025949e2079}";
  
          Console.WriteLine(guid1);
          Console.WriteLine(GuidStringToBigInt(guid1));
          Console.ReadKey();
      }
  }
  </code></pre>