Exemplo n.º 1
0
 /// <summary>
 /// Insert an entry ar the current location.Cursor positionis not incremented.So new entry is retived using next call
 /// </summary>
 /// <param name="key"></param>
 /// <param name="val"></param>
 public void Insert(Object key, Object val)
 {
     if (current == -1)
     {
         MoveNext();
     }
     Enclosing_Instance.Add(current, key, val);
     //System.Console.Out.WriteLine("Added " + key + "-" + val + ", Cursor Position: #" + current);
 }
Exemplo n.º 2
0
            /// <summary>Add an entry at the current location. The new entry goes before
            /// the entry that would be returned in the next 'next' call, and
            /// that call will not be affected by the insertion.
            /// Note: this method is not in the IEnumerator interface.</summary>
            public void Add(System.Object val)
            {
                if (current == -1)
                {
                    MoveNext();
                }
                int nKey = Enclosing_Instance.unkeyedIndex;

                Enclosing_Instance.unkeyedIndex += 1;
                Enclosing_Instance.Add(current, nKey, val);
                //System.Console.Out.WriteLine("Added " + nKey + "-" + val + ", Cursor Position: #" + current);
                MoveNext();
            }
Exemplo n.º 3
0
            /// <summary>Add a keyed entry at the current location. The new entry is inserted
            /// before the entry that would be returned in the next invocation of
            /// 'next'.  The return value for that call is unaffected.
            /// Note: this method is not in the IEnumerator interface.
            /// </summary>
            public void Add(System.Object key, System.Object val)
            {
                HashedListElement newObj = Enclosing_Instance.Add(current, key, val);

                MoveNext();
            }