예제 #1
0
파일: Affix.cs 프로젝트: God601/D3Mighty
 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
파일: Affix.cs 프로젝트: rosebud/mooege
 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);
     }
 }