/// <summary> /// Add a link from one item to another. Links must be added to items in /// order of insertion. /// </summary> /// <param name="groupIndex">Index of item from which to link</param> /// <param name="memberIndex">Index of item to which to link</param> public void AddLink(int groupIndex, int memberIndex) { if (this._mutableMap == null) { this._mutableMap = new MutableItemMap <T>(this._provider); } this._mutableMap.AddLink(groupIndex, memberIndex); }
public void ConvertToImmutable() { if (this._mutableMap != null) { // Convert or merge the maps this._immutableMap = this._mutableMap.ConvertToImmutable(this._immutableMap); // Clear the mutable map this._mutableMap = null; } }
public void ReadBinary(BinaryReader r) { this._mutableMap = null; this._immutableMap = new ImmutableItemMap <T>(this._provider); this._immutableMap.ReadBinary(r); }
public void Clear() { this._immutableMap = null; this._mutableMap = null; }