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