public LCHRoleData GetRole(string id) { if (roles.ContainsKey(id)) { return(roles[id]); } var js = loader.LoadFile(id, SkillDataType.ROLE); //var v = JSonHelper.DeserializeDictionary(js); LCHRoleData v = JSonHelper.DeserializeRole(js); Array.Sort <string>(v.skills); if (v == null) { return(null); } roles[id] = v; v.skills = JSonHelper.ToStringList(v.skills); ////roid["skills"]; return(v); }