Exemplo n.º 1
0
 public static bool TryParse(string hex, out H256 hash)
 {
     try
     {
         hash = Parse(hex);
         return(true);
     }
     catch
     {
         hash = null;
         return(false);
     }
 }
Exemplo n.º 2
0
 public static bool TryParse(byte[] bytes, out H256 hash)
 {
     try
     {
         hash = Parse(bytes);
         return(true);
     }
     catch
     {
         hash = null;
         return(false);
     }
 }