Пример #1
0
 public static WordSet Parse(string value)
 {
     if (string.IsNullOrEmpty(value))
     {
         throw new ArgumentException("value is null or zero length string");
     }
     return(WordSetTypeConverter.Parse(value));
 }
Пример #2
0
 public static bool TryParse(string value, out WordSet result)
 {
     try
     {
         result = WordSetTypeConverter.Parse(value);
         return(true);
     }
     catch (Exception)
     {
         result = null;
         return(false);
     }
 }