// Token: 0x060062B1 RID: 25265 RVA: 0x0014FE78 File Offset: 0x0014E078 internal ConstantSplittableMap(IMapView <TKey, TValue> data) { if (data == null) { throw new ArgumentNullException("data"); } if (2147483647U < data.Size) { Exception ex = new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingDictionaryTooLarge")); ex.SetErrorCode(-2147483637); throw ex; } int size = (int)data.Size; this.firstItemIndex = 0; this.lastItemIndex = size - 1; this.items = this.CreateKeyValueArray(size, data.GetEnumerator()); }
internal ConstantSplittableMap(IMapView <TKey, TValue> data) { if (data == null) { throw new ArgumentNullException("data"); } if ((uint)int.MaxValue < data.Size) { InvalidOperationException operationException = new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingDictionaryTooLarge")); int hr = -2147483637; operationException.SetErrorCode(hr); throw operationException; } int count = (int)data.Size; this.firstItemIndex = 0; this.lastItemIndex = count - 1; this.items = this.CreateKeyValueArray(count, data.GetEnumerator()); }
internal ConstantSplittableMap(IMapView <TKey, TValue> data) { if (data == null) { throw new ArgumentNullException("data"); } if (((UInt32)Int32.MaxValue) < data.Size) { Exception e = new InvalidOperationException(Environment.GetResourceString("InvalidOperation_CollectionBackingDictionaryTooLarge")); e.SetErrorCode(__HResults.E_BOUNDS); throw e; } int size = (int)data.Size; this.firstItemIndex = 0; this.lastItemIndex = size - 1; this.items = CreateKeyValueArray(size, data.GetEnumerator()); }