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); } }
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); } }