예제 #1
0
파일: H256.cs 프로젝트: bryllite/web4b-cs
 public static bool TryParse(string hex, out H256 hash)
 {
     try
     {
         hash = Parse(hex);
         return(true);
     }
     catch
     {
         hash = null;
         return(false);
     }
 }
예제 #2
0
파일: H256.cs 프로젝트: bryllite/web4b-cs
 public static bool TryParse(byte[] bytes, out H256 hash)
 {
     try
     {
         hash = Parse(bytes);
         return(true);
     }
     catch
     {
         hash = null;
         return(false);
     }
 }