Ejemplo n.º 1
0
 internal void Insert(int index, object item)
 {
     if (index < 0)
     {
         throw new ArgumentOutOfRangeException("index");
     }
     BindableVectorToListAdapter.InsertAtHelper(JitHelpers.UnsafeCast <IBindableVector>((object)this), (uint)index, item);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 internal object Indexer_Get(int index)
 {
     if (index < 0)
     {
         throw new ArgumentOutOfRangeException("index");
     }
     return(BindableVectorToListAdapter.GetAt(JitHelpers.UnsafeCast <IBindableVector>((object)this), (uint)index));
 }
Ejemplo n.º 4
0
 internal void RemoveAt(int index)
 {
     if (index < 0)
     {
         throw new ArgumentOutOfRangeException("index");
     }
     BindableVectorToListAdapter.RemoveAtHelper(JitHelpers.UnsafeCast <IBindableVector>((object)this), (uint)index);
 }
Ejemplo n.º 5
0
        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);
            }
        }
Ejemplo n.º 6
0
        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);
        }