public string this[string itemname] { get { int id = DefaultDiction.GetKeyByWord(itemname); if (id <= 0) { return(null); } return(this[id]); } }
public string this[int idx] { get { UIResource value = null; _diction.TryGetValue(idx, out value); if (value == null) { return(DefaultDiction.Item(idx)); } else { return(value.Resource); } } }
public static void BuildDefaultResource(Assembly assembly) { _instance = new DefaultDiction(assembly); }