public MobType(MobTypes db_mob_type) { m_mob_type_id = db_mob_type.MobTypeID; try { string jsonString = db_mob_type.MobTypeData; if (jsonString.Length == 0) { throw new ArgumentException(); } m_mob_type_data = JsonMapper.ToObject <MobTypeData>(jsonString); } catch (System.Exception) { m_mob_type_data = null; } }
public MobType(MobTypes db_mob_type) { m_mob_type_id = db_mob_type.MobTypeID; try { string jsonString= db_mob_type.MobTypeData; if (jsonString.Length == 0) { throw new ArgumentException(); } m_mob_type_data = JsonMapper.ToObject<MobTypeData>(jsonString); } catch (System.Exception) { m_mob_type_data = null; } }