// Token: 0x0600647E RID: 25726 RVA: 0x00154CF0 File Offset: 0x00152EF0
        void IBindableVector.Append(object value)
        {
            IBindableVector ibindableVectorNoThrow = this.GetIBindableVectorNoThrow();

            if (ibindableVectorNoThrow != null)
            {
                ibindableVectorNoThrow.Append(value);
                return;
            }
            this.GetVectorOfT().Append(ICustomPropertyProviderProxy <T1, T2> .ConvertTo <T1>(value));
        }
コード例 #2
0
        internal int Add(object value)
        {
            IBindableVector bindableVector = JitHelpers.UnsafeCast <IBindableVector>(this);

            bindableVector.Append(value);
            uint size = bindableVector.Size;

            if (2147483647U < size)
            {
                throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge"));
            }
            return((int)(size - 1U));
        }
コード例 #3
0
        internal int Add(object value)
        {
            IBindableVector bindableVector = JitHelpers.UnsafeCast <IBindableVector>((object)this);
            object          obj            = value;

            bindableVector.Append(obj);
            uint size = bindableVector.Size;

            if ((uint)int.MaxValue < size)
            {
                throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge"));
            }
            return((int)size - 1);
        }
コード例 #4
0
        void IBindableVector.Append(object value)
        {
            IBindableVector bindableVector = GetIBindableVectorNoThrow();

            if (bindableVector != null)
            {
                // IBindableVector -> IBindableVector
                bindableVector.Append(value);
            }
            else
            {
                // IBindableVector -> IVector<T>
                GetVectorOfT().Append(ConvertTo <T1>(value));
            }
        }
コード例 #5
0
        // int Add(object value)
        internal int Add(object value)
        {
            IBindableVector _this = Unsafe.As <IBindableVector>(this);

            _this.Append(value);

            uint size = _this.Size;

            if (((uint)int.MaxValue) < size)
            {
                throw new InvalidOperationException(SR.InvalidOperation_CollectionBackingListTooLarge);
            }

            return((int)(size - 1));
        }
コード例 #6
0
        internal int Add(object value)
        {
            IBindableVector _this = JitHelpers.UnsafeCast <IBindableVector>(this);

            _this.Append(value);

            uint size = _this.Size;

            if (((uint)Int32.MaxValue) < size)
            {
                throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingListTooLarge"));
            }

            return((int)(size - 1));
        }