public override IntPtr Read(IntPtr lpRes) { _strings = new Dictionary<string, StringResource>(); IntPtr pChild = base.Read(lpRes); while (pChild.ToInt32() < (lpRes.ToInt32() + _header.wLength)) { StringResource res = new StringResource(pChild); _strings.Add(res.Key, res); pChild = ResourceUtil.Align(pChild.ToInt32() + res.Header.wLength); } return new IntPtr(lpRes.ToInt32() + _header.wLength); }
public string this[string key] { get { return _strings[key].Value; } set { StringResource sr = null; if (!_strings.TryGetValue(key, out sr)) { sr = new StringResource(key); _strings.Add(key, sr); } sr.Value = value; } }
public string this[string key] { get { return(_strings[key].Value); } set { StringResource sr = null; if (!_strings.TryGetValue(key, out sr)) { sr = new StringResource(key); _strings.Add(key, sr); } sr.Value = value; } }