/// <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); } }
/// <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); } } }
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); }
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(); }
public virtual Net.Vpc.Upa.Expressions.Select RemoveField(int index) { fields.RemoveAt(index); return(this); }
public void RemoveFieldAt(int index) { fields.RemoveAt(index); }
public void Pop() { s.RemoveAt(s.Count - 1); }
public virtual void Remove(int index) { elements.RemoveAt(index); }
public static void RemoveItemLocation(this System.Collections.Generic.IList <MoreExpressions> Expression, int Index) { Expression.RemoveAt(ToItemLocation(Expression, Index)); }
public virtual Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledSelect RemoveField(int index) { Invalidate(); fields.RemoveAt(index); return(this); }
public virtual void RemoveAt(int index) { _selectedList.RemoveAt(index); }