Пример #1
0
 public static Affix Parse(String affixString)
 {
     try
     {              
         int gbid = int.Parse(affixString);    
         Affix affix = new Affix(gbid);
         return affix;
     }catch(Exception e)
     {
         throw new Exception( "Affix could't parsed of String: "+ affixString,e);
     }
 }
Пример #2
0
 public static Affix Parse(String affixString)
 {
     try
     {
         int gbid = int.Parse(affixString);
         var affix = new Affix(gbid);
         return affix;
     }
     catch (Exception e)
     {
         throw new Exception(String.Format("Affix can not be parsed: {0}", affixString), e);
     }
 }