// Token: 0x0600647C RID: 25724 RVA: 0x00154C90 File Offset: 0x00152E90
        void IBindableVector.InsertAt(uint index, object value)
        {
            IBindableVector ibindableVectorNoThrow = this.GetIBindableVectorNoThrow();

            if (ibindableVectorNoThrow != null)
            {
                ibindableVectorNoThrow.InsertAt(index, value);
                return;
            }
            this.GetVectorOfT().InsertAt(index, ICustomPropertyProviderProxy <T1, T2> .ConvertTo <T1>(value));
        }
Пример #2
0
        void IBindableVector.InsertAt(uint index, object value)
        {
            IBindableVector bindableVector = GetIBindableVectorNoThrow();

            if (bindableVector != null)
            {
                // IBindableVector -> IBindableVector
                bindableVector.InsertAt(index, value);
            }
            else
            {
                // IBindableVector -> IVector<T>
                GetVectorOfT().InsertAt(index, ConvertTo <T1>(value));
            }
        }
Пример #3
0
 // Token: 0x0600633B RID: 25403 RVA: 0x00151650 File Offset: 0x0014F850
 private static void InsertAtHelper(IBindableVector _this, uint index, object item)
 {
     try
     {
         _this.InsertAt(index, item);
     }
     catch (Exception ex)
     {
         if (-2147483637 == ex._HResult)
         {
             throw new ArgumentOutOfRangeException("index");
         }
         throw;
     }
 }
        private static void InsertAtHelper(IBindableVector _this, uint index, object item)
        {
            try
            {
                _this.InsertAt(index, item);

                // We delegate bounds checking to the underlying collection and if it detected a fault,
                // we translate it to the right exception:
            }
            catch (Exception ex)
            {
                if (HResults.E_BOUNDS == ex.HResult)
                {
                    throw new ArgumentOutOfRangeException(nameof(index));
                }

                throw;
            }
        }
        private static void InsertAtHelper(IBindableVector _this, uint index, object item)
        {
            try
            {
                _this.InsertAt(index, item);

                // We delegate bounds checking to the underlying collection and if it detected a fault,
                // we translate it to the right exception:
            }
            catch (Exception ex)
            {
                if (__HResults.E_BOUNDS == ex._HResult)
                    throw new ArgumentOutOfRangeException("index");

                throw;
            }
        }