Beispiel #1
0
        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);
        }
Beispiel #3
0
 public EntrySet GetEntrySet()
 {
     if (entrySet_Renamed == null)
     {
         entrySet_Renamed = CreateEntrySet();
     }
     return(entrySet_Renamed);
 }
Beispiel #4
0
        public EntrySet entrySet()
        {
            if (_entrySet != null)
            {
                return(_entrySet);
            }

            return(_entrySet = new EntrySet(this));
        }
Beispiel #5
0
				public IteratorOverEntrySet(EntrySet entrySet)
				{
					mMapEntrySet = entrySet;
				}
Beispiel #6
0
 public RefSet(EntrySet entrySet)
 {
     _entrySet = entrySet;
 }