Ejemplo n.º 1
0
 public static Chain Parse(string value)
 {
     if (string.IsNullOrEmpty(value))
     {
         throw new ArgumentException("value is null or zero length string");
     }
     return(ChainTypeConverter.Parse(value));
 }
Ejemplo n.º 2
0
 public static bool TryParse(string value, out Chain result)
 {
     try
     {
         result = ChainTypeConverter.Parse(value);
         return(true);
     }
     catch (Exception)
     {
         result = null;
         return(false);
     }
 }