public override string ToString() { IEnumerator i = EntrySet.GetEnumerator(); if (!i.MoveNext()) { return("{}"); } StringBuilder sb = new StringBuilder(); sb.Append('{'); for (; ;) { Entry e = (Entry)i.Current; object key = e.Key; object value = e.Value; sb.Append(key == this ? "(this Map)" : key); sb.Append('='); sb.Append(value == this ? "(this Map)" : value); if (!i.MoveNext()) { return(sb.Append('}').ToString()); } sb.Append(", "); } }
public virtual void Add(TObject obj) { BusinessManager?.AddBusinessObject(obj, false); ObjectDictionary().Add(obj); EntrySet.Add(obj.Entry); }
public EntrySet GetEntrySet() { if (entrySet_Renamed == null) { entrySet_Renamed = CreateEntrySet(); } return(entrySet_Renamed); }
public EntrySet entrySet() { if (_entrySet != null) { return(_entrySet); } return(_entrySet = new EntrySet(this)); }
public IteratorOverEntrySet(EntrySet entrySet) { mMapEntrySet = entrySet; }
public RefSet(EntrySet entrySet) { _entrySet = entrySet; }