Here are the examples of the csharp api class System.Collections.Generic.List.RemoveAt(int) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
200 Examples
0
1. Example
Project: unity_sdk
Source File: SimpleJSON.cs
Source File: SimpleJSON.cs
public override JSONNode Remove(int aIndex) { if (aIndex < 0 || aIndex >= m_List.Count) return null; JSONNode tmp = m_List[aIndex]; m_List.RemoveAt(aIndex); return tmp; }
0
2. Example
Project: alphaTab
Source File: FastList.cs
Source File: FastList.cs
public void RemoveAt(int index) { _list.RemoveAt(index); }
0
3. Example
Project: VRpportunity
Source File: JSONObject.cs
Source File: JSONObject.cs
public static T Pop<T>(this List<T> list) { var result = list[list.Count - 1]; list.RemoveAt(list.Count - 1); return result; }
0
4. Example
Project: VRpportunity
Source File: OVRInputControl.cs
Source File: OVRInputControl.cs
public static void RemoveInputMapping(int joystickNumber, MonoBehaviour comp) { for (int i = 0; i < inputMap.Count; ++i) { InputMapping im = inputMap[i]; if (im.component == comp && im.joystickNumber == joystickNumber) { inputMap.RemoveAt(i); return; } } }
0
5. Example
Project: TraceLab
Source File: ExperimentRunner.cs
Source File: ExperimentRunner.cs
public RunnableNode TakeOutNode(int index) { //the index of active nodes list is shifted by one, because node reset events have terminate events at the beginning RunnableNode node = m_activeNodesList[index-1]; //remove node from both lists m_activeNodesList.RemoveAt(index-1); m_nodeResetEvents.RemoveAt(index); //return the node return node; }
0
6. Example
Project: TraceLab
Source File: UndoManager.cs
Source File: UndoManager.cs
private void RemoveFirstElementInFullList (List<IUndoActivity> list) { if (list.Count >= _bufferSize) { IUndoActivity removedActivity = list [0]; list.RemoveAt (0); removedActivity.Release (); } }
0
7. Example
Project: TraceLab
Source File: PolyLineFigure.cs
Source File: PolyLineFigure.cs
public virtual void RemovePointAt (int i) { WillChange (); _points.RemoveAt (i); Changed (); }
0
8. Example
Project: More
Source File: WeakEventManagerT1T2.cs
Source File: WeakEventManagerT1T2.cs
[SuppressMessage( "Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "e", Justification = "Purposefully named to match the .NET events conventions. REF: http://msdn.microsoft.com/en-us/library/edzehd2t(v=vs.110).aspx" )] [SuppressMessage( "Microsoft.Design", "CA1030:UseEventsWhereAppropriate", Justification = "Raises an event using the weak event pattern." )] public void RaiseEvent( object source, TArgs e ) { lock ( syncRoot ) { for ( var i = handlers.Count - 1; i > -1; i-- ) { // create strong delegate from handler var handler = handlers[i].CreateDelegate(); // if the handler is dead, remove it; otherwise, invoke it if ( handler == null ) handlers.RemoveAt( i ); else handler.DynamicInvoke( source, e ); } } }
0
9. Example
Project: Krypton
Source File: ViewComposite.cs
Source File: ViewComposite.cs
public override void RemoveAt(int index) { if (_views != null) { // Cache reference to removing item ViewBase item = _views[index]; // Let type safe collection perform operation _views.RemoveAt(index); // Remove back reference item.Parent = null; } }
0
10. Example
Project: SmoONE
Source File: EndPointListener.cs
Source File: EndPointListener.cs
bool RemoveSpecial (List<ListenerPrefix> coll, ListenerPrefix prefix) { if (coll == null) return false; int c = coll.Count; for (int i = 0; i < c; i++) { ListenerPrefix p = coll [i]; if (p.Path == prefix.Path) { coll.RemoveAt (i); return true; } } return false; }
0
11. Example
Project: SmoONE
Source File: HttpListener.cs
Source File: HttpListener.cs
HttpListenerContext GetContextFromQueue () { if (ctx_queue.Count == 0) return null; var context = ctx_queue [0]; ctx_queue.RemoveAt (0); return context; }
0
12. Example
Project: SmoONE
Source File: SynchronizedCollection.cs
Source File: SynchronizedCollection.cs
protected virtual void RemoveItem(int index) { this.items.RemoveAt(index); }
0
13. Example
Project: concordion-net
Source File: CommandCallList.cs
Source File: CommandCallList.cs
public void RemoveAt(int index) { CommandCalls.RemoveAt(index); }
0
14. Example
Project: UnityEditorConsuloPlugin
Source File: SimpleJSON.cs
Source File: SimpleJSON.cs
public override JSONNode Remove(int aIndex) { if(aIndex < 0 || aIndex >= m_List.Count) return null; JSONNode tmp = m_List[aIndex]; m_List.RemoveAt(aIndex); return tmp; }
0
15. Example
Project: ContinuousTests
Source File: ProjectReferenceParser.cs
Source File: ProjectReferenceParser.cs
public void Pop() { try { _nodes.RemoveAt(_nodes.Count - 1); } catch (Exception ex) { DebugLog.Debug.WriteException(ex); } }
0
16. Example
Project: XSharp
Source File: TokenPatterns.cs
Source File: TokenPatterns.cs
public void End() { Assembler.Assembler.ClearCurrentInstance(); RemoveAt(Count - 1); }
0
17. Example
Project: Astrid.Framework
Source File: CurveKeyCollection.cs
Source File: CurveKeyCollection.cs
public void RemoveAt(int index) { if (index != Count && index > -1) innerlist.RemoveAt(index); else throw new ArgumentOutOfRangeException( "Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index", (Exception) null); }
0
18. Example
Project: Astrid.Framework
Source File: Path.cs
Source File: Path.cs
public void RemoveAt(int index) { ControlPoints.RemoveAt(index); _deltaT = 1f / (ControlPoints.Count - 1); }
0
19. Example
Project: MonoGame.Extended
Source File: TextureAtlas.cs
Source File: TextureAtlas.cs
public void RemoveRegion(int index) { _regions.RemoveAt(index); }
0
20. Example
Project: GameCloud.Orleans
Source File: EbFsm.cs
Source File: EbFsm.cs
void _releaseFsm() { mbDestroy = true; while (mQueCurrentState.Count > 0) { EbState s = mQueCurrentState[mQueCurrentState.Count - 1]; s.exit(); mQueCurrentState.RemoveAt(mQueCurrentState.Count - 1); } }
0
21. Example
Project: GameCloud.Orleans
Source File: BsonReader.cs
Source File: BsonReader.cs
private void PopContext() { _stack.RemoveAt(_stack.Count - 1); if (_stack.Count == 0) _currentContext = null; else _currentContext = _stack[_stack.Count - 1]; }
0
22. Example
Project: GameCloud.Orleans
Source File: EbFsm.cs
Source File: EbFsm.cs
void _releaseFsm() { mbDestroy = true; while (mQueCurrentState.Count > 0) { EbState s = mQueCurrentState[mQueCurrentState.Count - 1]; s.exit(); mQueCurrentState.RemoveAt(mQueCurrentState.Count - 1); } }
0
23. Example
Project: mesh_maker_vr
Source File: Materials.cs
Source File: Materials.cs
public void TruncateToCount(int count) { for (int i = triangleMaterials.Count - 1; i >= count; i--) { triangleMaterials.RemoveAt(i); } materialsChanged = true; }
0
24. Example
Project: mesh_maker_vr
Source File: Materials.cs
Source File: Materials.cs
public void RemoveTriangleByIndex(int triangleIndex) { int index = triangleIndex / 3; triangleMaterials.RemoveAt(index); materialsChanged = true; mesh.persistence.changedSinceLastSave = true; // TODO: remove material if all references to it have been removed? }
0
25. Example
Project: mesh_maker_vr
Source File: Triangles.cs
Source File: Triangles.cs
public GameObject InstantiateOrGetFromPool(Vector3 position, Quaternion rotation) { if (triangleInstancesPool.Count > 0) { int index = triangleInstancesPool.Count - 1; GameObject triangleGameObject = triangleInstancesPool[index]; triangleInstancesPool.RemoveAt(index); triangleGameObject.SetActive(true); triangleGameObject.transform.position = position; triangleGameObject.transform.rotation = rotation; return triangleGameObject; } else { return GameObject.Instantiate(mesh.trianglePrefab, position, rotation); } }
0
26. Example
Project: mesh_maker_vr
Source File: Vertices.cs
Source File: Vertices.cs
public GameObject InstantiateOrGetFromPool(Vector3 position, Quaternion rotation) { if (vertexInstancesPool.Count > 0) { int index = vertexInstancesPool.Count - 1; GameObject vertexGameObject = vertexInstancesPool[index]; vertexInstancesPool.RemoveAt(index); vertexGameObject.SetActive(true); vertexGameObject.transform.position = position; vertexGameObject.transform.rotation = rotation; return vertexGameObject; } else { return GameObject.Instantiate(mesh.vertexPrefab, position, rotation); } }
0
27. Example
Project: Ensconce
Source File: Options.cs
Source File: Options.cs
public void RemoveAt (int index) {values.RemoveAt (index);}
0
28. Example
Project: apollo.net
Source File: BsonReader.cs
Source File: BsonReader.cs
private void PopContext() { _stack.RemoveAt(_stack.Count - 1); if (_stack.Count == 0) _currentContext = null; else _currentContext = _stack[_stack.Count - 1]; }
0
29. Example
Project: apollo.net
Source File: JsonReader.cs
Source File: JsonReader.cs
private JsonContainerType Pop() { JsonPosition oldPosition; if (_stack.Count > 0) { oldPosition = _currentPosition; _currentPosition = _stack[_stack.Count - 1]; _stack.RemoveAt(_stack.Count - 1); } else { oldPosition = _currentPosition; _currentPosition = new JsonPosition(); } if (_maxDepth != null && Depth <= _maxDepth) _hasExceededMaxDepth = false; return oldPosition.Type; }
0
30. Example
Project: apollo.net
Source File: JsonWriter.cs
Source File: JsonWriter.cs
private JsonContainerType Pop() { JsonPosition oldPosition = _currentPosition; if (_stack.Count > 0) { _currentPosition = _stack[_stack.Count - 1]; _stack.RemoveAt(_stack.Count - 1); } else { _currentPosition = new JsonPosition(); } return oldPosition.Type; }
0
31. Example
Project: Unity3D.Amqp
Source File: SimpleJSON.cs
Source File: SimpleJSON.cs
public override JSONNode Remove(int aIndex) { if (aIndex < 0 || aIndex >= m_List.Count) return null; JSONNode tmp = m_List[aIndex]; m_List.RemoveAt(aIndex); return tmp; }
0
32. Example
Project: ADVsock2pipe
Source File: Options.cs
Source File: Options.cs
public void RemoveAt(int index) { values.RemoveAt(index); }
0
33. Example
Project: CypherCore
Source File: RecastMeshDetail.cs
Source File: RecastMeshDetail.cs
public static int rccsPop(List<int> list) { //Let it crash if empty, so that we know there s a pb int ret = list[list.Count - 1]; list.RemoveAt(list.Count - 1); return ret; }
0
34. Example
Project: ImageGlass
Source File: ImageListViewColumnHeaderCollection.cs
Source File: ImageListViewColumnHeaderCollection.cs
public void RemoveAt(int index) { mItems.RemoveAt(index); ImageListViewColumnHeader item = mItems[index]; if (item.Type == ColumnType.Custom) { if (mImageListView == null) throw new InvalidOperationException("Owner control is null."); mImageListView.Items.RemoveCustomColumn(item.Guid); } updateDisplayList = true; }
0
35. Example
Project: ImageGlass
Source File: ImageListViewGroupCollection.cs
Source File: ImageListViewGroupCollection.cs
public void RemoveAt(int index) { mItems.RemoveAt(index); collectionModified = true; }
0
36. Example
Project: Brainiac
Source File: BTNavigationHistory.cs
Source File: BTNavigationHistory.cs
public void Pop(out BTAsset asset, out BehaviourTree instance) { if(m_history.Count > 0) { var historyItem = m_history[m_history.Count - 1]; asset = AssetDatabase.LoadAssetAtPath<BTAsset>(historyItem.Item1); instance = historyItem.Item2; m_history.RemoveAt(m_history.Count - 1); } else { asset = null; instance = null; } }
0
37. Example
Project: Brainiac
Source File: BTNavigationHistory.cs
Source File: BTNavigationHistory.cs
public void Trim(int startIndex) { for(int i = m_history.Count - 1; i >= startIndex; i--) { m_history.RemoveAt(i); } }
0
38. Example
Project: Brainiac
Source File: Composite.cs
Source File: Composite.cs
public void RemoveChild(int index) { if(index >= 0 && index < m_children.Count) { m_children.RemoveAt(index); } }
0
39. Example
Project: HoloViveObserver
Source File: Util.cs
Source File: Util.cs
public static void FastRemove<T>( List<T> list, int index ) { list[index] = list[list.Count - 1]; list.RemoveAt( list.Count - 1 ); }
0
40. Example
Project: daemaged.ibnet
Source File: Options.cs
Source File: Options.cs
public void RemoveAt (int index) {values.RemoveAt (index);}
0
41. Example
Project: mcs-ICodeCompiler
Source File: argument.cs
Source File: argument.cs
public void RemoveAt (int index) { args.RemoveAt (index); }
0
42. Example
Project: mcs-ICodeCompiler
Source File: attribute.cs
Source File: attribute.cs
public void ConvertGlobalAttributes (TypeContainer member, NamespaceContainer currentNamespace, bool isGlobal) { var member_explicit_targets = member.ValidAttributeTargets; for (int i = 0; i < Attrs.Count; ++i) { var attr = Attrs[0]; if (attr.ExplicitTarget == null) continue; int ii; for (ii = 0; ii < member_explicit_targets.Length; ++ii) { if (attr.ExplicitTarget == member_explicit_targets[ii]) { ii = -1; break; } } if (ii < 0 || !isGlobal) continue; member.Module.AddAttribute (attr, currentNamespace); Attrs.RemoveAt (i); --i; } }
0
43. Example
Project: mcs-ICodeCompiler
Source File: expression.cs
Source File: expression.cs
MethodSpec FindBestOverload (ResolveContext rc, List<MethodSpec> methods) { for (int ii = 0; ii < Arguments.Count; ++ii) { var arg = Arguments [ii]; var expr = arg.Expr; if (expr is WildcardPattern) continue; var na = arg as NamedArgument; for (int i = 0; i < methods.Count; ++i) { var pd = methods [i].Parameters; int index; if (na != null) { index = pd.GetParameterIndexByName (na.Name); if (index < 1) { methods.RemoveAt (i--); continue; } } else { index = ii + 1; } var m = pd.Types [index]; if (!Convert.ImplicitConversionExists (rc, expr, m)) methods.RemoveAt (i--); } } if (methods.Count != 1) return null; return methods [0]; }
0
44. Example
Project: MagicaVoxelUnity
Source File: Bezier.cs
Source File: Bezier.cs
public void RemoveControlPointAtIndex(int index) { if (index >= 0 && index < _ControlPoints.Count) { _ControlPoints.RemoveAt(index); } }
0
45. Example
Project: MagicaVoxelUnity
Source File: SimpleJSON.cs
Source File: SimpleJSON.cs
public override JSONNode Remove(int aIndex) { if (aIndex < 0 || aIndex >= m_List.Count) return null; JSONNode tmp = m_List[aIndex]; m_List.RemoveAt(aIndex); return tmp; }
0
46. Example
Project: RestAgent
Source File: LinkHistory.cs
Source File: LinkHistory.cs
public void GoBack() { _Links.RemoveAt(_Links.Count - 1); }
0
47. Example
Project: SassyStudio
Source File: ParseItemList.cs
Source File: ParseItemList.cs
public void RemoveAt(int index) { Inner.RemoveAt(index); }
0
48. Example
Project: DTCompileTimeTracker
Source File: CompileTimeTrackerData.cs
Source File: CompileTimeTrackerData.cs
private void Save() { while (this._compileTimeHistory.Count > CompileTimeTrackerData.kHistoryKeyframeMaxCount) { this._compileTimeHistory.RemoveAt(0); } EditorPrefs.SetInt(this._editorPrefKey + "._startTime", this._startTime); EditorPrefs.SetString(this._editorPrefKey + "._compileTimeHistory", CompileTimeKeyframe.SerializeList(this._compileTimeHistory)); }
0
49. Example
Project: XrmUnitTest
Source File: TransactionLog.cs
Source File: TransactionLog.cs
public void RollbackTo(int position) { for (int i = this.logItems.Count - 1; i >= position; i--) { this.logItems[i].Undo(); this.logItems.RemoveAt(i); } }
0
50. Example
Project: seq-forwarder
Source File: Options.cs
Source File: Options.cs
public void RemoveAt (int index) {values.RemoveAt (index);}