public void AddString(Stream _stream, string _s) { int value = -1; IFFString iFFString = null; if (!StringCheck.TryGetValue(_s, out value)) { iFFString = new IFFString(_s); value = Strings.Count; Strings.Add(iFFString); StringCheck.Add(_s, value); } iFFString = Strings[value]; m_patches.Add(new IFFPatchEntry(_stream.Position, iFFString)); _stream.WriteInteger(0); }