// Token: 0x0600647B RID: 25723 RVA: 0x00154C5C File Offset: 0x00152E5C
        void IBindableVector.SetAt(uint index, object value)
        {
            IBindableVector ibindableVectorNoThrow = this.GetIBindableVectorNoThrow();

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

            if (bindableVector != null)
            {
                // IBindableVector -> IBindableVector
                bindableVector.SetAt(index, value);
            }
            else
            {
                // IBindableVector -> IVector<T>
                GetVectorOfT().SetAt(index, ConvertTo <T1>(value));
            }
        }
Beispiel #3
0
 // Token: 0x0600633A RID: 25402 RVA: 0x0015160C File Offset: 0x0014F80C
 private static void SetAt(IBindableVector _this, uint index, object value)
 {
     try
     {
         _this.SetAt(index, value);
     }
     catch (Exception ex)
     {
         if (-2147483637 == ex._HResult)
         {
             throw new ArgumentOutOfRangeException("index");
         }
         throw;
     }
 }
        private static void SetAt(IBindableVector _this, uint index, object value)
        {
            try
            {
                _this.SetAt(index, value);

                // 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 SetAt(IBindableVector _this, uint index, object value)
        {
            try
            {
                _this.SetAt(index, value);

                // 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;
            }
        }