/// <summary>
 /// reset buffer index in send buffer
 /// </summary>
 public void ResetSendBuffer()
 {
     currentBufferIndex = 0;
     for (int i = cmdBuffer.Count - 1; i >= 0; i--)
     {
         var buffer = cmdBuffer[i].Array;
         BufferPool.ReleaseBufferToPool(ref buffer);
         cmdBuffer.RemoveAt(i);
     }
 }
예제 #2
0
 /// <summary> <p/>Removes all fields with the given name from the document.
 /// If there is no field with the specified name, the document remains unchanged.<p/>
 /// <p/> Note that the removeField(s) methods like the add method only make sense
 /// prior to adding a document to an index. These methods cannot
 /// be used to change the content of an existing index! In order to achieve this,
 /// a document has to be deleted from an index and a new changed version of that
 /// document has to be added.<p/>
 /// </summary>
 public void  RemoveFields(System.String name)
 {
     for (int i = fields.Count - 1; i >= 0; i--)
     {
         IFieldable field = fields[i];
         if (field.Name.Equals(name))
         {
             fields.RemoveAt(i);
         }
     }
 }
예제 #3
0
 public virtual void PopContext()
 {
     if ((sessionListeners).Count > 0)
     {
         foreach (Net.Vpc.Upa.Callbacks.SessionListener sessionListener in new System.Collections.Generic.List <Net.Vpc.Upa.Callbacks.SessionListener>(sessionListeners))
         {
             sessionListener.PopContext(this);
         }
     }
     stack.RemoveAt((stack).Count - 1);
 }
예제 #4
0
        static void Main(string[] args)
        {
            List <double> lst = new List <double>();


            System.Collections.Generic.IList <double> ilst = lst;

            Console.WriteLine(ilst.Remove(2));
            ilst.RemoveAt(0);


            ilst.Add(1);

            Console.WriteLine(ilst.Remove(1));
            Console.WriteLine(ilst.Remove(3));
            ilst.RemoveAt(0);
            ilst.RemoveAt(2);


            ilst.Clear();



            ilst.Add(1);
            ilst.Add(2);
            ilst.Add(3);

            Console.WriteLine(ilst.Remove(1));
            Console.WriteLine(ilst.Remove(3));
            ilst.RemoveAt(0);
            ilst.RemoveAt(2);

            ilst.RemoveAt(0);



            Console.ReadLine();
        }
예제 #5
0
 public virtual Net.Vpc.Upa.Expressions.Select RemoveField(int index)
 {
     fields.RemoveAt(index);
     return(this);
 }
예제 #6
0
 public void RemoveFieldAt(int index)
 {
     fields.RemoveAt(index);
 }
예제 #7
0
 public void Pop()
 {
     s.RemoveAt(s.Count - 1);
 }
예제 #8
0
 public virtual void Remove(int index)
 {
     elements.RemoveAt(index);
 }
예제 #9
0
 public static void RemoveItemLocation(this System.Collections.Generic.IList <MoreExpressions> Expression, int Index)
 {
     Expression.RemoveAt(ToItemLocation(Expression, Index));
 }
예제 #10
0
 public virtual Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledSelect RemoveField(int index)
 {
     Invalidate();
     fields.RemoveAt(index);
     return(this);
 }
예제 #11
0
 public virtual void RemoveAt(int index)
 {
     _selectedList.RemoveAt(index);
 }