internal void Insert(int index, object item) { if (index < 0) { throw new ArgumentOutOfRangeException("index"); } BindableVectorToListAdapter.InsertAtHelper(JitHelpers.UnsafeCast <IBindableVector>((object)this), (uint)index, item); }
internal void Indexer_Set(int index, object value) { if (index < 0) { throw new ArgumentOutOfRangeException("index"); } BindableVectorToListAdapter.SetAt(JitHelpers.UnsafeCast <IBindableVector>((object)this), (uint)index, value); }
internal object Indexer_Get(int index) { if (index < 0) { throw new ArgumentOutOfRangeException("index"); } return(BindableVectorToListAdapter.GetAt(JitHelpers.UnsafeCast <IBindableVector>((object)this), (uint)index)); }
internal void RemoveAt(int index) { if (index < 0) { throw new ArgumentOutOfRangeException("index"); } BindableVectorToListAdapter.RemoveAtHelper(JitHelpers.UnsafeCast <IBindableVector>((object)this), (uint)index); }
internal void Remove(object item) { IBindableVector bindableVector = JitHelpers.UnsafeCast <IBindableVector>(this); uint num; bool flag = bindableVector.IndexOf(item, out num); if (flag) { if (2147483647U < num) { throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge")); } BindableVectorToListAdapter.RemoveAtHelper(bindableVector, num); } }
internal void Remove(object item) { IBindableVector _this = JitHelpers.UnsafeCast <IBindableVector>((object)this); uint index; if (!_this.IndexOf(item, out index)) { return; } if ((uint)int.MaxValue < index) { throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge")); } BindableVectorToListAdapter.RemoveAtHelper(_this, index); }