17808 references to Length
ComSvcConfig (11)
ComplusTypeValidator.cs (3)
120if (methods.Length == 0) 188if (methods.Length == 0) 240if (methods.Length == 0)
EndpointConfigContainer.cs (2)
76if (serviceParams.Length != 2) 509if (serviceParams.Length != 2)
Options.cs (3)
281if (args.Length > 0) 376if (elements.Length == 1) 394if (methodNames.Length == 0)
parent\svcutil\CommandLineParser.cs (1)
163arguments = new ArgumentDictionary(cmd.Length);
SvcFileManager.cs (1)
279if (parameters.Length != 2)
WasEndpointConfigContainer.cs (1)
317if (serviceParams.Length != 2)
mscorlib (2975)
microsoft\win32\oavariantlib.cs (1)
110for (int i=0; i<ClassTypes.Length; i++) {
microsoft\win32\registrykey.cs (24)
375byte* pSecDescriptor = stackalloc byte[sd.Length]; 376Buffer.Memcpy(pSecDescriptor, 0, sd, 0, sd.Length); 509for (int i=0; i<keys.Length; i++) { 546for (int i=0; i<keys.Length; i++) { 630BCLDebug.Assert(index >= 0 && index < hkeyNames.Length, "index is out of range!"); 686if (index < 0 || index >= hkeyNames.Length || ((int)hKey & 0xFFFFFFF0) != 0x80000000) { 1016namelen = name.Length; // Don't remove this. The API's doesn't work if this is not properly initialised. 1090namelen = name.Length; 1279if (blob.Length > 0 && blob[blob.Length - 1] == (char)0) { 1280data = new String(blob, 0, blob.Length - 1); 1305if (blob.Length > 0 && blob[blob.Length - 1] == (char)0) { 1306data = new String(blob, 0, blob.Length - 1); 1334if (blob.Length > 0 && blob[blob.Length - 1] != (char)0) { 1336char[] newBlob = new char[checked(blob.Length + 1)]; 1337for (int i = 0; i < blob.Length; i++) { 1340newBlob[newBlob.Length - 1] = (char)0; 1346blob[blob.Length - 1] = (char)0; 1352int len = blob.Length; 1509for (int i=0; i<dataStrings.Length; i++) { 1523for (int i=0; i<dataStrings.Length; i++) { 1552dataBytes.Length);
microsoft\win32\win32native.cs (1)
343if (bytes == null || bytes.Length != 44) {
system\_localdatastore.cs (7)
128if (slotIdx >= m_DataTable.Length) 162LocalDataStoreElement element = (slotIdx < m_DataTable.Length) ? m_DataTable[slotIdx] : null; 191if (slot >= m_DataTable.Length) 215if (slotIdx >= m_DataTable.Length) 220Contract.Assert(capacity >= m_DataTable.Length, "LocalDataStore corrupted: capacity >= m_DataTable.Length"); 226Array.Copy(m_DataTable, NewDataTable, m_DataTable.Length); 233Contract.Assert(slotIdx < m_DataTable.Length, "LocalDataStore corrupted: slotIdx < m_DataTable.Length");
system\_localdatastoremgr.cs (3)
98LocalDataStore store = new LocalDataStore(this, m_SlotInfoTable.Length); 153int slotTableSize = m_SlotInfoTable.Length; 332return m_SlotInfoTable.Length;
system\activationarguments.cs (4)
127clone.m_appManifestPaths = new string[m_appManifestPaths.Length]; 128Array.Copy(m_appManifestPaths, clone.m_appManifestPaths, clone.m_appManifestPaths.Length); 132clone.m_activationData = new string[m_activationData.Length]; 133Array.Copy(m_activationData, clone.m_activationData, clone.m_activationData.Length);
system\activationcontext.cs (3)
135_manifestPaths = new String[manifestPaths.Length]; 158if (i!=manifestPaths.Length) 266return Path.GetDirectoryName(_manifestPaths[_manifestPaths.Length-1]);
system\activator.cs (3)
84if (activationAttributes != null && activationAttributes.Length > 0){ 92if(activationAttributes.Length > 1 || !(activationAttributes[0] is UrlAttribute)) 642if (Attr.Length > 0)
system\AggregateException.cs (2)
162for (int i = 0; i < exceptionsCopy.Length; i++) 240for (int i = 0; i < exceptionsCopy.Length; i++)
system\AppContext\AppContextDefaultValues.cs (4)
90if (components.Length < 2 || components.Length > 3) 111for (int i = 1; i < components.Length; i++) 116if (keyValuePair.Length != 2)
system\appdomain.cs (25)
153for (int i=0;i<list.Length;i++) 189for (int i=0;i<Info.Length;i++) 633if (attrs != null && attrs.Length > 0) 635Contract.Assert(attrs.Length == 1); 846for (int i = 0; i < value.Length; ++i) 851if (i != value.Length - 1) 1544if ((pk == null) || (pk.Length == 0)) 2223if(_Policies == null || _Policies.Length == 0) 2229for(int i = 0;i < _Policies.Length; i++) { 2898using(MemoryStream stream = new MemoryStream( blob, 1, blob.Length - 1 )) { 3127int len = ds.Length; 3147int len = ds.Length; 3170int len = ds.Length; 3189int len = ds.Length; 3730Contract.Requires(((Object[])arg).Length >= 8); 3752for (int i=0; i<propertyNames.Length; i++) 4074if (lhsKey.Length < rhsKey.Length) 4078if (lhsKey.Length > rhsKey.Length) 4084for (int i = 0; i < lhsKey.Length; ++i) 4119for( int i = 0; i < keyToken.Length; ++i ) 4165BCLDebug.Assert(propertyNames.Length == propertyValues.Length, "propertyNames.Length == propertyValues.Length"); 4167for (int i = 0; i < propertyNames.Length; ++i) {
system\AppDomainSetup.cs (7)
140int mineSize = _Entries.Length; 141int otherSize = other.Length; 845int len = dirArray.Length; 870int size = directories.Length; 1262 int length = A.Length; 1263 if (length != B.Length) 1412int size = directories.Length;
system\applicationactivator.cs (2)
106if (attrs.Length > 0) 109if (attrs.Length > 0)
system\applicationid.cs (7)
47m_publicKeyToken = new byte[publicKeyToken.Length]; 48Array.Copy(publicKeyToken, 0, m_publicKeyToken, 0, publicKeyToken.Length); 57byte[] publicKeyToken = new byte[m_publicKeyToken.Length]; 58Array.Copy(m_publicKeyToken, 0, publicKeyToken, 0, m_publicKeyToken.Length); 126if (this.m_publicKeyToken.Length != other.m_publicKeyToken.Length) 129for (int i = 0; i < this.m_publicKeyToken.Length; ++i) {
system\array.cs (123)
54Contract.Ensures(Contract.ValueAtReturn(out array).Length == newSize); 63if (larray.Length != newSize) { 65Array.Copy(larray, 0, newArray, 0, larray.Length > newSize? newSize : larray.Length); 79Contract.Ensures(Contract.Result<Array>().Length == length); 144if (lengths.Length == 0) 147Contract.Ensures(Contract.Result<Array>().Rank == lengths.Length); 158for (int i=0;i<lengths.Length;i++) 163return InternalCreate((void*)t.TypeHandle.Value,lengths.Length,pLengths,null); 171if (lengths.Length == 0) 174Contract.Ensures(Contract.Result<Array>().Rank == lengths.Length); 177int[] intLengths = new int[lengths.Length]; 179for (int i = 0; i < lengths.Length; ++i) 200if (lengths.Length != lowerBounds.Length) 202if (lengths.Length == 0) 205Contract.Ensures(Contract.Result<Array>().Rank == lengths.Length); 216for (int i=0;i<lengths.Length;i++) 222return InternalCreate((void*)t.TypeHandle.Value,lengths.Length,pLengths,pLowerBounds); 357if (Rank != indices.Length) 363InternalGetReference(&elemref, indices.Length, pIndices); 453if (Rank != indices.Length) 457int[] intIndices = new int[indices.Length]; 459for (int i = 0; i < indices.Length; ++i) 521if (Rank != indices.Length) 527InternalGetReference(&elemref, indices.Length, pIndices); 572if (Rank != indices.Length) 576int[] intIndices = new int[indices.Length]; 578for (int i = 0; i < indices.Length; ++i) 681{ get { return Length; } } 722Array.Clear(this, this.GetLowerBound(0), this.Length); 759if (o == null || this.Length != o.Length) { 766while (i < o.Length && c == 0) { 789if (o == null || o.Length != this.Length) { 794while (i < o.Length) { 819for (int i = (this.Length >= 8 ? this.Length - 8 : 0); i < this.Length; i++) { 847return BinarySearch(array, lb, array.Length, value, null); 890return BinarySearch(array, lb, array.Length, value, comparer); 918if (array.Length - (index - lb) < length) 991return BinarySearch<T>(array, 0, array.Length, value, null); 1000return BinarySearch<T>(array, 0, array.Length, value, comparer); 1016if (array.Length - index < length) 1040Contract.Ensures(Contract.Result<TOutput[]>().Length == array.Length); 1043TOutput[] newArray = new TOutput[array.Length]; 1044for( int i = 0; i< array.Length; i++) { 1064Array.Copy(this, GetLowerBound(0), array, index, Length); 1083Contract.Ensures(Contract.Result<T[]>().Length == 0); 1103for(int i = 0 ; i < array.Length; i++) { 1122for(int i = 0 ; i < array.Length; i++) { 1134Contract.Ensures(Contract.Result<int>() < array.Length); 1137return FindIndex(array, 0, array.Length, match); 1144Contract.Ensures(Contract.Result<int>() < array.Length); 1147return FindIndex(array, startIndex, array.Length - startIndex, match); 1155if( startIndex < 0 || startIndex > array.Length ) { 1159if (count < 0 || startIndex > array.Length - count) { 1166Contract.Ensures(Contract.Result<int>() < array.Length); 1186for(int i = array.Length - 1 ; i >= 0; i--) { 1200return FindLastIndex(array, array.Length - 1, array.Length, match); 1222if(array.Length == 0) { 1230if ( startIndex < 0 || startIndex >= array.Length) { 1259for(int i = 0 ; i < array.Length; i++) { 1274return new ArrayEnumerator(this, lowerBound, Length); 1285Contract.Ensures(Contract.Result<int>() < array.GetLowerBound(0) + array.Length); 1288return IndexOf(array, value, lb, array.Length); 1301Contract.Ensures(Contract.Result<int>() < array.GetLowerBound(0) + array.Length); 1304return IndexOf(array, value, startIndex, array.Length - startIndex + lb); 1320Contract.Ensures(Contract.Result<int>() < array.GetLowerBound(0) + array.Length); 1324if (startIndex < lb || startIndex > array.Length + lb) 1326if (count < 0 || count > array.Length - startIndex + lb) 1375(Contract.Result<int>() >= 0 && Contract.Result<int>() < array.Length && EqualityComparer<T>.Default.Equals(value, array[Contract.Result<int>()]))); 1378return IndexOf(array, value, 0, array.Length); 1385Contract.Ensures(Contract.Result<int>() < array.Length); 1388return IndexOf(array, value, startIndex, array.Length - startIndex); 1396if (startIndex < 0 || startIndex > array.Length ) { 1400if (count < 0 || count > array.Length - startIndex) { 1403Contract.Ensures(Contract.Result<int>() < array.Length); 1425Contract.Ensures(Contract.Result<int>() < array.GetLowerBound(0) + array.Length); 1428return LastIndexOf(array, value, array.Length - 1 + lb, array.Length); 1440Contract.Ensures(Contract.Result<int>() < array.GetLowerBound(0) + array.Length); 1457Contract.Ensures(Contract.Result<int>() < array.GetLowerBound(0) + array.Length); 1460if (array.Length == 0) { 1464if (startIndex < lb || startIndex >= array.Length + lb) 1513Contract.Ensures(Contract.Result<int>() < array.Length); 1516return LastIndexOf(array, value, array.Length - 1, array.Length); 1523Contract.Ensures(Contract.Result<int>() < array.Length); 1526return LastIndexOf(array, value, startIndex, (array.Length == 0)? 0 : (startIndex + 1)); 1533Contract.Ensures(Contract.Result<int>() < array.Length); 1536if(array.Length == 0) { 1553if ( startIndex < 0 || startIndex >= array.Length) { 1583Reverse(array, array.GetLowerBound(0), array.Length); 1599if (array.Length - (index - array.GetLowerBound(0)) < length) 1647Sort(array, null, array.GetLowerBound(0), array.Length, null); 1661Sort(keys, items, keys.GetLowerBound(0), keys.Length, null); 1695Sort(array, null, array.GetLowerBound(0), array.Length, comparer); 1711Sort(keys, items, keys.GetLowerBound(0), keys.Length, comparer); 1744if (keys.Length - (index - keys.GetLowerBound(0)) < length || (items != null && (index - items.GetLowerBound(0)) > items.Length - length)) 1783Sort<T>(array, array.GetLowerBound(0), array.Length, null); 1791Sort<TKey, TValue>(keys, items, 0, keys.Length, null); 1809Sort<T>(array, 0, array.Length, comparer); 1817Sort<TKey, TValue>(keys, items, 0, keys.Length, comparer); 1827if (array.Length - index < length) 1860if (keys.Length - index < length || (items != null && index > items.Length - length)) 1913for(int i = 0 ; i < array.Length; i++) { 2106IntroSort(left, length + left - 1, 2 * IntrospectiveSortUtilities.FloorLog2(keys.Length)); 2423IntroSort(left, length + left - 1, 2 * IntrospectiveSortUtilities.FloorLog2(keys.Length)); 2581_endIndex = array.Length; 2631_indices[_indices.Length-1]--; 2692_indices[_indices.Length-1]--; 2749int length = _this.Length; 2766Array.Copy(_this, 0, array, index, _this.Length); 2774return _this.Length; 2785if ((uint)index >= (uint)_this.Length) { 2797if ((uint)index >= (uint)_this.Length) {
system\arraysegment.cs (6)
45_count = array.Length; 56if (array.Length - offset < count) 70|| (null != _array && _offset >= 0 && _count >= 0 && _offset + _count <= _array.Length), 89|| (null != _array && _offset >= 0 && _count >= 0 && _offset + _count <= _array.Length), 108|| (null != _array && _offset >= 0 && _count >= 0 && _offset + _count <= _array.Length), 297Contract.Requires(arraySegment.Offset + arraySegment.Count <= arraySegment.Array.Length);
system\attribute.cs (30)
256for (int i =0;i < objAttr.Length;i++) 266if (objAttr.Length == 0) 284for (int i =0;i < objAttr.Length;i++) 303for (int i =0;i < objAttr.Length;i++) 313ret = CreateAttributeArrayHelper(type,temp.Length + count); 314Array.Copy(temp,ret,temp.Length); 316int offset = temp.Length; 318for (int i =0;i < attributes.Length;i++) 350for (int i =0; i < objAttr.Length; i++) 370for (int i = 0; i < attributes.Length; i++) 385if (indexParams.Length > 0) 387Type[] indexParamTypes = new Type[indexParams.Length]; 388for (int i = 0; i < indexParams.Length; i++) 400for (int i = 0; i < attributes.Length; i++) 428if (obj.Length == 1) 431if (obj.Length == 0) 545if (attrib == null || attrib.Length == 0) 548if (attrib.Length == 1) 655if (attrib == null || attrib.Length == 0) 658if (attrib.Length == 0) 661if (attrib.Length == 1) 736if (attrib == null || attrib.Length == 0) 739if (attrib.Length == 1) 814if (attrib == null || attrib.Length == 0) 817if (attrib.Length == 1) 849for (int i = 0; i < thisFields.Length; i++) 882if (thisValueArray.Length != thatValueArray.Length) 890for (int j = 0; j < thisValueArray.Length; j++) 919for (int i = 0; i < fields.Length; i++)
system\bcldebug.cs (3)
194for (int i=0; i<switches.Length; i++) { 257for (int i=0; i<messages.Length; i++) { 290for (int i=0; i<messages.Length; i++) {
system\bitconverter.cs (34)
43Contract.Ensures(Contract.Result<byte[]>().Length == 1); 54Contract.Ensures(Contract.Result<byte[]>().Length == 2); 65Contract.Ensures(Contract.Result<byte[]>().Length == 2); 79Contract.Ensures(Contract.Result<byte[]>().Length == 4); 93Contract.Ensures(Contract.Result<byte[]>().Length == 8); 106Contract.Ensures(Contract.Result<byte[]>().Length == 2); 116Contract.Ensures(Contract.Result<byte[]>().Length == 4); 126Contract.Ensures(Contract.Result<byte[]>().Length == 8); 137Contract.Ensures(Contract.Result<byte[]>().Length == 4); 148Contract.Ensures(Contract.Result<byte[]>().Length == 8); 160if ((uint)startIndex >= value.Length) { 164if (startIndex > value.Length - 2) { 179if ((uint) startIndex >= value.Length) { 183if (startIndex > value.Length -2) { 211if ((uint) startIndex >= value.Length) { 215if (startIndex > value.Length -4) { 242if ((uint) startIndex >= value.Length) { 246if (startIndex > value.Length -8) { 278if ((uint)startIndex >= value.Length) 280if (startIndex > value.Length - 2) 294if ((uint)startIndex >= value.Length) 296if (startIndex > value.Length - 4) 310if ((uint)startIndex >= value.Length) 312if (startIndex > value.Length - 8) 325if ((uint)startIndex >= value.Length) 327if (startIndex > value.Length - 4) 341if ((uint)startIndex >= value.Length) 343if (startIndex > value.Length - 8) 366if (startIndex < 0 || startIndex >= value.Length && startIndex > 0) { // Don't throw for a 0 length array. 374if (startIndex > value.Length - length) { 401return new String(chArray, 0, chArray.Length - 1); 410return ToString(value, 0, value.Length); 419return ToString(value, startIndex, value.Length - startIndex); 436if (startIndex > value.Length - 1)
system\buffer.cs (2)
246Contract.Assert(dest.Length - destIndex >= len, "not enough bytes in dest"); 261Contract.Assert(src.Length - srcIndex >= len, "not enough bytes in src");
system\cfgparser.cs (1)
264pathDepth = treeRootPath.Length - 1;
system\collections\arraylist.cs (10)
109return _items.Length; 119if (value != _items.Length) { 205if (_size == _items.Length) EnsureCapacity(_size + 1); 346if (_items.Length < min) { 347int newCapacity = _items.Length == 0? _defaultCapacity: _items.Length * 2; 464if (_size == _items.Length) EnsureCapacity(_size + 1); 916if (array.Length - arrayIndex < count) 2275if (array.Length - index < _baseSize) 2290if (array.Length - arrayIndex < count)
system\collections\bitarray.cs (21)
55for (int i = 0; i < m_array.Length; i++) { 78if (bytes.Length > Int32.MaxValue / BitsPerByte) { 82m_array = new int[GetArrayLength(bytes.Length, BytesPerInt32)]; 83m_length = bytes.Length * BitsPerByte; 87while (bytes.Length - j >= 4) { 95Contract.Assert(bytes.Length - j >= 0, "BitArray byteLength problem"); 96Contract.Assert(bytes.Length - j < 4, "BitArray byteLength problem #2"); 98switch (bytes.Length - j) { 121m_array = new int[GetArrayLength(values.Length, BitsPerInt32)]; 122m_length = values.Length; 124for (int i = 0;i<values.Length;i++) { 147if (values.Length > Int32.MaxValue / BitsPerInt32) { 151m_array = new int[values.Length]; 152m_length = values.Length * BitsPerInt32; 154Array.Copy(values, m_array, values.Length); 330if (newints > m_array.Length || newints + _ShrinkThreshold < m_array.Length) { 333Array.Copy(m_array, newarray, newints > m_array.Length ? m_array.Length : newints); 375if ((array.Length - index) < arrayLength) 384if (array.Length - index < m_length)
system\Collections\Concurrent\ConcurrentDictionary.cs (51)
294m_budget = m_tables.m_buckets.Length / m_tables.m_locks.Length; 342for (int i = 0; i < locks.Length; i++) 347int[] countPerLock = new int[locks.Length]; 352m_budget = buckets.Length / locks.Length; 434GetBucketAndLockNo(comparer.GetHashCode(key), out bucketNo, out lockNo, tables.m_buckets.Length, tables.m_locks.Length); 507GetBucketAndLockNo(comparer.GetHashCode(key), out bucketNo, out lockNoUnused, tables.m_buckets.Length, tables.m_locks.Length); 559GetBucketAndLockNo(hashcode, out bucketNo, out lockNo, tables.m_buckets.Length, tables.m_locks.Length); 622Tables newTables = new Tables(new Node[DEFAULT_CAPACITY], m_tables.m_locks, new int[m_tables.m_countPerLock.Length], m_tables.m_comparer); 624m_budget = Math.Max(1, newTables.m_buckets.Length / newTables.m_locks.Length); 666for (int i = 0; i < m_tables.m_locks.Length && count >= 0; i++) 671if (array.Length - count < index || count < 0) //"count" itself or "count + index" can overflow 700for (int i = 0; i < m_tables.m_locks.Length; i++) 730for (int i = 0; i < buckets.Length; i++) 748for (int i = 0; i < buckets.Length; i++) 766for (int i = 0; i < buckets.Length; i++) 789for (int i = 0; i < buckets.Length; i++) 818GetBucketAndLockNo(hashcode, out bucketNo, out lockNo, tables.m_buckets.Length, tables.m_locks.Length); 1036for (int i = 0; i < m_tables.m_countPerLock.Length; i++) 1285for (int i = 0; i < m_tables.m_countPerLock.Length; i++) 1689for (int i = 0; i < tables.m_locks.Length && count >= 0; i++) 1694if (array.Length - count < index || count < 0) //"count" itself or "count + index" can overflow 1801for (int i = 0; i < tables.m_countPerLock.Length; i++) 1809if (approxCount < tables.m_buckets.Length / 4) 1829newLength = tables.m_buckets.Length * 2 + 1; 1864AcquireLocks(1, tables.m_locks.Length, ref locksAcquired); 1869if (m_growLockArray && tables.m_locks.Length < MAX_LOCK_NUMBER) 1871newLocks = new object[tables.m_locks.Length * 2]; 1872Array.Copy(tables.m_locks, newLocks, tables.m_locks.Length); 1874for (int i = tables.m_locks.Length; i < newLocks.Length; i++) 1881int[] newCountPerLock = new int[newLocks.Length]; 1884for (int i = 0; i < tables.m_buckets.Length; i++) 1899GetBucketAndLockNo(nodeHashCode, out newBucketNo, out newLockNo, newBuckets.Length, newLocks.Length); 1924m_budget = Math.Max(1, newBuckets.Length / newLocks.Length); 1968CDSCollectionETWBCLProvider.Log.ConcurrentDictionary_AcquiringAllLocks(m_tables.m_buckets.Length); 1977AcquireLocks(1, m_tables.m_locks.Length, ref locksAcquired); 1978Assert(locksAcquired == m_tables.m_locks.Length); 2042for (int i = 0; i < m_tables.m_buckets.Length; i++) 2076for (int i = 0; i < m_tables.m_buckets.Length; i++) 2200m_serializationConcurrencyLevel = tables.m_locks.Length; 2201m_serializationCapacity = tables.m_buckets.Length; 2217for (int i = 0; i < locks.Length; i++)
system\Collections\Concurrent\ConcurrentStack.cs (4)
152for (int i = 0; i < m_serializationArray.Length; i++) 387PushRange(items, 0, items.Length); 483int length = items.Length; 593return TryPopRange(items, 0, items.Length);
system\collections\concurrent\PartitionerStatic.cs (7)
726Contract.Assert(destArray.Length == 1, "Expected destArray to be of length 1, instead its length is " + destArray.Length); 841m_FillBufferCurrentPosition >= localFillBufferRef.Length) 843for (int i = 0; i < localFillBufferRef.Length; i++) 1347get { return m_sharedReader.Length; } 1610get { return m_array.Length; } 1630Contract.Assert(startIndex >= 0 && endIndex <= array.Length - 1);
system\collections\emptyreadonlydictionaryinternal.cs (1)
49if ( array.Length - index < this.Count )
system\collections\generic\arraysorthelper.cs (48)
131Contract.Assert( index >= 0 && length >= 0 && (keys.Length - index >= length), "Check the arguments in the caller!"); 191Contract.Requires(index >= 0 && length >= 0 && (array.Length - index >= length), "Check the arguments in the caller!"); 299Contract.Requires(length <= keys.Length); 300Contract.Requires(length + left <= keys.Length); 305IntroSort(keys, left, length + left - 1, 2 * IntrospectiveSortUtilities.FloorLog2(keys.Length), comparer); 313Contract.Requires(hi < keys.Length); 361Contract.Requires(hi < keys.Length); 398Contract.Requires(hi < keys.Length); 417Contract.Requires(lo < keys.Length); 441Contract.Requires(hi <= keys.Length); 471Contract.Assert(index >= 0 && length >= 0 && (keys.Length - index >= length), "Check the arguments in the caller!"); 536Contract.Assert(index >= 0 && length >= 0 && (array.Length - index >= length), "Check the arguments in the caller!"); 598Contract.Requires(0 <= a && a < keys.Length); 599Contract.Requires(0 <= b && b < keys.Length); 625Contract.Requires(0 <= left && left < keys.Length); 626Contract.Requires(0 <= right && right < keys.Length); 699Contract.Requires(length <= keys.Length); 700Contract.Requires(length + left <= keys.Length); 705IntroSort(keys, left, length + left - 1, 2 * IntrospectiveSortUtilities.FloorLog2(keys.Length)); 712Contract.Requires(hi < keys.Length); 759Contract.Requires(hi < keys.Length); 803Contract.Requires(hi < keys.Length); 821Contract.Requires(lo < keys.Length); 845Contract.Requires(hi <= keys.Length); 907Contract.Assert(index >= 0 && length >= 0 && (keys.Length - index >= length), "Check the arguments in the caller!"); 948Contract.Requires(values == null || values.Length >= keys.Length); 950Contract.Requires(0 <= a && a < keys.Length); 951Contract.Requires(0 <= b && b < keys.Length); 1055Contract.Requires(length <= keys.Length); 1056Contract.Requires(length + left <= keys.Length); 1057Contract.Requires(length + left <= values.Length); 1062IntroSort(keys, values, left, length + left - 1, 2 * IntrospectiveSortUtilities.FloorLog2(keys.Length), comparer); 1071Contract.Requires(hi < keys.Length); 1120Contract.Requires(hi < keys.Length); 1158Contract.Requires(hi < keys.Length); 1177Contract.Requires(lo < keys.Length); 1208Contract.Requires(hi <= keys.Length); 1239Contract.Assert( index >= 0 && length >= 0 && (keys.Length - index >= length), "Check the arguments in the caller!"); 1411Contract.Requires(length <= keys.Length); 1412Contract.Requires(length + left <= keys.Length); 1413Contract.Requires(length + left <= values.Length); 1418IntroSort(keys, values, left, length + left - 1, 2 * IntrospectiveSortUtilities.FloorLog2(keys.Length)); 1426Contract.Requires(hi < keys.Length); 1474Contract.Requires(hi < keys.Length); 1519Contract.Requires(hi < keys.Length); 1537Contract.Requires(lo < keys.Length); 1567Contract.Requires(hi <= keys.Length);
system\collections\generic\dictionary.cs (25)
218for (int i = 0; i < buckets.Length; i++) buckets[i] = -1; 251if (index < 0 || index > array.Length ) { 255if (array.Length - index < Count) { 289info.AddValue(HashSizeName, buckets == null ? 0 : buckets.Length); //This is the length of the bucket array. 304for (int i = buckets[hashCode % buckets.Length]; i >= 0; i = entries[i].next) { 314for (int i = 0; i < buckets.Length; i++) buckets[i] = -1; 327int targetBucket = hashCode % buckets.Length; 354if (count == entries.Length) 357targetBucket = hashCode % buckets.Length; 387Resize(entries.Length, true); 413for (int i = 0; i < buckets.Length; i++) buckets[i] = -1; 424for (int i=0; i<array.Length; i++) { 444Contract.Assert(newSize >= entries.Length); 446for (int i = 0; i < newBuckets.Length; i++) newBuckets[i] = -1; 474int bucket = hashCode % buckets.Length; 541if (index < 0 || index > array.Length) { 545if (array.Length - index < Count) { 821if (index < 0 || index > array.Length) { 825if (array.Length - index < dictionary.Count) { 882if (index < 0 || index > array.Length) { 886if (array.Length - index < dictionary.Count) { 1008if (index < 0 || index > array.Length) { 1012if (array.Length - index < dictionary.Count) { 1069if (index < 0 || index > array.Length) { 1073if (array.Length - index < dictionary.Count)
system\collections\generic\equalitycomparer.cs (1)
355if (count > array.Length - startIndex)
system\collections\generic\list.cs (9)
113return _items.Length; 121if (value != _items.Length) { 221if (_size == _items.Length) EnsureCapacity(_size + 1); 406if (_items.Length < min) { 407int newCapacity = _items.Length == 0? _defaultCapacity : _items.Length * 2; 675if (_size == _items.Length) EnsureCapacity(_size + 1); 1000Contract.Ensures(Contract.Result<T[]>().Length == Count); 1017int threshold = (int)(((double)_items.Length) * 0.9);
system\collections\hashtable.cs (44)
456for (int i = 0; i < buckets.Length; i++){ 482int bucket = lbuckets.Length; 512uint hashcode = InitHash(key, lbuckets.Length, out seed, out incr); 516int bucketNumber = (int) (seed % (uint)lbuckets.Length); 525bucketNumber = (int) (((long)bucketNumber + incr)% (uint)lbuckets.Length); 526} while (b.hash_coll < 0 && ++ntry < lbuckets.Length); 541for (int i = buckets.Length; --i >= 0;) { 547for (int i = buckets.Length; --i >= 0;) { 563for (int i = lbuckets.Length; --i >= 0;) { 579for (int i = lbuckets.Length; --i >= 0;) { 598if (array.Length - arrayIndex < Count) 613for (int i = lbuckets.Length; --i >= 0;) { 632for (int i = lbuckets.Length; --i >= 0;) { 656uint hashcode = InitHash(key, lbuckets.Length, out seed, out incr); 660int bucketNumber = (int) (seed % (uint)lbuckets.Length); 701bucketNumber = (int) (((long)bucketNumber + incr)% (uint)lbuckets.Length); 702} while (b.hash_coll < 0 && ++ntry < lbuckets.Length); 719int rawsize = HashHelpers.ExpandPrime(buckets.Length); 725rehash( buckets.Length, false ); 750for (nb = 0; nb < buckets.Length; nb++){ 892uint hashcode = InitHash(key, buckets.Length, out seed, out incr); 896int bucketNumber = (int) (seed % (uint)buckets.Length); 944rehash(buckets.Length, true); 981rehash(buckets.Length, true); 999bucketNumber = (int) (((long)bucketNumber + incr)% (uint)buckets.Length); 1000} while (++ntry < buckets.Length); 1023if(buckets.Length > HashHelpers.HashCollisionThreshold && HashHelpers.IsWellKnownEqualityComparer(_keycomparer)) 1030rehash(buckets.Length, true); 1050uint incr = (uint)(1 + ((seed * HashPrime) % ((uint)newBuckets.Length - 1))); 1051int bucketNumber = (int) (seed % (uint)newBuckets.Length); 1065bucketNumber = (int) (((long)bucketNumber + incr)% (uint)newBuckets.Length); 1084uint hashcode = InitHash(key, buckets.Length, out seed, out incr); 1088int bn = (int) (seed % (uint)buckets.Length); // bucketNumber 1114bn = (int) (((long)bn + incr)% (uint)buckets.Length); 1115} while (b.hash_coll < 0 && ++ntry < buckets.Length); 1192info.AddValue(HashSizeName, buckets.Length); //This is the length of the bucket array. 1280if (serKeys.Length!=serValues.Length) { 1283for (int i=0; i<serKeys.Length; i++) { 1315if (array.Length - arrayIndex < _hashtable.count) 1356if (array.Length - arrayIndex < _hashtable.count) 1561bucket = hashtable.buckets.Length; 1625bucket = hashtable.buckets.Length; 1723for (int i = 0; i < primes.Length; i++)
system\collections\listdictionaryinternal.cs (2)
207if ( array.Length - index < this.Count ) 341if (array.Length - index < list.Count)
system\collections\objectmodel\collection.cs (1)
191if (array.Length - index < Count) {
system\collections\objectmodel\readonlycollection.cs (1)
136if (array.Length - index < Count) {
system\collections\objectmodel\readonlydictionary.cs (3)
244if (index < 0 || index > array.Length) { 248if (array.Length - index < Count) { 576if (array.Length - index < collection.Count) {
system\collections\queue.cs (20)
95int firstPart = (_array.Length - _head < numToCopy) ? _array.Length - _head : numToCopy; 99Array.Copy(_array, 0, q._array, _array.Length - _head, numToCopy); 123Array.Clear(_array, _head, _array.Length - _head); 145int arrayLen = array.Length; 152int firstPart = (_array.Length - _head < numToCopy) ? _array.Length - _head : numToCopy; 156Array.Copy(_array, 0, array, index+_array.Length - _head, numToCopy); 162if (_size == _array.Length) { 163int newcapacity = (int)((long)_array.Length * (long)_growFactor / 100); 164if (newcapacity < _array.Length + _MinimumGrow) { 165newcapacity = _array.Length + _MinimumGrow; 171_tail = (_tail + 1) % _array.Length; 193_head = (_head + 1) % _array.Length; 238index = (index + 1) % _array.Length; 246return _array[(_head + i) % _array.Length]; 262Array.Copy(_array, _head, arr, 0, _array.Length - _head); 263Array.Copy(_array, 0, arr, _array.Length - _head, _tail); 278Array.Copy(_array, _head, newarray, 0, _array.Length - _head); 279Array.Copy(_array, 0, newarray, _array.Length - _head, _tail);
system\collections\sortedlist.cs (6)
197return keys.Length; 205if (value != keys.Length) { 335if (array.Length - arrayIndex < Count) 361int newCapacity = keys.Length == 0? 16: keys.Length * 2; 486if (_size == keys.Length) EnsureCapacity(_size + 1);
system\collections\stack.cs (3)
131if (array.Length - index < _size) 183if (_size == _array.Length) { 184Object[] newArray = new Object[2*_array.Length];
system\configuration\assemblies\assemblyhash.cs (2)
34int length = value.Length; 46int length = value.Length;
system\console.cs (1)
1829Contract.Assert(_cancelCallbacks == null || _cancelCallbacks.GetInvocationList().Length > 0, "Teach Console::CancelKeyPress to handle a non-null but empty list of callbacks");
system\convert.cs (8)
2137return ToBase64String(inArray, 0, inArray.Length, Base64FormattingOptions.None); 2147return ToBase64String(inArray, 0, inArray.Length, options); 2172inArrayLength = inArray.Length; 2195Contract.Ensures(Contract.Result<int>() <= outArray.Length); 2220Contract.Ensures(Contract.Result<int>() <= outArray.Length); 2230inArrayLength = inArray.Length; 2240outArrayLength = outArray.Length; 2393if (offset > inArray.Length - length)
system\decimal.cs (3)
283if (bits.Length == 4) { 572Contract.Requires((buffer != null && buffer.Length >= 16), "[GetBytes]buffer != null && buffer.Length >= 16"); 595Contract.Requires((buffer != null && buffer.Length >= 16), "[ToDecimal]buffer != null && buffer.Length >= 16");
system\defaultbinder.cs (103)
42if (match == null || match.Length == 0) 59int[][] paramOrder = new int[candidates.Length][]; 61for (i = 0; i < candidates.Length; i++) 66paramOrder[i] = new int[(par.Length > args.Length) ? par.Length : args.Length]; 71for (j = 0; j < args.Length; j++) 84Type[] paramArrayTypes = new Type[candidates.Length]; 86Type[] argTypes = new Type[args.Length]; 91for (i = 0; i < args.Length; i++) 108for (i = 0; i < candidates.Length; i++) 120if (par.Length == 0) 123if (args.Length != 0) 136else if (par.Length > args.Length) 141for (j = args.Length; j < par.Length - 1; j++) 147if (j != par.Length - 1) 162else if (par.Length < args.Length) 166int lastArgPos = par.Length - 1; 183int lastArgPos = par.Length - 1; 197int argsToCheck = (paramArrayType != null) ? par.Length - 1 : args.Length; 251if (paramArrayType != null && j == par.Length - 1) 254for (; j < args.Length; j++) 282if (j == args.Length) 302state = new BinderState((int[])paramOrder[0].Clone(), args.Length, paramArrayTypes[0] != null); 310if (parms.Length == args.Length) 314Object[] objs = new Object[parms.Length]; 315int lastPos = parms.Length - 1; 322else if (parms.Length > args.Length) 324Object[] objs = new Object[parms.Length]; 326for (i=0;i<args.Length;i++) 329for (;i<parms.Length - 1;i++) 344Object[] objs = new Object[parms.Length]; 345int paramArrayPos = parms.Length - 1; 347objs[paramArrayPos] = Array.UnsafeCreateInstance(paramArrayTypes[0], args.Length - paramArrayPos); 348Array.Copy(args, paramArrayPos, (System.Array)objs[paramArrayPos], 0, args.Length - paramArrayPos); 382state = new BinderState((int[])paramOrder[currentMin].Clone(), args.Length, paramArrayTypes[currentMin] != null); 389if (parameters.Length == args.Length) 393Object[] objs = new Object[parameters.Length]; 394int lastPos = parameters.Length - 1; 401else if (parameters.Length > args.Length) 403Object[] objs = new Object[parameters.Length]; 405for (i=0;i<args.Length;i++) 408for (;i<parameters.Length - 1;i++) 426Object[] objs = new Object[parameters.Length]; 427int paramArrayPos = parameters.Length - 1; 429objs[paramArrayPos] = Array.UnsafeCreateInstance(paramArrayTypes[currentMin], args.Length - paramArrayPos); 430Array.Copy(args, paramArrayPos, (System.Array)objs[paramArrayPos], 0, args.Length - paramArrayPos); 460for (i=0;i<candidates.Length;i++) { 524Type[] realTypes = new Type[types.Length]; 525for (i=0;i<types.Length;i++) { 533if (match == null || match.Length == 0) 541for (i=0;i<candidates.Length;i++) { 543if (par.Length != types.Length) 545for (j=0;j<types.Length;j++) { 561if (j == types.Length) 572int[] paramOrder = new int[types.Length]; 573for (i=0;i<types.Length;i++) 609if (match == null || match.Length == 0) 619int indexesLength = (indexes != null) ? indexes.Length : 0; 620for (i=0;i<candidates.Length;i++) { 625if (par.Length != indexesLength) 716int paramArrayPos = args.Length - 1; 717if (args.Length == binderState.m_originalSize) 721Object[] newArgs = new Object[args.Length]; 723for (int i = paramArrayPos, j = 0; i < newArgs.Length; i++, j++) { 730if (args.Length > binderState.m_originalSize) { 745MethodBase[] aExactMatches = new MethodBase[match.Length]; 748for (int i=0;i<match.Length;i++) { 750if (par.Length == 0) { 754for (j=0;j<types.Length;j++) { 761if (j < types.Length) 787int typesLength = (types != null) ? types.Length : 0; 788for (int i=0;i<match.Length;i++) { 824for (int i = 0; i < types.Length; i++) 841if (paramArrayType1 != null && paramOrder1[i] >= p1.Length - 1) 846if (paramArrayType2 != null && paramOrder2[i] >= p2.Length - 1) 869if (p1.Length > p2.Length) 873else if (p2.Length > p1.Length) 1037if (params1.Length != params2.Length) 1040int numParams = params1.Length; 1112object[] varsCopy = new object[vars.Length]; 1113for (int i = 0; i < vars.Length; i ++) 1116for (int i = 0; i < vars.Length; i ++) 1127bool[] used = new bool[pars.Length]; 1130for (int i=0;i<pars.Length;i++) 1133for (int i=0;i<names.Length;i++) { 1135for (j=0;j<pars.Length;j++) { 1144if (j == pars.Length) 1150for (int i=0;i<pars.Length;i++) { 1152for (;pos<pars.Length;pos++) {
system\delegate.cs (2)
205if (delegates == null || delegates.Length == 0) 209for (int i = 1; i < delegates.Length; i++)
system\delegateserializationholder.cs (1)
287return ((MulticastDelegate)invocationList[0]).NewMulticastDelegate(invocationList, invocationList.Length);
system\deployment\isolationinterop.cs (10)
1552cPropertiesToSet = new IntPtr(SetProperties.Length); 1563cPropertiesToTest = new IntPtr(TestProperties.Length); 1620if ((Props == null) || (Props.Length == 0)) 1624IntPtr retval = Marshal.AllocCoTaskMem(iSlotSize * Props.Length); 1626for (int i = 0; i != Props.Length; i++) 1767if ((operations == null) || (operations.Length == 0)) 1770uint[] rgDispositions = new uint[operations.Length]; 1771int[] rgResults = new int[operations.Length]; 1773_pStore.Transact(new IntPtr(operations.Length), operations, rgDispositions, rgResults); 2440for (int i = 0; i != opList.Length; i++)
system\diagnostics\eventing\eventprovider.cs (9)
314while (keyIndex < data.Length) 319if (valueEnd < data.Length) 366while (idx < buffer.Length && buffer[idx] != 0) 559Marshal.Copy((IntPtr)filterData->Ptr, data, 0, data.Length); 701*(int*)dataBuffer = blobRet.Length; 709dataDescriptor->Size = (uint)blobRet.Length; 920argCount = eventPayload.Length; 945for (index = 0; index < eventPayload.Length; index++) 958if (eventPayload.Length + idx + 1 - index > s_etwMaxNumberArguments)
system\diagnostics\eventing\eventsource.cs (52)
466return (manifestBytes == null) ? null : Encoding.UTF8.GetString(manifestBytes, 0, manifestBytes.Length); 670for (int i = 0; i < m_traits.Length - 1; i += 2) 1036int blobSize = arg1.Length; 1056int blobSize = arg2.Length; 1479if (m_traits != null && m_traits.Length % 2 != 0) 1530this.providerMetadata.Length); 1666int end = output.Length < 20 ? output.Length : 20; 2073var eventData = new object[eventTypes.typeInfos.Length]; 2074for (int i = 0; i < eventTypes.typeInfos.Length; i++) 2091bool typesMatch = args.Length == infos.Length; 2094while (typesMatch && i < args.Length) 2143int paramCount = m_eventData[eventId].Parameters.Length; 2289for (int evtId = 0; evtId < dispatcher.m_EventEnabled.Length; ++evtId) 2403if (eventChannel != EventChannel.None && this.m_channelData != null && this.m_channelData.Length > (int)eventChannel) 2632for (int i = 0; i < m_eventData.Length; i++) 2783for (int i = 0; i < m_eventData.Length; i++) 2982if (eventId >= m_eventData.Length) 2991if (eventId >= dispatcher.m_EventEnabled.Length) 3005for (int i = 0; i < m_eventData.Length; i++) 3041dispatcher.m_EventEnabled = new bool[m_eventData.Length]; 3079int dataLeft = rawManifest.Length; 3295eventData = new EventMetadata[methods.Length + 1]; 3357for (int i = 0; i < methods.Length; i++) 3459if (eventData != null && startEventId < eventData.Length) 3487for (int fieldIdx = 0; fieldIdx < args.Length; fieldIdx++) 3537|| manifest.GetChannelData().Length > 0 3583if (args.Length > 0 && args[0].ParameterType == typeof(Guid) && 3586var newargs = new ParameterInfo[args.Length - 1]; 3587Array.Copy(args, 1, newargs, 0, args.Length - 1); 3640if (eventData == null || eventData.Length <= eventAttribute.EventId) 3642EventMetadata[] newValues = new EventMetadata[Math.Max(eventData.Length + 16, eventAttribute.EventId + 1)]; 3643Array.Copy(eventData, newValues, eventData.Length); 3672int idx = eventData.Length; 3679if (eventData.Length - idx > 2) // allow one wasted slot. 3682Array.Copy(eventData, newValues, newValues.Length); 3695enabledArray = new bool[m_eventData.Length]; 3715if (evtId < eventData.Length && eventData[evtId].Descriptor.EventId != 0) 3722for (int idx = 0; idx < eventData.Length; ++idx) 3807for (int idx = 0; idx < instrs.Length; ) 3861for (int search = idx + 1; search < instrs.Length; search++) 3897if (idx >= instrs.Length || instrs[idx] >= 6) 4612for (int i = 0; i < eventSourcesSnapshot.Length; i++) 5277if (cur.m_eventId >= 0 && cur.m_eventId < source.m_eventData.Length) 5299if (filterList.m_eventId >= 0 && filterList.m_eventId < source.m_eventData.Length) 5345for (int i = 0; i < activityFilterStrings.Length; ++i) 5370for (int j = 0; j < source.m_eventData.Length; j++) 5381if (eventId < 0 || eventId >= source.m_eventData.Length) 5688if (0 <= eventId && eventId < source.m_eventData.Length) 5709for (int i = 0; i < keyValues.Length / 2; i++) 6520ArraySortHelper<string>.IntrospectiveSort(sortedStrings, 0, sortedStrings.Length, Comparer<string>.Default);
System\Diagnostics\Eventing\TraceLogging\ArrayTypeInfo.cs (4)
39count = value.Length; 40for (int i = 0; i < value.Length; i++) 52var serializedArray = new object[array.Length]; 53for (int i = 0; i < array.Length; i++)
System\Diagnostics\Eventing\TraceLogging\ConcurrentSet.cs (3)
35var hi = oldItems.Length; 80var hi = oldItems.Length; 102int oldLength = oldItems.Length;
System\Diagnostics\Eventing\TraceLogging\DataCollector.cs (3)
239if (this.buffer == null || this.buffer.Length < required) 248if (this.buffer == null || this.buffer.Length < required) 256var newSize = this.buffer == null ? 64 : this.buffer.Length;
System\Diagnostics\Eventing\TraceLogging\FieldMetadata.cs (1)
90checked((ushort)(custom == null ? 0 : custom.Length)),
System\Diagnostics\Eventing\TraceLogging\InvokeTypeInfo.cs (4)
33if (typeAnalysis.properties.Length != 0) 36this.accessors = new PropertyAccessor<ContainerType>[this.properties.Length]; 37for (int i = 0; i < this.accessors.Length; i++) 89for (int i = 0; i < this.properties.Length; i++)
System\Diagnostics\Eventing\TraceLogging\Statics.cs (3)
432result = attributes.Length != 0; 449if (attributes.Length != 0) 469if (attributes.Length != 0)
System\Diagnostics\Eventing\TraceLogging\TraceLoggingDataCollector.cs (16)
219DataCollector.ThreadInstance.AddBinary(value, value == null ? 0 : value.Length); 230DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, sizeof(bool)); 242DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, sizeof(sbyte)); 253DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, sizeof(short)); 265DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, sizeof(ushort)); 276DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, sizeof(int)); 288DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, sizeof(uint)); 299DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, sizeof(long)); 311DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, sizeof(ulong)); 322DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, IntPtr.Size); 334DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, UIntPtr.Size); 345DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, sizeof(float)); 356DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, sizeof(double)); 367DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, sizeof(char)); 378DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, 16); 389DataCollector.ThreadInstance.AddArray(value, value == null ? 0 : value.Length, sizeof(byte));
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventSource.cs (14)
440descriptors[0].SetMetadata(pMetadata0, this.providerMetadata.Length, 2); 441descriptors[1].SetMetadata(pMetadata1, nameInfo.nameMetadata.Length, 1); 442descriptors[2].SetMetadata(pMetadata2, eventTypes.typeMetadata.Length, 1); 457for (int i = 0; i < eventTypes.typeInfos.Length; i++) 527var descriptors = stackalloc EventData[eventTypes.dataCount + eventTypes.typeInfos.Length * 2 + 3]; 534descriptors[0].SetMetadata(pMetadata0, this.providerMetadata.Length, 2); 535descriptors[1].SetMetadata(pMetadata1, nameInfo.nameMetadata.Length, 1); 536descriptors[2].SetMetadata(pMetadata2, eventTypes.typeMetadata.Length, 1); 539for (int i = 0; i < eventTypes.typeInfos.Length; i++) 610descriptors[0].SetMetadata(pMetadata0, this.providerMetadata.Length, 2); 611descriptors[1].SetMetadata(pMetadata1, nameInfo.nameMetadata.Length, 1); 612descriptors[2].SetMetadata(pMetadata2, eventTypes.typeMetadata.Length, 1); 740for (int i = 0; i < m_traits.Length - 1; i += 2) 764int startPos = providerMetadata.Length-traitMetaData.Count;
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventTypes.cs (8)
104for (int i = 0; i < typeInfos.Length; ++i) 201ret = this.nameInfos.GetOrAdd(new NameInfo(name, tags, this.typeMetadata.Length)); 216var recursionCheck = new List<Type>(paramInfos.Length); 217var result = new TraceLoggingTypeInfo[paramInfos.Length]; 218for (int i = 0; i < paramInfos.Length; ++i) 235var recursionCheck = new List<Type>(types.Length); 236var result = new TraceLoggingTypeInfo[types.Length]; 237for (int i = 0; i < types.Length; i++)
System\Diagnostics\Eventing\TraceLogging\TypeAnalysis.cs (1)
40propertyInfo.GetIndexParameters().Length != 0)
system\diagnostics\stackframe.cs (1)
263while (k < typars.Length)
system\diagnostics\stacktrace.cs (6)
263rgMethodBase = (rgMethodHandle == null) ? null : new MethodBase[rgMethodHandle.Length]; 266for (int i = 0; i < rgMethodHandle.Length; i++) 286rgMethodHandle = (rgMethodBase == null) ? null : new IntPtr[rgMethodBase.Length]; 289for (int i = 0; i < rgMethodBase.Length; i++) 682while (k < typars.Length) 699for (int j = 0; j < pi.Length; j++)
system\enum.cs (6)
165Contract.Assert(names.Length == values.Length); 167int index = values.Length - 1; 200if (values.Length > 0 && values[0] == 0) 432for (int i = 0; i < values.Length; i++) 438for (int j = 0; j < enumNames.Length; j++)
system\environment.cs (3)
475for(int i=1; i<varArray.Length-1; i++) { // Skip first and last tokens 790for(int i=0; i<block.Length; i++) { 1566int sidLen = sid.Length;
system\exception.cs (1)
521if (args.Length!=5) {
system\globalization\calendardata.cs (5)
199this.iCurrentEra = this.saEraNames.Length; 210if (this.saEraNames == null || this.saEraNames.Length == 0 || String.IsNullOrEmpty(this.saEraNames[0])) 275if (this.saEraNames == null || this.saEraNames.Length == 0 || String.IsNullOrEmpty(this.saEraNames[0])) 296if (this.saAbbrevEraNames == null || this.saAbbrevEraNames.Length == 0 || String.IsNullOrEmpty(this.saAbbrevEraNames[0])) 337if (this.saAbbrevEraNames == null || this.saAbbrevEraNames.Length == 0 || String.IsNullOrEmpty(this.saAbbrevEraNames[0]))
system\globalization\CalendricalCalculationsHelper.cs (1)
139for (int i=1; i<coefficients.Length; i++)
system\globalization\compareinfo.cs (1)
1127length = InternalGetSortKey(m_dataHandle, m_handleOrigin, m_sortName, flags, source, source.Length, keyData, keyData.Length);
system\globalization\culturedata.cs (13)
842for (int i = 0; i < specifics.Length; i++) 1012int arrayLength = cultureNames.Length; 1021for (int i = 0; i < cultureNames.Length; i++) 1028Contract.Assert(arrayLength == cultureNames.Length + 2, "CultureData.nativeEnumCultureNames() Incorrect array size"); 1029cultures[cultureNames.Length] = new CultureInfo("zh-CHS"); 1030cultures[cultureNames.Length + 1] = new CultureInfo("zh-CHT"); 2003if (longTimes == null || longTimes.Length == 0) 2032if (shortTimes == null || shortTimes.Length == 0) 2054string[] shortTimes = new string[LongTimes.Length]; 2056for (int i = 0; i < LongTimes.Length; i++) 2945for (int i = 0; i < array.Length; i++) 3287values[values.Length - 1] = 0; 3292for (i = 0, j = 0; i < win32Str.Length && j < values.Length; i += 2, j++)
system\globalization\cultureinfo.cs (3)
1556Contract.Assert(this.m_cultureData.CalendarIds.Length > 0, "this.m_cultureData.CalendarIds.Length > 0"); 1585Calendar [] cals = new Calendar[calID.Length]; 1586for (int i = 0; i < cals.Length; i++) {
system\globalization\datetimeformat.cs (6)
1088results = new String[allFormats.Length]; 1089for (int i = 0; i < allFormats.Length; i++) 1097results = new String[allFormats.Length]; 1098for (int i = 0; i < allFormats.Length; i++) 1126for (int i = 0; i < allStandardFormats.Length; i++) 1129for (int j = 0; j < strings.Length; j++)
system\globalization\datetimeformatinfo.cs (62)
253Contract.Assert(this.abbreviatedDayNames.Length == 7, "[DateTimeFormatInfo.GetAbbreviatedDayOfWeekNames] Expected 7 day names in a week"); 276Contract.Assert(this.m_superShortDayNames.Length == 7, "[DateTimeFormatInfo.internalGetSuperShortDayNames] Expected 7 day names in a week"); 293Contract.Assert(this.dayNames.Length == 7, "[DateTimeFormatInfo.GetDayOfWeekNames] Expected 7 day names in a week"); 310Contract.Assert(this.abbreviatedMonthNames.Length == 12 || this.abbreviatedMonthNames.Length == 13, 329Contract.Assert(this.monthNames.Length == 12 || this.monthNames.Length == 13, 378Contract.Assert(this.allLongTimePatterns.Length > 0, "[DateTimeFormatInfo.Populate] Expected some long time patterns"); 381Contract.Assert(this.allShortTimePatterns.Length > 0, "[DateTimeFormatInfo.Populate] Expected some short time patterns"); 384Contract.Assert(this.allLongDatePatterns.Length > 0, "[DateTimeFormatInfo.Populate] Expected some long date patterns"); 387Contract.Assert(this.allShortDatePatterns.Length > 0, "[DateTimeFormatInfo.Populate] Expected some short date patterns"); 390Contract.Assert(this.allYearMonthPatterns.Length > 0, "[DateTimeFormatInfo.Populate] Expected some year month patterns"); 632for (int i = 0; i < this.OptionalCalendars.Length; i++) 752for (int i = 0; i < EraNames.Length; i++) { 760for (int i = 0; i < AbbreviatedEraNames.Length; i++) { 766for (int i = 0; i < AbbreviatedEnglishEraNames.Length; i++) { 806if ((--era) < EraNames.Length && (era >= 0)) { 826if (AbbreviatedEraNames.Length == 0) { 834if ((--era) < m_abbrevEraNames.Length && (era >= 0)) { 1380Contract.Requires(values.Length >= length); 1404if (value.Length != 7) { 1408CheckNullValue(value, value.Length); 1432if (value.Length != 7) 1437CheckNullValue(value, value.Length); 1457if (value.Length != 7) 1462CheckNullValue(value, value.Length); 1482if (value.Length != 13) 1487CheckNullValue(value, value.Length - 1); 1508if (value.Length != 13) 1513CheckNullValue(value, value.Length - 1); 1567if ((month < 1) || (month > monthNamesArray.Length)) { 15701, monthNamesArray.Length)); 1588Contract.Assert(this.m_genitiveAbbreviatedMonthNames.Length == 13, 1597Contract.Assert(this.genitiveMonthNames.Length == 13, 1615Contract.Assert(this.leapYearMonthNames.Length == 13, 1664String[] result = new String[patterns1.Length * patterns2.Length]; 1668for (int i = 0; i < patterns1.Length; i++) 1670for (int j = 0; j < patterns2.Length; j++) 1686for (int i = 0; i < DateTimeFormat.allStandardFormats.Length; i++) 1689for (int j = 0; j < strings.Length; j++) 1808Contract.Assert(patterns != null && patterns.Length > 0, 1821for (i = 0; i < patterns.Length; i++) 1832if (i < patterns.Length) 1844newPatterns = new String[patterns.Length + 1]; 1847Array.Copy(patterns, 0, newPatterns, 1, patterns.Length); 1909Contract.Assert(this.allYearMonthPatterns.Length > 0, 1928Contract.Assert(this.allShortDatePatterns.Length > 0, 1946Contract.Assert(this.allLongDatePatterns.Length > 0, 1963Contract.Assert(this.allShortTimePatterns.Length > 0, 1980Contract.Assert(this.allLongTimePatterns.Length > 0, 2055if (patterns.Length == 0) 2061for (int i=0; i<patterns.Length; i++) 2125if (value.Length != 13) 2130CheckNullValue(value, value.Length - 1); 2153if (value.Length != 13) 2158CheckNullValue(value, value.Length - 1); 2511for (int i = 0; i < dateWords.Length; i++) 2585for (int i = 1; i <= eras.Length; i++) { 2601for (int i = 1; i <= jaDtfi.Calendar.Eras.Length; i++) { 2612for (int i = 1; i <= twDtfi.Calendar.Eras.Length; i++) { 2644for (int i = 0; i < AbbreviatedEnglishEraNames.Length; i++) {
system\globalization\datetimeformatinfoscanner.cs (10)
507for (i = 0; i < datePatterns.Length; i++) 514for (i = 0; i < datePatterns.Length; i++) 520for (i = 0; i < datePatterns.Length; i++) 530for (i = 0; i < datePatterns.Length; i++) 537for (i = 0; i < datePatterns.Length; i++) 643if (array1.Length != array2.Length) 649for (int i=0; i<array1.Length; i++) 670for (int i=0; i<array.Length; i++) 695for (int i=0; i<array.Length; i++)
system\globalization\datetimeparse.cs (4)
196if (formats.Length == 0) { 207for (int i = 0; i < formats.Length; i++) { 3230for (int i = 0; i < eras.Length; i++) { 4667for (int i = 0; i < words.Length; i++) {
system\globalization\eastasianlunisolarcalendar.cs (2)
120for (int i = 0; i < mEraInfo.Length; i++) { 143for (int i = 0; i < mEraInfo.Length; i++) {
system\globalization\gregoriancalendarhelper.cs (6)
168for (int i = 0; i < m_EraInfo.Length; i++) 496for (int i = 0; i < m_EraInfo.Length; i++) { 508m_eras = new int[m_EraInfo.Length]; 509for (int i = 0; i < m_EraInfo.Length; i++) { 539for (int i = 0; i < m_EraInfo.Length; i++) { 553for (int i = 0; i < m_EraInfo.Length; i++) {
system\globalization\hebrewnumber.cs (2)
277static char maxHebrewNumberCh = (char)(minHebrewNumberCh + HebrewValues.Length - 1); 360if (index >= 0 && index < HebrewValues.Length ) {
system\globalization\japanesecalendar.cs (15)
181if (valueNames != null && valueNames.Length > 0) 183registryEraRanges = new EraInfo[valueNames.Length]; 186for (int i = 0; i < valueNames.Length; i++) 232for (int i = 0; i < registryEraRanges.Length; i++) 235registryEraRanges[i].era = registryEraRanges.Length - i; 315if (names.Length != 4) return null; 518String[] eraNames = new String[eras.Length]; 520for (int i = 0; i < eras.Length; i++) 523eraNames[i] = eras[eras.Length - i - 1].eraName; 532String[] erasAbbrev = new String[eras.Length]; 534for (int i = 0; i < eras.Length; i++) 537erasAbbrev[i] = eras[eras.Length - i - 1].abbrevEraName; 546String[] erasEnglish = new String[eras.Length]; 548for (int i = 0; i < eras.Length; i++) 551erasEnglish[i] = eras[eras.Length - i - 1].englishEraName;
system\globalization\japaneselunisolarcalendar.cs (2)
229EraInfo[] newEras = new EraInfo[baseEras.Length]; 233for (int i = 0; i < baseEras.Length; i++)
system\globalization\numberformatinfo.cs (4)
189if (nativeDig.Length != 10) 195for(int i = 0; i < nativeDig.Length; i++) 364for (int i = 0; i < groupSize.Length; i++) 368if (i == groupSize.Length - 1 && groupSize[i] == 0)
system\globalization\sortkey.cs (7)
146if (key1Data.Length == 0) { 147if (key2Data.Length == 0) { 152if (key2Data.Length == 0) { 156int compLen = (key1Data.Length<key2Data.Length)?key1Data.Length:key2Data.Length;
system\globalization\stringinfo.cs (5)
116return(this.Indexes.Length); 133return (this.SubstringByTextElements(startingTextElement, this.Indexes.Length - startingTextElement)); 146if(this.String.Length == 0 || startingTextElement >= this.Indexes.Length) { 156if(startingTextElement > this.Indexes.Length - lengthInTextElements) { 163if(startingTextElement + lengthInTextElements == this.Indexes.Length) {
system\globalization\timespanformat.cs (1)
357for (int i = 0; i < literals.Length; i++)
system\globalization\timespanparse.cs (2)
1537if (formats.Length == 0) { 1546for (int i = 0; i < formats.Length; i++) {
system\globalization\umalquracalendar.cs (2)
240DateMapping[] mapping = new DateMapping[rawData.Length / 4]; 241for (int i = 0; i < mapping.Length; i++)
system\guid.cs (2)
54if (b.Length != 16) 95if(d.Length != 8)
system\io\__consolestream.cs (6)
128if (buffer.Length - offset < count) 155if (buffer.Length - offset < count) 181if (bytes.Length - offset < count) 186if (bytes.Length == 0) { 241Contract.Requires(bytes.Length >= offset + count, "bytes.Length >= offset + count"); 244if (bytes.Length == 0)
system\io\binaryreader.cs (8)
310if (buffer.Length - index < count) { 380if (position < 0 || numBytes < 0 || position + numBytes > byteBuffer.Length) { 384if (index < 0 || charsRemaining < 0 || index + charsRemaining > buffer.Length) { 482Contract.Ensures(Contract.Result<char[]>().Length <= count); 511if (buffer.Length - index < count) 524Contract.Ensures(Contract.Result<byte[]>().Length <= Contract.OldValue(count)); 543if (numRead != result.Length) { 554if (m_buffer != null && (numBytes < 0 || numBytes > m_buffer.Length)) {
system\io\binarywriter.cs (8)
173OutStream.Write(buffer, 0, buffer.Length); 199numBytes = _encoder.GetBytes(&ch, 1, pBytes, _buffer.Length, true); 215byte[] bytes = _encoding.GetBytes(chars, 0, chars.Length); 216OutStream.Write(bytes, 0, bytes.Length); 227OutStream.Write(bytes, 0, bytes.Length); 366_maxChars = _largeByteBuffer.Length / _encoding.GetMaxByteCount(1); 369if (len <= _largeByteBuffer.Length) { 396byteLen = _encoder.GetBytes(pChars + charStart, charCount, pBytes, _largeByteBuffer.Length, charCount == numLeft);
system\io\bufferedstream.cs (9)
179if (_buffer.Length != _bufferSize || _bufferSize >= MaxShadowBufferSize) 508if (array.Length - offset < count) 574if (buffer.Length - offset < count) 673if (buffer.Length - offset < count) 741Contract.Assert(array.Length - offset >= count); 863if (array.Length - offset < count) 1003if (buffer.Length - offset < count) 1085if (buffer.Length - offset < count) 1149Contract.Assert(array.Length - offset >= count);
system\io\directory.cs (3)
280for (int j = 0 ; j < securityList.Length; j++) 313byte * bytesOnStack = stackalloc byte[sd.Length]; 314Buffer.Memcpy(bytesOnStack, 0, sd, 0, sd.Length);
system\io\driveinfo.cs (2)
213DriveInfo[] di = new DriveInfo[drives.Length]; 214for(int i=0; i<drives.Length; i++)
system\io\file.cs (1)
981fs.Write(bytes, 0, bytes.Length);
system\io\filestream.cs (10)
1504if (array.Length - offset < count) 1758if (array.Length - offset < count) 1878if (array.Length - offset < numBytes) 2190if (array.Length - offset < numBytes) 2494if (bytes.Length - offset < count) 2501if (bytes.Length==0) { 2551if (bytes.Length - offset < count) 2558if (bytes.Length==0) { 2611if (buffer.Length - offset < count) 2663if (buffer.Length - offset < count)
system\io\isolatedstorage\isolatedstoragefile.cs (25)
655if (dirList == null || dirList.Length == 0) 662Reserve(s_DirSize*((ulong)dirList.Length)); 664LongPathDirectory.CreateDirectory(dirList[dirList.Length-1]); 670Unreserve(s_DirSize*((ulong)dirList.Length)); 1430if ((dirs != null) && (dirs.Length > 0)) 1432if (dirs.Length > 1) 1457if ((files == null) || (files.Length == 0)) 1462if ((files.Length > 1) || NotIDFile(files[0])) 1473if ((files.Length > 2) || 1475((files.Length == 2) && 2169for (int i=0; i<nodes1.Length; ++i) { 2172for (int j=0; j<nodes2.Length; ++j) { 2182for (int i=0; i<nodes1.Length; ++i) { 2200for (int i=0; i<nodes1.Length; ++i) { 2203for (int j=0; j<nodes2.Length; ++j) { 2485if (listSize==list.Length) { 2486Array.Resize(ref list, 2 * list.Length); 2509if (listSize == list.Length) 2847if (m_RootDir.Length == 0) 2855if (m_nSubDir >= m_SubDir.Length) 2857m_nSubDir = m_SubDir.Length; // to avoid wrap aournd. 2874if (m_nRootDir >= m_RootDir.Length) 2876m_nRootDir = m_RootDir.Length; // to prevent wrap around 2883if (m_SubDir.Length == 0) 2912else if (m_nRootDir >= m_RootDir.Length)
system\io\longpath.cs (3)
525for (int j = 0; j < securityList.Length; j++) 547byte * bytesOnStack = stackalloc byte[sd.Length]; 548Buffer.Memcpy(bytesOnStack, 0, sd, 0, sd.Length);
system\io\memorystream.cs (6)
93_length = _capacity = buffer.Length; 115if (buffer.Length - index < count) 346if (buffer.Length - offset < count) 383if (buffer.Length - offset < count) 564if (buffer.Length - offset < count) 610if (buffer.Length - offset < count)
system\io\path.cs (4)
1242for (int i = 0; i < paths.Length; i++) { 1267for (int i = firstComponent; i < paths.Length; i++) { 1313Contract.Assert(((buff.Length % 5) == 0), "Unexpected hash length"); 1319l = buff.Length;
system\io\pinnedbuffermemorystream.cs (1)
37int len = array.Length;
system\io\stream.cs (2)
171while ((bytesRead = await ReadAsync(buffer, 0, buffer.Length, cancellationToken).ConfigureAwait(false)) != 0) 227while ((read = Read(buffer, 0, buffer.Length)) != 0)
system\io\streamreader.cs (28)
256_checkPreamble = (_preamble.Length > 0); 390if (buffer.Length - index < count) 451if (buffer.Length - index < count) 525_maxCharsPerBuffer = encoding.GetMaxCharCount(byteBuffer.Length); 540Contract.Assert(bytePos <= _preamble.Length, "_compressPreamble was called with the current bytePos greater than the preamble buffer length. Are two threads using this StreamReader at the same time?"); 541int len = (byteLen >= (_preamble.Length))? (_preamble.Length - bytePos) : (byteLen - bytePos); 551Contract.Assert(bytePos <= _preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 554if (bytePos == _preamble.Length) { 556CompressBuffer(_preamble.Length); 574Contract.Assert(bytePos <= _preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 575int len = stream.Read(byteBuffer, bytePos, byteBuffer.Length - bytePos); 595byteLen = stream.Read(byteBuffer, 0, byteBuffer.Length); 605_isBlocked = (byteLen < byteBuffer.Length); 659Contract.Assert(bytePos <= _preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 660int len = stream.Read(byteBuffer, bytePos, byteBuffer.Length - bytePos); 685byteLen = stream.Read(byteBuffer, 0, byteBuffer.Length); 696_isBlocked = (byteLen < byteBuffer.Length); 910if (buffer.Length - index < count) 970Contract.Assert(BytePos_Prop <= Preamble_Prop.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 972int len = await tmpStream.ReadAsync(tmpByteBuffer, tmpBytePos, tmpByteBuffer.Length - tmpBytePos).ConfigureAwait(false); 1008ByteLen_Prop = await tmpStream.ReadAsync(tmpByteBuffer, 0, tmpByteBuffer.Length).ConfigureAwait(false); 1022IsBlocked_Prop = (ByteLen_Prop < tmpByteBuffer.Length); 1098if (buffer.Length - index < count) 1196Contract.Assert(BytePos_Prop <= Preamble_Prop.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 1198int len = await tmpStream.ReadAsync(tmpByteBuffer, tmpBytePos, tmpByteBuffer.Length - tmpBytePos).ConfigureAwait(false); 1218ByteLen_Prop = await tmpStream.ReadAsync(tmpByteBuffer, 0, tmpByteBuffer.Length).ConfigureAwait(false); 1228IsBlocked_Prop = (ByteLen_Prop < tmpByteBuffer.Length);
system\io\streamwriter.cs (12)
309if (preamble.Length > 0) 310stream.Write(preamble, 0, preamble.Length); 379int count = buffer.Length; 400if (buffer.Length - index < count) 488for (Int32 i = 0; i < coreNewLine.Length; i++) // Expect 2 iterations, no point calling BlockCopy 574for (Int32 i = 0; i < coreNewLine.Length; i++) // Expect 2 iterations, no point calling BlockCopy 606if (buffer.Length - index < count) 638Contract.Requires(buffer == null || (buffer != null && buffer.Length - index >= count)); 662for (Int32 i = 0; i < coreNewLine.Length; i++) // Expect 2 iterations, no point calling BlockCopy 763if (buffer.Length - index < count) 845if (preamble.Length > 0) 846await stream.WriteAsync(preamble, 0, preamble.Length).ConfigureAwait(false);
system\io\stringreader.cs (3)
92if (buffer.Length - index < count) 169if (buffer.Length - index < count) 184if (buffer.Length - index < count)
system\io\stringwriter.cs (1)
116if (buffer.Length - index < count)
system\io\textreader.cs (9)
125if (buffer.Length - index < count) 149while((len=Read(chars, 0, chars.Length)) != 0) 210while((len = await ReadAsyncInternal(chars, 0, chars.Length).ConfigureAwait(false)) != 0) 225if (buffer.Length - index < count) 237Contract.Requires(buffer.Length - index >= count); 251if (buffer.Length - index < count) 265Contract.Requires(buffer.Length - index >= count); 399if (buffer.Length - index < count) 415if (buffer.Length - index < count)
system\io\textwriter.cs (5)
201if (buffer != null) Write(buffer, 0, buffer.Length); 215if (buffer.Length - index < count) 467int nlLen = CoreNewLine.Length; 560return WriteAsync(buffer, 0, buffer.Length); 592return WriteLineAsync(buffer, 0, buffer.Length);
system\io\unmanagedmemoryaccessor.cs (4)
312ReadArray<int>(position, decimalArray, 0, decimalArray.Length); 589if (array.Length - offset < count) { 812WriteArray<int>(position, bits, 0, bits.Length); 1070if (array.Length - offset < count) {
system\io\unmanagedmemorystream.cs (4)
399if (buffer.Length - offset < count) 455if (buffer.Length - offset < count) 578if (buffer.Length - offset < count) 652if (buffer.Length - offset < count)
system\io\unmanagedmemorystreamwrapper.cs (1)
140stream.Write(buffer, 0, buffer.Length);
system\multicastdelegate.cs (3)
306if (resultCount <= invocationList.Length) 329int allocCount = invocationList.Length; 356int allocCount = thisInvocationList.Length;
system\paramsarray.cs (2)
52int len = args.Length; 61get { return this.args.Length; }
system\random.cs (1)
209for (int i=0; i<buffer.Length; i++) {
system\reflection\assembly.cs (12)
782TypeInfo[] typeinfos = new TypeInfo[types.Length]; 784for (int i = 0; i < types.Length; i++) 804int iNumModules = m.Length; 811iFinalLength += ModuleTypes[i].Length; 818int iLength = ModuleTypes[i].Length; 1529for (int i = 0; i < modules.Length; i++) 2075(pk.Length == 0)) 2080(pk.Length == 0)) 2227(rawModule != null) ? rawModule.Length : 0, 2229(rawSymbolStore != null) ? rawSymbolStore.Length : 0, 2281int iLength = m.Length; 2851int len = ds.Length;
system\reflection\assemblyname.cs (4)
493_PublicKey = new byte[publicKey.Length]; 494Array.Copy(publicKey, _PublicKey, publicKey.Length); 498_PublicKeyToken = new byte[publicKeyToken.Length]; 499Array.Copy(publicKeyToken, _PublicKeyToken, publicKeyToken.Length);
system\reflection\Associates.cs (3)
59genericArgumentCount = genericArguments.Length; 60genericArgumentHandles = new IntPtr[genericArguments.Length]; 61for (int i = 0; i < genericArguments.Length; i++)
system\reflection\ConstructorInfo.cs (10)
379return m_reflectedTypeCache.GetConstructorList(MemberListType.CaseSensitive, Name).Length > 1; 496if (parameters.Length == 0) 499ParameterInfo[] ret = new ParameterInfo[parameters.Length]; 500Array.Copy(parameters, ret, parameters.Length); 644int formalCount = sig.Arguments.Length; 645int actualCount =(parameters != null) ? parameters.Length : 0; 655for (int index = 0; index < arguments.Length; index++) 741int formalCount = sig.Arguments.Length; 742int actualCount =(parameters != null) ? parameters.Length : 0; 755for (int index = 0; index < arguments.Length; index++)
system\reflection\customattribute.cs (44)
312CustomAttributeData[] customAttributes = new CustomAttributeData[records.Length]; 313for (int i = 0; i < records.Length; i++) 331for (int i = 0; i < records.Length; i++) 376m_ctorParams = new CustomAttributeCtorParameter[parameters.Length]; 377for (int i = 0; i < parameters.Length; i++) 382m_namedParams = new CustomAttributeNamedParameter[properties.Length + fields.Length]; 383for (int i = 0; i < fields.Length; i++) 386for (int i = 0; i < properties.Length; i++) 387m_namedParams[i + fields.Length] = new CustomAttributeNamedParameter( 390m_members = new MemberInfo[fields.Length + properties.Length]; 392properties.CopyTo(m_members, fields.Length); 537CustomAttributeTypedArgument[] typedCtorArgs = new CustomAttributeTypedArgument[m_ctorParams.Length]; 539for (int i = 0; i < typedCtorArgs.Length; i++) 563for (int i = 0; i < m_namedParams.Length; i++) 571for (int i = 0, j = 0; i < m_namedParams.Length; i++) 895CustomAttributeTypedArgument[] arrayValue = new CustomAttributeTypedArgument[encodedArg.ArrayValue.Length]; 896for (int i = 0; i < arrayValue.Length; i++) 1038if (customAttributeCtorParameters.Length != 0 || customAttributeNamedParameters.Length != 0) 1349if (pcaCount > 0) Array.Copy(pca, 0, attributes, attributes.Length - pcaCount, pcaCount); 1365for (int i = 0; i < attributes.Length; i++) 1450if (pcaCount > 0) Array.Copy(pca, 0, attributes, attributes.Length - pcaCount, pcaCount); 1466for (int i = 0; i < attributes.Length; i++) 1486if (pcaCount > 0) Array.Copy(pca, 0, attributes, attributes.Length - pcaCount, pcaCount); 1505if (pcaCount > 0) Array.Copy(pca, 0, attributes, attributes.Length - pcaCount, pcaCount); 1523if (pcaCount > 0) Array.Copy(pca, 0, attributes, attributes.Length - pcaCount, pcaCount); 1536if (pcaCount > 0) Array.Copy(pca, 0, attributes, attributes.Length - pcaCount, pcaCount); 1549if (pcaCount > 0) Array.Copy(pca, 0, attributes, attributes.Length - pcaCount, pcaCount); 1564if (pcaCount > 0) Array.Copy(pca, 0, attributes, attributes.Length - pcaCount, pcaCount); 1578if (pcaCount > 0) Array.Copy(pca, 0, attributes, attributes.Length - pcaCount, pcaCount); 1618for (int i = 0; i < car.Length; i++) 1633for (int i = 0; i < car.Length; i++) 1667if (attributeFilterType == null && car.Length == 0) 1670object[] attributes = CreateAttributeArrayHelper(arrayType, car.Length); 1687for (int i = 0; i < car.Length; i++) 1838if (cAttributes == car.Length && pcaCount == 0) 2020for (int i = 0; i < car.Length; i++) 2146s_pcasCount = pcas.Length; 2245if (GetCustomAttributes(type, caType, true, out count).Length != 0) 2310if (GetCustomAttributes(method, caType, true, out count).Length != 0) 2421return GetCustomAttributes(assembly, caType, true, out count).Length > 0; 2531if (GetCustomAttributes(ctor, caType, true, out count).Length != 0)
system\reflection\emit\aqnbuilder.cs (1)
180for (int i = 0; i < genericArguments.Length; i++)
system\reflection\emit\assemblybuilder.cs (8)
388attribute.m_constructorArgs.Length == 1 && 404securityRulesBlob = new byte[attribute.m_blob.Length]; 405Array.Copy(attribute.m_blob, securityRulesBlob, securityRulesBlob.Length); 416aptcaBlob = new byte[attribute.m_blob.Length]; 417Array.Copy(attribute.m_blob, aptcaBlob, aptcaBlob.Length); 1499m_assemblyData.m_resourceBytes = new byte[resource.Length]; 1500System.Array.Copy(resource, m_assemblyData.m_resourceBytes, resource.Length); 2097AddDeclarativeSecurity(GetNativeHandle(), action, blob, blob.Length);
system\reflection\emit\assemblybuilderdata.cs (14)
83if (m_iCABuilder == m_CABuilders.Length) 104if (m_iCAs == m_CABytes.Length) 118byte[] attrs = new byte[binaryAttribute.Length]; 119Array.Copy(binaryAttribute, attrs, binaryAttribute.Length); 147if (m_CABuilders[i].m_constructorArgs.Length == 0 || m_CABuilders[i].m_constructorArgs[0] == null) 155if (m_CABuilders[i].m_constructorArgs.Length != 1) 171if (m_CABuilders[i].m_constructorArgs.Length != 1) 194if (m_CABuilders[i].m_constructorArgs.Length != 1) 210if (m_CABuilders[i].m_constructorArgs.Length != 1) 220if (m_CABuilders[i].m_constructorArgs.Length != 1) 230if (m_CABuilders[i].m_constructorArgs.Length != 1) 244if (m_CABuilders[i].m_constructorArgs.Length != 1) 258if (m_CABuilders[i].m_constructorArgs.Length != 1) 458if (m_iPublicComTypeCount == m_publicComTypeList.Length)
system\reflection\emit\constructorbuilder.cs (1)
249TypeBuilder.AddDeclarativeSecurity(GetModuleBuilder().GetNativeHandle(), GetToken().Token, action, blob, blob.Length);
system\reflection\emit\customattributebuilder.cs (18)
119if (namedProperties.Length != propertyValues.Length) 121if (namedFields.Length != fieldValues.Length) 134m_constructorArgs = new Object[constructorArgs.Length]; 135Array.Copy(constructorArgs, m_constructorArgs, constructorArgs.Length); 144if (paramTypes.Length != constructorArgs.Length) 148for (i = 0; i < paramTypes.Length; i++) 153for (i = 0; i < paramTypes.Length; i++) 171for (i = 0; i < constructorArgs.Length; i++) 175writer.Write((ushort)(namedProperties.Length + namedFields.Length)); 178for (i = 0; i < namedProperties.Length; i++) 234for (i = 0; i < namedFields.Length; i++) 365uint length = (uint)utf8Str.Length; 448writer.Write(a.Length); 449for (int i = 0; i < a.Length; i++)
system\reflection\emit\dynamicilgenerator.cs (16)
134stackchange -= meth.GetParametersNoCopy().Length; 260stackchange -= parameterTypes.Length; 263stackchange -= optionalParameterTypes.Length; 286cParams = parameterTypes.Length; 340stackchange -= methodInfo.GetParameterTypes().Length; 347stackchange -= optionalParameterTypes.Length; 502if (paramInfo != null && paramInfo.Length != 0) 504parameterTypes = new Type[paramInfo.Length]; 505for (int i = 0; i < paramInfo.Length; i++) 537cParams = parameterTypes.Length; 541if (optionalParameterTypes != null && optionalParameterTypes.Length != 0) 545for (i = 0; i < optionalParameterTypes.Length; i++) 848for (int i = 0; i < excp.Length; i++) 857if (m_exceptionHeader != null && m_exceptionHeader.Length != 0) 859if (m_exceptionHeader.Length < 4) 896for (int i = 0; i < m_exceptions.Length; i++)
system\reflection\emit\dynamicmethod.cs (10)
359m_parameterTypes = new RuntimeType[signature.Length]; 360for (int i = 0; i < signature.Length; i++) { 734int formalCount = sig.Arguments.Length; 735int actualCount = (parameters != null) ? parameters.Length : 0; 746for (int index = 0; index < arguments.Length; index++) 778if (position < 0 || position > m_parameterTypes.Length) 915ParameterInfo[] parameters = new ParameterInfo[privateParameters.Length]; 916Array.Copy(privateParameters, parameters, privateParameters.Length); 999ParameterInfo[] parameters = new ParameterInfo[parameterTypes.Length]; 1000for (int i = 0; i < parameterTypes.Length; i++)
system\reflection\emit\fieldbuilder.cs (1)
210TypeBuilder.SetFieldMarshal(m_typeBuilder.GetModuleBuilder().GetNativeHandle(), GetToken().Token, ubMarshal, ubMarshal.Length);
system\reflection\emit\ilgenerator.cs (33)
37Contract.Ensures(Contract.Result<int[]>().Length > incoming.Length); 38int[] temp = new int [incoming.Length*2]; 39Array.Copy(incoming, temp, incoming.Length); 45byte [] temp = new byte [incoming.Length*2]; 46Array.Copy(incoming, temp, incoming.Length); 53Array.Copy(incoming, temp, incoming.Length); 59__FixupData [] temp = new __FixupData[incoming.Length*2]; 61Array.Copy(incoming, temp, incoming.Length); 67__ExceptionInfo[] temp = new __ExceptionInfo[incoming.Length*2]; 68Array.Copy(incoming, temp, incoming.Length); 173else if (m_RelocFixupList.Length <= m_RelocFixupCount) 326if (m_length + size >= m_ILStream.Length) 328if (m_length + size >= 2 * m_ILStream.Length) 380else if (m_fixupData.Length <= m_fixupCount) 405int length = exceptions.Length; 546stackchange -= parameterTypes.Length; 549stackchange -= optionalParameterTypes.Length; 572cParams = parameterTypes.Length; 629stackchange -= parameters.Length; 637stackchange -= optionalParameterTypes.Length; 715stackchange -= parameters.Length; 827int count = labels.Length; 974if (m_exceptionCount>=m_exceptions.Length) { 978if (m_currExcStackCount>=m_currExcStack.Length) { 1132if (m_labelCount>=m_labelList.Length) { 1147if (labelIndex<0 || labelIndex>=m_labelList.Length) { 1456Type[] temp = new Type[incoming.Length * 2]; 1457Array.Copy(incoming, temp, incoming.Length); 1467if (m_currentCatch>=m_catchAddr.Length) { 1752else if (m_iCount == m_iOffsets.Length) 1874else if (m_DocumentCount == m_Documents.Length) 1950else if (m_iLineNumberCount == m_iOffsets.Length)
system\reflection\emit\methodbuilder.cs (22)
157m_parameterTypes = new Type[parameterTypes.Length]; 158Array.Copy(parameterTypes, m_parameterTypes, parameterTypes.Length); 259for (int i = 0; i < excp.Length; i++) 400m_signature = SignatureHelper.GetMethodSigHelper (m_module, m_callingConvention, m_inst != null ? m_inst.Length : 0, 412signatureLength = m_localSignature.Length; 448get { return m_exceptions != null ? m_exceptions.Length : 0; } 460for (int i=0; i<excp.Length; i++) 700if (names.Length == 0) 707for (int i = 0; i < names.Length; i ++) 715m_inst = new GenericTypeParameterBuilder[names.Length]; 716for (int i = 0; i < names.Length; i ++) 835m_parameterTypes = new Type[parameterTypes.Length]; 836Array.Copy (parameterTypes, m_parameterTypes, parameterTypes.Length); 856if (position > 0 && (m_parameterTypes == null || position > m_parameterTypes.Length)) 949length = blob.Length; 994CheckExceptionHandlerRanges(newHandlers, newIL.Length); 1002int maxTokenOffset = newIL.Length - 4; 1004for (int i = 0; i < newTokenFixups.Length; i++) 1040for (int i = 0; i < exceptionHandlers.Length; i++) 1078if (il != null && (count < 0 || count > il.Length)) 1302else if (m_iNameSpaceCount == m_namespace.Length) 1321else if (m_iLocalSymCount == m_strName.Length)
system\reflection\emit\methodbuilderinstantiation.cs (1)
79for (int i = 0; i < m_inst.Length; i++)
system\reflection\emit\modulebuilder.cs (16)
349resourceBytes, resourceBytes.Length, 456resWriter.m_memoryStream.Read(resBytes, 0, resBytes.Length); 461resBytes.Length, 561int count = parameters.Length; 671cGenericParameters = method.GetGenericArguments().Length; 768int cParams = (parameterTypes == null) ? 0 : parameterTypes.Length; 1408m_moduleData.m_resourceBytes = new byte[resource.Length]; 1409System.Array.Copy(resource, m_moduleData.m_resourceBytes, resource.Length); 1876Type[] tt = new Type[paramInfo.Length]; 1878for (int i = 0; i < paramInfo.Length; i++) 1894Type[] parameterTypes = new Type[parameters.Length]; 1895Type[][] requiredCustomModifiers = new Type[parameterTypes.Length][]; 1896Type[][] optionalCustomModifiers = new Type[parameterTypes.Length][]; 1898for (int i = 0; i < parameters.Length; i++) 2244byte[] localSigBytes = new byte[sigBytes.Length]; 2245Array.Copy(sigBytes, localSigBytes, sigBytes.Length);
system\reflection\emit\parameterbuilder.cs (1)
45ubMarshal.Length);
system\reflection\emit\signaturehelper.cs (19)
51sigHelp.AddData(inst.Length); 315for (int i = 0; i < optionalCustomModifiers.Length; i++) 338for (int i = 0; i < requiredCustomModifiers.Length; i++) 384AddData(args.Length); 510if (m_currSig + 4 > m_signature.Length) 540if (m_currSig + 4 > m_signature.Length) 553if (m_currSig + 8 > m_signature.Length) 571if (m_currSig + 1 > m_signature.Length) 631if (m_currSig + sizeof(void*) > m_signature.Length) 642return ExpandArray(inArray, inArray.Length * 2); 649if (requiredLength < inArray.Length) 650requiredLength = inArray.Length*2; 653Array.Copy(inArray, outArray, inArray.Length); 839if (requiredCustomModifiers != null && (arguments == null || requiredCustomModifiers.Length != arguments.Length)) 842if (optionalCustomModifiers != null && (arguments == null || optionalCustomModifiers.Length != arguments.Length)) 847for (int i =0; i < arguments.Length; i++) 937if (m_signature.Length > m_currSig)
system\reflection\emit\symbolmethod.cs (2)
48m_parameterTypes = new Type[parameterTypes.Length]; 49Array.Copy(parameterTypes, m_parameterTypes, parameterTypes.Length);
system\reflection\emit\symboltype.cs (3)
51if (bFormat == null || curIndex == bFormat.Length) 68if (curIndex != bFormat.Length) 252if (m_iaLowerBound.Length <= m_cRank)
system\reflection\emit\typebuilder.cs (23)
239localAttr = new byte[attr.Length]; 240Array.Copy(attr, localAttr, attr.Length); 244localAttr, (localAttr != null) ? localAttr.Length : 0, toDisk, updateCompilerFlags); 652for(i = 0; i < interfaces.Length; i++) 660interfaceTokens = new int[interfaces.Length + 1]; 661for(i = 0; i < interfaces.Length; i++) 1338for(int i = 0; i < interfaces.Length; i++) 1577if (names.Length == 0) 1581for (int i = 0; i < names.Length; i ++) 1588m_inst = new GenericTypeParameterBuilder[names.Length]; 1589for(int i = 0; i < names.Length; i ++) 1713if (parameterTypeOptionalCustomModifiers != null && parameterTypeOptionalCustomModifiers.Length != parameterTypes.Length) 1716if (parameterTypeRequiredCustomModifiers != null && parameterTypeRequiredCustomModifiers.Length != parameterTypes.Length) 2100return DefineDataHelper(name, data, data.Length, attributes); 2317constraints[constraints.Length - 2] = tkParent; 2412else if (body == null || body.Length == 0) 2423if ((body == null || body.Length == 0) && !meth.m_canBeRuntimeImpl) 2434body, (body != null) ? body.Length : 0, 2436exceptions, (exceptions != null) ? exceptions.Length : 0, 2437tokenFixups, (tokenFixups != null) ? tokenFixups.Length : 0); 2570length = blob.Length;
system\reflection\emit\typebuilderinstantiation.cs (3)
125Type[] instSubstituted = new Type[inst.Length]; 127for (int i = 0; i < instSubstituted.Length; i++) 213for (int i = 0; i < m_inst.Length; i++)
system\reflection\eventinfo.cs (4)
147Contract.Assert(parameters != null && parameters.Length == 1); 169for (int i = 0; i < p.Length; i++) 296if (m_addMethod == null || m_addMethod.GetParametersNoCopy().Length == 0) 404for(int i = 0; i < m_otherMethod.Length; i ++)
system\reflection\mdimport.cs (1)
209for (int i = 0; i < types.Length; i++)
system\reflection\memberinfoserializationholder.cs (14)
116if (fields.Length == 0) 128if (events.Length == 0) 140if (properties.Length == 0) 143if (properties.Length == 1) 146if (properties.Length > 1) 148for (int i = 0; i < properties.Length; i++) 175if (constructors.Length == 1) 178if (constructors.Length > 1) 180for (int i = 0; i < constructors.Length; i++) 211if (methods.Length == 1) 214else if (methods.Length > 1) 216for (int i = 0; i < methods.Length; i++) 240if (methods[i].GetGenericArguments().Length == genericArguments.Length)
system\reflection\methodbase.cs (5)
269for (int i = 0; i < parameterTypes.Length; i++) 330Type[] parameterTypes = new Type[paramInfo.Length]; 331for (int i = 0; i < paramInfo.Length; i++) 342Object[] copyOfParameters = new Object[parameters.Length]; 345for (int i = 0; i < parameters.Length; i++)
system\reflection\methodinfo.cs (17)
224for (int i = 0; i < genericArguments.Length; i++) 457if (lhs.Length != rhs.Length) 460for (int i = 0; i < lhs.Length; i++) 593if (m_parameters.Length == 0) 596ParameterInfo[] ret = new ParameterInfo[m_parameters.Length]; 598Array.Copy(m_parameters, ret, m_parameters.Length); 612return m_reflectedTypeCache.GetMethodList(MemberListType.CaseSensitive, Name).Length > 1; 757if (arguments == null || arguments.Length == 0) 764for (int index = 0; index < arguments.Length; index++) 778int formalCount = sig.Arguments.Length; 779int actualCount = (parameters != null) ? parameters.Length : 0; 923RuntimeType[] methodInstantionRuntimeType = new RuntimeType[methodInstantiation.Length]; 929for (int i = 0; i < methodInstantiation.Length; i++) 940Type[] methodInstantiationCopy = new Type[methodInstantiation.Length]; 941for (int iCopy = 0; iCopy < methodInstantiation.Length; iCopy++) 1016for (int i = 0; i < pis.Length; i++)
system\reflection\module.cs (6)
322for (int i = 0;i<c.Length;i++) { 328if (cnt == c.Length) 333for (int i=0;i<c.Length;i++) { 448for (int i = 0; i < types.Length; i++) 466for (int i = 0; i < types.Length; i++) 648int size = genericArguments.Length;
system\reflection\parameterinfo.cs (8)
243if (args != null && PositionImpl < args.Length) 252if (args != null && PositionImpl > -1 && PositionImpl < args.Length) 292int sigArgCount = sig.Arguments.Length; 354if (cParamDefs < args.Length + 1) 356for (int i = 0; i < args.Length; i++) 631if (dt != null && dt.Length != 0) 670if (CustomAttrs.Length != 0) 677if (CustomAttrs.Length != 0)
system\reflection\propertyinfo.cs (8)
361if (arguments.Length > 0) 498for(int i = 0; i < m_otherMethod.Length; i ++) 532int numParams = indexParams.Length; 560numParams = methParams.Length; 570numParams = methParams.Length - 1; 659args = new Object[index.Length + 1]; 661for(int i=0;i<index.Length;i++) 664args[index.Length] = value;
system\reflection\strongnamekeypair.cs (5)
83_keyPairArray = new byte[keyPairArray.Length]; 84Array.Copy(keyPairArray, _keyPairArray, keyPairArray.Length); 127byte[] publicKey = new byte[_publicKey.Length]; 128Array.Copy(_publicKey, publicKey, _publicKey.Length); 153result = StrongNameHelpers.StrongNameGetPublicKey(null, _keyPairArray, _keyPairArray.Length,
system\reflection\typeinfo.cs (1)
73for (int i = 0; i < constraints.Length; i++)
system\resources\__fastresourcecomparer.cs (1)
87Contract.Assert(bCharLength * 2 <= bytes.Length, "FastResourceComparer::CompareOrdinal - numChars is too big!");
system\resources\manifestbasedresourcegroveler.cs (1)
652int iLen = token.Length;
system\resources\resourcemanager.cs (6)
891if (attrs.Length == 0) 893Contract.Assert(attrs.Length == 1, "Cannot have multiple instances of SatelliteContractVersionAttribute on an assembly!"); 974if (pkt1.Length != pkt2.Length) 977for(int i=0; i < pkt1.Length; i++) { 1584for(int i=0; i<satellites.Length; i++) {
system\resources\resourcereader.cs (7)
646for(int i=0; i<bits.Length; i++) 1080if (typeIndex < 0 || typeIndex >= _typeTable.Length) { 1118_safeToDeserialize = new bool[_typeTable.Length]; 1119for(int i=0; i<_typeTable.Length; i++) { 1230if (typeCode < 0 || typeCode >= ResourceTypeCode.StartOfUserTypes + _typeTable.Length) { 1239if (bytes.Length != len) 1254Contract.Assert(typeIndex >= 0 && typeIndex < _typeTable.Length, "TypeCode is broken or corrupted!");
system\resources\resourcewriter.cs (3)
676writer.Write(bytes.Length); 677writer.Write(bytes, 0, bytes.Length); 706while ((read = s.Read(buffer, 0, buffer.Length)) != 0)
system\rttype.cs (100)
508int memberCount = m_allMembers.Length; 552int cachedCount = cachedMembers.Length; 555for (int i = 0; i < list.Length; i++) 580if (freeSlotIndex >= cachedMembers.Length) 597newSize = cachedMembers.Length + 1; 601newSize = Math.Max(Math.Max(4, 2 * cachedMembers.Length), list.Length); 879for (int i = 0; i < interfaces.Length; i++) 892for (int i = 0; i < interfaces.Length; i++) 1073for (int j = 0; j < iFaces.Length; j++) 1097for (int i = 0; i < ifaces.Length; i++) 1135for (int i = 0; i < constraints.Length; i++) 1142for (int j = 0; j < temp.Length; j++) 1159for (int i = 0; i < interfaces.Length; i++) 1384(!declaringType.IsInterface && usedSlots != null && usedSlots.Length >= numVirtuals)); 2041for (int i = 0; i < methodBases.Length; i++) 2189for (int i = 0; i < candidates.Length; i++) 2214for(int i = 0; i < genericArguments.Length; i++) 2222if (genericArguments.Length != genericParamters.Length) 2224Environment.GetResourceString("Argument_NotEnoughGenArguments", genericArguments.Length, genericParamters.Length)); 2253for (int i = 0; i < genericArguments.Length; i++) 2545if (argumentTypes.Length != parameterInfos.Length) 2555bool excessSuppliedArguments = argumentTypes.Length > parameterInfos.Length; 2586if (!parameterInfos[argumentTypes.Length].IsOptional) 2595if (parameterInfos.Length == 0) 2599bool shortByMoreThanOneSuppliedArgument = argumentTypes.Length < parameterInfos.Length - 1; 2604ParameterInfo lastParameter = parameterInfos[parameterInfos.Length - 1]; 2628for(int i = 0; i < parameterInfos.Length; i ++) 2813ListBuilder<MethodInfo> candidates = new ListBuilder<MethodInfo>(cache.Length); 2814for (int i = 0; i < cache.Length; i++) 2837ListBuilder<ConstructorInfo> candidates = new ListBuilder<ConstructorInfo>(cache.Length); 2838for (int i = 0; i < cache.Length; i++) 2869ListBuilder<PropertyInfo> candidates = new ListBuilder<PropertyInfo>(cache.Length); 2870for (int i = 0; i < cache.Length; i++) 2875(types == null || (propertyInfo.GetIndexParameters().Length == types.Length))) 2978ListBuilder<EventInfo> candidates = new ListBuilder<EventInfo>(cache.Length); 2979for (int i = 0; i < cache.Length; i++) 3002ListBuilder<FieldInfo> candidates = new ListBuilder<FieldInfo>(cache.Length); 3003for (int i = 0; i < cache.Length; i++) 3027ListBuilder<Type> candidates = new ListBuilder<Type>(cache.Length); 3028for (int i = 0; i < cache.Length; i++) 3080ArraySortHelper<ConstructorInfo>.IntrospectiveSort(constructors, 0, constructors.Length, ConstructorInfoComparer.SortByMetadataToken); 3106Type[] interfaces = new Type[candidates.Length]; 3107for (int i = 0; i < candidates.Length; i++) 3143Contract.Assert(i == members.Length); 3219if (types == null || types.Length == 0) 3259if (types.Length == 0 && candidates.Count == 1) 3264if (parameters == null || parameters.Length == 0) 3291if (types == null || types.Length == 0) 3335for (int i = 0; i < cache.Length; i++) 3365for (int i = 0; i < cache.Length; i++) 3411for (int i = 0; i < cache.Length; i++) 3442for (int i = 0; i < cache.Length; i++) 3535Contract.Assert(i == compressMembers.Length); 3741for (int i = 0; i < constraints.Length; i++) 3789for (int i = 0; i < constraints.Length; i++) 4068String[] retVal = new String[ret.Length]; 4070Array.Copy(ret, retVal, ret.Length); 4086Array ret = Array.UnsafeCreateInstance(this, values.Length); 4088for (int i = 0; i < values.Length; i++) 4207RuntimeType[] instantiationRuntimeType = new RuntimeType[instantiation.Length]; 4213if (GetGenericArguments().Length != instantiation.Length) 4216for (int i = 0; i < instantiation.Length; i ++) 4226Type[] instantiationCopy = new Type[instantiation.Length]; 4227for (int iCopy = 0; iCopy < instantiation.Length; iCopy++) 4539if (namedParams.Length > providedArgs.Length) 4545if (namedParams.Length != 0) 4610int argCnt = (providedArgs != null) ? providedArgs.Length : 0; 4690if (flds.Length == 1) 4694else if (flds.Length > 0) 4839for(int i = 0; i < semiFinalists.Length; i ++) 4855results = new List<MethodInfo>(semiFinalists.Length); 4882for(int i = 0; i < semiFinalists.Length; i ++) 4909results = new List<MethodInfo>(semiFinalists.Length); 4932finalist.GetParametersNoCopy().Length == 0 && 5204int argCnt = args.Length; 5220List<MethodBase> matches = new List<MethodBase>(candidates.Length); 5232for(int i = 0; i < candidates.Length; i ++) 5240if (cons != null && cons.Length == 0) 5309if (invokeMethod.GetParametersNoCopy().Length == 0) 5311if (args.Length != 0) 5620int cArgs = aArgs.Length; 5691int cArgs = aArgs.Length; 5728int numElems = oldArray.Length; 5996int index = hashcode % keys.Length; 6020if (index >= keys.Length) 6021index -= keys.Length; 6057for (int i = 0; i < keys.Length; i++) 6081if (requiredSize >= table.m_keys.Length) 6102int index = hashcode % keys.Length; 6115if (index >= keys.Length) 6116index -= keys.Length;
system\runtime\compilerservices\AsyncMethodBuilder.cs (1)
820for (int i = 0; i < tasks.Length; i++)
system\runtime\compilerservices\ConditionalWeakTable.cs (15)
178int bucket = hashCode % _buckets.Length; 303for (int bucket = 0; bucket < _buckets.Length; ++bucket) 333for (int bucket = 0; bucket < _buckets.Length; ++bucket) 361for (int bucket = 0; bucket < _buckets.Length; ++bucket) 394for (int bucketIndex = 0; bucketIndex < _buckets.Length; bucketIndex++) 401for (entriesIndex = 0; entriesIndex < _entries.Length; entriesIndex++) 465int bucket = hashCode % _buckets.Length; 491int newSize = _buckets.Length; 496for (entriesIndex = 0; entriesIndex < _entries.Length; entriesIndex++) 507newSize = System.Collections.HashHelpers.GetPrime(_buckets.Length == 0 ? _initialCapacity + 1 : _buckets.Length * 2); 522for (entriesIndex = 0; entriesIndex < _entries.Length; entriesIndex++) 546while (entriesIndex != newEntries.Length) 570for (int entriesIndex = _buckets[hashCode % _buckets.Length]; entriesIndex != -1; entriesIndex = _entries[entriesIndex].next) 624for (int entriesIndex = 0; entriesIndex < entries.Length; entriesIndex++)
system\runtime\compilerservices\decimalconstantattribute.cs (1)
67Contract.Assert(parameters.Length == 5);
system\Runtime\CompilerServices\FormattableStringFactory.cs (1)
54public override int ArgumentCount { get { return _arguments.Length; } }
system\runtime\compilerservices\TypeForwardedToAttribute.cs (2)
36TypeForwardedToAttribute[] attributes = new TypeForwardedToAttribute[types.Length]; 37for (int i = 0; i < types.Length; ++i)
system\runtime\designerservices\windowsruntimedesignercontext.cs (1)
45return CreateDesignerContext(pathArray, pathArray.Length, shared);
system\Runtime\InteropServices\ComEventsMethod.cs (5)
62if (_cachedTargetTypes != null && _expectedParamsCount == args.Length) { 75_expectedParamsCount = parameters.Length; 163get { return _delegateWrappers == null || _delegateWrappers.Length == 0; } 169count = _delegateWrappers.Length; 192int count = _delegateWrappers.Length;
system\runtime\interopservices\gchandlecookietable.cs (4)
63if ((m_FreeIndex < m_HandleList.Length) && (Volatile.Read(ref m_HandleList[m_FreeIndex]) == ObjectHandle.Zero)) 89if (m_FreeIndex + 1 == m_HandleList.Length) 159if (index >= m_HandleList.Length) 177int CurrLength = m_HandleList.Length;
system\runtime\interopservices\marshal.cs (6)
887for (int i = 0; i < mi.Length; i++) 1640int NumAssemblies = aAssemblies.Length; 2254result = new T[objects.Length]; 2255Array.Copy(objects, result, objects.Length); 2583System.Type[] result = new System.Type[res.Length]; 2584for (int i = 0; i < res.Length; ++i)
system\runtime\interopservices\registrationservices.cs (11)
129int NumTypes = aTypes.Length; 150int NumPIAAttrs = aPIAAttrs.Length; 155if (aTypes.Length > 0 || NumPIAAttrs > 0) 180int NumTypes = aTypes.Length; 207int NumPIAAttrs = aPIAAttrs.Length; 215if (aTypes.Length > 0 || NumPIAAttrs > 0) 234int NumTypes = aTypes.Length; 871if (assembly.GetPublicKey().Length == 0) 1010int NumMethods = aMethods.Length; 1018if(CurrentMethod.GetCustomAttributes(RegFuncAttrType, true).Length != 0) 1033aParams.Length != 1 ||
system\runtime\interopservices\safebuffer.cs (2)
254if (array.Length - index < count) 326if (array.Length - index < count)
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (1)
68for ( int cMethods = 0; cMethods < aMethods.Length; cMethods++ )
system\runtime\interopservices\tceadaptergen\eventsinkhelperwriter.cs (9)
60FieldBuilder[] afbDelegates = new FieldBuilder[aMethods.Length]; 62for ( int cMethods = 0; cMethods < aMethods.Length; cMethods++ ) 69Contract.Assert(aParams.Length == 1, "All event interface methods must take a single delegate derived type and have a void return type"); 100Type[] parameters = new Type[PIs.Length]; 101for (int i=0; i < PIs.Length; i++) 133parameterTypes = new Type[paramInfos.Length]; 134for (int i = 0; i < paramInfos.Length; i++) 169for ( int cParams = 0; cParams < aParams.Length; cParams++ ) 279for ( int cDelegates = 0; cDelegates < afbDelegates.Length; cDelegates++ )
system\runtime\interopservices\typelibconverter.cs (1)
360int NumTypes = aTypes.Length;
system\runtime\interopservices\windowsruntime\clripropertyvalueimpl.cs (5)
386T[] coercedArray = new T[dataArray.Length]; 387for (int i = 0; i < dataArray.Length; ++i) { 543T[] converted = new T[dataArray.Length]; 545if (converted.Length > 0) { 551Buffer.Memcpy(pConverted, pData, checked(Marshal.SizeOf(typeof(T)) * converted.Length));
system\runtime\interopservices\windowsruntime\clrireferenceimpl.cs (2)
433Object[] objArray = new Object[obj.Length]; 434for (int i = 0; i < objArray.Length; i++)
system\runtime\interopservices\windowsruntime\constantsplittablemap.cs (2)
246Contract.Requires(first < items.Length); 247Contract.Requires(end < items.Length);
system\runtime\interopservices\windowsruntime\dictionarykeycollection.cs (2)
36if (array.Length <= index && this.Count > 0) 38if (array.Length - index < dictionary.Count)
system\runtime\interopservices\windowsruntime\dictionaryvaluecollection.cs (2)
39if (array.Length <= index && this.Count > 0) 41if (array.Length - index < dictionary.Count)
system\runtime\interopservices\windowsruntime\enumeratortoiteratoradapter.cs (2)
154while (index < items.Length && HasCurrent) 166for (int i = index; i < items.Length; ++i)
system\runtime\interopservices\windowsruntime\eventregistrationtokentable.cs (1)
163if (invocationList.Length == 1)
system\runtime\interopservices\windowsruntime\ireadonlylisttoivectorviewadapter.cs (2)
109uint itemCount = Math.Min((uint)items.Length, (uint)_this.Count - startIndex); 121for (uint i = itemCount; i < items.Length; ++i)
system\runtime\interopservices\windowsruntime\listtovectoradapter.cs (2)
240uint itemCount = Math.Min((uint)items.Length, (uint)sourceList.Count - startIndex); 251for (uint i = itemCount; i < items.Length; ++i)
system\runtime\interopservices\windowsruntime\maptocollectionadapter.cs (2)
150if (array.Length <= arrayIndex && Count<K, V>() > 0) 153if (array.Length - arrayIndex < Count<K, V>())
system\runtime\interopservices\windowsruntime\vectortocollectionadapter.cs (2)
93if (array.Length <= arrayIndex && Count<T>() > 0) 96if (array.Length - arrayIndex < Count<T>())
system\runtime\interopservices\windowsruntime\windowsruntimemetadata.cs (3)
57((packageGraphFilePathsArray == null) ? 0 : packageGraphFilePathsArray.Length), 83int len = ds.Length; 118int len = ds.Length;
system\runtime\remoting\activationservices.cs (11)
318for (int i=0; i<attributes.Length; i++) 354for (int i=0; i<attributes.Length; i++) 415if((null != ca) && (0 != ca.Length)) 1170for(int i = 0; i < callsiteAttributes.Length; i++) 1743if (freeIndex == activationTypes.Length) 1746Object[] newTypes = new Object[activationTypes.Length * 2]; 1747Object[] newAttr = new Object[activationAttributes.Length * 2]; 1748Contract.Assert(newAttr.Length == newTypes.Length,"These should be in sync!"); 1749Array.Copy(activationTypes, newTypes, activationTypes.Length); 1750Array.Copy(activationAttributes, newAttr, activationAttributes.Length);
system\runtime\remoting\channelservices.cs (14)
156newList = new RegisteredChannel[oldList.Length + 1]; 172while (current < oldList.Length) 187if (current == oldList.Length) 191newList[oldList.Length] = new RegisteredChannel(chnl); 196while (current < oldList.Length) 252Contract.Assert((oldList != null) && (oldList.Length != 0), "channel list should not be empty"); 254newList = new RegisteredChannel[oldList.Length - 1]; 263while (oldPos < oldList.Length) 420for(int j = 0; j < urls.Length; j++) 1104if ((urls != null) && (urls.Length > 0)) 1223return _channels.Length; 1250for (int i = 0; i < _channels.Length; i++) 1264for (int i = 0; i < _channels.Length; i++) 1276for (int i = 0; i < _channels.Length; i++)
system\runtime\remoting\channelsinkstacks.cs (3)
423Object[] parameters = new Object[paramList.Length]; 424parameters[paramList.Length - 1] = ar; // last parameter is the async result 465for (int co = 0; co < syncParams.Length; co++)
system\runtime\remoting\context.cs (4)
123for(int i = 0; i < ctxProps.Length; i++) 261if (_ctxProps == null || _numCtxProps == _ctxProps.Length) 349int newSize = (props != null ? props.Length : 0) + GROW_BY; 354Array.Copy(props, newProps, props.Length);
system\runtime\remoting\crossappdomainchannel.cs (6)
271CrossAppDomainSink[] tmpSinks = new CrossAppDomainSink[_sinks.Length + GROW_BY]; 272int[] tmpKeys = new int[_sinkKeys.Length + GROW_BY]; 273Array.Copy(_sinks, tmpSinks, _sinks.Length); 274Array.Copy(_sinkKeys, tmpKeys, _sinkKeys.Length); 301if (i == _sinks.Length) 335if (i == _sinks.Length)
system\runtime\remoting\dynamicpropertyholder.cs (6)
38if (_props == null || _numProps == _props.Length) 57_sinks = new IDynamicMessageSink[_props.Length]; 151int newSize = (sinks != null ? sinks.Length : 0) + GROW_BY; 157Array.Copy(sinks, newSinks, sinks.Length); 196int newSize = (props != null ? props.Length : 0) + GROW_BY; 201Array.Copy(props, newProps, props.Length);
system\runtime\remoting\ichannel.cs (1)
364int length =_extraData.Length;
system\runtime\remoting\leasemanager.cs (1)
121for (int i=0; i<leases.Length; i++)
system\runtime\remoting\message.cs (75)
310if (index < pi.Length) 316return "VarArg" + (index - pi.Length); 476Type[] methodSig = new Type[paramArray.Length]; 477for(int i = 0; i < paramArray.Length; i++) 518if (pi.Length != args.Length) 525args.Length, pi.Length)); 528for (int i=0; i < pi.Length; i++) 1977for (int i = 0 ; i < _keys.Length; i++) 1989for (int i=0; i<_keys.Length; i++) 1996_dict.CopyTo(array, index+_keys.Length); 2007for (int i=0; i<_keys.Length; i++) 2112int len = _keys.Length; 2120for (int i = 0; i<_keys.Length; i++) 2138int len = _keys.Length; 2147for (int i = 0; i<_keys.Length; i++) 2166return _dict.Count+_keys.Length; 2170return _keys.Length; 2216if (i < _md._keys.Length) 2243if (i < _md._keys.Length) 2270if (i < _md._keys.Length) 2642return _outArgs.Length; 2660if ((argNum<0) || (argNum>=_outArgs.Length)) 2682if ((index < 0) || (index>=_outArgs.Length)) 2991for (int i=0; i<h.Length; i++) 3142int arity = instArgs == null ? 0 : instArgs.Length; 3177for (int i = 0; i < methods.Length; i++) 3185int miArity = mi.IsGenericMethod ? mi.GetGenericArguments().Length : 0; 3250if (instArgs != null && instArgs.Length > 0) 3296int canidatesCount = canidates.Length; 3307int argCount = args.Length; 3314if (canidate.GetParameters().Length == argCount) 3333int canidatesCount = canidates.Length; 3353if (parameters.Length == argValues.Count) 3356for (int j = 0; j < parameters.Length; j++) 3459args = new Object[pinfos.Length]; 3479for (int j=0; j<pinfos.Length; j++) 3498if (position >= args.Length) 3555return(args == null) ? 0 : args.Length; 3785for (co = 0; co < h.Length; co++) 3804for (i=0; i<h.Length; i++) 3877if (h != null && h.Length > 0 && h[0].Name == "__methodName") 3880if (h.Length > 1) 3882newHeaders = new Header[h.Length -1]; 3883Array.Copy(h, 1, newHeaders, 0, h.Length-1); 4150argCount = _methodCache.Parameters.Length; 4180argCount = _methodCache.Parameters.Length; 4202argCount = _methodCache.Parameters.Length; 4242if (h != null && h.Length > 0 && h[0].Name == "__methodName") 4244if (h.Length > 1) 4246newHeaders = new Header[h.Length -1]; 4247Array.Copy(h, 1, newHeaders, 0, h.Length-1); 4265int outParamsCount = _methodCache.MarshalResponseArgMap.Length; 4454for (int j=0; j<pinfos.Length; j++) 4585return outArgs.Length; 4599if (index < 0 || index >= paramInfo.Length) 4715for (co = 0; co < h.Length; co++) 4733for (int i=0; i<h.Length; i++) 5272return _map.Length; 5281if (_map == null || argNum < 0 || argNum >= _map.Length) 5296if (_map == null || argNum < 0 || argNum >= _map.Length) 5319Object[] ret = new Object[_map.Length]; 5320for(int i=0; i<_map.Length; i++) 5337ret = new Type[_map.Length]; 5338for (int i=0; i<_map.Length; i++) 5355ret = new String[_map.Length]; 5356for (int i=0; i<_map.Length; i++) 5387int[] tempMarshalRequestMap = new int[parameters.Length]; 5388int[] tempMarshalResponseMap = new int[parameters.Length]; 5465for (co = 0; co < parameters.Length; co++) 5514Object[] args = new Object[syncMethod.Parameters.Length]; 5518for (int co = 0; co < outRefArgMap.Length; co++) 5823return _args.Length; 6053return _args.Length;
system\runtime\remoting\messagesmuggler.cs (5)
44Object[] newArgs = new Object[args.Length]; 46int total = args.Length; 135Object[] newArgs = new Object[args.Length]; 136int total = args.Length; 314if (inst != null && inst.Length > 0)
system\runtime\remoting\objref.cs (10)
220if (interfaces.Length > 0 || isInterface) 222interfaceNames = new String[interfaces.Length + (isInterface ? 1 : 0)]; 223for (int i = 0; i < interfaces.Length; i++) 228interfaceNames[interfaceNames.Length - 1] = GetQualifiedTypeName(typeOfObj); 270for (int i = 0; i < types.Length; i++) 647newChInfo.ChannelData = new Object[oldChannelData.Length]; 648for (int co = 0; co < oldChannelData.Length; co++) 657if ((urls != null) && (urls.Length == 1) && urls[0].Equals(urlToBash)) 879while (i<ChannelInfo.ChannelData.Length) 1024int channelDataLength = channelData.Length;
system\runtime\remoting\realproxy.cs (5)
224int outLength = (null == outArgs ? 0 : outArgs.Length); 478if (outArgs != null && outArgs.Length > 0) 497if (cache.NonRefOutArgMap.Length > 0) 504Array.Copy((Array)outArgs[index], arg, arg.Length); 511if (outRefArgMap.Length > 0)
system\runtime\remoting\remotingattributes.cs (5)
70if ((attrs != null) && (attrs.Length != 0)) 98if ((attrs != null) && (attrs.Length != 0)) 138if ((attrs != null) && (attrs.Length != 0)) 285if ((attrs != null) && (attrs.Length != 0)) 437if ((attrs != null) && (attrs.Length > 0))
system\runtime\remoting\remotingservices.cs (10)
617int channelDataLength = channelData.Length; 1582for (int i = 0; i < channelData.Length; i++) 1603for (int i = 0; i < channelData.Length; i++) 1932if(1 != ci.Length) 1945BCLDebug.Trace("REMOTE", "RemotingServices.MethodBaseFromMethodCallMessage with non-null sig ", msg.MethodName, " ", signature.Length); 1968BCLDebug.Trace("REMOTE", "RemotingServices.MethodBaseFromMethodCallMessage with non-null sig ", msg.MethodName, " ", signature.Length); 2124if (params1.Count != params2.Length) 2382if (ChannelServices.RegisteredChannels.Length == 0) 2397if (ChannelServices.RegisteredChannels.Length == 0) 2437if (ChannelServices.RegisteredChannels.Length == 0)
system\runtime\remoting\remotingsurrogateselector.cs (5)
309for (int i=0; i<args.Length; i++) 372String[] names = GetInArgNames(mcm, args.Length); 381args!=null || sig.Length == args.Length, 384for (int i = 0; i < args.Length; i++)
system\runtime\remoting\soap.cs (3)
465if (parts.Length == 2) 541if (parts.Length == 2) 801if (parts.Length != 2)
system\runtime\remoting\soapinteroptypes.cs (5)
324for (int i=0; i<c.Length; i++) 934for (int i=0; i<_value.Length; i++) 955if (cA.Length%2 != 0) 962Byte[] bA = new Byte[cA.Length/2]; 963for (int i = 0; i< cA.Length/2; i++)
system\runtime\remoting\stackbuildersink.cs (4)
165(outArgs == null ? 0 : outArgs.Length), 261(outArgs == null ? 0 : outArgs.Length), 457if (map.Length > 0) 460marshalResponseArgs = new Object[methodCache.Parameters.Length];
system\runtime\remoting\trackingservices.cs (1)
80if((null == _Handlers) || (_Size == _Handlers.Length))
system\runtime\serialization\formatters\binary\binarycommonclasses.cs (30)
459if (headerBytes.Length < 17) 670if (args == null || args.Length == 0) 674argTypes = new Type[args.Length]; 677for (int i =0; i<args.Length; i++) 775sout.WriteInt32(args.Length); 776for (int i=0; i<args.Length; i++) 824if (callA.Length < arrayPosition) 831if (callA.Length < arrayPosition) 838if (callA.Length < arrayPosition) 845if (callA.Length < arrayPosition) 852if (callA.Length < arrayPosition) 887BinaryUtil.NVTraceI("args Length", args.Length); 888for (int i=0; i<args.Length; i++) 936if (args == null || args.Length == 0) 940argTypes = new Type[args.Length]; 945for (int i =0; i<args.Length; i++) 1056sout.WriteInt32(args.Length); 1057for (int i=0; i<args.Length; i++) 1105if (returnA.Length < arrayPosition) 1112if (returnA.Length < arrayPosition) 1119if (returnA.Length < arrayPosition) 1126if (returnA.Length < arrayPosition) 1133if (returnA.Length < arrayPosition) 1168BinaryUtil.NVTraceI("args Length", args.Length); 1169for (int i=0; i<args.Length; i++) 2098binaryTypeEnumA = new BinaryTypeEnum[memberTypes.Length]; 2099typeInformationA = new Object[memberTypes.Length]; 2101for (int i=0; i<memberTypes.Length; i++) 2127memberTypes = new Type[memberNames.Length]; 2129for (int i=0; i<memberNames.Length; i++)
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (3)
400int byteLength = array.Length*typeLength; 405while (arrayOffset < array.Length) 407int numArrayItems = Math.Min(chunkSize/typeLength, array.Length-arrayOffset);
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (14)
176for (int i=0; i<cache.memberInfos.Length; i++) 347int count = cache.memberInfos.Length; 632count = cache.memberInfos.Length; 717memberData = new Object[cache.memberNames.Length]; 756for (int i=0; i<memberInfos.Length; i++) 782if (cache.memberNames.Length >0 && cache.memberNames[lastPosition].Equals(name)) 786else if ((++lastPosition < cache.memberNames.Length) && (cache.memberNames[lastPosition].Equals(name))) 794for (int i=0; i<cache.memberNames.Length; i++) 828if (inMemberNames.Length < cache.memberInfos.Length) 831Type[] outMemberTypes = new Type[cache.memberInfos.Length]; 835for (int i = 0; i < cache.memberInfos.Length; i++) 843for (int j = 0; j < inMemberNames.Length; j++) 857if ((attrs == null || attrs.Length == 0) && !bSimpleAssembly){
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (3)
357Contract.Assert((index < crossAppDomainArray.Length), 1323for (int i=0; i<index.Length; i++) 1326if (i != index.Length -1)
system\runtime\serialization\formatters\binary\binaryobjectwriter.cs (6)
164if ((headers != null) && (headers.Length > 0)) 396WriteObjectInfo[] memberObjectInfos = new WriteObjectInfo[memberNames.Length]; 404for (int i=0; i<memberTypes.Length; i++) 469int numItems = memberNames.Length; 1036for (int i=0; i<index.Length; i++) 1039if (i != index.Length -1)
system\runtime\serialization\formatters\binary\binaryparser.cs (5)
464op.memberLength = op.binaryTypeEnumA.Length; 592op.memberLength = op.binaryTypeEnumA.Length; 688op.memberLength = op.binaryTypeEnumA.Length; 1029while (arrayOffset < array.Length) 1031int numArrayItems = Math.Min(chunkSize/typeLength, array.Length-arrayOffset);
system\runtime\serialization\formatters\binary\binaryutilclasses.cs (25)
292if (top == (objects.Length -1)) 313int size = objects.Length * 2; 315Array.Copy(objects, 0, newItems, 0, objects.Length); 388objects = new Object[sizedArray.objects.Length]; 390negObjects = new Object[sizedArray.negObjects.Length]; 405if (-index > negObjects.Length - 1) 411if (index > objects.Length - 1) 420if (-index > negObjects.Length-1 ) 429if (index > objects.Length-1 ) 448int size = Math.Max(negObjects.Length * 2, (-index)+1); 450Array.Copy(negObjects, 0, newItems, 0, negObjects.Length); 455int size = Math.Max(objects.Length * 2, index+1); 457Array.Copy(objects, 0, newItems, 0, objects.Length); 481objects = new int[sizedArray.objects.Length]; 483negObjects = new int[sizedArray.negObjects.Length]; 499if (-index > negObjects.Length-1 ) 505if (index > objects.Length-1 ) 514if (-index > negObjects.Length-1 ) 523if (index > objects.Length-1 ) 538int size = Math.Max(negObjects.Length * 2, (-index)+1); 540Array.Copy(negObjects, 0, newItems, 0, negObjects.Length); 545int size = Math.Max(objects.Length * 2, index+1); 547Array.Copy(objects, 0, newItems, 0, objects.Length); 702if (valueInfos.Length != 1) 703throw new SerializationException(Environment.GetResourceString("Serialization_HeaderReflection",valueInfos.Length));
system\runtime\serialization\formatterservices.cs (13)
56for (int i = 0; i < fields.Length; i++) { 61if (countProper != fields.Length) { 64for (int i = 0; i < fields.Length; i++) { 132MemberInfo[] membersTemp = new MemberInfo[allMembers.Count + typeMembers.Length]; 133Array.Copy(typeMembers, membersTemp, typeMembers.Length); 134((ICollection)allMembers).CopyTo(membersTemp, typeMembers.Length); 161if (parentTypes == null || parentTypeCount == parentTypes.Length){ 216for(int i=0;i<advancedTypes.Length;i++){ 339if (members.Length!=data.Length) { 348for (int i=0; i<members.Length; i++) { 392int numberOfMembers = members.Length; 483if (typeAttributes != null && typeAttributes.Length > 0) {
system\runtime\serialization\objectclonehelper.cs (4)
125for (int i =0; i < fieldNames.Length; i++) 139for (; incomingFieldIndex < fieldNames.Length; incomingFieldIndex++) 150for (int index = 0; index < mi.Length; index++) 159if (attrs == null || attrs.Length == 0)
system\runtime\serialization\objectidgenerator.cs (3)
161for (i=0, currSize=m_currentSize; i<arr.Length && arr[i]<=currSize; i++); 162if (i==arr.Length) { 178for (int j=0; j<oldObjs.Length; j++) {
system\runtime\serialization\objectmanager.cs (21)
130if (index>=m_objects.Length) { 171BCLDebug.Trace("SER", "[AddObjectHolder]Adding ObjectHolder with id: ", holder.m_id, " Current Bins: ", m_objects.Length); 178if (holder.m_id>=m_objects.Length && m_objects.Length != MaxArraySize) { 182newSize = (m_objects.Length * 2); 198Array.Copy(m_objects, temp, m_objects.Length); 373if ((currentFieldIndex + 1)>=fieldsTemp.Length) { 374FieldInfo[] temp = new FieldInfo[fieldsTemp.Length * 2]; 375Array.Copy(fieldsTemp, temp, fieldsTemp.Length); 477for(int i=0;i<intermediateFields.Length;i++){ 960BCLDebug.Trace("SER", "[ObjectManager.DoFixups]Remaining object length is: ", m_objects.Length); 961for (int i=0; i<m_objects.Length; i++) { 1602if (m_count==m_values.Length) { 1610if (m_count==m_values.Length) { 1617int newLength = m_values.Length*2; 1657if (m_totalItems==m_values.Length) { 1705BCLDebug.Trace("SER", "[LongList.EnlargeArray]Enlarging array of size ", m_values.Length); 1706int newLength = m_values.Length*2; 1738if (m_count==m_values.Length) { 1750BCLDebug.Trace("SER", "[ObjectHolderList.EnlargeArray]Enlarging array of size ", m_values.Length); 1751int newLength = m_values.Length*2;
system\runtime\serialization\serializationinfo.cs (11)
170if (a == null || b == null || a.Length == 0 || b.Length == 0 || a.Length != b.Length) 176for (int i = 0; i < a.Length; i++) 255Contract.Assert(m_members.Length == m_currMember, "[SerializationInfo.ExpandArrays]m_members.Length == m_currMember"); 404if (m_currMember >= m_members.Length) 483Contract.Assert(index < m_data.Length, "[SerializationInfo.GetElement]index<m_data.Length"); 484Contract.Assert(index < m_types.Length, "[SerializationInfo.GetElement]index<m_types.Length"); 502Contract.Assert(index < m_data.Length, "[SerializationInfo.GetElement]index<m_data.Length"); 503Contract.Assert(index < m_types.Length, "[SerializationInfo.GetElement]index<m_types.Length");
system\runtime\serialization\serializationinfoenumerator.cs (3)
75Contract.Assert(members.Length>=numItems, "[SerializationInfoEnumerator.ctor]members.Length>=numItems"); 76Contract.Assert(info.Length>=numItems, "[SerializationInfoEnumerator.ctor]info.Length>=numItems"); 77Contract.Assert(types.Length>=numItems, "[SerializationInfoEnumerator.ctor]types.Length>=numItems");
system\runtime\versioning\binarycompatibility.cs (4)
376if (components.Length < 2 || components.Length > 3) 397for (int i = 1; i < components.Length; i++) 402if (keyValuePair.Length != 2)
system\runtimehandles.cs (8)
206if (inHandles == null || inHandles.Length == 0) 212IntPtr[] outHandles = new IntPtr[inHandles.Length]; 213for (int i = 0; i < inHandles.Length; i++) 217length = outHandles.Length; 224if (inHandles == null || inHandles.Length == 0) 230IntPtr[] outHandles = new IntPtr[inHandles.Length]; 231for (int i = 0; i < inHandles.Length; i++) 235length = outHandles.Length;
system\security\accesscontrol\ace.cs (13)
126else if ( binaryForm.Length - offset < BinaryLength ) 254else if ( binaryForm.Length - offset < HeaderLength ) 264else if (( binaryForm[offset + 3] << 8 ) + ( binaryForm[offset + 2] << 0 ) > binaryForm.Length - offset ) 590for ( int i = 0; i < array1.Length; i++ ) 816return _opaque.Length; 852if ( opaque.Length > MaxOpaqueLength ) 858else if ( opaque.Length % 4 != 0 ) 974if ( binaryForm.Length - offset < HeaderLength + AccessMaskLength + AceTypeLength + SecurityIdentifier.MinBinaryLength ) 1272return _opaque.Length; 1299if ( opaque.Length > MaxOpaqueLengthInternal ) 1305else if ( opaque.Length % 4 != 0 ) 1457if ( binaryForm.Length - offset < HeaderLength + AccessMaskLength + SecurityIdentifier.MinBinaryLength ) 1884if ( binaryForm.Length - offset < HeaderLength + AccessMaskLength + ObjectFlagsLength + SecurityIdentifier.MinBinaryLength )
system\security\accesscontrol\acl.cs (9)
190else if ( array.Length - index < Count ) 268if ( binaryForm.Length - offset < HeaderLength ) 281if ( length > binaryForm.Length - offset ) 316else if ( binaryForm.Length - offset < BinaryLength ) 636for ( int i = 0; i < AFtoPM.Length; i++ ) 663for ( int i = 0; i < PMtoAF.Length; i++ ) 1495if ( aceOpaque.Length != newAceOpaque.Length ) 1500for ( int i = 0; i < aceOpaque.Length; ++i )
system\security\accesscontrol\securitydescriptor.cs (2)
274if ( binaryForm.Length - offset < BinaryLength ) 502if ( binaryForm.Length - offset < HeaderLength )
system\security\claims\Claim.cs (2)
564if (userData != null && userData.Length > 0) 606writer.Write((Int32)userData.Length);
system\security\claims\ClaimsIdentity.cs (2)
1231if (userData != null && userData.Length > 0) 1280writer.Write((Int32)userData.Length);
system\security\claims\ClaimsPrincipal.cs (2)
853if (userData != null && userData.Length > 0) 872writer.Write((Int32)userData.Length);
system\security\claims\RoleClaimProvider.cs (1)
40for (int i = 0; i < m_roles.Length; i++)
system\security\cryptography\asymmetricalgorithm.cs (1)
51for (i=0; i<LegalKeySizesValue.Length; i++) {
system\security\cryptography\base64transforms.cs (16)
52if (inputCount < 0 || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 53if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 60if (tempBytes.Length != 4) throw new CryptographicException(Environment.GetResourceString( "Cryptography_SSE_InvalidDataSize" )); 61Buffer.BlockCopy(tempBytes, 0, outputBuffer, outputOffset, tempBytes.Length); 62return(tempBytes.Length); 69if (inputCount < 0 || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 70if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 147if (inputCount < 0 || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 148if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 160effectiveCount = temp.Length; 183Buffer.BlockCopy(tempBytes, 0, outputBuffer, outputOffset, tempBytes.Length); 184return(tempBytes.Length); 191if (inputCount < 0 || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 192if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 204effectiveCount = temp.Length; 264Array.Clear(_inputBuffer, 0, _inputBuffer.Length);
system\security\cryptography\capinative.cs (14)
322Contract.Assert(buffer != null && buffer.Length > 0, "buffer != null && buffer.Length > 0"); 324if (!UnsafeNativeMethods.CryptGenRandom(cspHandle, buffer.Length, buffer)) { 336Contract.Assert(buffer != null && buffer.Length > 0, "buffer != null && buffer.Length > 0"); 338Contract.Assert(buffer.Length >= offset + count, "buffer.Length >= offset + count"); 355Contract.Assert(rawProperty.Length == sizeof(int) || rawProperty.Length == 0, "Unexpected property size"); 356return rawProperty.Length == sizeof(int) ? BitConverter.ToInt32(rawProperty, 0) : 0; 392Contract.Assert(rawProperty.Length == sizeof(int) || rawProperty.Length == 0, "Unexpected property size"); 393return rawProperty.Length == sizeof(int) ? BitConverter.ToInt32(rawProperty, 0) : 0; 456byte[] signatureValue = new byte[signature.Length]; 457Array.Copy(signature, signatureValue, signatureValue.Length); 462if (hashValue.Length != GetHashPropertyInt32(hashHandle, HashProperty.HashSize)) { 472signatureValue.Length,
system\security\cryptography\cryptoapitransform.cs (21)
60int[] _rgArgIds = new int[rgArgIds.Length]; 61Array.Copy(rgArgIds, _rgArgIds, rgArgIds.Length); 62_rgbKey = new byte[rgbKey.Length]; 63Array.Copy(rgbKey, _rgbKey, rgbKey.Length); 64Object[] _rgArgValues = new Object[rgArgValues.Length]; 66for (int j = 0; j < rgArgValues.Length; j++) { 69byte[] rgbNew = new byte[rgbOrig.Length]; 70Array.Copy(rgbOrig, rgbNew, rgbOrig.Length); 96Utils.SetKeyParamRgb(_safeKeyHandle, _rgArgIds[i], rgbValue, rgbValue.Length); 135Array.Clear(_rgbKey,0,_rgbKey.Length); 139Array.Clear(IVValue,0,IVValue.Length); 143Array.Clear(_depadBuffer, 0, _depadBuffer.Length); 205if ((inputCount <= 0) || (inputCount % InputBlockSize != 0) || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 206if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 230int r = Utils._DecryptData(_safeKeyHandle, _depadBuffer, 0, _depadBuffer.Length, ref outputBuffer, outputOffset, PaddingValue, false); 245if ((inputCount < 0) || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 246if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 265byte[] temp = new byte[_depadBuffer.Length + inputCount]; 266Buffer.InternalBlockCopy(_depadBuffer, 0, temp, 0, _depadBuffer.Length); 267Buffer.InternalBlockCopy(inputBuffer, inputOffset, temp, _depadBuffer.Length, inputCount); 269Utils._DecryptData(_safeKeyHandle, temp, 0, temp.Length, ref transformedBytes, 0, PaddingValue, true);
system\security\cryptography\cryptoconfig.cs (16)
551string[] algorithmNames = new string[names.Length]; 552Array.Copy(names, algorithmNames, algorithmNames.Length); 642for (int i = 0; i < cons.Length; i ++) { 644if (con.GetParameters().Length == args.Length) { 696string[] oidNames = new string[names.Length]; 697Array.Copy(names, oidNames, oidNames.Length); 759uint[] oidNums = new uint[oidString.Length]; 760for (int i = 0; i < oidString.Length; i++) { 765byte[] encodedOidNums = new byte[oidNums.Length * 5]; // this is guaranteed to be longer than necessary 768if (oidNums.Length < 2) { 773Array.Copy(retval, 0, encodedOidNums, encodedOidNumsIndex, retval.Length); 774encodedOidNumsIndex += retval.Length; 775for (int i = 2; i < oidNums.Length; i++) { 777Buffer.InternalBlockCopy(retval, 0, encodedOidNums, encodedOidNumsIndex, retval.Length); 778encodedOidNumsIndex += retval.Length;
system\security\cryptography\cryptostream.cs (17)
132_stream.Write(finalBytes, 0, finalBytes.Length); 145Array.Clear(_InputBuffer, 0, _InputBuffer.Length); 147Array.Clear(_OutputBuffer, 0, _OutputBuffer.Length); 187if (buffer.Length - offset < count) 251Array.Clear(tempInputBuffer, 0, tempInputBuffer.Length); 252Array.Clear(tempOutputBuffer, 0, tempOutputBuffer.Length); 288_OutputBufferIndex = finalBytes.Length; 315if (buffer.Length - offset < count) 348Contract.Requires(buffer.Length - offset >= count); 427Array.Clear(tempInputBuffer, 0, tempInputBuffer.Length); 428Array.Clear(tempOutputBuffer, 0, tempOutputBuffer.Length); 469_OutputBufferIndex = finalBytes.Length; 499if (buffer.Length - offset < count) 579if (buffer.Length - offset < count) 603Contract.Requires(buffer.Length - offset >= count); 719Array.Clear(_InputBuffer, 0, _InputBuffer.Length); 721Array.Clear(_OutputBuffer, 0, _OutputBuffer.Length);
system\security\cryptography\des.cs (3)
56if (!ValidKeySize(value.Length * 8)) { // must convert bytes to bits 66KeySizeValue = value.Length * 8; 125if (rgbKey != null && rgbKey.Length == 8) return(true);
system\security\cryptography\descryptoserviceprovider.cs (1)
110if (rgbIV.Length < 8)
system\security\cryptography\dsa.cs (6)
100return SignData(data, 0, data.Length, hashAlgorithm); 106if (offset < 0 || offset > data.Length) { throw new ArgumentOutOfRangeException("offset"); } 107if (count < 0 || count > data.Length - offset) { throw new ArgumentOutOfRangeException("count"); } 127return VerifyData(data, 0, data.Length, signature, hashAlgorithm); 133if (offset < 0 || offset > data.Length) { throw new ArgumentOutOfRangeException("offset"); } 134if (count < 0 || count > data.Length - offset) { throw new ArgumentOutOfRangeException("count"); }
system\security\cryptography\dsacryptoserviceprovider.cs (4)
275Contract.Assert(offset >= 0 && offset <= data.Length); 276Contract.Assert(count >= 0 && count <= data.Length - offset); 310if (rgbHash.Length != _sha1.HashSize / 8) 332if (rgbHash.Length != _sha1.HashSize / 8)
system\security\cryptography\hashalgorithm.cs (8)
84HashCore(buffer, 0, buffer.Length); 97if (count < 0 || (count > buffer.Length)) 99if ((buffer.Length - count) < offset) 139if (inputCount < 0 || (inputCount > inputBuffer.Length)) 141if ((inputBuffer.Length - inputCount) < inputOffset) 162if (inputCount < 0 || (inputCount > inputBuffer.Length)) 164if ((inputBuffer.Length - inputCount) < inputOffset) 212Array.Clear(HashValue, 0, HashValue.Length);
system\security\cryptography\hmac.cs (8)
67for (i=0; i < KeyValue.Length; i++) { 80if (key.Length > BlockSizeValue) { 136m_hash1.TransformBlock(m_inner, 0, m_inner.Length, m_inner, 0); 144m_hash1.TransformBlock(m_inner, 0, m_inner.Length, m_inner, 0); 151m_hash2.TransformBlock(m_outer, 0, m_outer.Length, m_outer, 0); 153m_hash2.TransformBlock(hashValue1, 0, hashValue1.Length, hashValue1, 0); 170Array.Clear(m_inner, 0, m_inner.Length); 172Array.Clear(m_outer, 0, m_outer.Length);
system\security\cryptography\keyedhashalgorithm.cs (1)
25Array.Clear(KeyValue, 0, KeyValue.Length);
system\security\cryptography\mactripledes.cs (1)
164Array.Clear(_Buffer, 0, _Buffer.Length);
system\security\cryptography\passwordderivebytes.cs (12)
148ib = _extra.Length - _extraCount; 172if (rgb.Length + ib > cb) { 195Array.Clear(_baseValue, 0, _baseValue.Length); 198Array.Clear(_extra, 0, _extra.Length); 201Array.Clear(_password, 0, _password.Length); 204Array.Clear(_salt, 0, _salt.Length); 228_password, _password.Length, keySize << 16, rgbIV, rgbIV.Length, 246_hash.TransformBlock(_password, 0, _password.Length, _password, 0); 248_hash.TransformBlock(_salt, 0, _salt.Length, _salt, 0); 272cs.Write(_baseValue, 0, _baseValue.Length); 283cs.Write(_baseValue, 0, _baseValue.Length);
system\security\cryptography\pkcs1maskgenerationmethod.cs (7)
48for (int ib=0; ib<rgbT.Length; ) { 51hash.TransformBlock(rgbSeed, 0, rgbSeed.Length, rgbSeed, 0); 55if (rgbT.Length - ib > _hash.Length) { 56Buffer.BlockCopy(_hash, 0, rgbT, ib, _hash.Length); 58Buffer.BlockCopy(_hash, 0, rgbT, ib, rgbT.Length - ib); 60ib += hash.Hash.Length;
system\security\cryptography\randomnumbergenerator.cs (1)
57if (offset + count > data.Length) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen"));
system\security\cryptography\rc2cryptoserviceprovider.cs (2)
125int keySizeValue = rgbKey.Length * 8; 158if (rgbIV.Length < 8)
system\security\cryptography\rfc2898derivebytes.cs (9)
140if (value.Length < 8) 207Array.Clear(m_buffer, 0, m_buffer.Length); 210Array.Clear(m_salt, 0, m_salt.Length); 217Array.Clear(m_buffer, 0, m_buffer.Length); 229m_hmac.TransformBlock(m_salt, 0, m_salt.Length, null, 0); 230m_hmac.TransformBlock(INT_block, 0, INT_block.Length, null, 0); 237m_hmac.TransformBlock(temp, 0, temp.Length, null, 0); 271m_password, m_password.Length, keySize << 16, rgbIV, rgbIV.Length,
system\security\cryptography\rijndaelmanagedtransform.cs (34)
70m_Nk = rgbKey.Length / 4; 125if (rgbIV.Length / 4 != m_Nb) 177Array.Clear(m_IV, 0, m_IV.Length); 181Array.Clear(m_lastBlockBuffer, 0, m_lastBlockBuffer.Length); 185Array.Clear(m_encryptKeyExpansion, 0, m_encryptKeyExpansion.Length); 189Array.Clear(m_decryptKeyExpansion, 0, m_decryptKeyExpansion.Length); 193Array.Clear(m_depadBuffer, 0, m_depadBuffer.Length); 197Array.Clear(m_shiftRegister, 0, m_shiftRegister.Length); 245if (inputCount <= 0 || (inputCount % InputBlockSize != 0) || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 246if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 2870, m_depadBuffer.Length, 313if (inputCount < 0 || (inputCount > inputBuffer.Length)) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 314if ((inputBuffer.Length - inputCount) < inputOffset) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidOffLen")); 346byte[] temp = new byte[m_depadBuffer.Length + inputCount]; 347Buffer.InternalBlockCopy(m_depadBuffer, 0, temp, 0, m_depadBuffer.Length); 348Buffer.InternalBlockCopy(inputBuffer, inputOffset, temp, m_depadBuffer.Length, inputCount); 352temp.Length, 392if (inputBuffer.Length < inputOffset + inputCount) 461if ((outputBuffer.Length - outputOffset) < (inputCount + padSize)) 562Contract.Assert(m_blockSizeBytes <= m_lastBlockBuffer.Length * sizeof(int), "m_blockSizeBytes <= m_lastBlockBuffer.Length * sizeof(int)"); 593if (inputBuffer.Length < inputOffset + inputCount) 600if ((outputBuffer.Length - outputOffset) < inputCount) 716if (padSize > outputBuffer.Length || padSize > InputBlockSize || padSize <= 0) 721outputBuffer1 = new byte[outputBuffer.Length - padSize]; 722Buffer.InternalBlockCopy(outputBuffer, 0, outputBuffer1, 0, outputBuffer.Length - padSize); 729if (padSize > outputBuffer.Length || padSize > InputBlockSize || padSize <= 0) 735outputBuffer1 = new byte[outputBuffer.Length - padSize]; 736Buffer.InternalBlockCopy(outputBuffer, 0, outputBuffer1, 0, outputBuffer.Length - padSize); 742if (padSize > outputBuffer.Length || padSize > InputBlockSize || padSize <= 0) 745outputBuffer1 = new byte[outputBuffer.Length - padSize]; 746Buffer.InternalBlockCopy(outputBuffer, 0, outputBuffer1, 0, outputBuffer.Length - padSize); 751return outputBuffer1.Length; 854switch (m_blockSizeBits > rgbKey.Length * 8 ? m_blockSizeBits : rgbKey.Length * 8) {
system\security\cryptography\ripemd160managed.cs (3)
59Array.Clear(_blockDWords, 0, _blockDWords.Length); 60Array.Clear(_buffer, 0, _buffer.Length); 159_HashData(pad, 0, pad.Length);
system\security\cryptography\rngcryptoserviceprovider.cs (2)
97GetBytes(m_safeProvHandle, data, data.Length); 111GetNonZeroBytes(m_safeProvHandle, data, data.Length);
system\security\cryptography\rsa.cs (6)
113return SignData(data, 0, data.Length, hashAlgorithm, padding); 120if (offset < 0 || offset > data.Length) { 123if (count < 0 || count > data.Length - offset) { 156return VerifyData(data, 0, data.Length, signature, hashAlgorithm, padding); 163if (offset < 0 || offset > data.Length) { 166if (count < 0 || count > data.Length - offset) {
system\security\cryptography\rsacryptoserviceprovider.cs (6)
407EncryptKey(_safeKeyHandle, rgb, rgb.Length, fOAEP, JitHelpers.GetObjectHandleOnStack(ref encryptedKey)); 426if (rgb.Length > (KeySize / 8)) 439DecryptKey(_safeKeyHandle, rgb, rgb.Length, fOAEP, JitHelpers.GetObjectHandleOnStack(ref decryptedKey)); 523Contract.Assert(offset >= 0 && offset <= data.Length); 524Contract.Assert(count >= 0 && count <= data.Length); 544bytesRead = data.Read(buffer, 0, buffer.Length);
system\security\cryptography\rsapkcs1keyexchangedeformatter.cs (4)
65for (i = 2; i<rgb.Length; i++) { 71if (i >= rgb.Length) 76rgbOut = new byte[rgb.Length - i]; 77Buffer.InternalBlockCopy(rgb, i, rgbOut, 0, rgbOut.Length);
system\security\cryptography\rsapkcs1keyexchangeformatter.cs (4)
67if ((rgbData.Length + 11) > cb) 86rgbInput[cb-rgbData.Length-1] = 0; 87Buffer.InternalBlockCopy(rgbData, 0, rgbInput, cb-rgbData.Length, rgbData.Length);
system\security\cryptography\sha1managed.cs (3)
69Array.Clear(_buffer, 0, _buffer.Length); 70Array.Clear(_expandedBuffer, 0, _expandedBuffer.Length); 202_HashData(pad, 0, pad.Length);
system\security\cryptography\sha256managed.cs (3)
71Array.Clear(_buffer, 0, _buffer.Length); 72Array.Clear(_W, 0, _W.Length); 200_HashData(pad, 0, pad.Length);
system\security\cryptography\sha384managed.cs (3)
68Array.Clear(_buffer, 0, _buffer.Length); 69Array.Clear(_W, 0, _W.Length); 211_HashData(pad, 0, pad.Length);
system\security\cryptography\sha512managed.cs (3)
60Array.Clear(_buffer, 0, _buffer.Length); 61Array.Clear(_W, 0, _W.Length); 204_HashData(pad, 0, pad.Length);
system\security\cryptography\symmetricalgorithm.cs (7)
63Array.Clear(KeyValue, 0, KeyValue.Length); 67Array.Clear(IVValue, 0, IVValue.Length); 83for (i=0; i<LegalBlockSizesValue.Length; i++) { 126if (value.Length != BlockSizeValue / 8) 141if (!ValidKeySize(value.Length * 8)) 146KeySizeValue = value.Length * 8; 200for (i=0; i< validSizes.Length; i++) {
system\security\cryptography\tripledes.cs (7)
55if (!ValidKeySize(value.Length * 8)) { // must convert bytes to bits 62KeySizeValue = value.Length * 8; 86if ((rgbOddParityKey.Length == 24) && EqualBytes(rgbOddParityKey,8,16,8)) return(true); 97if ((start1+count) > rgbKey.Length) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 98if ((start2+count) > rgbKey.Length) throw new ArgumentException(Environment.GetResourceString("Argument_InvalidValue")); 107if (rgbKey != null && ((rgbKey.Length == 16) || (rgbKey.Length == 24)))
system\security\cryptography\tripledescryptoserviceprovider.cs (2)
106if (rgbIV.Length < 8) 123if (rgbKey.Length == 16) {
system\security\cryptography\utils.cs (54)
268if (error == Win32Native.ERROR_SUCCESS && (rawSecurityDescriptor == null || rawSecurityDescriptor.Length == 0)) 315if (sd != null && sd.Length > 0) 646for (int i = 0; i < input.Length; i++) { 686Array.Clear(counter, 0, counter.Length); 698byte[] oddParityKey = new byte[key.Length]; 699for (int index=0; index < key.Length; index++) { 811if ((data.Length + 2 + 2*cbHash) > cb) 823DB[DB.Length - data.Length - 1] = 1; 824Buffer.InternalBlockCopy(data, 0, DB, DB.Length-data.Length, data.Length); 831byte[] mask = mgf.GenerateMask(seed, DB.Length); 834for (int i=0; i < DB.Length; i++) { 842for (int i=0; i < seed.Length; i++) { 848Buffer.InternalBlockCopy(seed, 0, pad, 0, seed.Length); 849Buffer.InternalBlockCopy(DB, 0, pad, seed.Length, DB.Length); 875int zeros = cb - data.Length; 880Buffer.InternalBlockCopy(data, 0, seed, zeros, seed.Length - zeros); 882byte[] DB = new byte[data.Length - seed.Length + zeros]; 883Buffer.InternalBlockCopy(data, seed.Length - zeros, DB, 0, DB.Length); 886byte[] mask = mgf.GenerateMask(DB, seed.Length); 890for (i=0; i < seed.Length; i++) { 895mask = mgf.GenerateMask(seed, DB.Length); 898for (i=0; i < DB.Length; i++) { 915for (; i<DB.Length; i++) { 922if (i == DB.Length) 928byte[] output = new byte[DB.Length - i]; 929Buffer.InternalBlockCopy(DB, i, output, 0, output.Length); 954byte[] data = new byte[oid.Length + 8 + hash.Length]; 956int tmp = data.Length - 2; 959tmp = oid.Length + 2; 961Buffer.InternalBlockCopy(oid, 0, data, 4, oid.Length); 962data[4 + oid.Length] = 0x05; 963data[4 + oid.Length + 1] = 0x00; 964data[4 + oid.Length + 2] = 0x04; // an octet string follows 965data[4 + oid.Length + 3] = (byte) hash.Length; 966Buffer.InternalBlockCopy(hash, 0, data, oid.Length + 8, hash.Length); 969int cb1 = cb - data.Length; 979Buffer.InternalBlockCopy(data, 0, pad, cb1, data.Length); 989while (i < lhs.Length && lhs[i] == 0) i++; 990while (j < rhs.Length && rhs[j] == 0) j++; 992int count = (lhs.Length - i); 993if ((rhs.Length - j) != count) 1106HashData(hHash, data, data.Length, ibStart, cbSize); 1149SignValue(hKey, keyNumber, calgKey, calgHash, hash, hash.Length, JitHelpers.GetObjectHandleOnStack(ref signature)); 1161return VerifySign(hKey, calgKey, calgHash, hash, hash.Length, signature, signature.Length);
system\security\cryptography\x509certificates\x509certificate.cs (3)
97if ((data != null) && (data.Length != 0)) 405for (int i = 0; i < m_thumbprint.Length && i < 4; ++i) { 785if (rawData == null || rawData.Length == 0)
system\security\permissions\fileiopermission.cs (7)
209if (pathListOrig.Length == 0) 226pathList = new String[pathListOrig.Length]; 227Array.Copy(pathListOrig, pathList, pathListOrig.Length); 553for (int i = 0; i < str.Length; ++i) 1309for (int i = 0; i < expressions.Length; ++i) 1326for (int i = 0; i < expressions.Length; ++i) 1368for (int i = 0; i < expressions.Length; ++i)
system\security\permissions\keycontainerpermission.cs (3)
304if (index < 0 || index >= array.Length) 306if (index + this.Count > array.Length) 400for (int index = 0; index < accessList.Length; index++) {
system\security\permissions\permissionattributes.cs (1)
1148for (int i = 0; reader == null && i < encodings.Length; ++i)
system\security\permissions\principalpermission.cs (13)
173for (int i = 0; i < m_array.Length; ++i) 198for (int i = 0; i < m_array.Length; ++i) 232for (int i = 0; i < this.m_array.Length; ++i) 236for (int j = 0; j < operand.m_array.Length; ++j) 294for (int i = 0; i < this.m_array.Length; ++i) 296for (int j = 0; j < operand.m_array.Length; ++j) 392int combinedLength = this.m_array.Length + operand.m_array.Length; 396for (i = 0; i < this.m_array.Length; ++i) 401for (j = 0; j < operand.m_array.Length; ++j) 428for(i = 0; i < m_array.Length; i++) 477int count = this.m_array.Length; 530int count = m_array.Length;
system\security\permissions\publisheridentitypermission.cs (13)
80if(m_certs == null || m_certs.Length < 1) 82if(m_certs.Length > 1) 126perm.m_certs = new X509Certificate[this.m_certs.Length]; 128for(n = 0; n < this.m_certs.Length; n++) 142if(m_certs.Length == 0) 193if(this.m_certs == null || that.m_certs == null || this.m_certs.Length == 0 || that.m_certs.Length == 0) 215if((this.m_certs == null || this.m_certs.Length == 0) && !this.m_unrestricted) 228if (this.m_certs == null || this.m_certs.Length == 0) 230if(that.m_certs == null || that.m_certs.Length == 0) 234if(that.m_certs == null || that.m_certs.Length == 0) 295if (m_certs.Length == 1) 300for(n = 0; n < m_certs.Length; n++)
system\security\permissions\siteidentitypermission.cs (13)
71if (m_sites != null && m_sites.Length == 1) // for the v1.x case 134if(m_sites.Length == 1) 165perm.m_sites = new SiteString[this.m_sites.Length]; 167for(n = 0; n < this.m_sites.Length; n++) 181if(m_sites.Length == 0) 232if(this.m_sites == null || that.m_sites == null || this.m_sites.Length == 0 || that.m_sites.Length == 0) 255if((this.m_sites == null || this.m_sites.Length == 0) && !this.m_unrestricted) 268if (this.m_sites == null || this.m_sites.Length == 0) 270if(that.m_sites == null || that.m_sites.Length == 0) 274if(that.m_sites == null || that.m_sites.Length == 0) 335if (m_sites.Length == 1) 340for(n = 0; n < m_sites.Length; n++)
system\security\permissions\strongnameidentitypermission.cs (20)
169if(m_strongNames != null && m_strongNames.Length == 1) 180if(m_strongNames == null || m_strongNames.Length == 0) 182if(m_strongNames.Length > 1) 196if(m_strongNames != null && m_strongNames.Length == 1) 207if(m_strongNames == null || m_strongNames.Length == 0) 209if(m_strongNames.Length > 1) 220if(m_strongNames != null && m_strongNames.Length == 1) 231if(m_strongNames == null || m_strongNames.Length == 0) 233if(m_strongNames.Length > 1) 264perm.m_strongNames = new StrongName2[this.m_strongNames.Length]; 266for(n = 0; n < this.m_strongNames.Length; n++) 280if(m_strongNames.Length == 0) 333if(this.m_strongNames == null || that.m_strongNames == null || this.m_strongNames.Length == 0 || that.m_strongNames.Length == 0) 356if((this.m_strongNames == null || this.m_strongNames.Length == 0) && !this.m_unrestricted) 369if (this.m_strongNames == null || this.m_strongNames.Length == 0) 371if(that.m_strongNames == null || that.m_strongNames.Length == 0) 375if(that.m_strongNames == null || that.m_strongNames.Length == 0) 453if (m_strongNames.Length == 1) 465for(n = 0; n < m_strongNames.Length; n++)
system\security\permissions\strongnamepublickeyblob.cs (6)
32this.PublicKey = new byte[publicKey.Length]; 33Array.Copy( publicKey, 0, this.PublicKey, 0, publicKey.Length ); 43if (first.Length != second.Length) 48int count = first.Length; 82for (int i = 0; i < baData.Length; ++i)
system\security\permissions\urlidentitypermission.cs (14)
74if (m_urls != null && m_urls.Length == 1) // for the v1.x case 136for(n = 0; n < this.m_urls.Length; n++) 165if(m_urls.Length == 1) 196perm.m_urls = new URLString[this.m_urls.Length]; 198for(n = 0; n < this.m_urls.Length; n++) 212if(m_urls.Length == 0) 263if(this.m_urls == null || that.m_urls == null || this.m_urls.Length == 0 || that.m_urls.Length == 0) 286if((this.m_urls == null || this.m_urls.Length == 0) && !this.m_unrestricted) 299if (this.m_urls == null || this.m_urls.Length == 0) 301if(that.m_urls == null || that.m_urls.Length == 0) 305if(that.m_urls == null || that.m_urls.Length == 0) 366if (m_urls.Length == 1) 371for(n = 0; n < m_urls.Length; n++)
system\security\permissionset.cs (3)
1669if (data != null && data.Length > 0) 2244ms.Read( retval, 0, retval.Length ); 2428for (int i = 0; i < attrs.Length; i++)
system\security\policy\applicationtrust.cs (4)
485for (; i<trusts.Length; i++) { 556for (; i<trusts.Length; i++) { 621if (index < 0 || index >= array.Length) 623if (array.Length - index < this.Count)
system\security\policy\assemblyevidencefactory.cs (1)
174if (publicKeyBlob == null || publicKeyBlob.Length == 0)
system\security\policy\evidence.cs (4)
260int l = runtimeEvidenceTypes.Length; 1068if (index < 0 || index > array.Length - Count) 1760if (m_typeIndex < m_evidenceTypes.Length) 1772while (m_typeIndex < m_evidenceTypes.Length && m_currentEvidence == null);
system\security\policy\hash.cs (10)
125byte[] hashClone = new byte[hashValue.Length]; 126Array.Copy(hashValue, hashClone, hashClone.Length); 241byte[] returnHash = new byte[sha1.Length]; 242Array.Copy(sha1, returnHash, returnHash.Length); 260byte[] returnHash = new byte[sha256.Length]; 261Array.Copy(sha256, returnHash, returnHash.Length); 279byte[] returnHash = new byte[md5.Length]; 280Array.Copy(md5, returnHash, returnHash.Length); 297byte[] returnHash = new byte[hashValue.Length]; 298Array.Copy(hashValue, returnHash, returnHash.Length);
system\security\policy\hashmembershipcondition.cs (13)
61m_value = new byte[value.Length]; 62Array.Copy(value, m_value, value.Length); 96m_value = new byte[value.Length]; 97Array.Copy(value, m_value, value.Length); 105byte[] value = new byte[m_value.Length]; 106Array.Copy(m_value, value, m_value.Length); 213if (this.m_value.Length != that.m_value.Length) 216for (int i = 0; i < m_value.Length; i++) { 282if (first.Length != second.Length) 285int count = first.Length; 299for (int i = 0; i < baData.Length; ++i) {
system\security\policy\netcodegroup.cs (6)
352for (int i = 0; i < result.Length; ++i) 503if (access == null || access.Length == 0) 535for (int i = 0; i < access.Length; ++i) 583for (int i = 0; i < access.Length; ++i) 615System.Text.StringBuilder sb = new System.Text.StringBuilder(c_AnyScheme.Length * access.Length + c_IgnoreUserInfo.Length*2 + escapedHost.Length); 622for (; i < access.Length; ++i)
system\security\policy\policylevel.cs (4)
378for (int index = 0; index < s_reservedNamedPermissionSets.Length; ++index) { 435for (int index = 0; index < s_reservedNamedPermissionSets.Length; ++index) { 1105for (int index=0; index < EcmaFullTrustAssemblies.Length; index++) { 1113for (int index=0; index < MicrosoftFullTrustAssemblies.Length; index++) {
system\security\policy\publisher.cs (4)
77int len = publicKey1.Length; 78if (len != publicKey2.Length) return(false); 83len = keyAlgParam1.Length; 84if (keyAlgParam2.Length != len) return(false);
system\security\policy\zone.cs (1)
136elem.AddChild( new SecurityElement( "Zone", s_names[s_names.Length-1] ) );
system\security\policymanager.cs (2)
314int hrSave = Config.SaveDataByte(level.Path, data, data.Length); 459Contract.Assert(0 <= (int)zone && (int)zone < FullTrustMap.Length, "FullTrustMap does not contain a mapping for this zone.");
system\security\principal\genericprincipal.cs (5)
42m_roles = new string[roles.Length]; 43for (int i = 0; i < roles.Length; ++i) { 78if (m_roles != null && m_roles.Length > 0 && firstNonNullIdentity != null) 106if (roles != null && roles.Length > 0) 134for (int i = 0; i < m_roles.Length; ++i) {
system\security\principal\ntaccount.cs (2)
367SidsPtr.ReadArray(0, translatedSids, 0, translatedSids.Length); 409SidsPtr.ReadArray(0, translatedSids, 0, translatedSids.Length);
system\security\principal\sid.cs (8)
205if ( subAuthorities.Length > MaxSubAuthorities ) 209subAuthorities.Length, 231_SubAuthorities = new int[ subAuthorities.Length ]; 305if ( binaryForm.Length - offset < SecurityIdentifier.MinBinaryLength ) 348if ( binaryForm.Length - offset < Length ) 611get { return _SubAuthorities.Length; } 618return _BinaryForm.Length; 1028NamesPtr.ReadArray(0, translatedNames, 0, translatedNames.Length);
system\security\principal\windowsidentity.cs (11)
577groupDetails.Length); 985UIntPtr ptrLength = new UIntPtr((uint)(sourceName.Length + 1)); 991pSourceName.Initialize((ulong)sourceName.Length + 1); 992pSourceName.WriteArray(0, sourceName, 0, sourceName.Length); 993Win32Native.UNICODE_INTPTR_STRING Name = new Win32Native.UNICODE_INTPTR_STRING(sourceName.Length, 1037ptrLength = new UIntPtr((uint)arrayPackageName.Length); 1041pPackageName.Initialize((ulong)(uint)arrayPackageName.Length); 1043pPackageName.WriteArray(0, arrayPackageName, 0, arrayPackageName.Length); 1073uint logonInfoSize = (uint) (Marshal.SizeOf(typeof(Win32Native.KERB_S4U_LOGON)) + upnBytes.Length); 1086upnBytes.Length); 1101logonInfo.ClientUpn = new Win32Native.UNICODE_INTPTR_STRING(upnBytes.Length,
system\security\securitydocument.cs (7)
94if (m_data.Length < size) 97Array.Copy( m_data, 0, m_newData, 0, m_data.Length ); 145for (stringEnd = position; stringEnd < m_data.Length-1; stringEnd += 2) 258if (m_data.Length <= position) 299if (m_data.Length <= position) 311if (m_data.Length <= position) 349if (m_data.Length <= position)
system\security\securityelement.cs (2)
499int iMax = s_escapeStringPairs.Length; 561int iMax = s_escapeStringPairs.Length;
system\security\securityexception.cs (1)
152if(array == null || array.Length == 0)
system\security\securitymanager.cs (7)
295if (evidences == null || evidences.Length == 0) 302for (int i = 1; i < evidences.Length; ++i) 585for (int i = 0; i < specialPermissions.Length; i++) { 596for (int i = 0; i < specialPermissions.Length; i++) { 606for (int i = 0; i < s_BuiltInPermissionIndexMap.Length; i++) { 617for (int i = 0; i < s_BuiltInPermissionIndexMap.Length; i++) { 626for (int i = 0; i < specialPermissions.Length; i++) {
system\security\util\config.cs (3)
114bool ret = GetCacheEntry(id, numKey, key, key.Length, JitHelpers.GetObjectHandleOnStack(ref retData)); 128AddCacheEntry(id, numKey, key, key.Length, data, data.Length);
system\security\util\hex.cs (4)
32char[] hexOrder = new char[sArray.Length * 2]; 35for(int i = 0, j = 0; i < sArray.Length; i++) { 49char[] hexOrder = new char[sArray.Length * 2]; 51int i = sArray.Length;
system\security\util\sitestring.cs (2)
69for (int index = separatedArray.Length-1; index > -1; --index) 77if (index != separatedArray.Length-1)
system\security\util\stringexpressionset.cs (5)
158for (int index = 0; index < arystr.Length; ++index) 224for (int index = 0; index < str.Length; ++index) 276for (int i = 0; i < quoteSplit.Length; ++i) 282for (int j = 0; j < semiSplit.Length; ++j) 322for (int index = 0; index < expressionsArray.Length; ++index)
system\security\util\tokenbasedset.cs (5)
148int aLen = aObj.Length; 223if (index >= aObj.Length) 260if (index < m_Set.Length) 295if (index < m_Set.Length && (ret = Volatile.Read(ref m_Set[index])) != null) 325for (i = aObj.Length - 1; i >= 0; i--)
system\security\util\tokenizer.cs (9)
168_inSize = array.Length; 194_inSize = array.Length; 455for (int istr=0; istr < _searchStrings.Length; istr++) 847if (m_currentTokens.m_block.Length <= m_indexTokens) 860if (m_currentStrings.m_block.Length <= m_indexStrings) 884if (m_currentTokens.m_block.Length <= m_indexTokens) 906if (m_currentStrings.m_block.Length <= m_indexStrings) 925m_lastTokens.m_block[m_lastTokens.m_block.Length-1] = (short)((ushort)m_lastTokens.m_block[m_lastTokens.m_block.Length-1] | (ushort)tag);
system\security\util\urlstring.cs (5)
1102for (int index = 0; index < separatedArray.Length; ++index) 1110if (index != separatedArray.Length-1) 1181for (int index = 0; index < separatedArray.Length; ++index) 1190else if (index != separatedArray.Length-1) 1197if (index != separatedArray.Length-1)
system\string.cs (30)
88return Join(separator, value, 0, value.Length); 97if (values.Length == 0 || values[0] == null) 109for (int i = 1; i < values.Length; i++) { 214if (startIndex > value.Length - count) 740if (destinationIndex > destination.Length - count || destinationIndex < 0) 1068if (separator == null || separator.Length ==0) { 1193if (separator == null || separator.Length ==0) { 1196for (int i=0; i < Length && foundCount < sepList.Length; i++) { 1204int sepListCount = sepList.Length; 1205int sepCount = separator.Length; 1231Contract.Assert(separators != null && separators.Length > 0, "separators != null && separators.Length > 0"); 1234int sepListCount = sepList.Length; 1235int sepCount = separators.Length; 1239for( int j =0; j < separators.Length; j++) { 1320if (null==trimChars || trimChars.Length == 0) { 1328if (null==trimChars || trimChars.Length == 0) { 1337if (null==trimChars || trimChars.Length == 0) { 1579if (value != null && value.Length != 0) { 1580String result = FastAllocateString(value.Length); 1584wstrcpy(dest, source, value.Length); 1605if (startIndex > value.Length - length) 2780for( i = 0; i < trimChars.Length; i++) { 2783if( i == trimChars.Length) { // the character is not white space 2793for(i = 0; i < trimChars.Length; i++) { 2796if( i == trimChars.Length) { // the character is not white space 3128String[] sArgs = new String[args.Length]; 3131for (int i=0; i<args.Length; i++) { 3296for (int i=0; i<values.Length; i++) { 3316String[] internalValues = new String[values.Length]; 3318for (int i=0; i<values.Length; i++) {
system\stubhelpers.cs (11)
33cbLength = str.ConvertToAnsi(bufferPtr, buffer.Length, fBestFit, fThrowOnUnmappableChar); 802for (int i = 0; i < managedArray.Length; i++) 815for (int i = 0; i < managedArray.Length; i++) 828for (int i = 0; i < managedArray.Length; i++) 842for (int i = 0; i < managedArray.Length; i++) 855for (int i = 0; i < managedArray.Length; i++) 876for (int i = 0; i < managedArray.Length; i++) 889for (int i = 0; i < managedArray.Length; i++) 902for (int i = 0; i < managedArray.Length; i++) 916for (int i = 0; i < managedArray.Length; i++) 929for (int i = 0; i < managedArray.Length; i++)
system\text\asciiencoding.cs (19)
71if (chars.Length - index < count) 77if (chars.Length == 0) 146if (byteIndex < 0 || byteIndex > bytes.Length) 151int byteCount = bytes.Length - byteIndex; 154if (bytes.Length == 0) 190if (chars.Length - charIndex < charCount) 194if (byteIndex < 0 || byteIndex > bytes.Length) 200if (chars.Length == 0) 204int byteCount = bytes.Length - byteIndex; 207if (bytes.Length == 0) 259if (bytes.Length - index < count) 265if (bytes.Length == 0) 313if ( bytes.Length - byteIndex < byteCount) 317if (charIndex < 0 || charIndex > chars.Length) 323if (bytes.Length == 0) 327int charCount = chars.Length - charIndex; 330if (chars.Length == 0) 383if (bytes.Length - byteIndex < byteCount) 389if (bytes.Length == 0) return String.Empty;
system\text\dbcscodepageencoding.cs (6)
411Contract.Assert((arrayTemp.Length / 2) < 20, 412"[DBCSCodePageEncoding.ReadBestFitTable]Expected small best fit table < 20 for code page " + CodePage + ", not " + arrayTemp.Length / 2); 414for (int i = 0; i < arrayTemp.Length - 2; i+=2) 419for (int j = i + 2; j < arrayTemp.Length; j+=2) 1077Contract.Assert(bytes >= byteStart + byteBuffer.Length, 1079bytes-=byteBuffer.Length; // didn't use these byte(s)
system\text\decoder.cs (2)
272if (bytes.Length - byteIndex < byteCount) 276if (chars.Length - charIndex < charCount)
system\text\decoderbestfitfallback.cs (6)
183int highBound = oFallback.arrayBestFit.Length; 192if (bytesCheck.Length == 0 || bytesCheck.Length > 2) 195if (bytesCheck.Length == 1) 217Contract.Assert(index + 1 < oFallback.arrayBestFit.Length, 238Contract.Assert(index + 1 < oFallback.arrayBestFit.Length,
system\text\decoderexceptionfallback.cs (2)
84StringBuilder strBytes = new StringBuilder(bytesUnknown.Length * 3); 87for (i = 0; i < bytesUnknown.Length && i < 20; i++)
system\text\decoderfallback.cs (4)
160if (this.Fallback(bytes, (int)(pBytes - byteStart - bytes.Length))) 221if (this.Fallback(bytes, (int)(pBytes - byteStart - bytes.Length))) 266StringBuilder strBytes = new StringBuilder(bytesUnknown.Length * 3); 268for (i = 0; i < bytesUnknown.Length && i < 20; i++)
system\text\decodernls.cs (11)
95if (bytes.Length - index < count) 102if (bytes.Length == 0) 150if ( bytes.Length - byteIndex < byteCount) 154if (charIndex < 0 || charIndex > chars.Length) 161if (bytes.Length == 0) 164int charCount = chars.Length - charIndex; 165if (chars.Length == 0) 218if (bytes.Length - byteIndex < byteCount) 222if (chars.Length - charIndex < charCount) 229if (bytes.Length == 0) 231if (chars.Length == 0)
system\text\encoder.cs (2)
264if (chars.Length - charIndex < charCount) 268if (bytes.Length - byteIndex < byteCount)
system\text\encoderbestfitfallback.cs (3)
201int highBound = oFallback.arrayBestFit.Length; 217Contract.Assert(index + 1 < oFallback.arrayBestFit.Length, 238Contract.Assert(index + 1 < oFallback.arrayBestFit.Length,
system\text\encodernls.cs (11)
95if (chars.Length - index < count) 101if (chars.Length == 0) 144if (chars.Length - charIndex < charCount) 148if (byteIndex < 0 || byteIndex > bytes.Length) 153if (chars.Length == 0) 156int byteCount = bytes.Length - byteIndex; 157if (bytes.Length == 0) 207if (chars.Length - charIndex < charCount) 211if (bytes.Length - byteIndex < byteCount) 218if (chars.Length == 0) 220if (bytes.Length == 0)
system\text\encoding.cs (8)
369return Convert(srcEncoding, dstEncoding, bytes, 0, bytes.Length); 958return GetByteCount(chars, 0, chars.Length); 969return GetByteCount(chars, 0, chars.Length); 1031return GetBytes(chars, 0, chars.Length); 1169return GetCharCount(bytes, 0, bytes.Length); 1225return GetChars(bytes, 0, bytes.Length); 1490return GetString(bytes, 0, bytes.Length); 2072bytes -= byteBuffer.Length; // Didn't use how many ever bytes we're falling back
system\text\encodingnls.cs (19)
58if (chars.Length - index < count) 64if (chars.Length == 0) 128if (byteIndex < 0 || byteIndex > bytes.Length) 133int byteCount = bytes.Length - byteIndex; 136if (bytes.Length == 0) 171if (chars.Length - charIndex < charCount) 175if (byteIndex < 0 || byteIndex > bytes.Length) 181if (chars.Length == 0) 185int byteCount = bytes.Length - byteIndex; 188if (bytes.Length == 0) 236if (bytes.Length - index < count) 242if (bytes.Length == 0) 286if ( bytes.Length - byteIndex < byteCount) 290if (charIndex < 0 || charIndex > chars.Length) 296if (bytes.Length == 0) 300int charCount = chars.Length - charIndex; 303if (chars.Length == 0) 351if (bytes.Length - index < count) 357if (bytes.Length == 0) return String.Empty;
system\text\encodingprovider.cs (3)
64var providers = new EncodingProvider[s_providers.Length + 1]; 65Array.Copy(s_providers, providers, s_providers.Length); 66providers[providers.Length - 1] = provider;
system\text\gb18030encoding.cs (1)
183for (int index = 0; index < tableUnicodeToGBDiffs.Length; index++)
system\text\iso2022encoding.cs (1)
461if (bTrailByte < 0x21 || bTrailByte >= 0x21 + HalfToFullWidthKanaTable.Length)
system\text\normalization.cs (2)
272cBuffer.Length); 282Contract.Assert(iLength > cBuffer.Length, "Buffer overflow should have iLength > cBuffer.Length");
system\text\stringbuilder.cs (27)
261BCLDebug.Correctness((uint)(m_ChunkOffset + m_ChunkChars.Length) >= m_ChunkOffset, "Integer Overflow"); 270Contract.Assert(currentBlock.m_ChunkLength <= currentBlock.m_ChunkChars.Length, "Out of range length"); 287get { return m_ChunkChars.Length + m_ChunkOffset; } 353if ((uint)(chunkLength + chunkOffset) <= ret.Length && (uint)chunkLength <= (uint)sourceArray.Length) 428if ((uint)(chunkCount + curDestIndex) <= length && (uint)(chunkCount + chunkStartIndex) <= (uint)sourceArray.Length) 500Contract.Assert(newLen > chunk.m_ChunkChars.Length, "the new chunk should be larger than the one it is replacing"); 567if (idx < m_ChunkChars.Length) 617if (charCount > value.Length - startIndex) { 644if (newCurrentIndex < chunkChars.Length) // Use strictly < to avoid issue if count == 0, newIndex == length 770if (destinationIndex > destination.Length - count) { 929if (m_ChunkLength < m_ChunkChars.Length) 1017if (null != value && value.Length > 0) 1021Append(valueChars, value.Length); 1122Insert(index, value, 0, value.Length); 1157if (startIndex > value.Length - charCount) { 1578else if (replacementsCount >= replacements.Length) 1580int[] newArray = new int[replacements.Length * 3 / 2 + 4]; // grow by 1.5X but more in the begining 1581Array.Copy(replacements, newArray, replacements.Length); 1674if (newIndex <= m_ChunkChars.Length) 1682int firstLength = m_ChunkChars.Length - m_ChunkLength; 1686m_ChunkLength = m_ChunkChars.Length; 1758Contract.Assert(gapStart < sourceChunk.m_ChunkChars.Length, "gap starts at end of buffer. Should not happen"); 1853if ((uint)destinationIndex <= (uint)destination.Length && (destinationIndex + count) <= destination.Length) 1869if ((uint)sourceIndex <= (uint)source.Length && (sourceIndex + count) <= source.Length) 2044if (!doneMoveFollowingChars && chunk.m_ChunkLength <= DefaultCapacity * 2 && chunk.m_ChunkChars.Length - chunk.m_ChunkLength >= count)
system\text\unicodeencoding.cs (19)
108if (chars.Length - index < count) 114if (chars.Length == 0) 183if (byteIndex < 0 || byteIndex > bytes.Length) 188int byteCount = bytes.Length - byteIndex; 191if (bytes.Length == 0) 227if (chars.Length - charIndex < charCount) 231if (byteIndex < 0 || byteIndex > bytes.Length) 237if (chars.Length == 0) 241int byteCount = bytes.Length - byteIndex; 244if (bytes.Length == 0) 296if (bytes.Length - index < count) 302if (bytes.Length == 0) 350if ( bytes.Length - byteIndex < byteCount) 354if (charIndex < 0 || charIndex > chars.Length) 360if (bytes.Length == 0) 364int charCount = chars.Length - charIndex; 367if (chars.Length == 0) 420if (bytes.Length - index < count) 426if (bytes.Length == 0) return String.Empty;
system\text\utf32encoding.cs (19)
112if (chars.Length - index < count) 118if (chars.Length == 0) 186if (byteIndex < 0 || byteIndex > bytes.Length) 191int byteCount = bytes.Length - byteIndex; 194if (bytes.Length == 0) 230if (chars.Length - charIndex < charCount) 234if (byteIndex < 0 || byteIndex > bytes.Length) 240if (chars.Length == 0) 244int byteCount = bytes.Length - byteIndex; 247if (bytes.Length == 0) 298if (bytes.Length - index < count) 304if (bytes.Length == 0) 351if ( bytes.Length - byteIndex < byteCount) 355if (charIndex < 0 || charIndex > chars.Length) 361if (bytes.Length == 0) 365int charCount = chars.Length - charIndex; 368if (chars.Length == 0) 419if (bytes.Length - index < count) 425if (bytes.Length == 0) return String.Empty;
system\text\utf7encoding.cs (21)
176if (chars.Length - index < count) 182if (chars.Length == 0) 253if (byteIndex < 0 || byteIndex > bytes.Length) 258int byteCount = bytes.Length - byteIndex; 261if (bytes.Length == 0) 297if (chars.Length - charIndex < charCount) 301if (byteIndex < 0 || byteIndex > bytes.Length) 307if (chars.Length == 0) 311int byteCount = bytes.Length - byteIndex; 314if (bytes.Length == 0) 366if (bytes.Length - index < count) 372if (bytes.Length == 0) 420if ( bytes.Length - byteIndex < byteCount) 424if (charIndex < 0 || charIndex > chars.Length) 430if (bytes.Length == 0) 434int charCount = chars.Length - charIndex; 437if (chars.Length == 0) 490if (bytes.Length - index < count) 496if (bytes.Length == 0) return String.Empty; 1081Contract.Assert(bytesUnknown.Length == 1, "[DecoderUTF7FallbackBuffer.Fallback] Only possible fallback case should be 1 unknown byte"); 1142if (bytes.Length != 1)
system\text\utf8encoding.cs (19)
140if (chars.Length - index < count) 146if (chars.Length == 0) 215if (byteIndex < 0 || byteIndex > bytes.Length) 220int byteCount = bytes.Length - byteIndex; 223if (bytes.Length == 0) 259if (chars.Length - charIndex < charCount) 263if (byteIndex < 0 || byteIndex > bytes.Length) 269if (chars.Length == 0) 273int byteCount = bytes.Length - byteIndex; 276if (bytes.Length == 0) 328if (bytes.Length - index < count) 334if (bytes.Length == 0) 382if ( bytes.Length - byteIndex < byteCount) 386if (charIndex < 0 || charIndex > chars.Length) 392if (bytes.Length == 0) 396int charCount = chars.Length - charIndex; 399if (chars.Length == 0) 452if (bytes.Length - index < count) 458if (bytes.Length == 0) return String.Empty;
system\threading\asynclocal.cs (12)
355Contract.Assert(index < _keyValues.Length); 362for (int i = 0; i < _keyValues.Length; i++) 371var multi = new MultiElementAsyncLocalValueMap(_keyValues.Length); 372Array.Copy(_keyValues, 0, multi._keyValues, 0, _keyValues.Length); 376else if (_keyValues.Length == 4) 390var multi = new MultiElementAsyncLocalValueMap(_keyValues.Length - 1); 392if (i != _keyValues.Length - 1) Array.Copy(_keyValues, i + 1, multi._keyValues, i, _keyValues.Length - i - 1); 408if (_keyValues.Length < MaxMultiElements) 410var multi = new MultiElementAsyncLocalValueMap(_keyValues.Length + 1); 411Array.Copy(_keyValues, 0, multi._keyValues, 0, _keyValues.Length); 412multi._keyValues[_keyValues.Length] = new KeyValuePair<IAsyncLocal, object>(key, value);
system\threading\CancellationTokenSource.cs (9)
582for (int i = 0; i < linkingRegistrations.Length; i++) 771for (int index = 0; index < callbackLists.Length; index++) 913if (tokens.Length == 0) 921linkedTokenSource.m_linkingRegistrations = new CancellationTokenRegistration[tokens.Length]; 923for (int i = 0; i < tokens.Length; i++) 1120Contract.Assert(tryIndex >= 0 && tryIndex < curr.m_elements.Length, "tryIndex is outside of bounds"); 1139tail.m_elements.Length == 4096 ? 4096 : tail.m_elements.Length * 2, tail); 1205get { return m_elements.Length; }
system\threading\eventwaithandle.cs (2)
118byte* pSecDescriptor = stackalloc byte[sd.Length]; 119Buffer.Memcpy(pSecDescriptor, 0, sd, 0, sd.Length);
system\threading\executioncontext.cs (1)
723int newNotificationIndex = newChangeNotifications.Length;
system\threading\mutex.cs (2)
77byte* pSecDescriptor = stackalloc byte[sd.Length]; 78Buffer.Memcpy(pSecDescriptor, 0, sd, 0, sd.Length);
system\threading\Tasks\FutureFactory.cs (2)
2177if(tasks.Length == 0) throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_EmptyTaskList"), "tasks"); 2225if (tasks.Length == 0) throw new ArgumentException(Environment.GetResourceString("Task_MultiTaskContinuation_EmptyTaskList"), "tasks");
system\threading\Tasks\Parallel.cs (11)
238Action[] actionsCopy = new Action[actions.Length]; 239for (int i = 0; i < actionsCopy.Length; i++) 257actionsCopy.Length); 265if (actionsCopy.Length < 1) return; 274if ((actionsCopy.Length > SMALL_ACTIONCOUNT_LIMIT) || 275(parallelOptions.MaxDegreeOfParallelism != -1 && parallelOptions.MaxDegreeOfParallelism < actionsCopy.Length)) 293while (myIndex <= actionsCopy.Length) 355Task[] tasks = new Task[actionsCopy.Length]; 362for (int i = 1; i < tasks.Length; i++) 377if (tasks.Length <= 4) 396for (int i = 0; i < tasks.Length; i++)
system\threading\Tasks\ParallelRangeManager.cs (4)
103int numIndexRangesToVisit = m_indexRanges.Length; 170m_nCurrentIndexRange = (m_nCurrentIndexRange + 1) % m_indexRanges.Length; 302Contract.Assert(m_indexRanges != null && m_indexRanges.Length != 0); 304int nInitialRange = (Interlocked.Increment(ref m_nCurrentIndexRangeToAssign) - 1) % m_indexRanges.Length;
system\threading\Tasks\ProducerConsumerQueues.cs (8)
165int tail2 = (last + 1) & (array.Length - 1); 189int newSegmentSize = m_tail.m_array.Length << 1; // double size 221segment.m_state.m_first = (first + 1) & (array.Length - 1); 261segment.m_state.m_first = (first + 1) & (segment.m_array.Length - 1); 338segment.m_state.m_first = (first + 1) & (array.Length - 1); 387segment.m_state.m_first = (first + 1) & (segment.m_array.Length - 1); 426pt = (pt + 1) & (segment.m_array.Length - 1)) 445int arraySize = segment.m_array.Length;
system\threading\Tasks\Task.cs (21)
5071for (int i = tasks.Length - 1; i >= 0; i--) 5088AddToList(task, ref waitedOnTaskList, initSize: tasks.Length); 5094if (!taskIsCompleted) AddToList(task, ref waitedOnTaskList, initSize: tasks.Length); 5251for (int i = tasks.Length - 1; i >= 0; i--) 5264for (int i = tasks.Length - 1; i >= 0; i--) 5325Contract.Assert(tasks.Length == 0 || waitResult != -1, "expected wait to succeed"); 5473for (int taskIndex = 0; taskIndex < tasks.Length; taskIndex++) 5490if (signaledTaskIndex == -1 && tasks.Length != 0) 6052int taskCount = tasks.Length; 6072return (tasks.Length == 0) ? // take shortcut if there are no tasks upon which to wait 6103Contract.Requires(tasks.Length > 0, "Expected a non-zero length task array"); 6114m_count = tasks.Length; 6139for (int i = 0; i < m_tasks.Length; i++) 6304int taskCount = tasks.Length; 6323return (tasks.Length == 0) ? // take shortcut if there are no tasks upon which to wait 6347Contract.Requires(tasks.Length > 0, "Expected a non-zero length task array"); 6350m_count = tasks.Length; 6376T[] results = new T[m_tasks.Length]; 6384for (int i = 0; i < m_tasks.Length; i++) 6472if (tasks.Length == 0) 6480int taskCount = tasks.Length;
system\threading\Tasks\TaskExceptionHolder.cs (2)
390for (int i = 0; i < combinedExceptions.Length - 1; i++) 394combinedExceptions[combinedExceptions.Length - 1] = includeThisException;
system\threading\Tasks\TaskFactory.cs (12)
1641Contract.Requires((tasksCopy != null) && (tasksCopy.Length > 0), "Expected non-null task array with at least one element in it"); 1643_count = tasksCopy.Length; 1698for (int i = 0; i < tasksCopy.Length; i++) 1719Contract.Requires((tasksCopy != null) && (tasksCopy.Length > 0), "Expected non-null task array with at least one element in it"); 1721_count = tasksCopy.Length; 1776for (int i = 0; i < tasksCopy.Length; i++) 3146if (tasks.Length == 0) 3150Task[] tasksCopy = new Task[tasks.Length]; 3151for (int i = 0; i < tasks.Length; i++) 3166if (tasks.Length == 0) 3170Task<TResult>[] tasksCopy = new Task<TResult>[tasks.Length]; 3171for (int i = 0; i < tasks.Length; i++)
system\threading\ThreadLocal.cs (8)
281&& id < slotArray.Length // Is the table large enough? 307&& id < slotArray.Length // Is the table large enough? 377if (id >= slotArray.Length) 524return slotArray != null && id < slotArray.Length && slotArray[id].Value != null; 539if (slotArray == null || id >= slotArray.Length || (slot = slotArray[id].Value) == null || !m_initialized) 556Contract.Assert(table.Length < minLength); 570for (int i = 0; i < table.Length; i++) 745for (int i = 0; i < slotArray.Length; i++)
system\threading\threadpool.cs (19)
95for (int i = 0; i < array.Length; i++) 102else if (i == array.Length - 1) 108T[] newArray = new T[array.Length * 2]; 124for (int i = 0; i < m_array.Length; i++) 211IThreadPoolWorkItem[] newArray = new IThreadPoolWorkItem[m_array.Length << 1]; 212for (int i = 0; i < m_array.Length; i++) 443Contract.Assert(upper <= nodes.Length); 444Contract.Assert(lower <= nodes.Length); 452Contract.Assert(newUpper <= nodes.Length); 453Contract.Assert(newLower <= nodes.Length); 480return (upper == nodes.Length) && 481(lower == nodes.Length); 501if (upper == nodes.Length) 693int i = tl.random.Next(otherQueues.Length); 694int c = otherQueues.Length; 697WorkStealingQueue otherQueue = Volatile.Read(ref otherQueues[i % otherQueues.Length]); 1696for (int i = 0; i < items.Length; i++) 1714for (int i = 0; i < items.Length; i++) 1748if (i < result.Length) //just in case someone calls us while the queues are in motion
system\threading\waithandle.cs (11)
302if(waitHandles.Length == 0) 319if (waitHandles.Length > MAX_WAITHANDLES) 328WaitHandle[] internalWaitHandles = new WaitHandle[waitHandles.Length]; 329for (int i = 0; i < waitHandles.Length; i ++) 360if ((WAIT_ABANDONED <= ret) && (WAIT_ABANDONED+internalWaitHandles.Length > ret)) 422if(waitHandles.Length == 0) 426if (MAX_WAITHANDLES < waitHandles.Length) 435WaitHandle[] internalWaitHandles = new WaitHandle[waitHandles.Length]; 436for (int i = 0; i < waitHandles.Length; i ++) 459if ((WAIT_ABANDONED <= ret) && (WAIT_ABANDONED+internalWaitHandles.Length > ret)) 462if(0 <= mutexIndex && mutexIndex < internalWaitHandles.Length)
system\timezoneinfo.cs (17)
1005if (currentRules.Length != otherRules.Length) { 1010for(int i = 0; i < currentRules.Length; i++) { 1124if (!disableDaylightSavingTime && adjustmentRules != null && adjustmentRules.Length > 0) { 1275if (m_adjustmentRules == null || m_adjustmentRules.Length == 0) { 1285for (int i = 0; i < m_adjustmentRules.Length; i++) { 2354if (regValue == null || regValue.Length != c_regByteLength) { 2390if (regValue == null || regValue.Length != c_regByteLength) { 2407if (regValue == null || regValue.Length != c_regByteLength) { 2422if (rules != null && rules.Length == 0) { 2504if (regValue == null || regValue.Length != c_regByteLength) return false; 2583if (resources.Length != 2) { 2790if (regValue == null || regValue.Length != c_regByteLength) { 2960if (adjustmentRules != null && adjustmentRules.Length != 0) { 2964for (int i = 0; i < adjustmentRules.Length; i++) { 3583if (rules != null && rules.Length > 0) { 3584for (int i = 0; i < rules.Length; i++) {
system\type.cs (39)
415for (int i=0;i<types.Length;i++) 427for (int i=0;i<types.Length;i++) 486for (int i = 0; i < types.Length; i++) 503for (int i = 0; i < types.Length; i++) 516for (int i=0;i<types.Length;i++) 529for (int i=0;i<types.Length;i++) 606for (int i = 0;i<c.Length;i++) { 612if (cnt == c.Length) 617for (int i=0;i<c.Length;i++) { 808for (i=0;i<m.Length;i++) 814cnt+=m.Length; 822for (i=0;i<c.Length;i++) 828cnt+=c.Length; 836for (i=0;i<f.Length;i++) 842cnt+=f.Length; 850for (i=0;i<p.Length;i++) 856cnt+=p.Length; 864for (i=0;i<e.Length;i++) 870cnt+=e.Length; 878for (i=0;i<t.Length;i++) 884cnt+=t.Length; 894for (i=0;i<m.Length;i++) 901for (i=0;i<c.Length;i++) 908for (i=0;i<f.Length;i++) 915for (i=0;i<p.Length;i++) 922for (i=0;i<e.Length;i++) 929for (i=0;i<t.Length;i++) 1203for (int i = 0; i < genericArguments.Length; i++) 1426object[] values = new object[flds.Length]; 1427string[] names = new string[flds.Length]; 1429for (int i = 0; i < flds.Length; i++) 1439for (int i = 1; i < values.Length; i++) 1475if (fields == null || fields.Length != 1) 1564ulong[] ulArray = new ulong[array.Length]; 1565for (int i = 0; i < array.Length; ++i) 1701for (int i = 0; i < constraints.Length; i++) 1729for (int i = 0; i < interfaces.Length; i++) 1770Type[] cls = new Type[args.Length]; 1771for (int i = 0;i < cls.Length;i++)
system\typedreference.cs (4)
35if (flds.Length == 0) 38IntPtr[] fields = new IntPtr[flds.Length]; 42for (int i = 0; i < flds.Length; i++) 58if (i < (flds.Length - 1) && !fieldType.IsValueType)
system\typenameparser.cs (5)
180types = new Type[typeArguments.Length]; 181for (int i = 0; i < typeArguments.Length; i++) 204return RuntimeTypeHandle.GetTypeHelper(baseType, types, intPtr, modifiers == null ? 0 : modifiers.Length); 249Contract.Requires(names != null && names.Length > 0); 289for (int i = 1; i < names.Length; i++)
system\unityserializationholder.cs (1)
77for (int i = m_elementTypes.Length - 1; i >= 0; i --)
system\valuetype.cs (1)
48for (int i=0; i<thisFields.Length; i++) {
system\version.cs (1)
385int parsedComponentsLength = parsedComponents.Length;
PresentationBuildTasks (130)
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
85if (methodInfo.GetParameters().Length == 1)
BuildTasks\Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (1)
472for (int i = 0; i < pItemList.Length; i++)
BuildTasks\Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (23)
134if ((PageMarkup == null || PageMarkup.Length == 0) && 135(ApplicationMarkup == null || ApplicationMarkup.Length == 0)) 173for (int i = 0; i < CompilerAnalyzer.RecompileMarkupPages.Length; i++) 416if (SplashScreen != null && SplashScreen.Length > 0) 906if (PageMarkup != null && PageMarkup.Length > 0) 911if (SplashScreen != null && SplashScreen.Length > 1) 929if (ApplicationMarkup != null && ApplicationMarkup.Length > 0) 945if (ApplicationMarkup != null && ApplicationMarkup.Length > 0) 947if (ApplicationMarkup.Length > 1) 1129if (References != null && References.Length > 0) 1134for (int i = 0; i < References.Length; i++) 1190for (int i = 0; i < CompilerAnalyzer.RecompileMarkupPages.Length; i++) 1322if (PageMarkup != null && PageMarkup.Length > 0) 1430for (int i = 0; i < GeneratedBamlFiles.Length; i++) 1435for (int i = 0; i < GeneratedCodeFiles.Length; i++) 1440for (int i = 0; i < GeneratedLocalizationFiles.Length; i++) 1483for (int i = 0; i < inputXamlItemList.Length; i++) 1520if (!SkipMarkupCompilation && inputLocalRefXamlFileList != null && inputLocalRefXamlFileList.Length > 0) 1522for (int i = 0; i < inputLocalRefXamlFileList.Length; i++) 1551for (int i = 0; i < inputXamlItemList.Length; i++) 1617for (int j = 0; j < listCarryOverAttribute.Length; j++) 1642if (ApplicationMarkup != null && ApplicationMarkup.Length > 0 && ApplicationMarkup[0] != null) 1656for (int i = 0; i < PageMarkup.Length; i++)
BuildTasks\Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (7)
508if (_localApplicationFile != null || (_localMarkupPages != null && _localMarkupPages.Length > 0)) 592if (_localMarkupPages != null && _localMarkupPages.Length > 0) 594int localFileNum = _localMarkupPages.Length; 610if (References != null && References.Length > 0) 615for (int i = 0; i < References.Length; i++) 755if (_localMarkupPages != null && _localMarkupPages.Length > 0) 758for (int i = 0; i < _localMarkupPages.Length; i++)
BuildTasks\Microsoft\Build\Tasks\Windows\MergeLocalizationDirectives.cs (1)
59if (GeneratedLocalizationFiles.Length > 0)
BuildTasks\Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
173if (OutputResourcesFile != null && OutputResourcesFile.Length > 1)
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (4)
85if (MarkupFiles == null || MarkupFiles.Length == 0) 362if (_markupFiles.Length > countGoodFiles) 364Log.LogErrorWithCodeFromResources(SRID.FilesFailedUidCheck, _markupFiles.Length - countGoodFiles); 369return _markupFiles.Length == countGoodFiles;
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (14)
260for (int i = 0; i < cu.FileList.Length; i++) 279if (!cu.Pass2 && ContentList != null && ContentList.Length > 0) 1460sb.Append(_typeArgsList.Length); 1567for (int i = 1; i < dirs.Length; i++) 1788CodeExpression[] expressions = new CodeExpression[args.Length]; 1795for (int i = 0; i < args.Length; i++) 1813for (int i = 0; i < args.Length; i++) 1851Debug.Assert(pis != null && pis.Length == 2 && KnownTypes.Types[(int)KnownElements.DependencyObject].IsAssignableFrom(pis[0].ParameterType)); 2000for (int i = 0; i < pars.Length; i++) 2132for (int i = 1; i < contexts.Length; ++i) 2202for (int i = 0; i < _typeArgsList.Length; i++) 2336for (int i = 0; i < refTypeParams.Length; i++) 2343Debug.Assert(typeArgsList != null && typeArgsList.Length == refTypeParams.Length);
BuildTasks\Ms\Internal\MarkupCompiler\ParserExtension.cs (6)
194if (namespaceMaps != null && namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly) 226bool localTag = namespaceMaps != null && namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly; 261localAttrib = namespaceMaps != null && namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly; 279if (namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly) 326if (namespaceMaps != null && namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly) 468bool isLocal = namespaceMaps != null && namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly;
BuildTasks\MS\Internal\Tasks\CompilerLocalReference.cs (2)
225if (LocalMarkupPages != null && LocalMarkupPages.Length > 0) 227for (int i = 0; i < LocalMarkupPages.Length; i++)
BuildTasks\MS\Internal\Tasks\CompilerState.cs (5)
101Debug.Assert(_cacheInfoList.Length == (int)CompilerStateType.MaxCount, "The Cache string array should be already allocated."); 161Debug.Assert(_cacheInfoList.Length == (int)CompilerStateType.MaxCount, "The Cache string array should be already allocated."); 215if (fileItemList != null && fileItemList.Length > 0) 219int iCount = fileItemList.Length; 247for (int i = 0; i < fileItemList.Length; i++)
BuildTasks\MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (8)
213for (int i = 0; i < _mcPass1.PageMarkup.Length; i++) 395numLocalTypeXamls = CompilerLocalReference.LocalMarkupPages.Length; 397for (int i = 0; i < CompilerLocalReference.LocalMarkupPages.Length; i++) 456int count = _mcPass1.PageMarkup.Length; 488int count = _mcPass1.ContentFiles.Length; 528if (_mcPass1.ApplicationMarkup != null && _mcPass1.ApplicationMarkup.Length > 0 && _mcPass1.ApplicationMarkup[0] != null) 557for (int i = 0; i < fileList.Length; i++) 596if (list != null && list.Length > 0)
BuildTasks\MS\Internal\Tasks\TaskFileService.cs (1)
175fileChecksummer.CalculateCheckSum(hashGuid, tempBytes.Length, tempBytes, out actualSize);
BuildTasks\MS\Internal\Tasks\TaskHelper.cs (2)
290if (knownChangedAssemblies != null && knownChangedAssemblies.Length > 0) 308if (knownUnchangedReferencePaths != null && knownUnchangedReferencePaths.Length > 0)
Framework\MS\Internal\Globalization\LocalizationComments.cs (2)
75for (int i = 0; i < pairs.Length; i++) 376for (int i = 0; i < _enumNames.Length; i++)
Framework\System\Windows\Markup\BamlMapTable.cs (1)
190int end = _knownStrings.Length;
Framework\System\Windows\Markup\BamlRecords.cs (4)
1215if (AssemblyIds != null && AssemblyIds.Length > 0) 1217count = (short) AssemblyIds.Length; 4972Debug.Assert(arr.Length == 3 && arr[0] != null && arr[1] != null); 5015Debug.Assert(arr.Length == 3 && arr[0] != null && arr[1] != null);
Framework\System\Windows\Markup\BamlRecordWriter.cs (2)
701if (nsMapEntry != null && nsMapEntry.Length > 0) 704for (int i = 0; i < nsMapEntry.Length; i++)
Framework\System\Windows\Markup\MarkupExtensionParser.cs (4)
1229if (parInfo.Length >= maxConstructorArguments) 1231maxConstructorArguments = parInfo.Length; 1328for (int i=0; i<infos.Length; i++) 1332if (paramInfos.Length == numberOfConstructorAttributes)
Framework\System\Windows\Markup\StyleXamlParser.cs (5)
168if (namespaceMaps != null && namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly) 236bool localTag = namespaceMaps != null && namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly; 272localAttrib = namespaceMaps != null && namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly; 289if (namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly) 307if (namespaceMaps != null && namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly)
Framework\System\Windows\Markup\TemplateXamlParser.cs (5)
182if (namespaceMaps != null && namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly) 269bool localTag = namespaceMaps != null && namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly; 308localAttrib = namespaceMaps != null && namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly; 325if (namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly) 343if (namespaceMaps != null && namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly)
Framework\System\Windows\Markup\XamlReaderHelper.cs (4)
587localAssembly = (namespaceMaps != null && namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly); 3216if (methodInfo.GetParameters().Length == 1) 3222propertyCanWrite = methodInfo != null && methodInfo.GetParameters().Length == 2; 3526return (methodInfo.GetParameters().Length == 2) ||
Framework\System\Windows\Markup\XamlTypeMapper.cs (16)
1381if (pis == null || pis.Length != 2 || !dependencyObjectType.IsAssignableFrom(pis[0].ParameterType)) 1452if (memberInfo != null && ((MethodInfo)memberInfo).GetParameters().Length != 2) 1463if (memberInfo != null && ((MethodInfo)memberInfo).GetParameters().Length != 1) 1544if (pis == null || pis.Length != 2 || !dependencyObjectType.IsAssignableFrom(pis[0].ParameterType)) 1612if (memberInfo != null && ((MethodInfo)memberInfo).GetParameters().Length != 2) 1623if (memberInfo != null && ((MethodInfo)memberInfo).GetParameters().Length != 1) 2042for (int i = 0; i < infos.Length; i++) 2154propertyType = parameters.Length == 1 ? methodInfo.ReturnType : parameters[1].ParameterType; 2155propertyCanWrite = parameters.Length == 1 ? false : true; 2629for (int count = 0; count < namespaceMaps.Length;) 2664if (knownTypesOnly && (count == namespaceMaps.Length)) 3058localAssembly = (namespaceMaps != null && namespaceMaps.Length == 1 && namespaceMaps[0].LocalAssembly); 3181namespaceMaps.Length == 1 && 3381result = (namespaceMaps != null && namespaceMaps.Length > 0) || 3462for (int i = 0; i < _namespaceMaps.Length; i++) 3529for (int k = 0; k < _assemblyNames.Length; k++)
Framework\System\Windows\Markup\XmlnsCache.cs (4)
317for(int asmIdx=0; asmIdx<asmList.Length; asmIdx++) 322for(int attrIdx=0; attrIdx<attributes.Length; attrIdx++) 386for(int asmIdx=0; asmIdx<asmList.Length; asmIdx++) 396for(int attrIdx=0; attrIdx<attributes.Length; attrIdx++)
Framework\System\Windows\Markup\XmlnsDictionary.cs (3)
646if (_lastDecl == _nsDeclarations.Length - 1) 648NamespaceDeclaration[] new_nsDeclarations = new NamespaceDeclaration[_nsDeclarations.Length * 2]; 650Array.Copy(_nsDeclarations, 0, new_nsDeclarations, 0, _nsDeclarations.Length);
Shared\System\Windows\Markup\ReflectionHelper.cs (4)
52if (nameFrags.Length == 1) 59if (nameFrags.Length != 2) 545for(int i=0; i<assemblies.Length; i++) 600for (int i = assemblies.Length -1; i >= 0; i--)
PresentationCore (627)
Core\CSharp\MS\Internal\Automation\TextRangeProviderWrapper.cs (2)
203ITextRangeProvider[] outArray = new ITextRangeProvider[argument.Length]; 204for (int i = 0; i < argument.Length; i++)
Core\CSharp\MS\Internal\ConstrainedDataObject.cs (1)
300for (uint currentFormat = 0; currentFormat < formats.Length; currentFormat++)
Core\CSharp\MS\Internal\FontCache\BufferCache.cs (4)
173length <= _buffers[index].Length) 205(_buffers[index].Length < buffer.Length && buffer.Length <= MaxBufferLength))
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (2)
239for (int i = 0; i < _legacyArabicFonts.Length; ++i) 380for (int i = 0; i < _systemCompositeFontsNames.Length; ++i)
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
694for (int i = 0; i < SupportedExtensions.Length; ++i)
Core\CSharp\MS\Internal\FontCache\FontFaceLayoutInfo.cs (10)
474for (int i = 0; i < fastTextRanges.Length; i++) 477ushort[] glyphIndices = BufferCache.GetUShorts(codepoints.Length); 485CharacterMap.TryGetValues(pCodepoints, checked((uint)codepoints.Length), pGlyphIndices); 490for (int j = 0; j < codepoints.Length; j++) 538for (int i = 0; i < complexScripts.Length && typography != loclBitsTest; i++) 609for (int i = 0; i < complexScripts.Length; i++) 816if (arrayIndex < 0 || arrayIndex >= array.Length || (arrayIndex + Count) > array.Length) 1049for (int i = 0; i < majorLanguages.Length; i++) 1071for (int i = 0; i < majorLanguages.Length; i++)
Core\CSharp\MS\Internal\FontCache\FontSource.cs (2)
449 bits.Length, 450 bits.Length,
Core\CSharp\MS\Internal\FontFace\CompositeFontInfo.cs (4)
224for (int i = FirstFamilyMapRange; i < familyMapRanges.Length; i += 2) 264if (count + 2 > ranges.Length) 266ushort[] temp = new ushort[ranges.Length * 2 - FirstFamilyMapRange]; 286if (count < ranges.Length)
Core\CSharp\MS\Internal\FontFace\FontDriver.cs (1)
227for (int i = 0; i < _tableDirectory.Length; ++i)
Core\CSharp\MS\Internal\FontFace\TypefaceCollection.cs (2)
88if (arrayIndex < 0 || arrayIndex >= array.Length || (arrayIndex + Count) > array.Length)
Core\CSharp\MS\Internal\Ink\ErasingStroke.cs (4)
64_erasingStrokeNodes = new List<StrokeNode>(points.Length); 73_nodeIterator = _nodeIterator.GetIteratorForNextSegment(points.Length > 1 ? FilterPoints(points) : points); 262System.Diagnostics.Debug.Assert(path.Length > 1); 282while (i < path.Length)
Core\CSharp\MS\Internal\Ink\ExtendedProperty.cs (5)
77if (array1.Length == array2.Length) 79for (int i = 0; i < array1.Length; i++) 213Array newArray = Array.CreateInstance(elementType, ((Array)_value).Length); 214Array.Copy((Array)_value, newArray, ((Array)_value).Length);
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (5)
468uint cRanges = (uint)( enabledGestures.Length ); 597Debug.Assert(propertyGuids.Length == StylusPointDescription.RequiredCountOfProperties); 600packetDescription.cbPacketSize = (uint)(propertyGuids.Length * Marshal.SizeOf(typeof(Int32))); 601packetDescription.cPacketProperties = (uint)propertyGuids.Length; 646int packetCount = rawPackets.Length;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (13)
34if (input.Length < 3) 50for(; n < input.Length; n++) 60int i = DefaultFirstSquareRoot.Length - 2; 101if (((compressedData.Count - 1/*for the algo byte we just made room for*/) >> 2) > input.Length) 166if (input.Length < 2) 174if (outputBuffer.Length == 0) 214if (input.Length < 3) 231Debug.Assert(outputBufferIndex < outputBuffer.Length); 240Debug.Assert(outputBufferIndex < outputBuffer.Length); 271List<byte> compressedData = new List<byte>(input.Length + 1); //reasonable default based on profiling. 296int unitCount = input.Length; 333if (input.Length < 2) 370int unitsToDecode = ((input.Length - inputIndex << 3) / bitCount) - padCount;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\Compress.cs (1)
115size > compressedInput.Length ||
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (20)
40for (int i = 0; i < KnownIdCache.OriginalISFIdTable.Length; i++) 48for (int i = 0; i < KnownIdCache.TabletInternalIdTable.Length; i++) 127for( int i = 0; i < data.Length; i++ ) 134for( int i = 0; i < data.Length; i++ ) 141for( int i = 0; i < data.Length; i++ ) 148for( int i = 0; i < data.Length; i++ ) 155for( int i = 0; i < data.Length; i++ ) 162for( int i = 0; i < data.Length; i++ ) 169for( int i = 0; i < data.Length; i++ ) 176for( int i = 0; i < data.Length; i++ ) 183for( int i = 0; i < data.Length; i++ ) 190for (int i = 0; i < data.Length; i++) 210for( int i = 0; i < data.Length; i++ ) 355cbSize = (uint)data.Length; 385cbWrite += SerializationHelper.Encode(strm, (uint)(compresseddata.Length - 1)); 388strm.Write(compresseddata, 0, (int)compresseddata.Length); 389cbWrite += (uint)compresseddata.Length; 403strm.Write(data, 0, (int)data.Length); 404cbWrite += (uint)data.Length; 986for (int i = 0; i < data.Length; i++)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (1)
204if (data != null && data.Length > 0)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (20)
96if (0 == input.Length) 101testDelDel = testDelDel && (input.Length < 3); 143for (uint dataIndex = startIndex; dataIndex < input.Length; dataIndex++) 197if(0 == input.Length) 202int countOfInts = ((0 == (input.Length & 0x03)) ? input.Length >> 2 : 0); 210int countOfShorts = ((0 == (input.Length & 0x01)) ? input.Length >> 1 : 0); 253for (; n < input.Length; ++n) 269int padCount = ((((~(bitCount * input.Length)) & 0x07) + 1) & 0x07) / bitCount; 360if (index < _gorIndexMap.Length && index >= 0) 399for (int i = startInputIndex; i < input.Length; i++) 411for (int i = startInputIndex; i < input.Length; i++) 525if (inputIndex >= input.Length) 533if (outputBufferIndex >= outputBuffer.Length) 569Debug.Assert(outputBufferIndex < outputBuffer.Length); 571if (outputBufferIndex == outputBuffer.Length) 586Debug.Assert(outputBufferIndex < outputBuffer.Length); 588if (outputBufferIndex == outputBuffer.Length) 598return (uint)((outputBuffer.Length * bitCount + 7) >> 3);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (3)
50for (byte iIndex = 0; iIndex < KnownIdCache.OriginalISFIdTable.Length; ++iIndex) 121if (KnownIdCache.OriginalISFIdTable.Length <= nIndex) 188for (uint i = 0; i < KnownIdCache.OriginalISFIdTable.Length; ++i)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\HuffCodec.cs (8)
69for (uint i = 0; i < input.Length; i++) 77for (uint i = 0; i < input.Length; i++) 94Debug.Assert(input.Length >= 2); 97Debug.Assert(outputBuffer.Length != 0); 109Debug.Assert(outputBufferIndex < outputBuffer.Length); 111if (outputBufferIndex == outputBuffer.Length) 124Debug.Assert(outputBufferIndex < outputBuffer.Length); 126if (outputBufferIndex == outputBuffer.Length)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (14)
105int isfBase64PrefixLength = Base64HeaderBytes.Length; 126byte[] isfData = Convert.FromBase64CharArray(chars, 0, chars.Length); 755if ((uint)isfTag >= KnownIdCache.CustomGuidBaseIndex || ((uint)isfTag >= KnownTagCache.KnownTagCount && ((uint)isfTag < (KnownTagCache.KnownTagCount + KnownIdCache.OriginalISFIdTable.Length)))) 1234requestedCount > buffer.Length) 1674for (int i = 0; i < buttonguids.Length; i++) 2074for (int i = 0; i < strkIds.Length; i++) 2107cbWrote += SerializationHelper.Encode(strm, (uint)(data.Length + SerializationHelper.VarSize((uint)strokes.Count))); 2111strm.Write(data, 0, (int)data.Length); 2112cbWrote += (uint)data.Length; 2136for (int i = 0; i < strkIds.Length; i++) 2166if (data.Length < isfBase64PrefixBytes.Length) 2171for (int x = 0; x < isfBase64PrefixBytes.Length; x++) 2233for (i = 0; i < descriptionGuids.Length; i++) 2800for (int x = 0; x < strokeIds.Length; x++)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\LZCodec.cs (2)
42Debug.Assert(input.Length > 1); 43Debug.Assert(inputIndex < input.Length);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (5)
150if( data.Length > MAX_METRIC_DATA_BUFF ) 153_size = (uint)data.Length; 334for( ul = 0; ul < MetricEntry_Never.Length ; ul++ ) 345for( ul = 0; ul<MetricEntry_Must.Length; ul++ ) 362for( ul = 0; ul<MetricEntry_Optional.Length; ul++ )
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\MultiByteCodec.cs (4)
81Debug.Assert(inputIndex < input.Length); 84uint cb = (input.Length - inputIndex > 5) ? 5 : (uint)(input.Length - inputIndex); 116if (inputIndex >= input.Length)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (4)
552if (byteCounter != buttonData.Length) 1012if (packetdata.Length == 0) 1027stream.Write(data, 0, (int)data.Length); 1029return (uint)data.Length;
Core\CSharp\MS\Internal\Ink\StrokeIntersection.cs (6)
193System.Diagnostics.Debug.Assert(intersections.Length > 0); 195List<StrokeFIndices> inFIndices = new List<StrokeFIndices>(intersections.Length); 196for (int j = 0; j < intersections.Length; j++) 225System.Diagnostics.Debug.Assert(intersections.Length > 0); 227List<StrokeFIndices> hitFIndices = new List<StrokeFIndices>(intersections.Length); 228for (int j = 0; j < intersections.Length; j++)
Core\CSharp\MS\Internal\Ink\StrokeNode.cs (10)
238int maxCount = vertices.Length * 2; 244Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor); 275for (int j = 0; i < maxCount && j < vertices.Length; i++, j++) 278Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor); 358int maxCount = vertices.Length * 2; 363Point point = _thisNode.Position + (vertices[i % vertices.Length] * pressureFactor); 387for (int j = 0; i < maxCount && j < vertices.Length; i++, j++) 390Point point = _thisNode.Position + (vertices[i % vertices.Length] * pressureFactor); 624for (int i = 0; i < vertices.Length; i++) 626Point point = _lastNode.Position + (vertices[i % vertices.Length] * pressureFactor);
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (20)
72for (i = 0; (i + 1) < _vertices.Length; i += 2) 76if (i < _vertices.Length) 105for (int i = 0; i < _vertices.Length; i++) 112for (int i = 0; i < _vertices.Length; i++) 133Point vertex = node.Position + (_vertices[_vertices.Length - 1] * node.PressureFactor); 134for (int i = 0; i < _vertices.Length; i++) 145for (int i = 0, count = _vertices.Length; i < count; i++) 214int count = _vertices.Length; 361int i = 0, count = _vertices.Length; 386count = _vertices.Length; 389i = (i + 1) % _vertices.Length; 420count = _vertices.Length; 423i = (i + 1) % _vertices.Length; 711Vector lastVertex = _vertices[_vertices.Length - 1]; 721for (int k = 0, count = _vertices.Length; k < count || (k == count && testNextEdge); k++) 1095int i = 0, count = _vertices.Length; 1110count = _vertices.Length; 1121i = (i + 1) % _vertices.Length; 1161count = _vertices.Length; 1164i = (i + 1) % _vertices.Length;
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations2.cs (2)
45System.Diagnostics.Debug.Assert((null != vertices) && (2 < vertices.Length)); 48int count = vertices.Length;
Core\CSharp\MS\Internal\Ink\StylusShape.cs (15)
115vertices = new Vector[m_vertices.Length]; 119for (int i = 0; i < vertices.Length; i++) 126for (int i = 0; i < vertices.Length; i++) 143vertices = new Vector[p.Length]; 144for (int i = 0; i < vertices.Length; i++) 237System.Diagnostics.Debug.Assert(vertices.Length == 4); 239Point prevVertex = (Point)vertices[vertices.Length - 1]; 242for (int i = 0; i < vertices.Length; i++) 248double det = Vector.Determinant(edge, (Point)vertices[(i + 1) % vertices.Length] - (Point)vertex); 262System.Diagnostics.Debug.Assert(clockWiseIndex == vertices.Length || counterClockIndex == vertices.Length); 264if (counterClockIndex == vertices.Length) 267int lastIndex = vertices.Length -1; 268for (int j = 0; j < vertices.Length/2; j++) 319for (int i = 0; i < controlPoints.Length; i++)
Core\CSharp\MS\Internal\IO\Packaging\ByteRangeDownloader.cs (6)
282int[,] outByteRanges = new int[(inByteRanges.Length / 2),2]; 284for (int i=0, j=0; i < inByteRanges.Length; ++i, ++j) 310int[] outByteRanges = new int[inByteRanges.Length]; 799if (byteRanges.Length < 2 || (byteRanges.Length % 2) != 0) 804for (int i = 0; i < byteRanges.Length; i++)
Core\CSharp\MS\Internal\IO\Packaging\DeobfuscatingStream.cs (4)
300int guidBytePosition = _guid.Length - ((int) readPosition % _guid.Length) - 1; 306guidBytePosition = _guid.Length - 1; 347for (int i = 0; i < guidBytes.Length; i++)
Core\CSharp\MS\Internal\IO\Packaging\NetStream.cs (4)
162if (offset + count > buffer.Length) 359while (Read(buf, 0, buf.Length) > 0) 515_responseStream.BeginRead(_readBuf, 0, _readBuf.Length, new AsyncCallback(ReadCallBack), this); 1077_responseStream.BeginRead(_readBuf, 0, _readBuf.Length, new AsyncCallback(ReadCallBack), this);
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (17)
247for (int i = 0; i < visCorners.Length; i++) 300for (int i = 0; i < visualTexCoordBounds.Length; i++) 490Debug.Assert(uv.Length == p.Length, "vertices and texture coordinate sizes should match"); 496for (int i = 0; i < visualTexCoordBounds.Length; i++) 499Point visEdgeEnd = visualTexCoordBounds[(i + 1) % visualTexCoordBounds.Length]; 507for (int j = 0; j < uv.Length; j++) 510Point uv2 = uv[(j + 1) % uv.Length]; 512Point3D p3D2 = p[(j + 1) % p.Length]; 843for (int i = 0; i < p.Length; i++) 847Point3D p3D2 = p[(i + 1) % p.Length]; 858uv2 = uv[(i + 1) % p.Length]; 864uv1 = uv[(i + 1) % p.Length]; 927for (int i = 0; i < bounds.Length; i++) 930Point visEdgeEnd = bounds[(i + 1) % bounds.Length]; 1011for (int i = 0; i < polygon.Length; i++) 1013double crossProduct = Vector.CrossProduct(polygon[(i + 1) % polygon.Length] - polygon[i],
Core\CSharp\MS\Internal\Media3D\M3DUtil.cs (1)
353for(int i = 1; i < points.Length; i++)
Core\CSharp\MS\Internal\PartialArray.cs (4)
39Debug.Assert(initialIndex >= 0 && initialIndex + count <= array.Length); 50public PartialArray(T[] array) : this(array, 0, array.Length) 158if (arrayIndex >= array.Length) 168if ((array.Length - Count - arrayIndex) < 0)
Core\CSharp\MS\Internal\Resources\ContentFileHelper.cs (3)
63if (assemblyAttributes != null && assemblyAttributes.Length > 0) 65contentFiles = new Dictionary<string, string>(assemblyAttributes.Length, StringComparer.OrdinalIgnoreCase); 67for (int i=0; i<assemblyAttributes.Length; i++)
Core\CSharp\MS\Internal\Shaping\OpenTypeCommon.cs (5)
998for(int j = 0; j < featureTagsList.Length; j++) 1312for(int j = 0; !complexFeatureFound && j < featureTagsList.Length; j++) 1342if (complexLanguages.Length == complexLanguageCount) 1345new WritingSystem[complexLanguages.Length * 3 /2]; 1347for(int i = 0; i < complexLanguages.Length; i++)
Core\CSharp\MS\Internal\Shaping\OpenTypeLayout.cs (6)
143m_length = (uint)data.Length; 1296_lookupUsageFlags.Length < requiredLookupUsageArraySize) 1330if (flagByte >= _lookupUsageFlags.Length) 1346if (flagByte >= _lookupUsageFlags.Length) 1378if (_cachePointers != null && _cachePointers.Length >= glyphRunLength) return; 1409if (_cachePointers.Length < newLength)
Core\CSharp\MS\Internal\Shaping\OpenTypeLayoutCache.cs (1)
1131if (recordCount == records.Length)
Core\CSharp\MS\Internal\Shaping\ShaperBuffers.cs (6)
246newSize > _features.Length || 277_features.Length != 0 && 279_features.Length >= keepCount) 283ushort currentLength = (ushort)_features.Length; 340if ( _featuresCount == _features.Length ) 362if ( _featuresCount == _features.Length )
Core\CSharp\MS\Internal\Shaping\TypefaceMap.cs (2)
896for (int i = 0; i < familyList.Length; i++) 958i = familyList.Length;
Core\CSharp\MS\Internal\Shaping\UshortList2.cs (6)
208get { return _array.Length; } 226((index + count) <= _array.Length ? count : _array.Length) * sizeof(ushort) 236if (newLength > _array.Length) 241int extra = newLength - _array.Length; 242int newArraySize = _array.Length + ((extra - 1) / _leap + 1) * _leap;
Core\CSharp\MS\Internal\TextFormatting\FormattedTextSymbols.cs (11)
180int[] nominalAdvances = new int[charArray.Length]; 356_glyphAdvances = new double[glyphAdvances.Length]; 360for (int i = 0; i < glyphAdvances.Length; i++) 373_glyphOffsets = new PartialArray<Point>(new Point[glyphOffsets.Length]); 375for (int i = 0; i < glyphOffsets.Length; i++) 384Debug.Assert(glyphAdvances.Length <= glyphIndices.Length); 386if (glyphAdvances.Length != glyphIndices.Length) 388_glyphIndices = new ushort[glyphAdvances.Length]; 390for (int i = 0; i < glyphAdvances.Length; i++)
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (3)
757if (collapsingPropertiesList == null || collapsingPropertiesList.Length == 0) 2521subLineInfo.Length, 2584subLineInfo.Length,
Core\CSharp\MS\Internal\TextFormatting\FullTextState.cs (1)
554rawText.Length,
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (1)
1900for (int i = 0; i < lsruns.Length; i++)
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (5)
940Debug.Assert(lsruns != null && lsruns.Length > 0 && lsruns[0] != null); 948for (int i = 1; i < lsruns.Length; i++) 963fontFeatures = new DWriteFontFeature[lsruns.Length][]; 964fontFeatureRanges = new uint[lsruns.Length]; 966for (int i = 0; i < lsruns.Length; i++)
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (13)
594if (_runs.Length <= 0) 674for(int i = 0; i < _runs.Length; i++) 908TextSpan<TextRun>[] textRunSpans = new TextSpan<TextRun>[_runs.Length]; 910for (int i = 0; i < _runs.Length; i++) 928List<IndexedGlyphRun> indexedGlyphRuns = new List<IndexedGlyphRun>(_runs.Length); 942displayGlyphAdvances = new ThousandthOfEmRealDoubles(run.EmSize, run.NominalAdvances.Length); 951displayGlyphAdvances = new List<double>(run.NominalAdvances.Length); 952for (int i = 0; i < run.NominalAdvances.Length; i++) 1229while (runIndex < _runs.Length) 1296while (runIndex < _runs.Length && cpRunStart + _runs[runIndex].Length <= cp) 1790displayGlyphAdvances = new ThousandthOfEmRealDoubles(EmSize, NominalAdvances.Length); 1799displayGlyphAdvances = new List<double>(NominalAdvances.Length); 1800for (int i = 0; i < NominalAdvances.Length; i++)
Core\CSharp\MS\Internal\TextFormatting\TextMarkerSource.cs (3)
157if (textSourceCharacterIndex < _characterArray.Length) 163_characterArray.Length - textSourceCharacterIndex, 187Math.Min(_characterArray.Length, textSourceCharacterIndexLimit)
Core\CSharp\MS\Internal\TextFormatting\TextShapeableCharacters.cs (4)
151caretStops = new bool[clusterMap.Length + 1]; 155caretStops[clusterMap.Length] = true; 159for (int i = 1; i < clusterMap.Length; i++) 239characterString.Length
Core\CSharp\MS\Internal\TextFormatting\TextStore.cs (6)
339|| cchResolved <= bidiLevels.Length) 531int effectedRangeEnd = Math.Min(cpFetched - offset + runInfo.Length, bounds[bounds.Length - 1].Position); 535for (int i = 0; i < bounds.Length && currentPosition < effectedRangeEnd; i++) 571if (currentEffectsCount == 0 && i < bounds.Length - 1) 1001Invariant.Assert(resolvedLength <= bidiLevels.Length); 2316stringBuilder.CopyTo(0, rawText, 0, rawText.Length);
Core\CSharp\MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (8)
84return _shortList.Length; 88return _doubleList.Length; 127_doubleList = new double[_shortList.Length]; 128for (int i = 0; i < _shortList.Length; i++) 166for (int i = 0; i < _shortList.Length; i++) 173for (int i = 0; i < _doubleList.Length; i++) 205if (arrayIndex >= array.Length) 215if ((array.Length - Count - arrayIndex) < 0)
Core\CSharp\MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (2)
146if (arrayIndex >= array.Length) 156if ((array.Length - Count - arrayIndex) < 0)
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (1)
497for(int i = 0; i < roots.Length; i++)
Core\CSharp\System\Windows\ClassHandlersStore.cs (1)
57int length = handlers.Handlers.Length;
Core\CSharp\System\Windows\Clipboard.cs (1)
838for (int i = 0; i < formats.Length; i++)
Core\CSharp\System\Windows\DataObject.cs (34)
1556for (int i=0; i<formats.Length; i++) 1578for (int i=0; i<ALLOWED_TYMEDS.Length; i++) 1692if (buffer != null && buffer.Length != 0) 1694hEnhancedMetafile = NativeMethods.SetEnhMetaFileBits((uint)buffer.Length, buffer); 2133if (files == null || files.Length < 1) 2154for (int i = 0; i < files.Length; i++) 2179Marshal.Copy(structData, 0, currentPtr, structData.Length); 2188for (int i = 0; i < files.Length; i++) 2253UnsafeNativeMethods.CopyMemoryW(ptr, chars, chars.Length * 2); 2260Marshal.Copy(new char[] { '\0' }, 0, (IntPtr)((ulong)ptr + (ulong)chars.Length * 2), 1); 2288Win32WideCharToMultiByte(str, str.Length, strBytes, strBytes.Length); 2626_formats = new FORMATETC[formats == null ? 0 : formats.Length]; 2630for (int i = 0; i < formats.Length; i++) 2686for (int i = 0; i < celt && _current < _formats.Length; i++) 2707return (_current < _formats.Length) ? NativeMethods.S_OK : NativeMethods.S_FALSE; 2868for (int i=0; i<mappedFormats.Length; i++) 2881for (int formatetcIndex = 0; formatetcIndex < formatetc.Length; formatetcIndex++) 2984for (int i = 0; i < mappedFormats.Length; i++) 3038for (int i = 0; i < mappedFormats.Length; i++) 3398if (size > _serializedObjectID.Length) 3401for(int i = 0; i < _serializedObjectID.Length; i++) 3414index = _serializedObjectID.Length; 3422return new MemoryStream(bytes, index, bytes.Length - index); 3641for (int i=0; i<ALLOWED_TYMEDS.Length; i++) 3845for (int baseFormatIndex = 0; baseFormatIndex < baseVar.Length; baseFormatIndex++) 3853for (int dataStoreIndex = 0; dataStoreIndex < entries.Length; dataStoreIndex++) 3867for (int mappedFormatIndex = 0; mappedFormatIndex < cur.Length; mappedFormatIndex++) 3873dataStoreIndex < entries.Length; 3903dataStoreIndex < entries.Length; 4000for (int i = 0; i < mappedFormats.Length; i++) 4055for (int i = 0; i < entries.Length; i++) 4089for (int i = 0; i < formats.Length; i++) 4116newlist = (DataStoreEntry[])Array.CreateInstance(typeof(DataStoreEntry), datalist.Length + 1); 4138for (int i = 0; i < dataStoreEntries.Length; i++)
Core\CSharp\System\Windows\DataObjectPastingEventArgs.cs (1)
147if (availableFormats == null || availableFormats.Length == 0)
Core\CSharp\System\Windows\DragDrop.cs (1)
1457for (int i = 0; i < formats.Length; i++)
Core\CSharp\System\Windows\FreezableCollection.cs (2)
406if (index < 0 || (index + _collection.Count) > array.Length) 521if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Generated\ContentElement.cs (1)
715for(int i = 0; i < classListeners.Handlers.Length; i++)
Core\CSharp\system\windows\generated\TextDecorationCollection.cs (2)
303if (index < 0 || (index + _collection.Count) > array.Length) 418if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Generated\UIElement.cs (1)
715for(int i = 0; i < classListeners.Handlers.Length; i++)
Core\CSharp\System\Windows\Generated\UIElement3D.cs (1)
497for(int i = 0; i < classListeners.Handlers.Length; i++)
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (1)
692System.Diagnostics.Debug.Assert(stroke != null && hitFragments != null && hitFragments.Length > 0);
Core\CSharp\System\Windows\Ink\Stroke.cs (12)
748System.Diagnostics.Debug.Assert(cutAt.Length != 0); 758if (cutAt.Length == 0) 763if ((cutAt.Length == 1) && cutAt[0].IsFull) 779System.Diagnostics.Debug.Assert(false == ((!DoubleUtil.AreClose(cutAt[cutAt.Length - 1].EndFIndex, StrokeFIndices.AfterLast)) && 780Math.Ceiling(cutAt[cutAt.Length - 1].EndFIndex) > sourceStylusPoints.Count - 1)); 782for (int i = 0; i < cutAt.Length; i++) 810System.Diagnostics.Debug.Assert(cutAt.Length != 0); 821if ((cutAt.Length == 0) || ((cutAt.Length == 1) && cutAt[0].IsFull)) 835System.Diagnostics.Debug.Assert(false == ((!DoubleUtil.AreClose(cutAt[cutAt.Length - 1].EndFIndex, StrokeFIndices.AfterLast)) && 836Math.Ceiling(cutAt[cutAt.Length - 1].EndFIndex) > sourceStylusPoints.Count - 1)); 846for (; i < cutAt.Length; i++)
Core\CSharp\System\Windows\Ink\Stroke2.cs (3)
668if(cutAt.Length == 0) 692if (cutAt.Length == 0) 702if (inSegments.Length == 0)
Core\CSharp\System\Windows\Ink\StrokeCollection.cs (5)
432for ( int x = indexes.Length - 1; x >= 0; x-- ) 553for ( int x = indexes.Length - 1; x >= 0; x-- ) 783for ( int x = 0; x < indexes.Length; x++ ) 813for ( int y = 0; y < indexes.Length; y++ ) 820for ( int i = indexes.Length - 1; i > y; i-- )
Core\CSharp\System\Windows\Input\Cursor.cs (1)
276for (dataSize = cursorData.Length;
Core\CSharp\System\Windows\Input\CursorConverter.cs (1)
72for(int num1 = 0; num1 < infoArray1.Length; num1++)
Core\CSharp\System\Windows\Input\InputManager.cs (4)
918for(int i = (handlers.Length - 1); i >= 0; i--) 941for(int i = (handlers.Length - 1); i >= 0; i--) 1047for(int i = (handlers.Length - 1); i >= 0; i--) 1118for(int i = (handlers.Length - 1); i >= 0; i--)
Core\CSharp\System\Windows\Input\InputMethod.cs (2)
1569for (int i = 0; i < InputMethodEventTypeInfo.InfoList.Length; i++) 1598for (int i = 0; i < InputMethodEventTypeInfo.InfoList.Length; i++)
Core\CSharp\System\Windows\Input\InputMethodStateTypeInfo.cs (1)
98for (int i = 0; i < _iminfo.Length; i++)
Core\CSharp\System\Windows\Input\InputProcessorProfiles.cs (1)
153for (i = 0; (i < hklList.Length) && (i < count); i++)
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (1)
520bytes, bytes.Length,
Core\CSharp\System\Windows\Input\TextServicesCompartmentContext.cs (1)
67for (int i = 0; i < InputMethodEventTypeInfo.InfoList.Length; i++)
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (1)
300for (int i = 0; i < n && cpt < points.Length; i++)
Core\CSharp\System\Windows\Interop\HwndSource.cs (2)
288for (int i = handlers.Length -1; i >= 0; --i) 1878for (int i = handlers.Length -1; i >= 0; --i)
Core\CSharp\System\Windows\LayoutManager.cs (4)
605for(int i=0; i<copy.Length; i++) 708for(int i=0; i<copy.Length; i++) 759AutomationPeer[] peers = new AutomationPeer[copy.Length]; 762for(int i=0; i<copy.Length; i++)
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 835int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 835int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 835int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 835int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 835int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\TimelineCollection.cs (2)
311if (index < 0 || (index + _collection.Count) > array.Length) 426if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
Core\CSharp\System\Windows\Media\Animation\TimeIntervalCollection.cs (5)
229if (_nodeTime != null && _nodeTime.Length > _minimumCapacity) 1247projection.EnsureAllocatedCapacity(this._nodeTime.Length); 1632Debug.Assert(_nodeTime.Length >= _minimumCapacity); // Assert that we indeed have memory allocated 1788else if (_nodeTime.Length < requiredCapacity) // We may need to grow by up to 2 units 1793int newCapacity = _nodeTime.Length << 1; // Dynamically grow by a factor of 2
Core\CSharp\System\Windows\Media\ByteStreamGeometryContext.cs (1)
848if (chunk.Length == c_defaultChunkSize)
Core\CSharp\System\Windows\Media\CharacterMetricsDictionary.cs (8)
143if (index >= array.Length) 151for (int i = 0; i < pageTable.Length; ++i) 156for (int j = 0; j < page.Length; ++j) 161if (k >= array.Length) 202if (index >= array.Length) 205if (Count > array.Length - index) 468for (int i = 0; i < pageTable.Length; ++i) 473for (int j = 0; j < page.Length; ++j)
Core\CSharp\System\Windows\Media\ColorContext.cs (3)
147_colorContextHandle, sRGBProfile, (uint)sRGBProfile.Length)) 155FromRawBytes(sRGBProfile, sRGBProfile.Length, /* dontThrowException = */ true); 746Invariant.Assert(dataLength <= data.Length);
Core\CSharp\System\Windows\Media\ColorContextHelper.cs (1)
125Invariant.Assert(buffer == null || bufferSize <= buffer.Length);
Core\CSharp\System\Windows\Media\ColorTransformHelper.cs (2)
120(UInt32)handles.Length, 122(UInt32)dwIntents.Length,
Core\CSharp\System\Windows\Media\CultureSpecificStringDictionary.cs (4)
132if (index >= array.Length) 135if (_innerDictionary.Count > array.Length - index) 168if (index >= array.Length) 171if (_innerDictionary.Count > array.Length - index)
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (2)
310if (index < 0 || (index + _collection.Count) > array.Length) 425if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media\Effects\PixelShader.cs (1)
304destinationBytecode = new byte[sourceBytecode.Length];
Core\CSharp\System\Windows\Media\EllipseGeometry.cs (1)
293for (int i=0; i<points.Length; i++)
Core\CSharp\System\Windows\Media\FamilyMap.cs (2)
115for (int i = 0; i < _ranges.Length; ++i) 349for(int i = 0; i < _ranges.Length; i++)
Core\CSharp\System\Windows\Media\FamilyMapCollection.cs (5)
93if (index >= array.Length) 96if (_count > array.Length - index) 115if (index >= array.Length) 118if (_count > array.Length - index) 289else if (_count == _items.Length)
Core\CSharp\System\Windows\Media\FamilyTypefaceCollection.cs (3)
266else if (_count == _items.Length) 396if (index >= array.Length) 399if (_count > array.Length - index)
Core\CSharp\System\Windows\Media\Fonts.cs (2)
355if (arrayIndex < 0 || arrayIndex >= array.Length || (arrayIndex + Count) > array.Length)
Core\CSharp\System\Windows\Media\FormattedText.cs (2)
1007return _that._maxTextWidths[Math.Min(line, _that._maxTextWidths.Length - 1)]; 1332if (maxTextWidths == null || maxTextWidths.Length <= 0)
Core\CSharp\System\Windows\Media\Generated\DoubleCollection.cs (2)
264if (index < 0 || (index + _collection.Count) > array.Length) 392if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media\Generated\DrawingCollection.cs (2)
324if (index < 0 || (index + _collection.Count) > array.Length) 439if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media\Generated\GeneralTransformCollection.cs (2)
312if (index < 0 || (index + _collection.Count) > array.Length) 427if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media\Generated\GeometryCollection.cs (2)
324if (index < 0 || (index + _collection.Count) > array.Length) 439if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media\Generated\GradientStopCollection.cs (2)
312if (index < 0 || (index + _collection.Count) > array.Length) 427if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media\Generated\Int32Collection.cs (2)
264if (index < 0 || (index + _collection.Count) > array.Length) 392if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media\Generated\PathFigureCollection.cs (2)
313if (index < 0 || (index + _collection.Count) > array.Length) 428if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media\Generated\PathSegmentCollection.cs (2)
312if (index < 0 || (index + _collection.Count) > array.Length) 427if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media\Generated\PointCollection.cs (2)
264if (index < 0 || (index + _collection.Count) > array.Length) 392if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media\Generated\RenderData.cs (3)
565Debug.Assert((_buffer == null) || (_curOffset <= _buffer.Length)); 1140Debug.Assert((_buffer == null) || (_curOffset <= _buffer.Length)); 1486Debug.Assert((_buffer == null) || (_curOffset <= _buffer.Length));
Core\CSharp\System\Windows\Media\Generated\TextEffectCollection.cs (2)
312if (index < 0 || (index + _collection.Count) > array.Length) 427if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media\Generated\TransformCollection.cs (2)
324if (index < 0 || (index + _collection.Count) > array.Length) 439if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media\Generated\VectorCollection.cs (2)
264if (index < 0 || (index + _collection.Count) > array.Length) 392if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media\Geometry.cs (3)
1004if ((SerializedData == null) || (SerializedData.Length <= 0)) 1033if ((SerializedData == null) || (SerializedData.Length <= 0)) 1045Invariant.Assert(size <= (uint)SerializedData.Length);
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (5)
1574Invariant.Assert(glyphsLength <= glyphs.Length); 2210if (arrayIndex < 0 || arrayIndex >= array.Length || (arrayIndex + Count) > array.Length) 2299if (arrayIndex < 0 || arrayIndex >= array.Length || (arrayIndex + Count) > array.Length)
Core\CSharp\System\Windows\Media\GuidelineCollection.cs (2)
60Debug.Assert(!isDynamic || guidelinesX.Length % 2 == 0); 69Debug.Assert(!isDynamic || guidelinesY.Length % 2 == 0);
Core\CSharp\System\Windows\Media\ImageSourceConverter.cs (1)
303return new MemoryStream(rawData, i, rawData.Length - i);
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1050Invariant.Assert(colorContextPtrs == null || numContexts <= colorContextPtrs.Length);
Core\CSharp\System\Windows\Media\Imaging\BitmapFrameDecode.cs (1)
252Invariant.Assert(colorContextPtrs == null || numContexts <= colorContextPtrs.Length);
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (1)
739int destBufferSize = checked(elementSize * (pixels.Length - offset));
Core\CSharp\System\Windows\Media\Imaging\CachedBitmap.cs (1)
176int destBufferSize = elementSize * pixels.Length;
Core\CSharp\System\Windows\Media\Imaging\PropVariant.cs (7)
166int length = array.Length; 216int length = value.Length; 302for (int i=0; i<charArray.Length; i++) 352short[] array = new short[boolArray.Length]; 354for (int i=0; i<boolArray.Length; i++) 439pclsidVal = Marshal.AllocCoTaskMem(guid.Length); 440Marshal.Copy(guid, 0, pclsidVal, guid.Length);
Core\CSharp\System\Windows\Media\MatrixStack.cs (3)
48if (_size == _items.Length) 194Debug.Assert(_highWaterMark <= _items.Length); 200if (newSize * (s_shrinkFactor) <= _items.Length)
Core\CSharp\System\Windows\Media\Parsers.cs (1)
149if (result.ColorContext.NumChannels != values.Length)
Core\CSharp\System\Windows\Media\PathGeometry.cs (9)
158Invariant.Assert(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_PATHGEOMETRY)); 176Debug.Assert(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_PATHFIGURE)); 196Debug.Assert(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT)); 206Debug.Assert(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT_LINE)); 221Debug.Assert(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT_BEZIER)); 238Debug.Assert(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT_QUADRATICBEZIER)); 254Debug.Assert(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT_ARC)); 275Debug.Assert(pathData.SerializedData.Length >= currentOffset + sizeof(MIL_SEGMENT_POLY)); 287Debug.Assert(pathData.SerializedData.Length >=
Core\CSharp\System\Windows\Media\PixelFormat.cs (5)
100int leftNumChannels = left._mask != null ? left._mask.Length : 0; 101int rightNumChannels = right._mask != null ? right._mask.Length : 0; 145for (int i = 0, count = _mask.Length; i < count; ++i) 576Debug.Assert(cbBytes == channelMask.Length); 743return GetPixelFormat( (PixelFormatEnum)guidBytes[guidBytes.Length-1] );
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (1)
350for (int i=0; i<points.Length; i++)
Core\CSharp\System\Windows\Media\RenderData.cs (6)
108if ((_buffer == null) || (newOffset > _buffer.Length)) 115Debug.Assert((_buffer != null) && (_buffer.Length >= newOffset)); 118Debug.Assert(_buffer.Length > 0); 485Debug.Assert(_buffer.Length < cbRequiredSize); 491int newSize = Math.Max((_buffer.Length << 1) - (_buffer.Length >> 1), cbRequiredSize);
Core\CSharp\System\Windows\Media\StreamGeometry.cs (16)
89if ((_data == null) || (_data.Length <= 0)) 96Invariant.Assert((_data != null) && (_data.Length >= sizeof(MIL_PATHGEOMETRY))); 124Debug.Assert((_data != null) && (_data.Length >= sizeof(MIL_PATHGEOMETRY))); 153Debug.Assert((_data != null) && (_data.Length >= sizeof(MIL_PATHGEOMETRY))); 178Debug.Assert((_data != null) && (_data.Length >= sizeof(MIL_PATHGEOMETRY))); 243Invariant.Assert((_data != null) && (_data.Length >= sizeof(MIL_PATHGEOMETRY))); 272Invariant.Assert((_data != null) && (_data.Length >= sizeof(MIL_PATHGEOMETRY))); 299Invariant.Assert((_data != null) && (_data.Length >= sizeof(MIL_PATHGEOMETRY))); 543if ((sourceStream._data != null) && (sourceStream._data.Length > 0)) 545_data = new byte[sourceStream._data.Length]; 558if ((sourceStream._data != null) && (sourceStream._data.Length > 0)) 560_data = new byte[sourceStream._data.Length]; 574if ((sourceStream._data != null) && (sourceStream._data.Length > 0)) 576_data = new byte[sourceStream._data.Length]; 590if ((sourceStream._data != null) && (sourceStream._data.Length > 0)) 592_data = new byte[sourceStream._data.Length];
Core\CSharp\System\Windows\Media\VisualCollection.cs (6)
207(array.Length - index < _size)) 237(array.Length - index < _size)) 276return _items != null ? _items.Length : 0; 280int currentCapacity = _items != null ? _items.Length : 0; 489if ((_items == null) || (_size == _items.Length)) 737if ((_items == null) || (_size == _items.Length))
Core\CSharp\System\Windows\Media\VisualProxy.cs (5)
77int tailLength = _tail.Length; 187else if (count > _tail.Length) 322else if (count == _tail.Length) 575int newLength = _tail.Length + delta; 581Array.Copy(_tail, reallocatedTail, Math.Min(_tail.Length, newLength));
Core\CSharp\System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (2)
308if (index < 0 || (index + _collection.Count) > array.Length) 423if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media3D\Generated\MaterialCollection.cs (2)
320if (index < 0 || (index + _collection.Count) > array.Length) 435if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media3D\Generated\Model3DCollection.cs (2)
320if (index < 0 || (index + _collection.Count) > array.Length) 435if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media3D\Generated\Point3DCollection.cs (2)
260if (index < 0 || (index + _collection.Count) > array.Length) 388if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media3D\Generated\Transform3DCollection.cs (2)
320if (index < 0 || (index + _collection.Count) > array.Length) 435if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media3D\Generated\Vector3DCollection.cs (2)
260if (index < 0 || (index + _collection.Count) > array.Length) 388if (index < 0 || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Media3D\Matrix3D.cs (3)
531for(int i = 0; i < points.Length; i++) 557for(int i = 0; i < points.Length; i++) 583for(int i = 0; i < vectors.Length; i++)
Core\CSharp\System\Windows\Media3D\Visual3DCollection.cs (4)
160if (index < 0 || index >= array.Length || (index + _collection.Count) > array.Length) 180if (index < 0 || index >= array.Length || (index + _collection.Count) > array.Length)
Core\CSharp\System\Windows\Navigation\BaseUriHelper.cs (2)
310int count = assemblyInfo.Length; 361int count = assemblyInfo.Length;
Core\CSharp\System\Windows\PresentationSource.cs (2)
695if (visuals == null || visuals.Length == 0) 702int count = visuals.Length;
Core\CSharp\system\windows\TextDecorationCollectionConverter.cs (2)
135i < TextDecorationNames.Length 140if (i < TextDecorationNames.Length)
Shared\MS\Internal\CharacterBuffer.cs (4)
208get { return _characterArray.Length; } 269Debug.Assert(characterOffset >= 0 && characterOffset < _characterArray.Length, "Invalid character index"); 272|| characterOffset + characterLength > _characterArray.Length) 274characterLength = _characterArray.Length - characterOffset;
Shared\MS\Internal\Ink\BitStream.cs (4)
33_bufferLengthInBits = (uint)buffer.Length * (uint)Native.BitsPerByte; 45if (startIndex < 0 || startIndex >= buffer.Length) 51_bufferLengthInBits = (uint)(buffer.Length - startIndex) * (uint)Native.BitsPerByte; 63if (bufferLengthInBits > (buffer.Length * Native.BitsPerByte))
Shared\MS\Internal\PriorityQueue.cs (1)
114if (_count == _heap.Length)
Shared\MS\Internal\SafeSecurityHelper.cs (4)
190for (int i = assemblies.Length - 1; i >= 0; i--) 313if (reqKeyToken.Length == curKeyToken.Length) 317for (int i = 0; i < reqKeyToken.Length; i++)
Shared\MS\Internal\SecurityHelper.cs (1)
371for ( int i = 0 ; i < permissionsToCheck.Length ; i++ )
Shared\MS\Internal\SequentialUshortCollection.cs (2)
66if (arrayIndex < 0 || arrayIndex >= array.Length || (arrayIndex + Count) > array.Length)
PresentationFramework (864)
parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (4)
90if (components.Length < 2 || components.Length > 3) 111for (int i = 1; i < components.Length; i++) 116if (keyValuePair.Length != 2)
src\Framework\Microsoft\Win32\FileDialog.cs (10)
357string[] safeFileNames = new string[unsafeFileNames.Length]; 359for (int i = 0; i < unsafeFileNames.Length; i++) 492if (formats.Length % 2 != 0) 1620for (int i = 0; i < _fileNames.Length; i++) 1628for (int j = 0; j < extensions.Length; j++) 1826if (indexOfExtension >= tokens.Length) 2066if (filterItems.Length > 0) 2068dialog.SetFileTypes((uint)filterItems.Length, filterItems); 2184if (0 == tokens.Length % 2) 2186for (int i = 1; i < tokens.Length; i += 2)
src\Framework\Microsoft\Win32\OpenFileDialog.cs (3)
98if (cachedFileNames.Length != 0) 153Stream[] streams = new Stream[cachedFileNames.Length]; 156for (int i = 0; i < cachedFileNames.Length; i++)
src\Framework\Microsoft\Win32\SaveFileDialog.cs (1)
96string filename = FileNamesInternal.Length > 0 ? FileNamesInternal[0] : null;
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (1)
525if (values.Length != 4)
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
637if (realLocator != null && prefixes != null && prefixes.Length > 0)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
464if (values.Length != 2)
src\Framework\MS\Internal\Annotations\ObservableDictionary.cs (1)
198if (startIndex < 0 || startIndex > target.Length)
src\Framework\MS\Internal\AppModel\AssemblyFilter.cs (1)
70if (aptca.Length > 0 && aptca[0] is AllowPartiallyTrustedCallersAttribute)
src\Framework\MS\Internal\AppModel\IconHelper.cs (1)
276Marshal.Copy(colorArray, 0, bits, colorArray.Length);
src\Framework\MS\Internal\AppModel\OleCmdHelper.cs (1)
159Invariant.Assert(args.Length == 3);
src\Framework\MS\Internal\AppModel\PresentationAppDomainManager.cs (2)
206AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData.Length > index) 227AppDomain.CurrentDomain.SetupInformation.ActivationArguments.ActivationData.Length > index)
src\Framework\MS\Internal\AppModel\ResourceContainer.cs (1)
300for (int i = 0; i < reqKeyToken.Length; i++)
src\Framework\MS\Internal\AppModel\ReturnEventSaver.cs (3)
74list = _returnList = new ReturnEventSaverInfo[delegates.Length]; 76for (int i = 0; i < delegates.Length; i++) 135for (int i = 0; i < list.Length; i++)
src\Framework\MS\Internal\Commands\CommandHelpers.cs (1)
115for (int i = 0; i < inputGestures.Length; i++)
src\Framework\MS\Internal\Controls\EnumUnknown.cs (1)
39this.size = (arr == null) ? 0 : arr.Length;
src\Framework\MS\Internal\Data\ClrBindingWorker.cs (1)
110if (path.SVI.Length > 0)
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (4)
496for (int i = 0; i < SupportedTypes.Length; ++i) 501for (; i < SupportedTypes.Length; ++i) 510for (; i < SupportedTypes.Length; ++i) 523for (int i = 0; i < CharSupportedTypes.Length; ++i)
src\Framework\MS\Internal\Data\IndexedEnumerable.cs (3)
332if (index < array.Length) 510for (int i = 0; i <= defaultMembers.Length - 1; i++) 516if (indexerParameters.Length == 1)
src\Framework\MS\Internal\Data\LiveShapingList.cs (3)
266Debug.Assert(sdc.Count >= _compInfos.Length, "SortDescriptions don't match LivePropertyInfos"); 267int n = _compInfos.Length; 483for (int k=0; k<infos.Length; ++k)
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (30)
57for (int i=_arySVS.Length-1; i>=0; --i) 186if (args != null && args.Length == 1 && 251bool indexerIsNext = (level+1 < SVI.Length && SVI[level+1].type == SourceValueType.Indexer); 278if (args != null && args.Length == 1 && 344int level = _arySVS.Length - 1; 415for (int k=1; k<_arySVS.Length; ++k) 440for (int k=0; k<_arySVS.Length; ++k) 490for (int k=0; k<_arySVS.Length; ++k) 507UpdateSourceValueState(_arySVS.Length, null, BindingExpression.NullDataItem, isASubPropertyChange); 513for (k=0; k<_arySVS.Length; ++k) 551result = (pi != null) && pi.GetIndexParameters().Length > 0; 621Debug.Assert(0<=k && k<_arySVS.Length && _arySVS[k].collectionView == collectionView, "bad parameters to UpdateSourceValueState"); 626for (++k; k<_arySVS.Length; ++k) 661if (initialLevel < _arySVS.Length) 666_arySVS.Length > 0 && 667SVI[_arySVS.Length-1].type != SourceValueType.Direct && 668!(_arySVS[_arySVS.Length-1].info is DependencyProperty) && 669typeof(DependencyObject).IsAssignableFrom(_arySVS[_arySVS.Length-1].type); 672if (!suppressTransfer && _arySVS.Length > 0 && 673_arySVS[_arySVS.Length-1].info == FrameworkElement.DataContextProperty && 1176if (aryInfo.Length == 1 && 1187args = new object[aryInfo.Length]; 1195for (int ii=0; info==null && ii<aryMembers.Length; ++ii) 1202for (int jj=0; jj<defaultMembers.Length; ++jj) 1223info = SystemCoreHelper.GetIndexerAccessor(args.Length); 1358if (aryPI != null && aryPI.Length != aryInfo.Length) 1362for (int i=0; i<args.Length; ++i) 1449if (isIList && aryPI.Length == 1 && aryPI[0].ParameterType == typeof(int)) 1517if (k >= _arySVS.Length)
src\Framework\MS\Internal\Data\RBTree.cs (1)
584if (arrayIndex + Count > array.Length)
src\Framework\MS\Internal\Data\SortFieldComparer.cs (3)
67for (int k = 0; k < _fields.Length; ++k) 100int nFields = sfc._fields.Length; 227if (++index < _values.Length)
src\Framework\MS\Internal\Data\StaticPropertyChangedEventManager.cs (1)
470for (int i=keys.Length-1; i>=0; --i)
src\Framework\MS\Internal\Data\ValueChangedEventManager.cs (3)
99if (handler.GetInvocationList().Length != 1) 112if (handler.GetInvocationList().Length != 1) 168for (int i=keys.Length-1; i>=0; --i)
src\Framework\MS\Internal\Data\ValueTable.cs (1)
291for (int i=localKeys.Length-1; i >= 0; --i)
src\Framework\MS\Internal\Data\XDeferredAxisSource.cs (2)
82Debug.Assert(aryMembers.Length == 1, "XLinq changed XDeferredAxis to have more than one indexer"); 83PropertyInfo pi = (aryMembers.Length > 0) ? aryMembers[0] as PropertyInfo : null;
src\Framework\MS\Internal\Documents\ContentElementCollection.cs (4)
87if (array.Length - index < Size) 122if (array.Length - index < Size) 773return (Items.Length); 777if (value != Items.Length)
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (1)
1119for (i = 0; i < textViewProximities.Length; i++)
src\Framework\MS\Internal\Documents\TableColumnCollectionInternal.cs (2)
43if (Size == Items.Length) 111if (Size == Items.Length)
src\Framework\MS\Internal\Documents\TableTextElementCollectionInternal.cs (1)
363if (Size == Items.Length)
src\Framework\MS\Internal\Documents\TextBoxLine.cs (2)
492int charactersCopied = position.GetTextInRun(LogicalDirection.Forward, textBuffer, 0, textBuffer.Length); 493Invariant.Assert(charactersCopied == textBuffer.Length);
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (4)
62Invariant.Assert(other._ranges.Length >= (other._size * 2)); 64for (int i = 0; i < _ranges.Length; i++) 270if (_ranges.Length < (_size + 1) * 2) 272int[] ranges = new int[_ranges.Length * 2];
src\Framework\MS\Internal\Globalization\BamlTreeMap.cs (8)
411for (int i = 0; i < comment.LocalizationAttributes.Length; i++) 429for (int i = 0; i < comment.LocalizationComments.Length; i++) 588for (int i = 0; i < _comments.Length; i++) 623i < node.Children.Count && (comment.LocalizationComments.Length == 0 || comment.LocalizationAttributes.Length == 0); 632&& comment.LocalizationComments.Length == 0) 638&& comment.LocalizationAttributes.Length == 0) 649_commentsIndex = (_commentsIndex + 1) % _comments.Length;
src\Framework\MS\Internal\Globalization\BamlTreeUpdater.cs (2)
637for (int i = 0; i < tokens.Length; i++) 840if (contentPropertyAttributes.Length > 0)
src\Framework\MS\Internal\Globalization\LocalizationComments.cs (2)
75for (int i = 0; i < pairs.Length; i++) 376for (int i = 0; i < _enumNames.Length; i++)
src\Framework\MS\Internal\Helper.cs (4)
678Debug.Assert(parameterInfos.Length == 2, "The signature of a static settor must contain two parameters"); 912for (int j = 0; j < dpIndices.Length; j++) 1014for (int i = 0; i < dpIndices.Length; i++) 1070for (int j=0; j<dpIndices.Length; j++)
src\Framework\MS\Internal\Ink\LassoHelper.cs (2)
180int marginCount = (points.Length * percentIntersect) / 100; 182if ((0 == marginCount) || (50 <= ((points.Length * percentIntersect) % 100)))
src\Framework\MS\Internal\Ink\LassoSelectionBehavior.cs (2)
197if ( 0 != lassoPoints.Length ) 627if ( 0 != lassoPoints.Length )
src\Framework\MS\Internal\Interop\InternalDispatchObject.cs (1)
76_dispId2MethodMap = new Dictionary<int, MethodInfo>(methods.Length);
src\Framework\MS\Internal\IO\Packaging\ByteStream.cs (2)
323if (!((buffer.Length > 0) && ((buffer.Length - offset) >= count)))
src\Framework\MS\Internal\IO\Packaging\CorePropertiesFilter.cs (3)
277if (attributes != null && attributes.Length > 0) 350while (_currentIndex < _attributes.Length) 413if (_currentIndex < 0 || _currentIndex >= _attributes.Length)
src\Framework\MS\Internal\IO\Packaging\PackageFilter.cs (4)
549for (int keyNameIndex = 0; keyNameIndex < keyPath.Length; ++keyNameIndex) 625for (int i = 0; i < path.Length; ++i) 629Debug.Assert(stopGaps.Length > nextStopGapToUse); 637Debug.Assert(stopGaps.Length == nextStopGapToUse);
src\Framework\MS\Internal\IO\Packaging\XamlFilter.cs (2)
196if (aAttributes != null && aAttributes.Length > 0) 200for (int i = 0; i < aAttributes.Length; i++)
src\Framework\MS\Internal\IO\Packaging\XmlFixedPageInfo.cs (2)
67if (position < 0 || position >= GlyphRunList.Length) 93return GlyphRunList.Length;
src\Framework\MS\Internal\Printing\PrintDlgExMarshaler.cs (9)
444Marshal.Copy(pDevMode, devModeData, 0, devModeData.Length); 830int cbDevNames = checked(((printer.Length + 3) * Marshal.SystemDefaultCharSize) + 845devNames.wDriverOffset = checked((ushort)(devNames.wDeviceOffset + printer.Length + 1)); 858checked((IntPtr)((long)offsetName + (printer.Length * Marshal.SystemDefaultCharSize))); 869Array.Clear(nulls, 0, nulls.Length); 874printer.Length); 879nulls.Length); 938IntPtr hDevMode = Marshal.AllocHGlobal(devModeData.Length); 939Marshal.Copy(devModeData, 0, hDevMode, devModeData.Length);
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (4)
97&& (Cell.ColumnIndex + Cell.ColumnSpan) <= calculatedColumns.Length); 392&& (Cell.ColumnIndex + Cell.ColumnSpan) <= calculatedColumns.Length); 489_columnWidths = new double[tpc.CalculatedColumns.Length]; 491for(int index = 0; index < tpc.CalculatedColumns.Length; index++)
src\Framework\MS\Internal\PtsHost\ContainerParaClient.cs (3)
341for (int i = 0; i < arrayParaDesc.Length; i++) 400List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 401for (int i = 0; i < arrayParaDesc.Length; i++)
src\Framework\MS\Internal\PtsHost\DtrList.cs (6)
134if (_count == _dtrs.Length) { Resize(); } 144if (_count == _dtrs.Length) { Resize(); } 308if (_count == _dtrs.Length) { Resize(); } 319Debug.Assert(_dtrs.Length > 0); 322DirtyTextRange [] newdtrs = new DirtyTextRange[_dtrs.Length * 2]; 323Array.Copy(_dtrs, newdtrs, _dtrs.Length);
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (16)
144for (int index = 0; index < arrayColumnDesc.Length; index++) 200emptySubpage = (arrayColumnDesc.Length == 0); 203for (int index = 0; index < arrayColumnDesc.Length; index++) 299for (int index = 0; index < arrayColumnDesc.Length && ie == null; index++) 366for (int index = 0; index < arrayColumnDesc.Length; index++) 474emptySubpage = (arrayColumnDesc.Length == 0); 504for (int index = 0; index < arrayColumnDesc.Length; index++) 509ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch); 511for (int index = 0; index < arrayColumnDesc.Length; index++) 582Invariant.Assert(arrayColumnDesc.Length == 1); 585for (int index = 0; index < arrayColumnDesc.Length; index++) 654paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 655for (int i = 0; i < arrayParaDesc.Length; i++) 679Debug.Assert(arrayColumnDesc.Length == 1); 694paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 695for (int i = 0; i < arrayParaDesc.Length; i++)
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (15)
125for (int index = 0; index < arrayColumnDesc.Length; index++) 182emptySubpage = (arrayColumnDesc.Length == 0); 185for (int index = 0; index < arrayColumnDesc.Length; index++) 301for (int index = 0; index < arrayColumnDesc.Length && ie == null; index++) 368for (int index = 0; index < arrayColumnDesc.Length; index++) 478emptySubpage = (arrayColumnDesc.Length == 0); 508for (int index = 0; index < arrayColumnDesc.Length; index++) 513ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch); 515for (int index = 0; index < arrayColumnDesc.Length; index++) 588for (int index = 0; index < arrayColumnDesc.Length; index++) 660paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 661for (int i = 0; i < arrayParaDesc.Length; i++) 685Debug.Assert(arrayColumnDesc.Length == 1); 700paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 701for (int i = 0; i < arrayParaDesc.Length; i++)
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (4)
506for (int i = 0; i < arrayColumnDesc.Length; i++) 570for (int i = 0; i < arrayParaDesc.Length; i++) 610List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 611for (int i = 0; i < arrayParaDesc.Length; i++)
src\Framework\MS\Internal\PtsHost\LineBase.cs (2)
131int charactersCopied = position.GetTextInRun(LogicalDirection.Forward, textBuffer, 0, textBuffer.Length); 192run = new TextCharacters(textBuffer, 0, textBuffer.Length, textProps);
src\Framework\MS\Internal\PtsHost\ListMarkerSourceInfo.cs (2)
257for (int i = 0; i < RomanNumericSizeIncrements.Length; i++) 270if (i < RomanNumericSizeIncrements.Length - 1)
src\Framework\MS\Internal\PtsHost\PtsContext.cs (8)
136for (index = 0; index < _unmanagedHandles.Length; ++index) 229Invariant.Assert(handleLong > 0 && handleLong < _unmanagedHandles.Length, "Invalid object handle."); 247if (handleLong < 0 || handleLong >= _unmanagedHandles.Length) 266Invariant.Assert(handleLong > 0 && handleLong < _unmanagedHandles.Length, "Invalid object handle."); 460while (freeIndex < _unmanagedHandles.Length) 474int freeIndex = _unmanagedHandles.Length; 477HandleIndex[] newItems = new HandleIndex[_unmanagedHandles.Length * 2]; 478Array.Copy(_unmanagedHandles, newItems, _unmanagedHandles.Length);
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (9)
177for (int index = 0; index < arrayParaDesc.Length; index++) 280for (int index = 0; index < arrayParaDesc.Length; index++) 324if (arrayParaDesc.Length < visualCollection.Count) 326visualCollection.RemoveRange(arrayParaDesc.Length, visualCollection.Count - arrayParaDesc.Length); 377for (int index = 0; index < arrayParaDesc.Length; index++) 448for (int index = 0; index < arrayParaDesc.Length && ie == null; index++) 533for (int index = 0; index < arrayParaDesc.Length; index++) 850for (int i = 0; i < arrayParaDesc.Length; i++)
src\Framework\MS\Internal\PtsHost\PtsPage.cs (14)
591for (int index = 0; index < arraySectionDesc.Length; index++) 644for (int index = 0; index < arraySectionDesc.Length; index++) 1028for (int index = 0; index < arrayColumnDesc.Length; index++) 1082for (int index = 0; index < arrayColumnDesc.Length; index++) 1177emptyPage = (arraySectionDesc.Length == 0); 1180ErrorHandler.Assert(arraySectionDesc.Length == 1, ErrorHandler.NotSupportedMultiSection); 1257emptySection = (arrayColumnDesc.Length == 0); 1268for (int index = 0; index < arrayColumnDesc.Length; index++) 1273ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch); 1274for (int index = 0; index < arrayColumnDesc.Length; index++) 1355for (int index = 0; index < arraySectionDesc.Length && ie == null; index++) 1416for (int index = 0; index < arraySectionDesc.Length; index++) 1481for (int index = 0; index < arrayColumnDesc.Length; index++) 1549for (int index = 0; index < arrayColumnDesc.Length; index++)
src\Framework\MS\Internal\PtsHost\RowParagraph.cs (9)
57for(int index = 0; index < _cellParagraphs.Length; index++) 266Invariant.Assert(cCells == i + _spannedCells.Length); // Protect against buffer overflow 269if (_spannedCells.Length > 0) 273for (int j = 0; j < _spannedCells.Length; ++j) 329_spannedCells = new CellParagraph[Row.SpannedCells.Length]; 336for(int index = 0; index < _spannedCells.Length; index++) 350(isLastRowOfRowGroup && _spannedCells.Length > 0)) 408for(int index = 0; index < _cellParagraphs.Length; index++) 418for(int index = 0; index < previousRow._spannedCells.Length; index++)
src\Framework\MS\Internal\PtsHost\SectionVisual.cs (7)
50if (arrayColumnDesc.Length > 1) 55rulePositions = new Point[(arrayColumnDesc.Length - 1)*2]; 56for (int index = 1; index < arrayColumnDesc.Length; index++) 73int prevSize = _rulePositions == null ? 0 : _rulePositions.Length; 74int newSize = rulePositions == null ? 0 : rulePositions.Length; 77for (int index = 0; index < rulePositions.Length; index++) 117for (int index = 0; index < rulePositions.Length; index += 2)
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (14)
156for (int index = 0; index < arrayColumnDesc.Length; index++) 227for (int index = 0; index < arrayColumnDesc.Length && ie == null; index++) 293for (int index = 0; index < arrayColumnDesc.Length; index++) 399emptySubpage = (arrayColumnDesc.Length == 0); 429for (int index = 0; index < arrayColumnDesc.Length; index++) 434ErrorHandler.Assert(visualChildren.Count == arrayColumnDesc.Length, ErrorHandler.ColumnVisualCountMismatch); 435for (int index = 0; index < arrayColumnDesc.Length; index++) 503emptySubpage = (arrayColumnDesc.Length == 0); 506for (int index = 0; index < arrayColumnDesc.Length; index++) 564for (int index = 0; index < arrayColumnDesc.Length; index++) 652for (int i = 0; i < arrayColumnDesc.Length; i++) 695List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 696for (int i = 0; i < arrayParaDesc.Length; i++) 735for (int i = 0; i < arrayParaDesc.Length; i++)
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (48)
119for (int iR = 0; iR < arrayTableRowDesc.Length; ++iR) 143for (int iC = 0; iC < arrayFsCell.Length; ++iC) 262for (int iR = 0; iR < arrayTableRowDesc.Length; ++iR) 310CalculatedColumns.Length, 331if (rowVisualsCollection.Count > arrayTableRowDesc.Length) 334arrayTableRowDesc.Length, 335rowVisualsCollection.Count - arrayTableRowDesc.Length); 358for (int iR = 0; iR < arrayTableRowDesc.Length; ++iR) 370for (int iC = 0; iC < arrayFsCell.Length; ++iC) 410for (int iR = 0; iR < arrayTableRowDesc.Length; ++iR) 424for (int iC = 0; iC < arrayFsCell.Length; ++iC) 494for (int iR = 0; iR < arrayTableRowDesc.Length; ++iR) 504for (int iC = 0; iC < arrayFsCell.Length; ++iC) 572for (int iR = 0; iR < arrayTableRowDesc.Length; ++iR) 601for (int iC = 0; iC < arrayFsCell.Length; ++iC) 671for (int iR = 0; iR < arrayTableRowDesc.Length && cpcFound == null; ++iR) 683for (int iC = 0; iC < arrayFsCell.Length && cpcFound == null; ++iC) 759for (int iR = 0; iR < arrayTableRowDesc.Length; ++iR) 816for (int iC = 0; iC < arrayFsCell.Length; ++iC) 901for (int iR = 0; iR < arrayTableRowDesc.Length && !passedEndPosition; ++iR) 913for (int iC = 0; iC < arrayFsCell.Length; ++iC) 974for (int iR = 0; iR < arrayTableRowDesc.Length; ++iR) 986for (int iC = 0; iC < arrayFsCell.Length; ++iC) 1037for (int iR = arrayTableRowDesc.Length - 1; iR >= 0; --iR) 1052for (int iC = arrayFsCell.Length - 1; iC >= 0; --iC) 1122for (int iR = 0; iR < arrayTableRowDesc.Length; ++iR) 1137for (int iC = arrayFsCell.Length - 1; iC >= 0; --iC) 1224for (int iR = 0; iR < arrayTableRowDesc.Length; ++iR) 1368for (int i = 0; i < cols.Length; i++) 1444row = ((RowParagraph)(PtsContext.HandleToObject(arrayTableRowDesc[arrayTableRowDesc.Length - 1].fsnmRow))).Row; 1448arrayTableRowDesc[arrayTableRowDesc.Length - 1].pfstablerow, 1658for (int iC = 0; iC < arrayFsCell.Length; ++iC) 1782for (int iC = 0; iC < arrayFsCell.Length; ++iC) 1807for (int columnIndex = 0; columnIndex < arrayCellParaClients.Length; ++columnIndex) 1877for (int iC = CalculatedColumns.Length-1; iC >= 0; iC--) 1896for (int iC = 0; iC < CalculatedColumns.Length; iC++) 1927if(IsLastChunk && rowIndex == arrayTableRowDesc.Length - 1) 1956if(arrayTableRowDesc.Length > 0) 1961for (int iR = 0; iR < arrayTableRowDesc.Length; ++iR) 2016for (int iR = 0; iR < arrayTableRowDesc.Length; ++iR) 2048else if (_calculatedColumns.Length != columns) 2055Math.Min(_calculatedColumns.Length, columns)); 2060if (_calculatedColumns.Length > 0) 2064while (i < _calculatedColumns.Length && i < Table.Columns.Count) 2070while (i < _calculatedColumns.Length) 2079for (int i = 0; i < _calculatedColumns.Length; ++i) 2166for (int i = 0; i < _calculatedColumns.Length; ++i) 2452for (int i = 0; i < _calculatedColumns.Length; ++i)
src\Framework\MS\Internal\PtsHost\TableParagraph.cs (2)
522for(int iCell = 0; iCell < rowParagraph.Cells.Length; iCell++) 540for(int iCell = 0; iCell < rowParagraph.Cells.Length; iCell++)
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (87)
201for (int index = 0; index < arrayAttachedObjectDesc.Length; index++) 315for (int index = 0; index < arrayAttachedObjectDesc.Length; index++) 462floaters = new List<ParagraphResult>(arrayAttachedObjectDesc.Length); 465for (int index = 0; index < arrayAttachedObjectDesc.Length; index++) 506figures = new List<ParagraphResult>(arrayAttachedObjectDesc.Length); 509for (int index = 0; index < arrayAttachedObjectDesc.Length; index++) 629for (index = 0; index < arrayLineDesc.Length; index++) 653for (index = 0; index < arrayLineDesc.Length; index++) 663for (elIndex = 0; elIndex < arrayLineElement.Length; elIndex++) 678if (elIndex < arrayLineElement.Length) 1154for (index = 0; index < arrayLineDesc.Length; index++) 1179for (index = 0; index < arrayLineDesc.Length; index++) 1189for (elIndex = 0; elIndex < arrayLineElement.Length; elIndex++) 1206if (elIndex < arrayLineElement.Length) 1441for (int index = 0; index < arrayLineDesc.Length; index++) 1467for (int index = 0; index < arrayLineDesc.Length; index++) 1475for (int elIndex = 0; elIndex < arrayLineElement.Length; elIndex++) 1505for (int index = 0; index < arrayAttachedObjectDesc.Length; index++) 1721List<LineResult> lines = new List<LineResult>(arrayLineDesc.Length); 1724for (int index = 0; index < arrayLineDesc.Length; index++) 1780List<LineResult> lines = new List<LineResult>(arrayLineDesc.Length); 1783for (int index = 0; index < arrayLineDesc.Length; index++) 1792for (int elIndex = 0; elIndex < arrayLineElement.Length; elIndex++) 1854for (int index = 0; index < arrayLineDesc.Length; index++) 1863|| ((lineDesc.dcpLim == dcp) && (index == arrayLineDesc.Length - 1))) 1947for (int index = 0; index < arrayLineDesc.Length; index++) 1956for (int elIndex = 0; elIndex < arrayLineElement.Length; elIndex++) 1965|| ((element.dcpLim == dcp) && (elIndex == arrayLineElement.Length - 1) && (index == arrayLineDesc.Length - 1))) 2046int lineCount = arrayLineDesc.Length; 2084|| ( (lineIndex == arrayLineDesc.Length - 1) 2095if ( (handleEndOfPara && lineIndex == (arrayLineDesc.Length - 1)) 2157for (int lineIndex = 0; lineIndex < arrayLineDesc.Length; ++lineIndex) 2169for (int elemIndex = 0; elemIndex < arrayLineElement.Length; ++elemIndex) 2200&& (elemIndex == arrayLineElement.Length - 1) 2201&& (lineIndex == arrayLineDesc.Length - 1) ) ) 2210if ( (handleEndOfPara && lineIndex == (arrayLineDesc.Length - 1)) 2558for (int index = 0; index < arrayAttachedObjectDesc.Length; ++index) 2608for (int index = 0; index < arrayLineDesc.Length; index++) 2615|| ((lineDesc.dcpLim == dcp) && (index == arrayLineDesc.Length - 1))) 2618if (dcp >= lineDesc.dcpLim - 1 && index == arrayLineDesc.Length - 1) 2704for (int index = 0; index < arrayLineDesc.Length; index++) 2716for (int elIndex = 0; elIndex < arrayLineElement.Length; elIndex++) 2723|| ((element.dcpLim == dcp) && (elIndex == arrayLineElement.Length - 1) && (index == arrayLineDesc.Length - 1))) 2726if (dcp >= element.dcpLim - 1 && elIndex == arrayLineElement.Length - 1 && index == arrayLineDesc.Length - 1) 2767element = arrayLineElement[arrayLineElement.Length - 1]; 2836for (int index = 0; index < arrayLineDesc.Length; index++) 2843|| ((lineDesc.dcpLim == dcp) && (index == arrayLineDesc.Length - 1))) 2863if (index == arrayLineDesc.Length - 1) 2902if (index == arrayLineDesc.Length - 1) 2965for (int index = 0; index < arrayLineDesc.Length; index++) 2974for (int elIndex = 0; elIndex < arrayLineElement.Length; elIndex++) 2981|| ((element.dcpLim == dcp) && (elIndex == arrayLineElement.Length - 1) && (index == arrayLineDesc.Length - 1))) 3019element = arrayLineElement[arrayLineElement.Length - 1]; 3029Debug.Assert(elIndex == arrayLineElement.Length - 1); 3030Debug.Assert(index == arrayLineDesc.Length - 1); 3033else if (dcp == element.dcpLim - 1 && elIndex == arrayLineElement.Length - 1 && index == arrayLineDesc.Length - 1) 3070if (index == arrayLineDesc.Length - 1) 3135for (int index = 0; index < arrayLineDesc.Length; index++) 3142|| ((lineDesc.dcpLim == dcp) && (index == arrayLineDesc.Length - 1))) 3231for (int index = 0; index < arrayLineDesc.Length; index++) 3240for (int elIndex = 0; elIndex < arrayLineElement.Length; elIndex++) 3247|| ((element.dcpLim == dcp) && (elIndex == arrayLineElement.Length - 1) && (index == arrayLineDesc.Length - 1))) 3284element = arrayLineElement[arrayLineElement.Length - 1]; 3359for (int index = 0; index < arrayLineDesc.Length; index++) 3417for (int index = 0; index < arrayLineDesc.Length; index++) 3426for (int elIndex = 0; elIndex < arrayLineElement.Length; elIndex++) 3491for (int index = 0; index < arrayLineDesc.Length; index++) 3563for (int index = textDetails.cLinesBeforeChange + textDetails.cLinesChanged; index < arrayLineDesc.Length; index++) 3670for (lineIndex = 0; lineIndex < arrayLineDesc.Length; lineIndex++) 3685for (lineIndex = lineIndexFirstVisible; lineIndex < arrayLineDesc.Length; lineIndex++) 3880for (int index = 0; index < arrayLineDesc.Length; index++) 3903for (int elIndex = 0; elIndex < arrayLineElement.Length; elIndex++) 3972for (int elIndex = 0; elIndex < arrayLineElement.Length; elIndex++) 4000for (int index = textDetails.cLinesBeforeChange + textDetails.cLinesChanged; index < arrayLineDesc.Length; index++) 4038for (index = 0; index < arrayAttachedObjectDesc.Length; index++) 4083for (int index = 0; index < arrayLineDesc.Length; index++) 4175for (int index = 0; index < arrayLineDesc.Length; index++) 4272for (int index = 0; index < arrayLineDesc.Length; index++) 4285for (int elIndex = 0; elIndex < arrayLineElement.Length; elIndex++) 4362for (int index = 0; index < arrayLineDesc.Length; index++) 4413for (int elIndex = 0; elIndex < arrayLineElement.Length; elIndex++)
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (1)
1441for(int index = 0; arrayAttachedObjectDesc != null && index < arrayAttachedObjectDesc.Length; index++)
src\Framework\MS\Internal\PtsTable\RowSpanVector.cs (5)
103if (_size == _entries.Length) 253Debug.Assert( _entries.Length > 0 254&& _size <= _entries.Length ); 256Entry[] newEntries = new Entry[_entries.Length * 2]; 257Array.Copy(_entries, newEntries, _entries.Length);
src\Framework\MS\Internal\Text\ComplexLine.cs (2)
378int charactersCopied = position.GetTextInRun(LogicalDirection.Forward, textBuffer, 0, textBuffer.Length); 412run = new TextCharacters(textBuffer, 0, textBuffer.Length, textProps);
src\Framework\MS\Internal\TraceData.cs (1)
99for( int i = start; i < parameters.Length; i++ )
src\Framework\MS\Internal\UncommonValueTable.cs (2)
50int n = _table.Length; 73int n = _table.Length - 1;
src\Framework\MS\Internal\WeakDictionary.cs (1)
311if (count + arrayIndex > array.Length)
src\Framework\MS\Internal\WeakHashSet.cs (1)
61if (count + arrayIndex > array.Length)
src\Framework\System\Windows\Annotations\Annotation.cs (2)
663if (typeName.Length == 1) 673else if (typeName.Length == 2)
src\Framework\System\Windows\Annotations\AnnotationService.cs (2)
1081for (int i = 0; i < adorners.Length; i++) 1376List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(list.Length);
src\Framework\System\Windows\Application.cs (2)
2695int l = bamlConvertUriSegments.Length; 2696int m = curUriSegments.Length;
src\Framework\System\Windows\BroadcastEventHelper.cs (4)
47Debug.Assert(loadedPending.Length == 3); 95Debug.Assert(unloadedPending.Length == 3); 168Debug.Assert(loadedPending != null && loadedPending.Length == 3, 205Debug.Assert(unloadedPending != null && unloadedPending.Length == 3,
src\Framework\System\Windows\Controls\BorderGapMaskConverter.cs (1)
47values.Length != 3 ||
src\Framework\System\Windows\Controls\DataGridCell.cs (1)
430for (int i = 0; i < bindingExpressionsCopy.Length; i++)
src\Framework\System\Windows\Controls\DataGridClipboardHelper.cs (1)
90int bytecountEndOfFragment = bytecountPrefixContext + destinationBytes.Length;
src\Framework\System\Windows\Controls\DataGridHelper.cs (2)
541for (int i = 0; i < bindingExpressionsCopy.Length; i++) 655for (int i = 0; i < bindingExpressionsCopy.Length; i++)
src\Framework\System\Windows\Controls\DataGridLengthConverter.cs (2)
228int numUnitStrings = _unitStrings.Length; 246numUnitStrings = _nonStandardUnitStrings.Length;
src\Framework\System\Windows\Controls\DateTimeHelper.cs (2)
257if (monthNames != null && monthNames.Length > 0) 259result = monthNames[(date.Value.Month - 1) % monthNames.Length];
src\Framework\System\Windows\Controls\DocumentViewer.cs (3)
1227(_zoomLevelIndex < DocumentViewer._zoomLevelCollection.Length - 1)) 2360if ((_zoomLevelIndex < 0) || (_zoomLevelIndex >= _zoomLevelCollection.Length)) 2382for (loopIndex = 0; loopIndex < _zoomLevelCollection.Length - 1; loopIndex++)
src\Framework\System\Windows\Controls\Grid.cs (66)
458Array.Clear(_definitionIndices, 0, _definitionIndices.Length); 466Array.Clear(_roundingErrors, 0, _roundingErrors.Length); 486Debug.Assert(DefinitionsU.Length > 0 && DefinitionsV.Length > 0); 655bool canResolveStarsU = extData.CellGroup2 > PrivateCells.Length; 746Debug.Assert(DefinitionsU.Length > 0 && DefinitionsV.Length > 0); 757for (int currentCell = 0; currentCell < PrivateCells.Length; ++currentCell) 845value = definitions[(columnIndex + 1) % definitions.Length].FinalOffset; 867value = definitions[(rowIndex + 1) % definitions.Length].FinalOffset; 963for (int i = PrivateCells.Length - 1; i >= 0; --i) 980cell.ColumnIndex = Math.Min(GetColumn(child), DefinitionsU.Length - 1); 983cell.RowIndex = Math.Min(GetRow(child), DefinitionsV.Length - 1); 988cell.ColumnSpan = Math.Min(GetColumnSpan(child), DefinitionsU.Length - cell.ColumnIndex); 992cell.RowSpan = Math.Min(GetRowSpan(child), DefinitionsV.Length - cell.RowIndex); 994Debug.Assert(0 <= cell.ColumnIndex && cell.ColumnIndex < DefinitionsU.Length); 995Debug.Assert(0 <= cell.RowIndex && cell.RowIndex < DefinitionsV.Length); 1093Debug.Assert(ExtData.DefinitionsU != null && ExtData.DefinitionsU.Length > 0); 1140Debug.Assert(ExtData.DefinitionsV != null && ExtData.DefinitionsV.Length > 0); 1155for (int i = 0; i < definitions.Length; ++i) 1199double[] minSizes = isRows ? new double[DefinitionsV.Length] : new double[DefinitionsU.Length]; 1201for (int j=0; j<minSizes.Length; j++) 1220} while (i < PrivateCells.Length); 1227for (int i=0; i<minSizes.Length; i++) 1272if (cellsHead >= PrivateCells.Length) 1325} while (i < PrivateCells.Length); 1454Debug.Assert(0 < count && 0 <= start && (start + count) <= definitions.Length); 1481Debug.Assert(0 < count && 0 <= start && (start + count) <= definitions.Length); 1509Debug.Assert(1 < count && 0 <= start && (start + count) <= definitions.Length); 1711for (int i = 0; i < definitions.Length; ++i) 1807int defCount = definitions.Length; 2105for (int i = 0; i < definitions.Length; ++i) 2141int nonStarIndex = definitions.Length; // traverses from the last entry down 2157for (int i = 0; i < definitions.Length; ++i) 2287Array.Sort(definitionIndices, 0, definitions.Length, distributionOrderIndexComparer); 2290for (int i = 0; i < definitions.Length; ++i) 2293double final = definitions[definitionIndex].SizeCache + (sizeToDistribute / (definitions.Length - i)); 2318for (int i = 0; i < definitions.Length; ++i) 2326Array.Sort(definitionIndices, 0, definitions.Length, roundingErrorIndexComparer); 2332int i = definitions.Length - 1; 2349while ((adjustedSize < finalSize && !_AreClose(adjustedSize, finalSize)) && i < definitions.Length) 2366for (int i = 0; i < definitions.Length; ++i) 2368definitions[(i + 1) % definitions.Length].FinalOffset = definitions[i].FinalOffset + definitions[i].SizeCache; 2389int defCount = definitions.Length; 2725for (int i = 0; i < definitions.Length; ++i) 2779for (int i = 0; i < definitions.Length; ++i) 2786Array.Sort(definitionIndices, 0, definitions.Length, roundingErrorIndexComparer); 2792int i = definitions.Length - 1; 2809while ((adjustedSize < finalSize && !_AreClose(adjustedSize, finalSize)) && i < definitions.Length) 2827for (int i = 0; i < definitions.Length; ++i) 2829definitions[(i + 1) % definitions.Length].FinalOffset = definitions[i].FinalOffset + definitions[i].SizeCache; 2936Array.Clear(extData.TempDefinitions, 0, Math.Max(DefinitionsU.Length, DefinitionsV.Length)); 3141int requiredLength = Math.Max(DefinitionsU.Length, DefinitionsV.Length) * 2; 3144|| extData.TempDefinitions.Length < requiredLength ) 3156|| extData.TempDefinitions.Length < requiredLength ) 3174int requiredLength = Math.Max(Math.Max(DefinitionsU.Length, DefinitionsV.Length), 1) * 2; 3176if (_definitionIndices == null || _definitionIndices.Length < requiredLength) 3192int requiredLength = Math.Max(DefinitionsU.Length, DefinitionsV.Length); 3198else if (_roundingErrors == null || _roundingErrors.Length < requiredLength) 4232for (int i = 1; i < grid.DefinitionsU.Length; ++i) 4240for (int i = 1; i < grid.DefinitionsV.Length; ++i)
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (3)
1384for (int i = 0, n = s_DPList[0].Length; i < n; i++) 1707for (int i = 0; i < s_DPList.Length; i++) 1709for (int j = 0; j < s_DPList[i].Length; j++)
src\Framework\System\Windows\Controls\MenuScrollingVisibilityConverter.cs (1)
54values.Length != 4 ||
src\Framework\System\Windows\Controls\Panel.cs (1)
1052if (_zLut == null || _zLut.Length != count)
src\Framework\System\Windows\Controls\Primitives\CalendarItem.cs (3)
1030if (daytitle != null && shortestDayNames != null && shortestDayNames.Length > 0) 1034daytitle.DataContext = shortestDayNames[(childIndex + (int)this.Owner.FirstDayOfWeek) % shortestDayNames.Length]; 1038daytitle.DataContext = shortestDayNames[(childIndex + (int)DateTimeHelper.GetDateFormat( DateTimeHelper.GetCulture(this)).FirstDayOfWeek) % shortestDayNames.Length];
src\Framework\System\Windows\Controls\Primitives\Popup.cs (3)
2041positions = customPlacements == null ? 0 : customPlacements.Length; 2461for (int i = 1; i < interestPoints.Length; i++) 2807if (UnsafeNativeMethods.GetBitmapBits(iconInfo.hbmMask.MakeHandleRef(null), curMask.Length, curMask) != 0)
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (4)
271bool lastHeaderInRow = isMultiRow && (separatorIndex < solution.Length && solution[separatorIndex] == childIndex || childIndex == _numHeaders - 1); 327if (solution.Length > 0) 341if (activeRow < solution.Length && solution[activeRow] == childIndex) 394int numHeaders = headerWidth.Length;
src\Framework\System\Windows\Controls\RichTextBox.cs (4)
653for (int i = 0; i < inheritableFormattingProperties.Length; i++) 661for (int i = 0; i < inheritableBehavioralProperties.Length; i++) 680for (int i = 0; i < inheritableFormattingProperties.Length; i++) 694for (int i = 0; i < inheritableBehavioralProperties.Length; i++)
src\Framework\System\Windows\Controls\SinglePageViewer.cs (3)
852for (index = 0; index < pageRects.Length; index++) 860if (index >= pageRects.Length) 864for (index = 1; index < pageRects.Length; index++)
src\Framework\System\Windows\Controls\TextBlock.cs (1)
341for (int i = 0; i < typographyProperties.Length; i++)
src\Framework\System\Windows\Controls\TextBox.cs (1)
70for (int i = 0; i < typographyProperties.Length; i++)
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (2)
1840double[] asDoubles = new double[rects.Length * 4]; 1841for (int i = 0; i < rects.Length; i++)
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (3)
11875if (a.Length > 1) 11884if (a.Length > 2) 12125int length = (args != null) ? args.Length : 0;
src\Framework\System\Windows\Controls\WebBrowser.cs (2)
461dp.cArgs = (uint)((args == null) ? 0 : args.Length); 493UnsafeNativeMethods.ArrayToVARIANTHelper.FreeVARIANTVector(dp.rgvarg, args.Length);
src\Framework\System\Windows\Data\BindingExpressionBase.cs (6)
466int n = (_sources != null) ? _sources.Length : 0; 2459for (int i=0; i < commonSources.Length; ++i) 2471int m = (sources == null) ? 0 : sources.Length; 2895sources = new DependencySource[newSources.Length]; 2897for (int i = 0; i < newSources.Length; ++i) 2908if (n < newSources.Length)
src\Framework\System\Windows\Data\BindingGroup.cs (3)
1180for (int i=_proposedValueBindingExpressions.Length-1; i>=0; --i) 1213for (int i=_proposedValueBindingExpressions.Length-1; i>=0; --i) 1470for (int i=0, n=_proposedValueBindingExpressions.Length; i<n; ++i)
src\Framework\System\Windows\Data\CollectionView.cs (4)
1414object[] newArray = new object[array.Length + 1]; 1416newArray[array.Length] = value; 1533for (int i=0; i<interfaces.Length; ++i) 1541if (typeParameters.Length == 1)
src\Framework\System\Windows\Data\MultiBindingExpression.cs (18)
550for (int i=0; i<values.Length; ++i) 562if (values.Length != count && TraceData.IsEnabled) 565Converter.GetType().Name, count, values.Length, 570if (values.Length < count) 571count = values.Length; 612Array.Clear(_tempTypes, 0, _tempTypes.Length); 667for (int i=0; i<values.Length; ++i) 699if (values.Length < count) 700count = values.Length; 764if (values.Length < count) 765count = values.Length; 808if (values.Length < count) 809count = values.Length; 900if (convertedValues.Length < count) 901count = convertedValues.Length; 1057for (int j = 0; j < sources.Length; ++j) 1204for (int i=0; i<_tempValues.Length; ++i) 1267Array.Clear(_tempValues, 0, _tempValues.Length);
src\Framework\System\Windows\Data\ObjectDataProvider.cs (1)
401if (ciAry.Length != 0)
src\Framework\System\Windows\Data\PriorityBindingExpression.cs (1)
596for (int j=0; j<sources.Length; ++j)
src\Framework\System\Windows\Data\XmlNamespaceMappingCollection.cs (1)
145int maxLength = array.Length;
src\Framework\System\Windows\DataTrigger.cs (1)
191Debug.Assert( TriggerConditions != null && TriggerConditions.Length == 1,
src\Framework\System\Windows\Documents\AdornerLayer.cs (3)
434for (int i = 0; i < zOrderMapEntries.Length; i++) 468for (int i = 0; i < zOrderMapEntries.Length; i++) 811for (int i = 0; i < keys.Length; i++)
src\Framework\System\windows\Documents\CaretElement.cs (1)
566for (int i = 0; i < adorners.Length; i++)
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (4)
677if (startIndex > textBuffer.Length) 679throw new ArgumentException(SR.Get(SRID.StartIndexExceedsBufferSize, startIndex, textBuffer.Length)); 685if (count > textBuffer.Length - startIndex) 687throw new ArgumentException(SR.Get(SRID.MaxLengthExceedsBufferSize, count, textBuffer.Length, startIndex));
src\Framework\System\Windows\Documents\FixedLineResult.cs (1)
117return _nodes[_nodes.Length - 1];
src\Framework\System\Windows\Documents\FixedNode.cs (7)
106int[] completePath = new int[childPath.Length + 1]; 144Debug.Assert(path != null && path.Length >= 2); // At least a page index and an element index 212for (int i = 0; i < childPath.Length && i < _path.Length - 1; i++) 354Debug.Assert(level < _path.Length); 365Debug.Assert(_path.Length >= 2); 366return _path.Length - 1;
src\Framework\System\Windows\Documents\FixedPageStructure.cs (5)
125while (line < _lineResults.Length - 1 && count > 0) 142line = Math.Max(0, Math.Min(line, _lineResults.Length - 1)); 704if (_lineResults.Length > 0) 706return _lineResults[_lineResults.Length - 1].Nodes; 716if (_lineResults.Length > 0)
src\Framework\System\Windows\Documents\FixedSchema.cs (1)
88predefinedNamespaces = new string[_predefinedNamespaces.Length + 1];
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (9)
425int loIndex = 0, hiIndex = fixes.Length - 1; 496if (flowNodes.Length <= 0) 503FlowNode flowEnd = flowNodes[flowNodes.Length - 1]; 522Debug.Assert(fixes.Length == 1); 566if (somElements.Length == 0) 818int[] newPath = new int[pathPrefix.Length + 1]; 820newPath[newPath.Length - 1] = childIndex; 1029newPathPrefix = new int[pathPrefix.Length + 1]; 1034newPathPrefix[newPathPrefix.Length - 1] = childIndex;
src\Framework\System\Windows\Documents\FixedTextContainer.cs (2)
432for(int i=0; i<elements.Length; i++) 475if (i == elements.Length - 1)
src\Framework\System\Windows\Documents\FixedTextView.cs (4)
618FixedNode lastNode = fixedNodes[fixedNodes.Length - 1]; 839if (fixedNodes != null && fixedNodes.Length > 0) 910if (fixedNodes != null && fixedNodes.Length > 0) 928for (int i = fixedNodes.Length - 1; i >= 0; i--)
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
90for (int i = 0; i < typographyProperties.Length; i++)
src\Framework\System\Windows\Documents\FlowPosition.cs (1)
265if (elements != null && elements.Length > 0)
src\Framework\System\Windows\Documents\Glyphs.cs (9)
251if (glyphRunProperties.clusterMap != null && glyphRunProperties.clusterMap.Length != 0) 252caretStopCount = glyphRunProperties.clusterMap.Length + 1; 256caretStopCount = glyphRunProperties.glyphIndices.Length + 1; 283if (i >= caretStops.Length) 290if (i >= caretStops.Length) 297if (i >= caretStops.Length) 304if (i >= caretStops.Length) 313while (i < caretStops.Length) 493if (index < 0 || index >= clusterMap.Length)
src\Framework\System\Windows\Documents\ImmComposition.cs (9)
1052int compositionLength = compositionChars == null ? 0 : compositionChars.Length; 1053resultLength = resultChars == null ? 0 : resultChars.Length; 1073int originalLength = (compositionText == null) ? 0 : compositionText.Length; 1086(caretOffset < attributes.Length) && 1090((caretOffset - 1) < attributes.Length) && 1311for (int i = 0; i < attributes.Length; i++) 1313if ((i + 1) < attributes.Length) 1570int copied = navigator.GetTextInRun(LogicalDirection.Backward, buffer, 0, buffer.Length); 1622int copied = navigator.GetTextInRun(LogicalDirection.Forward, buffer, 0, buffer.Length);
src\Framework\System\Windows\Documents\NaturalLanguageHyphenator.cs (3)
136&& characterSource.Length > 0 138&& length <= characterSource.Length 160isHyphenPositions.Length
src\Framework\System\Windows\Documents\RangeContentEnumerator.cs (2)
314else if (_buffer.Length < size) 316newBuffer = new char[Math.Max(2*_buffer.Length, size)];
src\Framework\System\Windows\Documents\RtfToXamlLexer.cs (12)
67if (_rtfIndex >= _rtfBytes.Length) 100if (_rtfIndex >= _rtfBytes.Length) 227if (_rtfIndex + skip < _rtfBytes.Length) 233_rtfIndex = _rtfBytes.Length - 1; 354while (e < _rtfBytes.Length) 359&& e + 3 < _rtfBytes.Length 436while (_rtfIndex < _rtfBytes.Length && IsControlCharValid(CurByte)) 454if (_rtfIndex < _rtfBytes.Length) 474while (_rtfIndex < _rtfBytes.Length && IsParameterFollow(CurByte)) 483if (_rtfIndex < _rtfBytes.Length && CurByte == ' ') 562_rtfControlTable = new Hashtable(controlWordInfoTable.Length); 564for (int i = 0; i < controlWordInfoTable.Length; i++)
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (1)
3448for (int i = 0; i < CodePageList.Length; i++)
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
376while (nodesInLine != null && nodesInLine.Length > 0)
src\Framework\System\windows\Documents\SelectionWordBreaker.cs (7)
55if (position == text.Length) 70if (position == text.Length || IsWhiteSpace(text[position], classes[position])) 146Invariant.Assert(text.Length == classes.Length); 148(index > 0 && index + 1 < classes.Length) && 204CharClass[] classes = new CharClass[text.Length]; 206for (int i = 0; i < text.Length; i++)
src\Framework\System\Windows\Documents\Speller.cs (1)
1821runCount = Math.Min(runCount, _text.Length - _textLength);
src\Framework\System\Windows\Documents\TableRow.cs (1)
267_formatCellCount += _spannedCells.Length;
src\Framework\System\Windows\Documents\TextContainer.cs (4)
1094UpdateContainerSymbolCount(elementNode.GetContainingNode(), /* symbolCount */ elementText == null ? 2 : elementText.Length, deltaCharCount + formerFirstIMEVisibleNodeCharDelta + newFirstIMEVisibleNodeCharDelta); 1137AddChange(startEdgePosition, elementText == null ? 2 : elementText.Length, deltaCharCount, PrecursorTextChangeType.ContentAdded); 1561length = ((char[])text).Length; 2495Invariant.Assert(elementText.Length == elementNode.SymbolCount);
src\Framework\System\Windows\Documents\TextElement.cs (1)
54for (int i = 0; i < typographyProperties.Length; i++)
src\Framework\System\Windows\Documents\TextElementCollection.cs (3)
643if (arrayIndex > array.Length) 648if (array.Length < arrayIndex + count) 650throw new ArgumentException(SR.Get(SRID.TextElementCollection_CannotCopyToArrayNotSufficientMemory, count, arrayIndex, array.Length));
src\Framework\System\Windows\Documents\TextElementCollectionHelper.cs (3)
43for (int i = 0; i < _cleanParentList.Length; i++) 71index = firstFreeIndex >= 0 ? firstFreeIndex : _cleanParentList.Length - 1; 130for (int i = 0; i < _cleanParentList.Length; i++)
src\Framework\System\Windows\Documents\TextFindEngine.cs (12)
245int textStartIndex = matchLast ? findText.Length - findTextLength : 0; 255GetContextualInformation(startFindTextPosition, matchLast ? -findTextPositionMap[findTextPositionMap.Length - findTextLength - 1] : findTextPositionMap[findTextLength], 298navigator.MoveByOffset(matchLast ? - findTextPositionMap[findText.Length - findTextLength + findPattern.Length] : findTextPositionMap[findTextLength - findPattern.Length]); 672findTextPositionMap[findTextPositionMap.Length - 1] = 0; 682runCount = Math.Min(runCount, findText.Length - findTextLength); 700findText.Length - findTextLength - runCount, 705int mapIndex = findText.Length - findTextLength - 1; 741findText[findText.Length - findTextLength] = '\n'; 742findTextPositionMap[findText.Length - findTextLength] = findTextLength + inlineCount; 762findText[findText.Length - findTextLength] = '\xf8ff'; 763findTextPositionMap[findText.Length - findTextLength] = findTextLength + inlineCount; 770if (findTextLength >= findText.Length)
src\Framework\System\Windows\Documents\TextPointer.cs (4)
1777if (startIndex > textBuffer.Length) 1779throw new ArgumentException(SR.Get(SRID.StartIndexExceedsBufferSize, startIndex, textBuffer.Length)); 1785if (count > textBuffer.Length - startIndex) 1787throw new ArgumentException(SR.Get(SRID.MaxLengthExceedsBufferSize, count, textBuffer.Length, startIndex));
src\Framework\System\Windows\Documents\TextRangeBase.cs (4)
888else if (charArray.Length < textLength) 890int newLength = charArray.Length * 2; 952textBuffer.Append(charArray, 0, charArray.Length); 1398int length = textParagraphs.Length;
src\Framework\System\Windows\Documents\TextRangeEdit.cs (11)
98for (int i = 0; i < inheritableProperties.Length; i++) 139for (int i = 0; i < noninheritableProperties.Length; i++) 351for (int i = 0; i < inheritableProperties.Length; i++) 376for (int i = 0; i < nonInheritableProperties.Length; i++) 497for (int i = 0; i < nonFormattingCharacterProperties.Length; i++) 1786for (int i = 0; i < TextSchema.StructuralCharacterProperties.Length; i++) 1818for (i = 0; i < TextSchema.StructuralCharacterProperties.Length; i++) 1825return (i < TextSchema.StructuralCharacterProperties.Length); 1833for (i = 0; i < TextSchema.StructuralCharacterProperties.Length; i++) 1840return (i < TextSchema.StructuralCharacterProperties.Length); 2328for (int i = 0; i < _ranges.Length; i++)
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (7)
1139for (int i = 0; i < spannedCells.Length; i++) 1316for (int i = 0; i < spannedCells.Length; i++) 1676while (table.Columns.Count < columnWidths.Length) 2304for (int i = 0; i < nonInheritableProperties.Length; i++) 2313for (int i = 0; i < inheritableProperties.Length; i++) 2388for (int i = 0; i < spannedCells.Length; i++) 2472for (int i = 0; i < spannedCells.Length; i++)
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (8)
739for (int i = 0; i < inheritableProperties.Length; i++) 788for (int i = 0; i < inheritableProperties.Length; i++) 848for (int i = 0; i < elementProperties.Length; i++) 1049for (int i = 0; i < inheritableProperties.Length; i++) 1057for (int i = 0; i < nonInheritableProperties.Length; i++) 1150for (int i = 0; i < elementProperties.Length; i++) 1202for (int i = 0; i < imageProperties.Length; i++) 1797Invariant.Assert(text.Length >= length, "Asserting that text.Length >= length");
src\Framework\System\Windows\Documents\TextSchema.cs (22)
58_inheritableTextElementProperties = new DependencyProperty[textElementPropertyList.Length + Typography.TypographyPropertiesList.Length]; 59Array.Copy(textElementPropertyList, 0, _inheritableTextElementProperties, 0, textElementPropertyList.Length); 60Array.Copy(Typography.TypographyPropertiesList, 0, _inheritableTextElementProperties, textElementPropertyList.Length, Typography.TypographyPropertiesList.Length); 70_inheritableBlockProperties = new DependencyProperty[blockPropertyList.Length + _inheritableTextElementProperties.Length]; 71Array.Copy(blockPropertyList, 0, _inheritableBlockProperties, 0, blockPropertyList.Length); 72Array.Copy(_inheritableTextElementProperties, 0, _inheritableBlockProperties, blockPropertyList.Length, _inheritableTextElementProperties.Length); 81_inheritableTableCellProperties = new DependencyProperty[tableCellPropertyList.Length + _inheritableTextElementProperties.Length]; 82Array.Copy(tableCellPropertyList, _inheritableTableCellProperties, tableCellPropertyList.Length); 83Array.Copy(_inheritableTextElementProperties, 0, _inheritableTableCellProperties, tableCellPropertyList.Length, _inheritableTextElementProperties.Length); 664for (int i = 0; i < _inheritableBlockProperties.Length; i++) 673for (int i = 0; i < _paragraphProperties.Length; i++) 689for (int i = 0; i < _inheritableTextElementProperties.Length; i++) 698for (int i = 0; i < _inlineProperties.Length; i++) 713for (int i = 0; i < _nonFormattingCharacterProperties.Length; i++) 744for (i = 0; i < _structuralCharacterProperties.Length; i++) 750return (i < _structuralCharacterProperties.Length);
src\Framework\System\windows\Documents\TextSelection.cs (3)
1495for (int i = 0; i < inheritableProperties.Length; i++) 1506for (int i = 0; i < noninheritableProperties.Length; i++) 1707(keyboardListIndex < keyboardList.Length) && (keyboardListIndex < keyboardListCount);
src\Framework\System\Windows\Documents\TextStore.cs (7)
412change.newEnd = endIndex + text.Length - (endIndex - startIndex); 1373navigator.GetTextInRun(LogicalDirection.Forward, nextChars, 0, nextChars.Length); 2325runCount = TextPointerBase.GetTextWithLimit(navigator, LogicalDirection.Forward, text, charsCopied, Math.Min(cchReq, text.Length - charsCopied), limit); 2328hitLimit = (text.Length == charsCopied) || (limit != null && navigator.CompareTo(limit) == 0); 2441hitLimit = (text.Length == charsCopied) || (limit != null && navigator.CompareTo(limit) == 0); 2670for (i = 0; i < _supportingattributes.Length; i++) 4218for (int i = units.Length - 1; i >= 0; i--)
src\Framework\System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
125for (int columnIndex = 0; columnIndex < savedColumns.Length; columnIndex++)
src\Framework\System\Windows\Documents\TextTreeTextBlock.cs (9)
94if (_text.Length < MaxBlockSize && count > _gapSize) 102rightOfGapLength = _text.Length - (_gapOffset + _gapSize); 103Array.Copy(_text, _gapOffset + _gapSize, newText, newText.Length - rightOfGapLength, rightOfGapLength); 104_gapSize += newText.Length - _text.Length; 149Invariant.Assert(_text.Length == MaxBlockSize, "Splitting non-max sized block!"); 238Invariant.Assert(_gapOffset + _gapSize <= _text.Length); 269copyCount = Math.Min(count, _text.Length - logicalOffset); 436return (_text.Length - _gapSize);
src\Framework\System\Windows\Documents\TextTreeUndoUnit.cs (1)
185for (i = 0; i < records.Length; i++)
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
657if (matches.Length != 3)
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (1)
3473for (int i = 0; i < entries.Length; i++)
src\Framework\System\Windows\FrameworkElement.cs (1)
3057for (int i=0; i<handlers.Length; i++)
src\Framework\System\Windows\Interop\DocobjHost.cs (4)
881if (byteRanges.Length <= 0 || (byteRanges.Length % 2) != 0) 918size = byteRanges.Length; 1088int len = saveByteArray.Length;
src\Framework\System\Windows\Interop\DynamicScriptObject.cs (6)
176if (indexes.Length != 1) 210if (indexes.Length != 1) 402for (int i = 0; i < args.Length; i++) 435dp.cArgs = (uint)args.Length; 502UnsafeNativeMethods.ArrayToVARIANTHelper.FreeVARIANTVector(dp.rgvarg, args.Length); 615HRESULT hr = _scriptObject.GetIDsOfNames(ref guid, names, dispids.Length, Thread.CurrentThread.CurrentCulture.LCID, dispids);
src\Framework\System\Windows\LengthConverter.cs (1)
205for (int i = 0; i < PixelUnitStrings.Length; i++)
src\Framework\System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
2620if (bytes.Length == 2)
src\Framework\System\Windows\Markup\Baml2006\SharedStream.cs (2)
180if (offset < 0 || offset >= buffer.Length) 185if ((offset + count) > buffer.Length)
src\Framework\System\Windows\Markup\Baml2006\WpfKnownTypeInvoker.cs (2)
20if ((arguments == null || arguments.Length == 0) && _type.DefaultConstructor != null) 27if(!_type.Constructors.TryGetValue(arguments.Length, out ctorInfo))
src\Framework\System\Windows\Markup\BamlMapTable.cs (2)
190int end = _knownStrings.Length; 630Debug.Assert(-id <= _knownStrings.Length);
src\Framework\System\Windows\Markup\BamlReader.cs (1)
1033for (int i = 0; i < infos.Length; i++)
src\Framework\System\Windows\Markup\BamlRecordReader.cs (4)
1531for (int i=0; i<infos.Length; i++) 1535if (paramInfos.Length == paramCount) 1537object[] paramArray = new object[paramInfos.Length]; 1559for (int j=0; j<paramInfos.Length; j++)
src\Framework\System\Windows\Markup\BamlRecords.cs (4)
1215if (AssemblyIds != null && AssemblyIds.Length > 0) 1217count = (short) AssemblyIds.Length; 4972Debug.Assert(arr.Length == 3 && arr[0] != null && arr[1] != null); 5015Debug.Assert(arr.Length == 3 && arr[0] != null && arr[1] != null);
src\Framework\System\Windows\Markup\BamlWriter.cs (3)
1161if(pi.GetIndexParameters().Length == 0) 1233if (memberInfo != null && ((MethodInfo)memberInfo).GetParameters().Length != 2) 1245if (memberInfo != null && ((MethodInfo)memberInfo).GetParameters().Length != 1)
src\Framework\System\Windows\Markup\DependencyPropertyConverter.cs (1)
133if (bytes.Length == 2)
src\Framework\System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (2)
301if (arrayIndex >= array.Length) 313if (Count > (array.Length - arrayIndex))
src\Framework\System\Windows\Markup\MarkupExtensionParser.cs (2)
1229if (parInfo.Length >= maxConstructorArguments) 1231maxConstructorArguments = parInfo.Length;
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (2)
277if (parameters.Length == 1) 409if (ctorParameters != null && ctorParameters.Length == instanceDescriptor.Arguments.Count)
src\Framework\System\Windows\Markup\SetterTriggerConditionValueConverter.cs (1)
171if (bytes != null && bytes.Length == 1)
src\Framework\System\Windows\Markup\XamlFigureLengthSerializer.cs (3)
219for (i = 1; i < UnitStrings.Length; ++i) 234if (i >= UnitStrings.Length) 236for (i = 0; i < PixelUnitStrings.Length; ++i)
src\Framework\System\Windows\Markup\XamlGridLengthSerializer.cs (3)
220for (i = 1; i < UnitStrings.Length; ++i) 235if (i >= UnitStrings.Length) 237for (i = 0; i < PixelUnitStrings.Length; ++i)
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (23)
976if (attachedPropertyInfo != null && attachedPropertyInfo.GetParameters().Length == paramCount) 1381if (pis == null || pis.Length != 2 || !dependencyObjectType.IsAssignableFrom(pis[0].ParameterType)) 1452if (memberInfo != null && ((MethodInfo)memberInfo).GetParameters().Length != 2) 1463if (memberInfo != null && ((MethodInfo)memberInfo).GetParameters().Length != 1) 1544if (pis == null || pis.Length != 2 || !dependencyObjectType.IsAssignableFrom(pis[0].ParameterType)) 1612if (memberInfo != null && ((MethodInfo)memberInfo).GetParameters().Length != 2) 1623if (memberInfo != null && ((MethodInfo)memberInfo).GetParameters().Length != 1) 1789count < namespaceMaps.Length && !foundNamespaceMatch; 2042for (int i = 0; i < infos.Length; i++) 2154propertyType = parameters.Length == 1 ? methodInfo.ReturnType : parameters[1].ParameterType; 2155propertyCanWrite = parameters.Length == 1 ? false : true; 2315for (int i = 0; i < namespaces.Length; i++) 2629for (int count = 0; count < namespaceMaps.Length;) 2664if (knownTypesOnly && (count == namespaceMaps.Length)) 3381result = (namespaceMaps != null && namespaceMaps.Length > 0) || 3413if (assemblyIds != null && assemblyIds.Length > 0) 3415asmNameList = new string[assemblyIds.Length]; 3417for (int i = 0; i < assemblyIds.Length; i++) 3462for (int i = 0; i < _namespaceMaps.Length; i++) 3529for (int k = 0; k < _assemblyNames.Length; k++) 3908_parameters = new ParameterInfo[_constructors.Length][]; 3983if (trimAttribute.Length > 0) 3985Debug.Assert(1 == trimAttribute.Length,"More than one TrimWhitespace Attribute");
src\Framework\System\Windows\Markup\XmlnsCache.cs (6)
185Assembly[] asmList = new Assembly[asmNameList.Length]; 186for (int i = 0; i < asmNameList.Length; i++) 356for(int asmIdx=0; asmIdx<asmList.Length; asmIdx++) 361for(int attrIdx=0; attrIdx<attributes.Length; attrIdx++) 386for(int asmIdx=0; asmIdx<asmList.Length; asmIdx++) 396for(int attrIdx=0; attrIdx<attributes.Length; attrIdx++)
src\Framework\System\Windows\Markup\XmlnsDictionary.cs (3)
646if (_lastDecl == _nsDeclarations.Length - 1) 648NamespaceDeclaration[] new_nsDeclarations = new NamespaceDeclaration[_nsDeclarations.Length * 2]; 650Array.Copy(_nsDeclarations, 0, new_nsDeclarations, 0, _nsDeclarations.Length);
src\Framework\System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (2)
356Int32 keyFrameCount = _sortedResolvedKeyFrames.Length; 927int maxKeyFrameIndex = _sortedResolvedKeyFrames.Length - 1;
src\Framework\System\Windows\MultiDataTrigger.cs (3)
112for (int i = 0; i < TriggerConditions.Length; ++i) 152bool retVal = (TriggerConditions.Length > 0); 154for( int i = 0; retVal && i < TriggerConditions.Length; i++ )
src\Framework\System\Windows\MultiTrigger.cs (3)
102for (int i = 0; i < TriggerConditions.Length; i++) 126bool retVal = (TriggerConditions.Length > 0); 128for( int i = 0; retVal && i < TriggerConditions.Length; i++ )
src\Framework\System\Windows\Navigation\JournalEntryListConverter.cs (1)
123if (values != null && values.Length == 2)
src\Framework\System\Windows\PropertyPath.cs (7)
87if (pathParameters != null && pathParameters.Length > 0) 155internal int Length { get { return _arySVI.Length; } } 374if (_arySVI.Length == 0) 393for (int i=0; i<_arySVI.Length; ++i) 435Debug.Assert(aryIPI.Length > 0); 454if (j < aryIPI.Length) 709for (int i = 0; i < args.Length; ++i)
src\Framework\System\Windows\StartupEventArgs.cs (3)
73Invariant.Assert(args.Length >= 1); 75int newLength = args.Length - 1; 80for (int i = 1; i < args.Length; i++)
src\Framework\System\Windows\Style.cs (1)
777for (int k=0; k<conditions.Length; k++)
src\Framework\System\Windows\StyleHelper.cs (9)
563for (int i = 0; i < propertyValue.Conditions.Length; i++) 607for (int i = 0; i < propertyValue.Conditions.Length; i++) 937for (int k=0; k<conditions.Length; k++) 4863Debug.Assert( conditions != null && conditions.Length == 1, 4893Debug.Assert( conditions != null && conditions.Length == 1, 4922for( int i = 0; i < conditions.Length; i++ ) 5795if( Conditions.Length == other.Conditions.Length ) 5798for( int i = 0; i < Conditions.Length; i++ )
src\Framework\System\Windows\SystemParameters.cs (2)
79for (int i=0; i<propertyNames.Length; ++i) 5642for (int i = 0; i < param.Length; i++)
src\Framework\System\Windows\Trigger.cs (1)
238Debug.Assert( TriggerConditions != null && TriggerConditions.Length == 1,
src\Framework\System\Windows\TriggerBase.cs (1)
242for (int j = 0; j < propertyValue.Conditions.Length; j++)
src\Framework\System\Windows\VisualStateGroup.cs (1)
116for (int index = 0; index < newStoryboards.Length; ++index)
src\Framework\System\Windows\Window.cs (2)
7029HRESULT hr = _taskbarList.ThumbBarAddButtons(CriticalHandle, (uint)nativeButtons.Length, nativeButtons); 7144return _taskbarList.ThumbBarUpdateButtons(CriticalHandle, (uint)nativeButtons.Length, nativeButtons);
src\Shared\MS\Internal\SafeSecurityHelper.cs (3)
313if (reqKeyToken.Length == curKeyToken.Length) 317for (int i = 0; i < reqKeyToken.Length; i++)
src\Shared\MS\Utility\ItemMap.cs (2)
38if ((Count + 1) > Entries.Length) 40destEntries = new Entry[Entries.Length * 2];
PresentationFramework.Aero (1)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
38(values.Length != 3) ||
PresentationFramework.Classic (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
46(values.Length != 5) ||
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
46(values.Length != 5) ||
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
46(values.Length != 5) ||
SMDiagnostics (7)
System\ServiceModel\Diagnostics\DiagnosticTraceSource.cs (3)
24string[] supportedAttributes = new string[baseAttributes.Length + 1]; 25for (int i = 0; i < baseAttributes.Length; i++) 29supportedAttributes[baseAttributes.Length] = DiagnosticTraceSource.PropagateActivityValue;
System\ServiceModel\Diagnostics\PlainXmlWriter.cs (1)
195if ((buffer.Length - index) < count)
System\ServiceModel\Diagnostics\TraceXPathNavigator.cs (3)
108Fx.Assert(headersPath.Length > 0, "There should be more than one item in the headersPath array."); 121while (null != node && ++i < headersPath.Length) 136if (headersPath.Length == i + 1)
SMSvcHost (15)
System\ServiceModel\Activation\DupHandleConnectionReader.cs (7)
70if (Connection.BeginRead(0, connectionBuffer.Length, GetRemainingTimeout(), 128byte[] newDataRead = new byte[dataRead.Length + size]; 129Buffer.BlockCopy(dataRead, 0, newDataRead, 0, dataRead.Length); 130Buffer.BlockCopy(connectionBuffer, 0, newDataRead, this.dataRead.Length, size); 160this.dataRead = new byte[accruedData.Length + offset + size]; 161Buffer.BlockCopy(accruedData, 0, this.dataRead, 0, accruedData.Length); 162accruedDataOffset = accruedData.Length;
System\ServiceModel\Activation\ListenerAdapter.cs (4)
475Debug.Print("ListenerAdapter[" + ProtocolName + "]::RegisterBindings() bindings#: " + bindings.Length); 476BaseUriWithWildcard[] baseAddresses = new BaseUriWithWildcard[bindings.Length]; 478for (int i = 0; i < bindings.Length; i++) 519for (int i = 0; i < bindings.Length; i++)
System\ServiceModel\Activation\ListenerAdapterBase.cs (1)
252int queueBlobLength = (queueBlob != null) ? queueBlob.Length : 0;
System\ServiceModel\Activation\ListenerConnectionModeReader.cs (3)
86byte[] newAccruedData = new byte[accruedData.Length + offset]; 87Buffer.BlockCopy(accruedData, 0, newAccruedData, 0, accruedData.Length); 88dataOffset = this.accruedData.Length;
svcutil (1)
CommandLineParser.cs (1)
163arguments = new ArgumentDictionary(cmd.Length);
System (1348)
compmod\microsoft\csharp\csharpcodeprovider.cs (14)
2860Debug.Assert( names.Length > 0); 2862for( int i = 1; i< names.Length; i++) { 3721string[] filenames = new string[ea.Length]; 3731for (int i = 0; i < ea.Length; i++) { 3797string[] filenames = new string[sources.Length]; 3798FileStream[] fileStreams = new FileStream[sources.Length]; 3809for (int i = 0; i < sources.Length; i++) { 3825for (int i = 0; i < fileStreams.Length && fileStreams[i] != null; i++) 3846if (sa == null || sa.Length == 0) 3849if (sa.Length == 1) { 3854for (int i = 0; i < sa.Length - 1; i++) { 3861sb.Append(sa[sa.Length - 1]); 4152for (int i = 0; i < names.Length; i++) { 4176for (int i = 0; i < modifiers.Length; i++) {
compmod\microsoft\visualbasic\VBCodeProvider.cs (4)
2517Debug.Assert( names.Length > 0); 2519for( int i = 1; i< names.Length; i++) { 3132for (int i = 0; i < names.Length; i++) { 3156for (int i = 0; i < modifiers.Length; i++) {
compmod\microsoft\win32\SystemEvents.cs (5)
1074if (attrs != null && attrs.Length > 0) { 1124if (attrs != null && attrs.Length > 0) { 1174if (attrs != null && attrs.Length > 0) { 1309for (int i = 0; i < invokeItemArray.Length; i++) { 1327for (int i = 0; i < invokeItemArray.Length; i++) {
compmod\system\codedom\CodeAttributeArgumentCollection.cs (1)
80for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\codedom\CodeAttributeDeclarationCollection.cs (1)
80for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\codedom\CodeCatchClauseCollection.cs (1)
80for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\codedom\CodeCommentStatementCollection.cs (1)
80for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\codedom\CodeDirectiveCollection.cs (1)
50for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\codedom\CodeExpressionCollection.cs (1)
80for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\codedom\codemethodreferenceexpression.cs (1)
57if( typeParameters != null && typeParameters.Length > 0) {
compmod\system\codedom\CodeNamespaceCollection.cs (1)
80for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\codedom\CodeParameterDeclarationExpressionCollection.cs (1)
80for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\codedom\CodeStatementCollection.cs (1)
88for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\codedom\CodeTypeDeclarationCollection.cs (1)
80for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\codedom\CodeTypeMemberCollection.cs (1)
80for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\codedom\CodeTypeParameterCollection.cs (1)
53for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\codedom\CodeTypeReference.cs (2)
109for (int i = 0; i < genericArgs.Length; i++) { 259if( typeArguments != null && typeArguments.Length > 0) {
compmod\system\codedom\CodeTypeReferenceCollection.cs (1)
94for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\codedom\compiler\CodeCompiler.cs (10)
249string[] filenames = new string[ea.Length]; 259for (int i = 0; i < ea.Length; i++) { 489string[] filenames = new string[sources.Length]; 490FileStream[] fileStreams = new FileStream[sources.Length]; 501for (int i = 0; i < sources.Length; i++) { 517for (int i = 0; i < fileStreams.Length && fileStreams[i] != null; i++) 538if (sa == null || sa.Length == 0) 541if (sa.Length == 1) { 546for (int i = 0; i < sa.Length - 1; i++) { 553sb.Append(sa[sa.Length - 1]);
compmod\system\codedom\compiler\CodeDomConfigurationHandler.cs (8)
261for( int i =0 ; i < languageList.Length; i++) { 265for( int i =0 ; i < extensionList.Length; i++) { 322if (ci._compilerExtensions.Length == extensionList.Length && 323ci._compilerLanguages.Length == languageList.Length) { 326for (int i = 0; i < ci._compilerExtensions.Length; i++) { 333for (int i = 0; i < ci._compilerLanguages.Length; i++) {
compmod\system\codedom\compiler\CodeDOMProvider.cs (1)
332for (int i = 0; i < dirs.Length - 5; i++) {
compmod\system\codedom\compiler\CompilerErrorCollection.cs (1)
77for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\codedom\compiler\CompilerInfo.cs (4)
152String[] compilerLanguages = new String[_compilerLanguages.Length]; 153Array.Copy(_compilerLanguages, compilerLanguages, _compilerLanguages.Length); 158String[] compilerExtensions = new String[_compilerExtensions.Length]; 159Array.Copy(_compilerExtensions, compilerExtensions, _compilerExtensions.Length);
compmod\system\codedom\compiler\TempFiles.cs (1)
278if (Directory.GetFiles(highIntegrityDirectory).Length == 0)
compmod\system\collections\generic\linkedlist.cs (4)
179if(index < 0 || index > array.Length) { 183if (array.Length - index < Count) { 313for ( int i = 0; i < array.Length; i++) { 414if (array.Length - index < Count) {
compmod\system\collections\generic\queue.cs (23)
115Array.Clear(_array, _head, _array.Length - _head); 135if (arrayIndex < 0 || arrayIndex > array.Length) { 139int arrayLen = array.Length; 147int firstPart = (_array.Length - _head < numToCopy) ? _array.Length - _head : numToCopy; 151Array.Copy(_array, 0, array, arrayIndex+_array.Length - _head, numToCopy); 169int arrayLen = array.Length; 182int firstPart = (_array.Length - _head < numToCopy) ? _array.Length - _head : numToCopy; 187Array.Copy(_array, 0, array, index+_array.Length - _head, numToCopy); 199if (_size == _array.Length) { 200int newcapacity = (int)((long)_array.Length * (long)_GrowFactor / 100); 201if (newcapacity < _array.Length + _MinimumGrow) { 202newcapacity = _array.Length + _MinimumGrow; 208_tail = (_tail + 1) % _array.Length; 243_head = (_head + 1) % _array.Length; 278index = (index + 1) % _array.Length; 286return _array[(_head + i) % _array.Length]; 303Array.Copy(_array, _head, arr, 0, _array.Length - _head); 304Array.Copy(_array, 0, arr, _array.Length - _head, _tail); 319Array.Copy(_array, _head, newarray, 0, _array.Length - _head); 320Array.Copy(_array, 0, newarray, _array.Length - _head, _tail); 331int threshold = (int)(((double)_array.Length) * 0.9);
compmod\system\collections\generic\sorteddictionary.cs (4)
479if (array.Length - index < Count) { 503if (array.Length - index < dictionary.Count) { 634if (array.Length - index < Count) { 658if (array.Length - index < dictionary.Count) {
compmod\system\collections\generic\sortedlist.cs (10)
214return keys.Length; 217if (value != keys.Length) { 411if (arrayIndex < 0 || arrayIndex > array.Length) { 415if (array.Length - arrayIndex < Count) { 438if (arrayIndex < 0 || arrayIndex > array.Length) { 442if (array.Length - arrayIndex < Count) { 477int newCapacity = keys.Length == 0? _defaultCapacity: keys.Length * 2; 603if (_size == keys.Length) EnsureCapacity(_size + 1); 667int threshold = (int)(((double)keys.Length) * 0.9);
compmod\system\collections\generic\sortedset.cs (9)
602if (index > array.Length || count > array.Length - index) { 635if (array.Length - index < Count) { 1292if (other.Length == 0) { 1296for (int i = 0; i < other.Length; i++) { 1297while (i < other.Length && i != 0 && comparer.Compare(other[i], last) == 0) 1299if (i >= other.Length) 2043for (int i = 0; i < items.Length; i++) { 2115for (int i = 0; i < items.Length; i++) {
compmod\system\collections\generic\stack.cs (8)
142if (arrayIndex < 0 || arrayIndex > array.Length) { 146if (array.Length - arrayIndex < _size) { 167if (arrayIndex < 0 || arrayIndex > array.Length) { 171if (array.Length - arrayIndex < _size) { 201int threshold = (int)(((double)_array.Length) * 0.9); 235if (_size == _array.Length) { 236T[] newArray = new T[(_array.Length == 0) ? _defaultCapacity : 2*_array.Length];
compmod\system\collections\objectmodel\observablecollection.cs (1)
321if ((CollectionChanged != null) && (CollectionChanged.GetInvocationList().Length > 1))
compmod\system\collections\specialized\fixedstringlookup.cs (2)
26if (length <= 0 || length - 1 >= lookupTable.Length) { 65int max = array.Length;
compmod\system\collections\specialized\listdictionary.cs (1)
233if (array.Length - index < count)
compmod\system\collections\specialized\nameobjectcollectionbase.cs (2)
514if (array.Length - index < _entriesArray.Count) { 731if (array.Length - index < _coll.Count) {
compmod\system\collections\specialized\namevaluecollection.cs (2)
190for (int j = 0; j < values.Length; j++) 224if (dest.Length - index < Count) {
compmod\system\collections\specialized\stringdictionary.cs (1)
319if( array.Length - arrayIndex < Count )
compmod\system\componentmodel\ArraySubsetEnumerator.cs (1)
24Debug.Assert(array == null || count <= array.Length, "Trying to enumerate more than the array contains");
compmod\system\componentmodel\AttributeCollection.cs (10)
77for (int idx = 0; idx < attributes.Length; idx++) 109Attribute[] newArray = new Attribute[existing.Count + newAttributes.Length]; 113for (int idx = 0; idx < newAttributes.Length; idx++) 143if (actualCount < newArray.Length) 176return Attributes.Length; 239int count = Attributes.Length; 296for (int i = 0; i < attributes.Length; i++) 371for (int i = 0; i < Attributes.Length; i++) 387for (int i = 0; i < attributes.Length; i++) 431Array.Copy(Attributes, 0, array, index, Attributes.Length);
compmod\system\componentmodel\BindingList.cs (1)
324return onAddingNew != null && onAddingNew.GetInvocationList().Length > 0;
compmod\system\componentmodel\Container.cs (2)
76if (sites.Length == siteCount) { 245for (int i = 0; i < Math.Min(siteCount,sites.Length); i++) {
compmod\system\componentmodel\CultureInfoConverter.cs (4)
218Debug.Assert(invariantIndex >= 0 && invariantIndex < installedCultures.Length); 220array = new CultureInfo[installedCultures.Length]; 223array = new CultureInfo[installedCultures.Length + 1]; 226Array.Copy(installedCultures, array, installedCultures.Length);
compmod\system\componentmodel\design\DesignerVerbCollection.cs (1)
60for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\componentmodel\design\DesigntimeLicenseContext.cs (1)
207string licFileName = segments[segments.Length - 1];
compmod\system\componentmodel\design\PropertyTabAttribute.cs (14)
93tabClasses = new Type[tabClassNames.Length]; 94for (int i=0; i<tabClassNames.Length; i++) { 162if (other.TabClasses.Length != TabClasses.Length || 163other.TabScopes.Length != TabScopes.Length) { 167for (int i = 0; i < TabClasses.Length; i++) { 208if (tabScopes != null && tabClasses.Length != tabScopes.Length) { 214if (tabScopes != null && tabClasses.Length != tabScopes.Length) { 225for (int i = 0; i < tabScopes.Length; i++) { 233this.tabScopes = new PropertyTabScope[tabClasses.Length]; 235for (int i = 0; i < TabScopes.Length; i++) {
compmod\system\componentmodel\design\serialization\InstanceDescriptor.cs (3)
63if (this.arguments.Count != ci.GetParameters().Length) { 72if (this.arguments.Count != mi.GetParameters().Length) { 131for(int i = 0; i < translatedArguments.Length; i++) {
compmod\system\componentmodel\design\ServiceObjectContainer.cs (1)
194for (int idx = 0; idx < defaults.Length; idx++) {
compmod\system\componentmodel\EnumConverter.cs (4)
203long[] ulValues = new long[objValues.Length]; 204for(int idx = 0; idx < objValues.Length; idx++) { 259if (fields != null && fields.Length > 0) { 260objValues = new ArrayList(fields.Length);
compmod\system\componentmodel\EventDescriptorCollection.cs (9)
79this.eventCount = this.events.Length; 195if (sizeNeeded <= events.Length) { 199if (events == null || events.Length == 0) { 207int newSize = Math.Max(sizeNeeded, events.Length * 2); 303if (events.Length == eventCount) { 359if (events == null || events.Length == 0) { 365if (names != null && names.Length > 0) { 369int eventCount = events.Length; 371for (int i = 0; i < names.Length; i++) {
compmod\system\componentmodel\ListSortDescriptionCollection.cs (1)
28for (int i = 0; i < sorts.Length; i ++) {
compmod\system\componentmodel\MemberDescriptor.cs (3)
351if (attributes.Length != mdObj.attributes.Length) { 354for (int i = 0; i < attributes.Length; i++) {
compmod\system\componentmodel\PropertyDescriptor.cs (5)
333if (editorCount >= editorTypes.Length) { 334Type[] newTypes = new Type[editorTypes.Length * 2]; 335object[] newEditors = new object[editors.Length * 2]; 336Array.Copy(editorTypes, newTypes, editorTypes.Length); 337Array.Copy(editors, newEditors, editors.Length);
compmod\system\componentmodel\PropertyDescriptorCollection.cs (10)
101this.propCount = properties.Length; 219if (sizeNeeded <= properties.Length) { 223if (properties == null || properties.Length == 0) { 231int newSize = Math.Max(sizeNeeded, properties.Length * 2); 384if (properties == null || properties.Length == 0) { 390if (names != null && names.Length > 0) { 394int propCount = properties.Length; 396for (int i = 0; i < names.Length; i++) { 448if (properties.Length != this.propCount) { 587if (properties.Length != this.propCount) {
compmod\system\componentmodel\ReferenceConverter.cs (2)
152int count = objs.Length; 177Array.Sort(components, 0, components.Length, new ReferenceComparer(this));
compmod\system\componentmodel\ReflectPropertyDescriptor.cs (1)
865if (milist.Length > 0 && milist[0] != null) {
compmod\system\componentmodel\ReflectTypeDescriptionProvider.cs (40)
204argTypes = new Type[args.Length]; 205for(int idx = 0; idx < args.Length; idx++) { 487if (extenders.Length == 0) 513for (int idx = 0; idx < extenders.Length; idx++) 519propertyList = new ArrayList(propertyArray.Length * extenders.Length); 522for (int propIdx = 0; propIdx < propertyArray.Length; propIdx++) 638for (curIdx = 0; curIdx < currentExtenders.Length; curIdx++) 646if (!newExtenders && (idx >= existingExtenders.Length || currentExtenders[curIdx] != existingExtenders[idx++])) 663if (!newExtenders && (idx >= existingExtenders.Length || prov != existingExtenders[idx++])) 671if (existingExtenders != null && extenderCount != existingExtenders.Length) 679if (currentExtenders == null || extenderCount != currentExtenders.Length) 688while(curIdx < currentExtenders.Length) 946attrs = new Attribute[typeAttrs.Length]; 987attrs = new Attribute[memberAttrs.Length]; 1035events = new EventDescriptor[eventInfos.Length]; 1038for (int idx = 0; idx < eventInfos.Length; idx++) 1059if (eventCount != events.Length) 1177properties = new PropertyDescriptor[extendedProperties.Length]; 1178for (int idx = 0; idx < extendedProperties.Length; idx++) 1240properties = new PropertyDescriptor[propertyInfos.Length]; 1244for (int idx = 0; idx < propertyInfos.Length; idx++) 1250if (propertyInfo.GetIndexParameters().Length > 0) { 1276if (propertyCount != properties.Length) 1516Attribute[] temp = new Attribute[attrArray.Length + baseArray.Length]; 1517Array.Copy(attrArray, 0, temp, 0, attrArray.Length); 1518Array.Copy(baseArray, 0, temp, attrArray.Length, baseArray.Length); 1526int ifaceStartIdx = attrArray.Length; 1528TypeDescriptor.Trace("Attributes : Walking {0} interfaces", interfaces.Length); 1529for(int idx = 0; idx < interfaces.Length; idx++) 1540Attribute[] temp = new Attribute[attrArray.Length + ifaceAttrs.Count]; 1541Array.Copy(attrArray, 0, temp, 0, attrArray.Length); 1542ifaceAttrs.CopyTo(temp, attrArray.Length); 1550OrderedDictionary attrDictionary = new OrderedDictionary(attrArray.Length); 1552for (int idx = 0; idx < attrArray.Length; idx++) 1556for (int ifaceSkipIdx = 0; ifaceSkipIdx < _skipInterfaceAttributeList.Length; ifaceSkipIdx++) 1828if (_editorTypes == null || _editorTypes.Length == _editorCount) 1830int newLength = (_editorTypes == null ? 4 : _editorTypes.Length * 2);
compmod\system\componentmodel\TypeConverter.cs (1)
570return valueArray.Length;
compmod\system\componentmodel\TypeDescriptor.cs (16)
466for (int idx = attrs.Length - 1; idx >= 0; idx--) 665if (argTypes.Length != args.Length) 1248for (int attrIdx = 0; attrIdx < attributes.Length; attrIdx++) { 1750if (attributes != null && attributes.Length > 0) { 1971if (attributes != null && attributes.Length > 0) { 2420if (filter == null || filter.Length == 0) 2935for (int idx = 0; idx < _pipelineFilterKeys.Length; idx++) 3390Attribute[] newArray = new Attribute[existing.Count + newAttrs.Length]; 3394for (int idx = 0; idx < newAttrs.Length; idx++) 3420if (actualCount < newArray.Length) 3627if (_filter.Length != filter.Length) return false; 3629for (int idx = 0; idx < filter.Length; idx++) { 3928if (argTypes.Length != args.Length)
compmod\system\componentmodel\TypeListConverter.cs (2)
115objTypes = new object[types.Length]; 116Array.Copy(types, objTypes, types.Length);
compmod\system\diagnostics\DelimitedListTraceListener.cs (1)
140for (int i=0; i<data.Length; i++) {
compmod\system\diagnostics\SwitchAttribute.cs (2)
61 for (int i=0; i<types.Length; i++) 74 for (int i=0; i<members.Length; i++) {
compmod\system\diagnostics\TraceListener.cs (1)
346for (int i=0; i< data.Length; i++) {
compmod\system\diagnostics\TraceListeners.cs (1)
81for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
compmod\system\diagnostics\traceutils.cs (3)
76for (int i=0; i<ctorInfos.Length; i++) { 78if (ctorparams.Length == 1) { 135for (int i=0; i<supportedAttributes.Length; i++) {
compmod\system\diagnostics\XmlWriterTraceListener.cs (1)
112for (int i=0; i<data.Length; i++) {
compmod\system\security\permissions\ResourcePermissionBase.cs (16)
126if (value.Length == 0) 140if (entry.PermissionAccessPath.Length != this.TagNames.Length) 145for (int index = 0; index < accessPath.Length - 1; ++ index) { 155if (currentTable.ContainsKey(accessPath[accessPath.Length - 1])) 158currentTable[accessPath[accessPath.Length - 1]] = entry.PermissionAccess; 181if (tagIndex < (this.TagNames.Length -1)) 208if (tagIndex < (this.TagNames.Length -1)) { 210for (int index = 0; index < currentEntries.Length; ++index) 216ResourcePermissionBaseEntry entry = new ResourcePermissionBaseEntry((int)contentEnumerator.Value, new string[this.TagNames.Length]); 499if (tagIndex < (this.TagNames.Length -1)) 522if (entry.PermissionAccessPath.Length != this.TagNames.Length) 527for (int index = 0; index < accessPath.Length; ++ index) { 532if (index < accessPath.Length - 1) { 625if (tagIndex < (this.TagNames.Length -1))
misc\ClientUtils.cs (3)
134System.Diagnostics.Debug.Assert(Enum.GetValues(enumValue.GetType()).Length == enumValues.Length, "Not all the enum members were passed in."); 135for (int i = 0; i < enumValues.Length; i++){
net\System\IriHelper.cs (13)
170Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 172Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 174Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 181Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 235char[] unescapedChars = new char[bytes.Length]; 253Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 263Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 280Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 282Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 293Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 307Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 322newBufferLength = dest.Length + bufferCapacityIncrease; 371Debug.Assert(destOffset <= dest.Length, "Buffer overrun detected");
net\System\Net\_AuthenticationManager2.cs (1)
275for (int k = 0; k < prefix.Length; k++)
net\System\Net\_AuthenticationManagerDefault.cs (1)
422for (int k = 0; k < prefix.Length; k++)
net\System\Net\_AutoWebProxyScriptHelper.cs (25)
175GlobalLog.Print("MyMethodInfo::GetParameters() returning pars.Length:" + pars.Length); 315for (int i = 0; i < ipHostEntry.AddressList.Length; i++) 341for (int i = 0; i < ipHostEntry.AddressList.Length; i++) 354for (int i = 0; i < ipAddresses.Length; i++) 401if (maskAddressBytes.Length!=hostAddressBytes.Length || maskAddressBytes.Length!=patternAddressBytes.Length) { 404for (int i=0; i<maskAddressBytes.Length; i++) { 559 if(IPAddressStrings.Length > MAX_IPADDRESS_LIST_LENGTH) 570if(IPAddressStrings.Length == 1) 578SocketAddress[] SockAddrIn6List = new SocketAddress[IPAddressStrings.Length]; 579for(int i = 0; i < IPAddressStrings.Length; i++) 644 (SockAddrIn6List.Length -1)*Marshal.SizeOf(typeof(UnsafeNclNativeMethods.OSSOCK.SOCKET_ADDRESS)); 646 GCHandle[] GCHandles = new GCHandle[SockAddrIn6List.Length]; 647 for(int i = 0; i < SockAddrIn6List.Length; i++) 662 pList->iAddressCount = SockAddrIn6List.Length; //Set the number of addresses 704 for(int i = 0; i < GCHandles.Length; i++) 749if(parts.Length != 2 || parts[0] == null || parts[0].Length == 0 || 894for (int i = 0; i < ipAddresses.Length; i++) 899if(i != ipAddresses.Length -1) 926if(addresses.Length == 0) 932for (int i = 0; i < addresses.Length; i++) 935if(i != addresses.Length -1) 959if(addresses.Length == 0)
net\System\Net\_BasicClient.cs (1)
155GlobalLog.Leave("BasicClient::EncodingRightGetBytes", bytes.Length.ToString());
net\System\Net\_BufferOffsetSize.cs (2)
21GlobalLog.Assert(buffer != null && buffer.Length >= size + offset, "BufferOffsetSize::.ctor|Illegal parameters."); 56: this(buffer, 0, buffer.Length, copyBuffer) {
net\System\Net\_ChunkParser.cs (11)
102Contract.Requires(internalBuffer.Length >= chunkLengthBuffer, 104Contract.Requires((initialBufferCount >= 0) && (initialBufferCount <= internalBuffer.Length)); 106(initialBufferOffset + initialBufferCount <= internalBuffer.Length)); 161Contract.Requires((userBufferCount > 0) && (userBufferCount <= userBuffer.Length)); 162Contract.Requires((userBufferOffset >= 0) && (userBufferOffset + userBufferCount <= userBuffer.Length)); 319int readSize = buffer.Length - bufferFillLength; 370if ((currentPos > 0) || (bufferFillLength < buffer.Length)) 389Contract.Assert(bufferFillLength == buffer.Length); 391if (buffer.Length == maxBufferLength) 396int newBufferLength = Math.Min(maxBufferLength, buffer.Length * 2); 399Buffer.BlockCopy(buffer, 0, newBuffer, 0, buffer.Length);
net\System\Net\_CommandStream.cs (9)
215while (m_Index < m_Commands.Length) 236BeginWrite(sendBuffer, 0, sendBuffer.Length, m_WriteCallbackDelegate, this); 238Write(sendBuffer, 0, sendBuffer.Length); 304if (index < 0 || index >= commands.Length || 314if (m_Index >= m_Commands.Length) 529BeginRead(state.Buffer, 0, state.Buffer.Length, m_ReadCallbackDelegate, state); 532bytesRead = Read(state.Buffer, 0, state.Buffer.Length); 633BeginRead(state.Buffer, 0, state.Buffer.Length, m_ReadCallbackDelegate, state); 636bytesRead = Read(state.Buffer, 0, state.Buffer.Length);
net\System\Net\_Connection.cs (10)
148returnResult = new ConnectionReturnResult(requests.Length); 152for (int i = 0; i < requests.Length; ++i) 3346bytesRead = Read(m_ReadBuffer, m_BytesRead, m_ReadBuffer.Length - m_BytesRead); 3472if (bytesRead > m_ReadBuffer.Length) 3533GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::ReadComplete() OLD buffer. m_ReadBuffer.Length:" + m_ReadBuffer.Length.ToString() + " m_BytesRead:" + m_BytesRead.ToString() + " m_BytesScanned:" + m_BytesScanned.ToString()); 3537if (m_BytesScanned == 0 && m_BytesRead == m_ReadBuffer.Length) 3543byte[] newReadBuffer = new byte[m_ReadBuffer.Length * 2 /*+ ReadBufferSize*/]; 3563GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::ReadComplete() NEW or shifted buffer. m_ReadBuffer.Length:" + m_ReadBuffer.Length.ToString() + " m_BytesRead:" + m_BytesRead.ToString() + " m_BytesScanned:" + m_BytesScanned.ToString()); 3694GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::PostReceive() m_ReadBuffer:" + ValidationHelper.HashString(m_ReadBuffer) + " Length:" + m_ReadBuffer.Length.ToString()); 3704m_LastAsyncResult = UnsafeBeginRead(m_ReadBuffer, m_BytesRead, m_ReadBuffer.Length - m_BytesRead, m_ReadCallback, this);
net\System\Net\_ConnectStream.cs (20)
645m_Connection.Write(NclConstants.ChunkTerminator, 0, NclConstants.ChunkTerminator.Length); 651BufferOffsetSize[] buffers = new BufferOffsetSize[dataBuffers.Length + 3]; 652buffers[0] = new BufferOffsetSize(chunkHeaderBuffer, chunkHeaderOffset, chunkHeaderBuffer.Length - chunkHeaderOffset, false); 657buffers[++index] = new BufferOffsetSize(NclConstants.CRLF, 0, NclConstants.CRLF.Length, false); 658buffers[++index] = new BufferOffsetSize(NclConstants.ChunkTerminator, 0, NclConstants.ChunkTerminator.Length, false); 815if (offset<0 || offset>buffer.Length) { 818if (size<0 || size>buffer.Length-offset) { 876if (offset<0 || offset>buffer.Length) { 879if (size<0 || size>buffer.Length-offset) { 980buffers[0] = new BufferOffsetSize(NclConstants.ChunkTerminator, 0, NclConstants.ChunkTerminator.Length, false); 984buffers[0] = new BufferOffsetSize(chunkHeaderBuffer, chunkHeaderOffset, chunkHeaderBuffer.Length - chunkHeaderOffset, false); 986buffers[2] = new BufferOffsetSize(NclConstants.CRLF, 0, NclConstants.CRLF.Length, false); 1380if (offset<0 || offset>buffer.Length) { 1383if (size<0 || size>buffer.Length-offset) { 1642if (offset<0 || offset>buffer.Length) { 1645if (size<0 || size>buffer.Length-offset) { 2445m_Connection.Write(NclConstants.ChunkTerminator, 0, NclConstants.ChunkTerminator.Length); 2449m_Connection.BeginWrite(NclConstants.ChunkTerminator, 0, NclConstants.ChunkTerminator.Length, new AsyncCallback(ResumeClose_Part2_Wrapper), userResult); 2620m_Connection.Write(NclConstants.ChunkTerminator, 0, NclConstants.ChunkTerminator.Length); 2921bytesRead = ReadWithoutValidation(s_DrainingBuffer, 0, s_DrainingBuffer.Length, false);
net\System\Net\_DigestClient.cs (4)
131for (int i=0; i<prefixes.Length; i++) { 390for (int i=0; i<prefixes.Length; i++) { 896char[] chars = new char[bytes.Length]; 1240int size = rawbytes.Length;
net\System\Net\_FtpControlStream.cs (8)
892if (parsedList.Length < 2) 903if (parsedList.Length < 2) { 917if (parsedList.Length > 2) { 972baseUri.Segments.Length != newUri.Segments.Length-1) 1050if (parsedList.Length <= 7) { 1054int index = parsedList.Length-1; 1085if (parsedList.Length < 4)
net\System\Net\_HeaderInfoTable.cs (3)
81string lastElement = attributeArray[attributeArray.Length - 1].Trim(); 147HeaderHashTable = new Hashtable(InfoArray.Length * 2, CaseInsensitiveAscii.StaticInstance); 148for (int i = 0; i < InfoArray.Length; i++) {
net\System\Net\_ListenerRequestStream.cs (5)
112if (offset<0 || offset>buffer.Length) { 115if (size<0 || size>buffer.Length-offset) { 190GlobalLog.Print("HttpRequestStream#" + ValidationHelper.HashString(this) + "::BeginRead() buffer.Length:" + buffer.Length + " size:" + size + " offset:" + offset); 194if (offset<0 || offset>buffer.Length) { 197if (size<0 || size>buffer.Length-offset) {
net\System\Net\_ListenerResponseStream.cs (14)
129GlobalLog.Print("HttpResponseStream#" + ValidationHelper.HashString(this) + "::Write() buffer.Length:" + buffer.Length + " size:" + size + " offset:" + offset); 133if (offset<0 || offset>buffer.Length) { 136if (size<0 || size>buffer.Length-offset) { 235GlobalLog.Print("HttpResponseStream#" + ValidationHelper.HashString(this) + "::BeginWrite() buffer.Length:" + buffer.Length + " size:" + size + " offset:" + offset); 239if (offset<0 || offset>buffer.Length) { 242if (size<0 || size>buffer.Length-offset) { 408dataChunk.BufferLength = (uint) NclConstants.ChunkTerminator.Length; 492return (ushort)m_DataChunks.Length; 526object[] objectsToPin = new object[1 + m_DataChunks.Length]; 527objectsToPin[m_DataChunks.Length] = m_DataChunks; 537m_DataChunks[0].BufferLength = (uint)(chunkHeaderBuffer.Length - chunkHeaderOffset); 549m_DataChunks[2].BufferLength = (uint)NclConstants.CRLF.Length; 601result = asyncResult.m_DataChunks.Length == 1 ? asyncResult.m_DataChunks[0].BufferLength : 0; 602if (Logging.On) { for (int i = 0; i < asyncResult.m_DataChunks.Length; i++) { Logging.Dump(Logging.HttpListener, asyncResult, "Callback", (IntPtr)asyncResult.m_DataChunks[0].pBuffer, (int)asyncResult.m_DataChunks[0].BufferLength); } }
net\System\Net\_NestedMultipleAsyncResult.cs (1)
31for (int i = 0; i < Buffers.Length; i++) {
net\System\Net\_NetworkingPerfCounters.cs (5)
171Debug.Assert(avgCounterIndex + 1 < counters.Length); 198Debug.Assert(counterNames.Length == Enum.GetValues(typeof(NetworkingPerfCounterName)).Length, 204counters = new CounterPair[counterNames.Length]; 205for (int i = 0; i < counterNames.Length; i++)
net\System\Net\_NTAuthentication.cs (9)
649if (decodedOutgoingBlob != null && decodedOutgoingBlob.Length > 0) { 670GlobalLog.Enter("NTAuthentication#" + ValidationHelper.HashString(this) + "::GetOutgoingBlob", ((incomingBlob == null) ? "0" : incomingBlob.Length.ToString(NumberFormatInfo.InvariantInfo)) + " bytes"); 940if (decodedOutgoingBlob!=null && decodedOutgoingBlob.Length>0) { 968if (output == null || output.Length < resultSize+4) 1026if (offset < 0 || offset > (payload == null ? 0 : payload.Length)) 1031if (count < 0 || count > (payload == null ? 0 : payload.Length - offset)) 1137if (offset < 0 || offset > (buffer == null ? 0 : buffer.Length)) { 1149count > (buffer == null ? 0 : buffer.Length - offset)) { 1214if (output == null || output.Length < resultSize)
net\System\Net\_ProxyChain.cs (1)
218if (m_ScriptProxies == null || m_CurrentIndex >= m_ScriptProxies.Length)
net\System\Net\_RegBlobWebProxyDataBuilder.cs (2)
160int actualSize = m_RegistryBytes.Length - m_ByteOffset; 177int actualSize = m_RegistryBytes.Length - m_ByteOffset;
net\System\Net\_SafeNetHandles.cs (16)
617ref phContext._handle, contextAttribute, buffer, buffer.Length); 1488inSecurityBufferDescriptor = new SecurityBufferDescriptor(inSecBuffers.Length); 1532else if (securityBuffer.token == null || securityBuffer.token.Length == 0) 1555if (outSecBuffer.token == null || outSecBuffer.token.Length == 0) 1622for (int index=0; index<pinnedInBytes.Length; index++) 1813inSecurityBufferDescriptor = new SecurityBufferDescriptor(inSecBuffers.Length); 1857else if (securityBuffer.token == null || securityBuffer.token.Length == 0) 1881if (outSecBuffer.token == null || outSecBuffer.token.Length == 0) 1940for (int index=0; index<pinnedInBytes.Length; index++) 2092SecurityBufferDescriptor inSecurityBufferDescriptor = new SecurityBufferDescriptor(inSecBuffers.Length); 2116else if (securityBuffer.token==null || securityBuffer.token.Length==0) { 2176for (int index=0; index<pinnedInBytes.Length; index++) { 2203SecurityBufferDescriptor inSecurityBufferDescriptor = new SecurityBufferDescriptor(inSecBuffers.Length); 2230else if (securityBuffer.token == null || securityBuffer.token.Length == 0) 2302for (int index = 0; index < pinnedInBytes.Length; index++) 3074if (size != blob.Length)
net\System\Net\_ScatterGatherBuffers.cs (1)
70int available = Empty ? 0 : currentChunk.Buffer.Length - currentChunk.FreeOffset;
net\System\Net\_SecureChannel.cs (16)
617if (issuers == null || issuers.Length == 0) 620Logging.PrintInfo(Logging.Web, this, SR.GetString(SR.net_log_server_issuers_look_for_matching_certs, issuers.Length)); 629if (issuers != null && issuers.Length != 0) 930if (offset < 0 || offset > (input == null ? 0 : input.Length)) 935if (count < 0 || count > (input == null ? 0 : input.Length - offset)) 1116GlobalLog.Print("SecureChannel#" + ValidationHelper.HashString(this) + "::Encrypt() - offset: " + offset.ToString() + " size: " + size.ToString() +" buffersize: " + buffer.Length.ToString() ); 1117GlobalLog.Print("SecureChannel#" + ValidationHelper.HashString(this) + "::Encrypt() buffer:[" + Encoding.ASCII.GetString(buffer, 0, Math.Min(buffer.Length,128)) + "]"); 1122if (offset < 0 || offset > (buffer == null ? 0 : buffer.Length)) 1126if (size < 0 || size > (buffer == null ? 0 : buffer.Length - offset)) 1134if (output != null && bufferSizeNeeded <= output.Length) 1178GlobalLog.Print("SecureChannel#" + ValidationHelper.HashString(this) + "::Decrypt() - offset: " + offset.ToString() + " size: " + count.ToString() +" buffersize: " + payload.Length.ToString() ); 1180if (offset < 0 || offset > (payload == null ? 0 : payload.Length)) 1185if (count < 0 || count > (payload == null ? 0 : payload.Length - offset)) 1201for (int i = 0; i < decspc.Length; i++) { 1294if (chainStatusArray != null && chainStatusArray.Length != 0) 1983Size = data!=null ? data.Length : 0;
net\System\Net\_SpnDictionary.cs (1)
221if ((array.Length - index) < count)
net\System\Net\_SslSessionsCache.cs (7)
54if (1 < _CertThumbPrint.Length) 56if (2 < _CertThumbPrint.Length) 58if (3 < _CertThumbPrint.Length) 100if (_CertThumbPrint.Length != she._CertThumbPrint.Length) 112for (int i = 0; i < _CertThumbPrint.Length; ++i) 203for(int i = 0; i < toRemoveAttempt.Length; ++i)
net\System\Net\_SSPIWrapper.cs (16)
63for (int i = 0; i < supportedSecurityPackages.Length; i++) { 253if (Logging.On) Logging.PrintInfo(Logging.Web, SR.GetString(SR.net_log_sspi_security_context_input_buffers, "InitializeSecurityContext", (inputBuffers == null ? 0 : inputBuffers.Length), outputBuffer.size, (SecurityStatus) errorCode)); 284if (Logging.On) Logging.PrintInfo(Logging.Web, SR.GetString(SR.net_log_sspi_security_context_input_buffers, "AcceptSecurityContext", (inputBuffers == null ? 0 : inputBuffers.Length), outputBuffer.size, (SecurityStatus) errorCode)); 381SecurityBufferDescriptor sdcInOut = new SecurityBufferDescriptor(input.Length); 382SecurityBufferStruct[] unmanagedBuffer = new SecurityBufferStruct[input.Length]; 387GCHandle[] pinnedBuffers = new GCHandle[input.Length]; 388byte[][] buffers = new byte[input.Length][]; 391for (int i = 0; i < input.Length; i++) 396if (iBuffer.token == null || iBuffer.token.Length == 0) 432for (int i = 0; i < input.Length; i++) 447for (j = 0; j < input.Length; j++) 456(byte*) unmanagedBuffer[i].token + iBuffer.size <= bufferAddress + buffers[j].Length) 464if (j >= input.Length) 474GlobalLog.Assert(iBuffer.offset >= 0 && iBuffer.offset <= (iBuffer.token == null ? 0 : iBuffer.token.Length), "SSPIWrapper::EncryptDecryptHelper|'offset' out of range. [{0}]", iBuffer.offset); 475GlobalLog.Assert(iBuffer.size >= 0 && iBuffer.size <= (iBuffer.token == null ? 0 : iBuffer.token.Length - iBuffer.offset), "SSPIWrapper::EncryptDecryptHelper|'size' out of range. [{0}]", iBuffer.size); 489for (int i = 0; i < pinnedBuffers.Length; ++i) {
net\System\Net\_StreamFramer.cs (22)
150while (offset < buffer.Length) { 151bytesRead = Transport.Read(buffer, offset, buffer.Length - offset); 176while (offset < buffer.Length) { 177bytesRead = Transport.Read(buffer, offset, buffer.Length - offset); 196m_ReadHeaderBuffer.Length); 198IAsyncResult result = Transport.BeginRead(m_ReadHeaderBuffer, 0, m_ReadHeaderBuffer.Length, 295workerResult.End = frame.Length; 356m_WriteHeader.PayloadSize = message.Length; 359if (m_NetworkStream != null && message.Length != 0) { 361buffers[0] = new BufferOffsetSize(m_WriteHeaderBuffer, 0, m_WriteHeaderBuffer.Length, false); 362buffers[1] = new BufferOffsetSize(message, 0, message.Length, false); 366Transport.Write(m_WriteHeaderBuffer, 0, m_WriteHeaderBuffer.Length); 367if (message.Length==0) { 370Transport.Write(message, 0, message.Length); 383m_WriteHeader.PayloadSize = message.Length; 386if (m_NetworkStream != null && message.Length != 0) { 388buffers[0] = new BufferOffsetSize(m_WriteHeaderBuffer, 0, m_WriteHeaderBuffer.Length, false); 389buffers[1] = new BufferOffsetSize(message, 0, message.Length, false); 393if (message.Length == 0) { 394return Transport.BeginWrite(m_WriteHeaderBuffer, 0, m_WriteHeaderBuffer.Length, 400message, 0, message.Length); 402IAsyncResult result = Transport.BeginWrite(m_WriteHeaderBuffer, 0, m_WriteHeaderBuffer.Length,
net\System\Net\_TLSstream.cs (2)
343GlobalLog.Print("TlsStream#" + ValidationHelper.HashString(this) + "::MultipleWrite() SecureWorker#" + ValidationHelper.HashString(m_Worker) + " buffers.Length:" + buffers.Length.ToString()); 373GlobalLog.Print("TlsStream#" + ValidationHelper.HashString(this) + "::BeginMultipleWrite() SecureWorker#" + ValidationHelper.HashString(m_Worker) + " buffers.Length:" + buffers.Length.ToString());
net\System\Net\_WebProxyDataBuilder.cs (3)
115for (int i = 0; i < proxyListStrings.Length; i++) { 129if (schemeValueStrings.Length != 2) { 239if (bypassListStrings.Length == 0) {
net\System\Net\Cache\_CacheStreams.cs (8)
453int bytes = WrappedStream.Read(tempBuffer, 0, (m_BytesToSkip < (long)tempBuffer.Length? (int)m_BytesToSkip: tempBuffer.Length)); 613userResult.Count = m_BytesToSkip < (long)userResult.Buffer.Length? (int)m_BytesToSkip: userResult.Buffer.Length; 6860, m_BytesToSkip < (long) buffer.Length? (int)m_BytesToSkip: buffer.Length); 761while (total < ConnectStream.s_DrainingBuffer.Length && (bytesRead = Read(ConnectStream.s_DrainingBuffer, 0, ConnectStream.s_DrainingBuffer.Length)) > 0) {
net\System\Net\Cache\_RequestCacheProtocol.cs (1)
688for (int i = 0; i< context.Length; ++i) {
net\System\Net\Cache\_Rfc2616CacheValidators.cs (2)
773for (int i = 0; i < ctx.ResponseCacheControl.PrivateHeaders.Length; ++i) { 963for (int i = 0; i < ctx.CacheCacheControl.NoCacheHeaders.Length; ++i) {
net\System\Net\Cache\_SingleItemRequestCache.cs (14)
79{ int read = stream.Read(bytes, offset, bytes.Length-offset); 82if ((offset+=read) == bytes.Length && resize) 84byte[] newBytes = new byte[bytes.Length+4096*2]; 317public override long Length {get {return _Bytes.Length;}} 321if (value < 0 || value > (long)_Bytes.Length) 368if (offset<0 || offset>buffer.Length) throw new ArgumentOutOfRangeException("offset"); 369if (count<0 || count>buffer.Length-offset) throw new ArgumentOutOfRangeException("count"); 370if (_Offset == _Bytes.Length) return 0; 373count = Math.Min(count, _Bytes.Length - chkOffset); 402case SeekOrigin.End: return Position = _Bytes.Length-offset; 536if (offset<0 || offset>buffer.Length) throw new ArgumentOutOfRangeException("offset"); 537if (count<0 || count>buffer.Length-offset) throw new ArgumentOutOfRangeException("count"); 571Buffer.BlockCopy(buffer, 0, allBytes, offset, buffer.Length); 572offset += buffer.Length;
net\System\Net\Cache\HttpRequestCacheValidator.cs (7)
546if (val.Length != 0) 554for (int j = 1; j < val.Length; ++j) 1202for (int i = 0; i < values.Length; ++i) { 1307for (int i = 0; i < PrivateHeaders.Length-1; ++i) { 1310sb.Append(PrivateHeaders[PrivateHeaders.Length-1]); 1317for (int i = 0; i < NoCacheHeaders.Length-1; ++i) { 1320sb.Append(NoCacheHeaders[NoCacheHeaders.Length-1]);
net\System\Net\Cache\WinInetCache.cs (2)
228int size = entryBuffer.Length; 269int size = buffer.Length;
net\System\Net\connectionpool.cs (1)
753for (int i = 0; i < objectList.Length; ++i) {
net\System\Net\cookie.cs (3)
592for (int i = 0; i < ports.Length; ++i) { 1291for (int i = 0; i < RecognizedServerAttributes.Length; ++i) { 1298for (int i = 0; i < RecognizedAttributes.Length; ++i) {
net\System\Net\cookiecontainer.cs (3)
443for (int i = 0; i < cookies.Length; ++i) { 557if (ipParts != null && ipParts.Length == 4 && ipParts[0] == "127") 639else for (int i = 0; i < HeaderInfo.Length; ++i) {
net\System\Net\CredentialCache.cs (3)
344if (m_index < 0 || m_index >= m_array.Length) { 360if (++m_index < m_array.Length) { 363m_index = m_array.Length;
net\System\Net\HttpListener.cs (12)
114return (uint) m_BackingBuffer.Length; 172if (m_NativeOverlapped != null && newSize != RequestBuffer.Length) 240if (RequestBuffer.Length == size) 1659if (statusCodeNew == SecurityStatus.InvalidHandle && oldContext == null && bytes != null && bytes.Length > 0) 1750inBlob = WebHeaderCollection.HeaderEncoding.GetString(bytes, 0, bytes.Length); 2338httpResponse.ReasonLength = (ushort)byteReason.Length; 2344(&httpResponse.Headers.KnownHeaders)[(int)HttpResponseHeader.ContentLength].RawValueLength = (ushort)byteContentLength.Length; 2366for (int i = 0; i < challengeHandles.Length; i++) 2371headersArray[i].NameLength = (ushort) s_WwwAuthenticateBytes.Length; 2373headersArray[i].RawValueLength = checked((ushort) byteChallenge.Length); 2403for (int i = 0; i < challengeHandles.Length; i++) 2660for (int j = 0; j < toClose.Length; j++)
net\System\Net\HttpListenerPrefixCollection.cs (4)
52if (Count>array.Length) { 55if (offset+Count>array.Length) { 66if (Count>array.Length) { 69if (offset+Count>array.Length) {
net\System\Net\HttpListenerRequest.cs (4)
143Marshal.Copy((IntPtr)pClientCertInfo->pCertEncoded, certEncoded, 0, certEncoded.Length); 958Marshal.Copy((IntPtr)pClientCertInfo->pCertEncoded, certEncoded, 0, certEncoded.Length); 1154Marshal.Copy((IntPtr)(pThisResultData->identifierData), retVal, 0, retVal.Length); 1187Marshal.Copy((IntPtr)(&pThisResultData->identifierData->hashAlgorithm), retVal, 0, retVal.Length);
net\System\Net\HttpListenerResponse.cs (14)
213for (int i = 0; i < s_NoResponseBody.Length; i++) { 360ContentLength64 = responseEntity.Length; 365m_ResponseStream.Write(responseEntity, 0, responseEntity.Length); 379m_ResponseStream.BeginWrite(responseEntity, 0, responseEntity.Length, new AsyncCallback(NonBlockingCloseCallback), null); 526m_NativeResponse.ReasonLength = (ushort)statusDescriptionBytes.Length; 527WebHeaderCollection.HeaderEncoding.GetBytes(StatusDescription, 0, statusDescriptionBytes.Length, statusDescriptionBytes, 0); 781numUnknownHeaders += headerValues.Length; 816for(int headerValueIndex = 0; headerValueIndex < headerValues.Length; headerValueIndex++) 820unknownHeaders[headers.UnknownHeaderCount].NameLength = (ushort)bytes.Length; 821WebHeaderCollection.HeaderEncoding.GetBytes(headerName, 0, bytes.Length, bytes, 0); 829unknownHeaders[headers.UnknownHeaderCount].RawValueLength = (ushort)bytes.Length; 830WebHeaderCollection.HeaderEncoding.GetBytes(headerValue, 0, bytes.Length, bytes, 0); 843pKnownHeaders[lookup].RawValueLength = (ushort)bytes.Length; 844WebHeaderCollection.HeaderEncoding.GetBytes(headerValue, 0, bytes.Length, bytes, 0);
net\System\Net\HttpListenerTimeoutManager.cs (3)
37Debug.Assert(configTimeouts.Length == (timeouts.Length + 1)); 40for (int i = 0; i < timeouts.Length; i++)
net\System\Net\HttpStatusDescription.cs (1)
99if (j < httpStatusDescriptions[i].Length)
net\System\Net\HttpWebRequest.cs (5)
5096Buffer.BlockCopy(HttpBytes, 0, WriteBuffer, offset, HttpBytes.Length); 5097offset += HttpBytes.Length; 6150int maxBytesToBuffer = (HttpWebRequest.DefaultMaximumErrorResponseLength == -1)?buffer.Length:HttpWebRequest.DefaultMaximumErrorResponseLength*1024; 6151while ((bytesTransferred = stream.Read(buffer, 0, Math.Min(buffer.Length, maxBytesToBuffer))) > 0) 6425Debug.Assert((outputData != null) && (outputData.Length == sizeof(ControlChannelTriggerStatus)),
net\System\Net\HttpWebResponse.cs (8)
750if (offset<0 || offset>buffer.Length) { 753if (size<0 || size>buffer.Length-offset) { 800if (offset<0 || offset>buffer.Length) { 803if (size<0 || size>buffer.Length-offset) { 856if (offset<0 || offset>buffer.Length) { 859if (size<0 || size>buffer.Length-offset) { 906if (offset<0 || offset>buffer.Length) { 909if (size<0 || size>buffer.Length-offset) {
net\System\Net\Internal.cs (13)
274for (int i = 0; i < localAddresses.Length; i++) 825if ( stringArray == null || stringArray.Length == 0 ) { 939|| segment.Count > (segment.Array.Length - segment.Offset)) { 1463GlobalLog.Assert(offset >= 0 && offset <= (data == null ? 0 : data.Length), "SecurityBuffer::.ctor", "'offset' out of range. [" + offset + "]"); 1464GlobalLog.Assert(size >= 0 && size <= (data == null ? 0 : data.Length - offset), "SecurityBuffer::.ctor", "'size' out of range. [" + size + "]"); 1466this.offset = data == null || offset < 0 ? 0 : Math.Min(offset, data.Length); 1467this.size = data == null || size < 0 ? 0 : Math.Min(size, data.Length - this.offset); 1473this.size = data == null ? 0 : data.Length; 2139if (certificateProblems.Length == 0) 2252for (int index = _Index ;index < _UserBuffers.Length; ++index) 2277for ( ;_Index < _UserBuffers.Length; ++_Index) 2299if (firstBufferConsumed == 0 && curIndex == 0 && _Index == _UserBuffers.Length) 2305if (_RealBuffers == null || _RealBuffers.Length != buffersCount)
net\System\Net\IPAddress.cs (4)
80if(address.Length != IPv6AddressBytes){ 118if (address.Length != IPv4AddressBytes && address.Length != IPv6AddressBytes) 123if (address.Length == IPv4AddressBytes)
net\System\Net\Logging.cs (3)
588if (offset > buffer.Length) { 598if ((length < 0) || (length > buffer.Length - offset)) { 599length = buffer.Length - offset;
net\System\Net\mail\Base64Stream.cs (8)
107if (offset < 0 || offset > buffer.Length) 110if (offset + count > buffer.Length) 123if (offset < 0 || offset > buffer.Length) 126if (offset + count > buffer.Length) 370if (offset < 0 || offset > buffer.Length) 373if (offset + count > buffer.Length) 400if (offset < 0 || offset > buffer.Length) 403if (offset + count > buffer.Length)
net\System\Net\mail\BufferBuilder.cs (6)
28if (count > this.buffer.Length - this.offset) 30byte[] newBuffer = new byte[((buffer.Length * 2)>(buffer.Length + count))?(buffer.Length*2):(buffer.Length + count)]; 44Append(value, 0, value.Length);
net\System\Net\mail\BufferedReadStream.cs (5)
128if (this.storedBuffer == null || this.storedBuffer.Length < count) 143else if (count <= this.storedBuffer.Length - this.storedLength + this.storedOffset) 173if (this.storedBuffer == null || this.storedBuffer.Length < count) 184if (count <= this.storedBuffer.Length - this.storedLength) 191else if (count <= this.storedBuffer.Length - this.storedLength + this.storedOffset)
net\System\Net\mail\EightBitStream.cs (5)
73if (offset < 0 || offset >= buffer.Length) 76if (offset + count > buffer.Length) 110if (offset < 0 || offset >= buffer.Length) 113if (offset + count > buffer.Length) 135for (int i = offset; (i < offset + count) && (i < buffer.Length); i++)
net\System\Net\mail\MailAddress.cs (1)
234encoder.EncodeBytes(buffer, 0, buffer.Length);
net\System\Net\mail\MailBnfHelper.cs (1)
170if (data[offset] > Ftext.Length || !Ftext[data[offset]])
net\System\Net\mail\MailHeaderInfo.cs (1)
123for(int i = 0; i < m_HeaderInfo.Length; i++) {
net\System\Net\mail\Message.cs (1)
475for (int j = 0; j < values.Length; j++) {
net\System\Net\mail\MimeBasePart.cs (4)
48stream.EncodeBytes(buffer, 0, buffer.Length); 70if ((subStrings.Length != 5 || subStrings[0] != "=" || subStrings[4] != "=")) { 82newLength = s.DecodeBytes(buffer, 0, buffer.Length); 100if ((subStrings.Length < 5 || subStrings[0] != "=" || subStrings[4] != "=")) {
net\System\Net\mail\MimePart.cs (2)
207IAsyncResult readResult = Stream.BeginRead(context.buffer, 0, context.buffer.Length, readCallback, context); 238IAsyncResult readResult = Stream.BeginRead(context.buffer, 0, context.buffer.Length,readCallback, context);
net\System\Net\mail\QEncodedStream.cs (4)
87if (offset < 0 || offset > buffer.Length) 90if (offset + count > buffer.Length) 321if (offset < 0 || offset > buffer.Length) 324if (offset + count > buffer.Length)
net\System\Net\mail\QuotedPrintableStream.cs (9)
110if (offset < 0 || offset > buffer.Length) 113if (offset + count > buffer.Length) 253if (WriteState.Buffer.Length - WriteState.Length < sizeOfSoftCRLF) 266if (WriteState.Buffer.Length - WriteState.Length < (encodeCRLF ? sizeOfEncodedCRLF : sizeOfNonEncodedCRLF)) 282if (WriteState.Buffer.Length - WriteState.Length < sizeOfSoftCRLF) 294if (WriteState.Buffer.Length - WriteState.Length < 1) 301if (WriteState.Buffer.Length - WriteState.Length < sizeOfEncodedChar) 354if (offset < 0 || offset > buffer.Length) 357if (offset + count > buffer.Length)
net\System\Net\mail\SmtpCommands.cs (5)
202if (lines == null || lines.Length == 0) 206System.Diagnostics.Debug.Assert(lines.Length == 1, "Did not expect more than one line response for auth command"); 368if (lines == null || lines.Length == 0) 380string[] extensions = new string[lines.Length-1]; 381for (int i = 1; i < lines.Length; i++)
net\System\Net\mail\smtpconnection.cs (2)
426for (int i = 0; i < authenticationModules.Length; i++) 972while (++currentModule < connection.authenticationModules.Length)
net\System\Net\mail\SmtpFailedRecipientsException.cs (2)
42base(message, innerExceptions != null && innerExceptions.Length > 0 ? innerExceptions[0].FailedRecipient : null, 43innerExceptions != null && innerExceptions.Length > 0 ? innerExceptions[0] : null)
net\System\Net\mail\SmtpNegotiateAuthenticationModule.cs (1)
135len = clientContext.VerifySignature(input, 0, input.Length);
net\System\Net\mail\SmtpReplyReaderFactory.cs (5)
80while (0 != Read(caller, byteBuffer, 0, byteBuffer.Length)); 95if(info != null && info.Length >0){ 293if(info != null && info.Length >0){ 327read = bufferedStream.Read(byteBuffer, 0, byteBuffer.Length); 423IAsyncResult result = parent.bufferedStream.BeginRead(parent.byteBuffer, 0, parent.byteBuffer.Length, readCallback, this);
net\System\Net\mail\SmtpTransport.cs (1)
44this.Write(SmtpCommands.Quit, 0, SmtpCommands.Quit.Length);
net\System\Net\mail\WriteStateInfoBase.cs (8)
45return _footer.Length; 93int newsize = Buffer.Length; 99if (newsize > Buffer.Length) 118this.EnsureSpaceInBuffer(bytes.Length); 120this._currentLineLength += bytes.Length; 121this._currentBufferUsed += bytes.Length; 143if (this.Header != null && this.Header.Length != 0) 151if (this.Footer != null && this.Footer.Length != 0)
net\System\Net\NetworkInformation\PhysicalAddress.cs (8)
29int size = address.Length & ~3; 37if ((address.Length & 3) != 0) { 42for (; i < address.Length; ++i) { 57if (this.address.Length != address.address.Length) { 60for (int i = 0; i < address.address.Length; i++) { 89byte[] tmp = new byte[address.Length]; 90Buffer.BlockCopy(address,0,tmp,0,address.Length);
net\System\Net\NetworkInformation\ping.cs (10)
311if (buffer.Length > MaxBufferSize ) { 407if (buffer.Length > MaxBufferSize ) { 443if (buffer.Length > MaxBufferSize ) { 629sendSize = buffer.Length; 675error = (int)UnsafeNetInfoNativeMethods.IcmpSendEcho2 (handlePingV4, pingEvent.SafeWaitHandle, IntPtr.Zero, IntPtr.Zero, (uint)address.m_Address, requestBuffer, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout); 678error = (int)UnsafeNetInfoNativeMethods.IcmpSendEcho2 (handlePingV4, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, (uint)address.m_Address, requestBuffer, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout); 686error = (int)UnsafeNetInfoNativeMethods.Icmp6SendEcho2 (handlePingV6, pingEvent.SafeWaitHandle, IntPtr.Zero, IntPtr.Zero, sourceAddr, remoteAddr.m_Buffer, requestBuffer, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout); 689error = (int)UnsafeNetInfoNativeMethods.Icmp6SendEcho2 (handlePingV6, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, sourceAddr, remoteAddr.m_Buffer, requestBuffer, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout); 755requestBuffer = SafeLocalFree.LocalAlloc(buffer.Length); 757for (int i = 0; i < buffer.Length; ++i)
net\System\Net\NetworkInformation\SystemIPGlobalProperties.cs (1)
444for (int i = 0; i < interfaces.Length; ++i) {
net\System\Net\NetworkInformation\SystemIPv6InterfaceProperties.cs (1)
37if ((scopeLevel < 0) || ((int)scopeLevel >= zoneIndices.Length)) {
net\System\Net\NetworkInformation\SystemUnicastIPAddressInformation.cs (1)
161Contract.Assert(prefixLength < (addressBytes.Length * 8));
net\System\Net\SecureProtocols\_NegoState.cs (6)
511for (int i = message.Length - 1; i >= 0; --i) 527for (int i = message.Length-1; i >= 0; --i) 545for (int i = message.Length-1; i >= 0; --i) 645if (message.Length >= 8) // sizeof(long) 813for (int i = message.Length-1; i >= 0; --i) 820if (message != null && message.Length == 0) {
net\System\Net\SecureProtocols\_NegoStream.cs (5)
91if (InternalBuffer == null || InternalBuffer.Length < bytes) 116if (count > buffer.Length-offset) 271asyncRequest.SetNextRequest(_ReadHeader, 0, _ReadHeader.Length, _ReadCallback); 281readBytes = _FrameReader.ReadPacket(_ReadHeader, 0, _ReadHeader.Length); 299GlobalLog.Assert(readBytes == _ReadHeader.Length, "NegoStream::ProcessHeader()|Frame size must be 4 but received {0} bytes.", readBytes);
net\System\Net\SecureProtocols\_SslState.cs (7)
665StartSendBlob(buffer, (buffer == null? 0: buffer.Length), asyncRequest); 765_Framing = DetectFraming(message.Payload, message.Payload.Length); 840ProcessReceivedBlob(buffer, buffer.Length, asyncRequest); 1336return InnerStream.BeginWrite(message.Payload, 0, message.Payload.Length, asyncCallback, asyncState); 1441if (buffer == null || buffer.Length < size) { 1554GlobalLog.Assert((bytes != null && bytes.Length > 0), "SslState::DetectFraming()|Header buffer is not allocated will boom shortly."); 1697ProcessReceivedBlob(asyncRequest.Buffer, asyncRequest.Buffer == null? 0: asyncRequest.Buffer.Length, asyncRequest);
net\System\Net\SecureProtocols\_SslStream.cs (5)
261if (_InternalBuffer == null || _InternalBuffer.Length < addSize + curOffset) 314if (count > buffer.Length-offset) 488arrayList = new List<BufferOffsetSize>(buffers.Length * (buffer.Size/chunkBytes+1)); 532BufferOffsetSize[] result = new BufferOffsetSize[buffers.Length+1]; 533Array.Copy(buffers, 0, result, 1, buffers.Length);
net\System\Net\SecureProtocols\SslStream.cs (1)
506_SslState.SecureStream.Write(buffer, 0, buffer.Length);
net\System\Net\ServicePoint.cs (11)
1393if (addresses == null || addresses.Length == 0) 1407for (; i < addresses.Length; i++) 1494if (currentIndex >= addresses.Length) { 1636if (ipHostEntry!=null && ipHostEntry.AddressList!=null && ipHostEntry.AddressList.Length>0) { 1647if (m_IPAddressInfoList!=null && m_IPAddressInfoList.Length > 0) { 1655if (m_CurrentAddressInfoIndex >= m_IPAddressInfoList.Length) { 1698GlobalLog.Print("IPHostInformation::CheckAddressList(" + addressList.Length + ")"); 1723for (i = 0; i < addressList.Length; i++) 1735for (k = 0; k < localAddresses.Length; k++) 1745if (k < localAddresses.Length) 1754return i == addressList.Length;
net\System\Net\SocketAddress.cs (7)
158for (int i = 0; i < addressBytes.Length; i++) { 181for (int i = 0; i < address.Length; i++) { 220m_Buffer[m_Buffer.Length-IntPtr.Size] = unchecked((byte)(m_Size)); 221m_Buffer[m_Buffer.Length-IntPtr.Size+1] = unchecked((byte)(m_Size >> 8)); 222m_Buffer[m_Buffer.Length-IntPtr.Size+2] = unchecked((byte)(m_Size >> 16)); 223m_Buffer[m_Buffer.Length-IntPtr.Size+3] = unchecked((byte)(m_Size >> 24)); 230return m_Buffer.Length-IntPtr.Size;
net\System\Net\SocketPermission.cs (11)
903for (int i = 0; i < address.Length; ++i) { 911for (int i = 0; i < address.Length; ++i) { 912for (int j = 0; j < e.address.Length; ++j) { 927if ((strPieces.Length != 4) || (wcPieces.Length != 4)) { 1104if ((strPieces.Length != 4) || (wcPieces.Length != 4)) { 1132for (int i = 0; i < E.address.Length; ++i) { 1140for (int i = 0; i < address.Length; ++i) { 1160for (int i = 0; commonName == null && i < address.Length; i++) { 1161for (int k = 0; k < E.address.Length; k++) {
net\System\Net\Sockets\_AcceptOverlappedAsyncResult.cs (3)
70m_Buffer.Length - (m_AddressBufferLength * 2), 143Logging.Dump(Logging.Sockets, m_ListenSocket, "PostCompletion", pinnedBuffer, (int)Math.Min(size, (long)m_Buffer.Length)); 146Logging.Dump(Logging.Sockets, m_ListenSocket, "PostCompletion", pinnedBuffer, (int)m_Buffer.Length);
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (9)
130if (objectsToPinArray != null && objectsToPinArray.Length == 0) 134if (objectsToPinArray != null && objectsToPinArray.Length == m_Cache.PinnedObjectsArray.Length) 137for (int i = 0; i < objectsToPinArray.Length; i++) 255m_GCHandles = new GCHandle[objectsArray.Length]; 256for (int i=0; i<objectsArray.Length; i++) { 637for (int i = 0; i < gcHandles.Length; i++) 708if (pinnedObjectsArray != null && pinnedObjectsArray.Length == 0) 711if (pinnedObjectsArray != null && pinnedObjectsArray.Length == 0)
net\System\Net\Sockets\_MultipleConnectAsync.cs (2)
389if (nextAddress >= addressList.Length) 442if (nextAddress >= addressList.Length)
net\System\Net\Sockets\_OverlappedAsyncResult.cs (4)
115m_WSABuffers = new WSABuffer[buffers.Length]; 117object[] objectsToPin = new object[buffers.Length]; 118for (int i = 0; i < buffers.Length; i++) 124for (int i = 0; i < buffers.Length; i++)
net\System\Net\Sockets\_ReceiveMessageOverlappedAsyncResult.cs (3)
125m_Message->controlBuffer.Length = m_ControlBuffer.Length; 142if (m_ControlBuffer.Length == s_ControlDataSize) { 151else if (m_ControlBuffer.Length == s_ControlDataIPv6Size){
net\System\Net\Sockets\_TransmitFileOverlappedAsyncResult.cs (8)
62if (preBuffer != null && preBuffer.Length>0) 65if (postBuffer != null && postBuffer.Length>0) 78if (preBuffer != null && preBuffer.Length>0) { 79m_buffers.preBufferLength = preBuffer.Length; 83if (postBuffer != null && postBuffer.Length>0) { 84m_buffers.postBufferLength = postBuffer.Length; 97if (preBuffer != null && preBuffer.Length > 0) 102if (postBuffer != null && postBuffer.Length > 0)
net\System\Net\Sockets\NetworkStream.cs (8)
499if (offset<0 || offset>buffer.Length) { 502if (size<0 || size>buffer.Length-offset) { 573if (offset<0 || offset>buffer.Length) { 576if (size<0 || size>buffer.Length-offset) { 733if (offset<0 || offset>buffer.Length) { 736if (size<0 || size>buffer.Length-offset) { 918if (offset<0 || offset>buffer.Length) { 921if (size<0 || size>buffer.Length-offset) {
net\System\Net\Sockets\Socket.cs (82)
177if(socketInformation.ProtocolInformation == null || socketInformation.ProtocolInformation.Length < protocolInformationSize){ 1094if (addresses.Length == 0) { 1275return Send(buffer, 0, buffer!=null ? buffer.Length : 0, socketFlags); 1281return Send(buffer, 0, buffer!=null ? buffer.Length : 0, SocketFlags.None); 1366for (int i = 0; i < objectsToPin.Length; ++i) 1530if (offset<0 || offset>buffer.Length) { 1533if (size<0 || size>buffer.Length-offset) { 1545if (buffer.Length == 0) 1612if (offset<0 || offset>buffer.Length) { 1615if (size<0 || size>buffer.Length-offset) { 1630if (buffer.Length == 0) 1704return SendTo(buffer, 0, buffer!=null ? buffer.Length : 0, socketFlags, remoteEP); 1710return SendTo(buffer, 0, buffer!=null ? buffer.Length : 0, SocketFlags.None, remoteEP); 1724return Receive(buffer, 0, buffer!=null ? buffer.Length : 0, socketFlags); 1730return Receive(buffer, 0, buffer!=null ? buffer.Length : 0, SocketFlags.None); 1760if (offset<0 || offset>buffer.Length) { 1763if (size<0 || size>buffer.Length-offset) { 1775if (buffer.Length == 0) 1901for (int i = 0; i < objectsToPin.Length; ++i) 1970if (offset<0 || offset>buffer.Length) { 1973if (size<0 || size>buffer.Length-offset) { 2077if (offset<0 || offset>buffer.Length) { 2080if (size<0 || size>buffer.Length-offset) { 2101if (buffer.Length == 0) 2171return ReceiveFrom(buffer, 0, buffer!=null ? buffer.Length : 0, socketFlags, ref remoteEP); 2177return ReceiveFrom(buffer, 0, buffer!=null ? buffer.Length : 0, SocketFlags.None, ref remoteEP); 2201optionInValue!=null ? optionInValue.Length : 0, 2203optionOutValue!=null ? optionOutValue.Length : 0, 2328optionValue != null ? optionValue.Length : 0); 2467int optionLength = optionValue!=null ? optionValue.Length : 0; 3154if (addresses.Length == 0) { 3451if (offset < 0 || offset > buffer.Length) 3455if (size < 0 || size > buffer.Length - offset) 3760asyncResult.m_WSABuffers.Length, 3982if (offset<0 || offset>buffer.Length) { 3985if (size<0 || size>buffer.Length-offset) { 4206if (offset<0 || offset>buffer.Length) { 4209if (size<0 || size>buffer.Length-offset) { 4388asyncResult.m_WSABuffers.Length, 4548if (offset<0 || offset>buffer.Length) { 4551if (size<0 || size>buffer.Length-offset) { 4787if (offset<0 || offset>buffer.Length) { 4790if (size<0 || size>buffer.Length-offset) { 6988GlobalLog.Print("Socket#" + ValidationHelper.HashString(this) + "::MultipleSend() buffers.Length:" + buffers.Length.ToString()); 6990WSABuffer[] WSABuffers = new WSABuffer[buffers.Length]; 6996objectsToPin = new GCHandle[buffers.Length]; 6997for (int i = 0; i < buffers.Length; ++i) 7008WSABuffers.Length, 7014GlobalLog.Print("Socket#" + ValidationHelper.HashString(this) + "::MultipleSend() UnsafeNclNativeMethods.OSSOCK.WSASend returns:" + errorCode.ToString() + " size:" + buffers.Length.ToString()); 7019for (int i = 0; i < objectsToPin.Length; ++i) 7083if (addresses != null && index > 0 && index < addresses.Length) { 7178if (++context.index >= context.addresses.Length) 7222GlobalLog.Print("Socket#" + ValidationHelper.HashString(this) + "::DoBeginMultipleSend() buffers.Length:" + buffers.Length.ToString()); 7238asyncResult.m_WSABuffers.Length, 7247GlobalLog.Print("Socket#" + ValidationHelper.HashString(this) + "::BeginMultipleSend() UnsafeNclNativeMethods.OSSOCK.WSASend returns:" + errorCode.ToString() + " size:" + buffers.Length.ToString() + " returning AsyncResult:" + ValidationHelper.HashString(asyncResult)); 8007e.m_WSABufferArray.Length, 8097e.m_WSABufferArray.Length, 8249e.m_WSABufferArray.Length, 8309if (e.m_SendPacketsDescriptor.Length > 0) { 8314e.m_SendPacketsDescriptor.Length, 8401e.m_WSABufferArray.Length, 8507this(buffer, 0, (buffer != null ? buffer.Length : 0), false) { } 8516if (offset < 0 || offset > buffer.Length) { 8519if (count < 0 || count > (buffer.Length - offset)) { 8892if (offset < 0 || offset > buffer.Length) { 8895if (count < 0 || count > (buffer.Length - offset)) { 9082if(m_AcceptBuffer == null || m_AcceptBuffer.Length < m_AcceptAddressBufferCount) { 9195if(ipv4 && (m_ControlBuffer == null || m_ControlBuffer.Length != s_ControlDataSize)) { 9200} else if(ipv6 && (m_ControlBuffer == null || m_ControlBuffer.Length != s_ControlDataIPv6Size)) { 9235pMessage->count = (uint)m_WSABufferArray.Length; 9239pMessage->controlBuffer.Length = m_ControlBuffer.Length; 9569if (m_ObjectsToPin == null || (m_ObjectsToPin.Length != tempList.Length)) { 9570m_ObjectsToPin = new object[tempList.Length]; 9575if (m_WSABufferArray == null || m_WSABufferArray.Length != tempList.Length) { 9580for (int i = 0; i < (tempList.Length); i++) { 9590m_WSABufferArray = new WSABuffer[tempList.Length]; 9600for(int i = 0; i < tempList.Length; i++) { 9623if(m_ObjectsToPin == null || (m_ObjectsToPin.Length != m_SendPacketsElementsBufferCount + 1)) { 9951if(m_ControlBuffer.Length == s_ControlDataSize) { 9959else if(m_ControlBuffer.Length == s_ControlDataIPv6Size) {
net\System\Net\Sockets\UDPClient.cs (7)
564for (;i<addresses.Length && addresses[i].AddressFamily != m_Family; i++); 566if (addresses.Length == 0 || i == addresses.Length) { 619if (bytes > datagram.Length || bytes < 0) { 656for (;i<addresses.Length && addresses[i].AddressFamily != m_Family; i++); 658if (addresses.Length == 0 || i == addresses.Length) {
net\System\Net\webclient.cs (25)
568m_ContentLength = data.Length; 643m_ContentLength = fs.Length + formHeaderBytes.Length + boundaryBytes.Length; 763m_ContentLength = buffer.Length; 1182for (int i=0; i<bufferArray.Length; i++) 1393Progress.BytesSent += bytesToWrite.Length; 1394WriteStream.BeginWrite(bytesToWrite, 0, bytesToWrite.Length, new AsyncCallback(UploadBitsWriteCallback), this); 1397WriteStream.Write(bytesToWrite, 0, bytesToWrite.Length); 1413bytesRead = ReadStream.Read(InnerBuffer, 0, (int)InnerBuffer.Length); 1423bytesToWriteLength = Footer.Length; 1436if (m_BufferWritePosition >= InnerBuffer.Length) { // This is the last chunk 1437bytesToWriteLength = InnerBuffer.Length - bufferOffset; 1442bytesToWriteLength = InnerBuffer.Length; 1559if (prefix == null || byteArray == null || prefix.Length > byteArray.Length) 1561for (int i = 0; i < prefix.Length; i++) 1626for (int i = 0; i < encodings.Length; i++) 1632bomLengthInData = preamble.Length; 1647bomLengthInData = preamble.Length; 1654return enc.GetString(data, bomLengthInData, data.Length - bomLengthInData); 1687return UrlEncodeBytesToBytesInternal(bytes, 0, bytes.Length, false); 2214m_ContentLength = requestData.Length; 2305m_ContentLength = data.Length; 2313chunkSize = (int)Math.Min((long)DefaultCopyBufferLength, data.Length); 2512chunkSize = (int)Math.Min((long)DefaultCopyBufferLength, buffer.Length);
net\System\Net\WebExceptionStatus.cs (1)
159if (statusInt >= s_Mapping.Length || statusInt < 0)
net\System\Net\WebHeaderCollection.cs (9)
223for (int i = 0; i < m_CommonHeaders.Length; i++) 797for (i = 0; i < Values.Length; i++) { 804if (TempValues.Length > 1) { 809ValueList.RemoveRange(i, Values.Length - i); 987m_CommonHeaders = new string[s_CommonHeaderNames.Length - 1]; // Minus one for the sentinel. 999for (int j = 0; j < values.Length; j++) { 1207if (buffer.Length < size) { 2121return m_Bytes.Length; 2134Array.Copy(m_Bytes, 0, destBytes, destByteIndex, m_Bytes.Length);
net\System\Net\WebSockets\ServerWebSocket.cs (1)
60m_Properties.Length,
net\System\Net\WebSockets\WebSocket.cs (1)
146if (validStates != null && validStates.Length > 0)
net\System\Net\WebSockets\WebSocketBase.cs (2)
2170Contract.Assert(blob.Length <= WebSocketHelpers.MaxControlFramePayloadLength, 2172ArraySegment<byte> closeBuffer = new ArraySegment<byte>(blob, 0, Math.Min(WebSocketHelpers.MaxControlFramePayloadLength, blob.Length));
net\System\Net\WebSockets\WebSocketBuffer.cs (3)
453if (dataBufferCount > dataBuffers.Length) 461int count = dataBuffers.Length; 609Contract.Assert(offset + count <= buffer.Length, "'offset + count' MUST NOT exceed 'buffer.Length'.");
net\System\Net\WebSockets\WebSocketConnectionStream.cs (2)
427int size = buffer.Length; 438size = buffer.Length;
net\System\Net\WebSockets\WebSocketHelpers.cs (6)
258for (int i = 0; i < requestProtocols.Length; i++) 296if (offset < 0 || offset > buffer.Length) 301if (count < 0 || count > (buffer.Length - offset)) 386while (i < chars.Length) 549if (arraySegment.Offset < 0 || arraySegment.Offset > arraySegment.Array.Length) 553if (arraySegment.Count < 0 || arraySegment.Count > (arraySegment.Array.Length - arraySegment.Offset))
net\System\Net\WebSockets\WebSocketProtocolComponent.cs (9)
386(uint)s_InitialClientRequestHeaders.Length, 421uint propertyCount = properties == null ? 0 : (uint)properties.Length; 455(uint)s_InitialClientRequestHeaders.Length, 504(uint)responseHeaders.Length, 521(properties != null && propertyCount == properties.Length), 555(uint)s_ServerFakeRequestHeaders.Length, 676(dataBuffers != null && dataBufferCount == dataBuffers.Length), 708(dataBufferCount <= dataBuffers.Length)); 861Contract.Assert(httpHeaders.Length == nativeHeaderCount);
net\System\Net\WebUtility.cs (5)
423if (0 == offset && bytes.Length == count) { 472return Encoding.UTF8.GetString(UrlEncode(bytes, 0, bytes.Length, false /* alwaysCreateNewReturnValue */)); 569if (decodedBytesCount < decodedBytes.Length) 689if (offset < 0 || offset > bytes.Length) 693if (count < 0 || offset + count > bytes.Length)
net\System\Net\X509CertificateCollection.cs (1)
43for (int i = 0; (i < value.Length); i = (i + 1)) {
net\System\URI.cs (1)
4717char[] dest1 = new char[dest.Length];
net\System\UriHelper.cs (13)
232if ((object) dest == null || dest.Length < destPos + (currentInputPos-prevInputPos) + charsToAdd) 412char[] newDest = new char[dest.Length + escapedReallocations*3]; 478char[] unescapedChars = new char[bytes.Length]; 517int encodedBytesLength = encodedBytes.Length; 538Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 562for (int l = 0; l < encodedBytes.Length; ++l) 564Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 571Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 575Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 583Debug.Assert(dest.Length > destOffset); 588Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 600Debug.Assert(dest.Length > destOffset, "Buffer overrun detected"); 614Debug.Assert(dest.Length > destOffset, "Buffer overrun detected");
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (4)
90if (components.Length < 2 || components.Length > 3) 111for (int i = 1; i < components.Length; i++) 116if (keyValuePair.Length != 2)
regex\system\text\regularexpressions\Regex.cs (3)
577result = new String[capslist.Length]; 579System.Array.Copy(capslist, 0, result, 0, capslist.Length); 654if (i >= 0 && i < capslist.Length)
regex\system\text\regularexpressions\RegexCharClass.cs (3)
659for (i = 0, iMax = _lcTable.Length; i < iMax; ) { 667if (i >= _lcTable.Length) 670for ( ; i < _lcTable.Length && (lc = _lcTable[i])._chMin <= chMax; i++) {
regex\system\text\regularexpressions\RegexCompiler.cs (10)
218for (int i=0; i<regexes.Length; i++) { 272if (_notes == null || _notecount >= _notes.Length) { 273BacktrackNote[] newnotes = new BacktrackNote[_notes == null ? 16 : _notes.Length * 2]; 994_labels = new Label[_codes.Length]; 995_goto = new int[_codes.Length]; 999for (codepos = 0; codepos < _codes.Length; codepos += RegexCode.OpcodeSize(_codes[codepos])) { 1022for (codepos = 0; codepos < _codes.Length; codepos += RegexCode.OpcodeSize(_codes[codepos])) { 3101for (int i=0; i<attribs.Length; i++) { 3251Ldc(tree._capslist.Length); 3255for (int i=0; i< tree._capslist.Length; i++) {
regex\system\text\regularexpressions\RegexFCD.cs (2)
227if (_intDepth >= _intStack.Length) { 257if (_fcDepth >= _fcStack.Length) {
regex\system\text\regularexpressions\RegexGroupCollection.cs (4)
90return _match._matchcount.Length; 130if (groupnum >= _match._matchcount.Length || groupnum < 0) 148_groups = new Group[_match._matchcount.Length - 1]; 149for (int i = 0; i < _groups.Length; i++) {
regex\system\text\regularexpressions\RegexInterpreter.cs (2)
73runtrackpos = runtrack.Length - newpos; 86return runtrack.Length - runtrackpos;
regex\system\text\regularexpressions\RegexMatch.cs (6)
108for (int i = 0; i < _matchcount.Length; i++) { 189return GroupToStringImpl(_matchcount.Length - 1); 212int numgroups = inner._matchcount.Length; 237if (capcount * 2 + 2 > _matches[cap].Length) { 294return cap < _matchcount.Length && _matchcount[cap] > 0 && _matches[cap][_matchcount[cap] * 2 - 1] != (-3 + 1); 338for (int cap = 0; cap < _matchcount.Length; cap++) {
regex\system\text\regularexpressions\RegexRunner.cs (19)
187runtrackpos = runtrack.Length; 188runstackpos = runstack.Length; 189runcrawlpos = runcrawl.Length; 313runtrackpos = runtrack.Length; 314runstackpos = runstack.Length; 315runcrawlpos = runcrawl.Length; 399newtrack = new int [runtrack.Length * 2]; 401System.Array.Copy(runtrack, 0, newtrack, runtrack.Length, runtrack.Length); 402runtrackpos += runtrack.Length; 413newstack = new int [runstack.Length * 2]; 415System.Array.Copy(runstack, 0, newstack, runstack.Length, runstack.Length); 416runstackpos += runstack.Length; 426newcrawl = new int [runcrawl.Length * 2]; 428System.Array.Copy(runcrawl, 0, newcrawl, runcrawl.Length, runcrawl.Length); 429runcrawlpos += runcrawl.Length; 454return runcrawl.Length - runcrawlpos;
regex\system\text\regularexpressions\RegexWriter.cs (4)
75if (_depth >= _intStack.Length) { 234if (tree._capnumlist == null || tree._captop == tree._capnumlist.Length) { 239capsize = tree._capnumlist.Length; 241for (int i = 0; i < tree._capnumlist.Length; i++)
security\system\security\Authentication\ExtendedProtection\ExtendedProtectionPolicy.cs (2)
95customChannelBinding = SafeLocalFreeChannelBinding.LocalAlloc(channelBindingData.Length); 96Marshal.Copy(channelBindingData, 0, customChannelBinding.DangerousGetHandle(), channelBindingData.Length);
security\system\security\cryptography\asnencodeddata.cs (3)
78if (m_rawData == null || m_rawData.Length == 0) 170if (index < 0 || index >= array.Length) 172if (index + this.Count > array.Length)
security\system\security\cryptography\bigint.cs (2)
274for (int index = 0; index < bytes.Length; index++) { 299for (int index = 0; index < bytes.Length; index++) {
security\system\security\cryptography\cryptoapi.cs (10)
2780Marshal.Copy(blob.pbData, data, 0, data.Length); 2844(uint) pbEncoded.Length, 2854(uint) pbEncoded.Length, 3144(uint) rawData.Length, 3156(uint) rawData.Length, 3194(uint) rawData.Length, 3206(uint) rawData.Length, 3506certBlob.cbData = (uint) ((byte[]) pvObject).Length; 3571certBlob.cbData = (uint) ((byte[]) pvObject).Length; 3644certBlob.cbData = (uint) pbData.Length;
security\system\security\cryptography\oid.cs (2)
187if (index < 0 || index >= array.Length) 189if (index + this.Count > array.Length)
security\system\security\cryptography\x509\x500Name.cs (2)
83nameBlob.cbData = (uint) encodedDistinguishedName.Length; 117if (m_rawData == null || m_rawData.Length == 0)
security\system\security\cryptography\x509\x509certificate2.cs (12)
173Marshal.Copy(decodedKeyValue.DangerousGetHandle(), decodedData, 0, decodedData.Length); 232Marshal.Copy(pDssParameters.p.pbData, p, 0, p.Length); 241Marshal.Copy(pDssParameters.q.pbData, q, 0, q.Length); 252Marshal.Copy(pDssParameters.g.pbData, g, 0, g.Length); 263Marshal.Copy(pDssPubKey.pbData, y, 0, y.Length); 846if (array1 == null || array2 == null || array1.Length != array2.Length || array1.Length <= s_publicKeyOffset) 848for (int index = s_publicKeyOffset; index < array1.Length; index++) { 976for (int i = 0; i < pAltName.Length; i++) { 980Marshal.Copy(extension.Value.pbData, rawData, 0, rawData.Length); 1154if (rawData == null || rawData.Length == 0)
security\system\security\cryptography\x509\x509certificate2collection.cs (16)
82for (; i<certificates.Length; i++) { 142for (; i<certificates.Length; i++) { 310Marshal.Copy(pCertContext.pbCertEncoded, pbBlob, 0, pbBlob.Length); 331Marshal.Copy(pbEncoded.DangerousGetHandle(), pbBlob, 0, pbBlob.Length); 351Marshal.Copy(DataBlob.pbData, pbBlob, 0, pbBlob.Length); 381Marshal.Copy(DataBlob.pbData, pbBlob, 0, pbBlob.Length); 425HashBlob.cbData = (uint) hex.Length; 561for (uint index = 0; index < KeyUsages.Length; index++) { 745Marshal.Copy(pCertInfo.SerialNumber.pbData, hex, 0, hex.Length); 749if (serialNumber.Length != size) 752for (int index = 0; index < serialNumber.Length; index++) { 841Marshal.Copy(extension.Value.pbData, rawData, 0, rawData.Length); 861Marshal.Copy(extension.Value.pbData, rawData, 0, rawData.Length); 944Marshal.Copy(extension.Value.pbData, rawData, 0, rawData.Length); 1041if (subjectKeyIdentifier.Length != cbData) 1045Marshal.Copy(ptr.DangerousGetHandle(), hex, 0, hex.Length);
security\system\security\cryptography\x509\x509chain.cs (3)
310Debug.Assert(index < chainStatus.Length); 322Debug.Assert(index < chainStatus.Length); 331Debug.Assert(index == chainStatus.Length);
security\system\security\cryptography\x509\x509chainelement.cs (5)
81for (int index = 0; index < m_elements.Length; index++) { 90if (index >= m_elements.Length) 98return m_elements.Length; 117if (index < 0 || index >= array.Length) 119if (index + this.Count > array.Length)
security\system\security\cryptography\x509\x509extension.cs (19)
33Marshal.Copy(extension.Value.pbData, rawData, 0, rawData.Length); 457if (subjectKeyIdentifier.Length == 0) 464pSubjectKeyIdentifier.cbData = (uint) subjectKeyIdentifier.Length; 486X509Utils.AlignedLength((uint) encodedParameters.Length) + 487encodedKeyValue.Length); 493IntPtr pbPublicKey = new IntPtr((long) pbParameters + X509Utils.AlignedLength((uint) encodedParameters.Length)); 498Marshal.Copy(szObjId, 0, pszObjId, szObjId.Length); 499if (encodedParameters.Length > 0) { 500pPublicKeyInfo->Algorithm.Parameters.cbData = (uint) encodedParameters.Length; 502Marshal.Copy(encodedParameters, 0, pbParameters, encodedParameters.Length); 504pPublicKeyInfo->PublicKey.cbData = (uint) encodedKeyValue.Length; 506Marshal.Copy(encodedKeyValue, 0, pbPublicKey, encodedKeyValue.Length); 525uint cbData = (uint)buffer.Length; 571Array.Copy(buffer, buffer.Length - 8, identifier, 0, identifier.Length); 577if (buffer.Length > (int)cbData) { 579Array.Copy(buffer, 0, identifier, 0, identifier.Length); 676if (index < 0 || index >= array.Length) 678if (index + this.Count > array.Length)
security\system\security\cryptography\x509\x509utils.cs (10)
178return EncodeHexString(sArray, 0, (uint) sArray.Length); 259int index = hex.Length; 271SafeLocalAllocHandle pb = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new IntPtr(managed.Length)); 272Marshal.Copy(managed, 0, pb.DangerousGetHandle(), managed.Length); 296Marshal.Copy(unmanaged, array, 0, array.Length); 318SafeLocalAllocHandle pb = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new IntPtr(arr.Length)); 319Marshal.Copy(arr, 0, pb.DangerousGetHandle(), arr.Length); 329SafeLocalAllocHandle pb = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new IntPtr(arr.Length)); 330Marshal.Copy(arr, 0, pb.DangerousGetHandle(), arr.Length); 513Marshal.Copy(ansiOid, 0, pOid, ansiOid.Length);
services\io\system\io\PatternMatcher.cs (4)
299int newSize = currentMatches.Length * 2; 301Array.Copy(currentMatches, tmp, currentMatches.Length); 305Array.Copy(previousMatches, tmp, previousMatches.Length); 444int previousLength = previousMatches.Length;
services\monitoring\system\diagnosticts\AlphabeticalEnumConverter.cs (3)
31object[] names = new object[objValues.Length]; 32for (int i = 0; i < names.Length; i++) 34Array.Sort(names, objValues, 0, objValues.Length, System.Collections.Comparer.Default);
services\monitoring\system\diagnosticts\AsyncStreamReader.cs (2)
141stream.BeginRead(byteBuffer, 0 , byteBuffer.Length, new AsyncCallback(ReadBuffer), null); 195stream.BeginRead(byteBuffer, 0 , byteBuffer.Length, new AsyncCallback(ReadBuffer), null);
services\monitoring\system\diagnosticts\CounterCreationDataCollection.cs (1)
63for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
services\monitoring\system\diagnosticts\EventLog.cs (21)
520string[] newsources = new string[sources.Length + 1]; 521Array.Copy(sources, newsources, sources.Length); 522newsources[sources.Length] = source; 736ArrayList newsources = new ArrayList(sources.Length - 1); 738for (int i=0; i<sources.Length; i++) { 844for (int i = 0; i < logNames.Length; i++) { 895for (int i = 0; i < logNames.Length; i++) { 1009EventLog[] logs = new EventLog[logNames.Length]; 1010for (int i = 0; i < logNames.Length; i++) { 1019List<EventLog> logs = new List<EventLog>(logNames.Length); 1020for (int i = 0; i < logNames.Length; i++) { 1226if (insertionStrings.Length == 0) { 1266if (largestNumber > insertionStrings.Length) { 1268Array.Copy(insertionStrings, newStrings, insertionStrings.Length); 1269for (int i = insertionStrings.Length; i < newStrings.Length; i++) { 1288IntPtr[] addresses = new IntPtr[insertionStrings.Length]; 1289GCHandle[] handles = new GCHandle[insertionStrings.Length]; 1295if (insertionStrings.Length == 0) { 1300for (int i=0; i<handles.Length; i++) { 1326for (int i=0; i<handles.Length; i++) {
services\monitoring\system\diagnosticts\EventLogEntry.cs (4)
229for (int i = 0; i < strings.Length; i++) { 283while (i < strings.Length) { 368sid, 0, sid.Length); 524for (int i = 0; i < fileNames.Length; i++) {
services\monitoring\system\diagnosticts\EventLogEntryCollection.cs (1)
88Array.Copy(entries, 0, array, index, entries.Length);
services\monitoring\system\diagnosticts\EventLogInternal.cs (22)
894while (idx < entries.Length) { 897oldestEntry+idx, buf, buf.Length, out bytesRead, out minBytesNeeded); 916else if (minBytesNeeded > buf.Length) { 917Debug.WriteLineIf(CompModSwitches.EventLog.TraceVerbose, "Increasing buffer size from " + buf.Length.ToString(CultureInfo.InvariantCulture) + " to " + minBytesNeeded.ToString(CultureInfo.InvariantCulture) + " bytes"); 921oldestEntry+idx, buf, buf.Length, out bytesRead, out minBytesNeeded); 936while (sum < bytesRead && idx < entries.Length) { 942if (idx != entries.Length) { 1090cache, cache.Length, out bytesRead, out minBytesNeeded); 1109if (minBytesNeeded > cache.Length) { 1114cache, cache.Length, out bytesRead, out minBytesNeeded); 1444Debug.WriteLineIf(CompModSwitches.EventLog.TraceVerbose, "EventLog::StaticCompletionCallback: notifying " + interestedComponents.Length + " components."); 1446for (int i = 0; i < interestedComponents.Length; i++) { 1665strings = new string[values.Length]; 1666for (int i=0; i<values.Length; i++) { 1685if (strings.Length >= 256) 1688for (int i = 0; i < strings.Length; i++) { 1707IntPtr[] stringRoots = new IntPtr[strings.Length]; 1708GCHandle[] stringHandles = new GCHandle[strings.Length]; 1711for (int strIndex = 0; strIndex < strings.Length; strIndex++) { 1719sid, (short) strings.Length, rawData.Length, new HandleRef(this, stringsRootHandle.AddrOfPinnedObject()), rawData); 1727for (int i = 0; i < strings.Length; i++) {
services\monitoring\system\diagnosticts\EventLogPermission.cs (1)
51for (int index = 0; index < permissionAccessEntries.Length; ++index)
services\monitoring\system\diagnosticts\EventLogPermissionEntryCollection.cs (2)
20for (int index = 0; index < entries.Length; ++index) 41for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
services\monitoring\system\diagnosticts\EventLogTraceListener.cs (3)
146string[] strings = new string[args.Length]; 147for (int i=0; i<args.Length; i++) { 193for (int i=0; i< data.Length; i++) {
services\monitoring\system\diagnosticts\PerformanceCounterCategory.cs (6)
457if (instanceNames.Length == 1 && instanceNames[0].CompareTo(PerformanceCounterLib.SingleInstanceName) == 0) 467if (GetInstanceNames().Length != 0) 486PerformanceCounter[] counters = new PerformanceCounter[counterNames.Length]; 487for (int index = 0; index < counters.Length; index++) 512PerformanceCounterCategory[] categories = new PerformanceCounterCategory[categoryNames.Length]; 513for (int index = 0; index < categories.Length; index++)
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (20)
127for (int index2 = 0; index2 < newCategoryEntry.CounterIndexes.Length; ++ index2) { 140if (index3 < newCategoryEntry.CounterIndexes.Length) { 340for (int index = 0; index < entry.CounterIndexes.Length; ++ index) { 561if (categoryKey.GetValueNames().Length == 0) { 688if (categories.Length != 0 ) 806string[] counters = new string[entry.CounterIndexes.Length]; 807for (int index = 0; index < counters.Length; ++ index) { 817if (index2 < counters.Length) { 864for (int index = 0; index < entry.CounterIndexes.Length; ++ index) { 987if ((names == null) || (names.Length == 0)) { 1016stringTable = new Hashtable(names.Length/2); 1018for (int index = 0; index < (names.Length/2); ++ index) { 1354for (int index = 0; index < samples.Length; ++ index) { 1379for (int index = 0; index < samples.Length; ++ index) { 1393if (parentInstanceNames != null && perfInstance.ParentObjectInstance >= 0 && perfInstance.ParentObjectInstance < parentInstanceNames.Length - 1) 1415for (int index = 0; index < samples.Length; ++ index) 1459for (int index = 0; index < samples.Length; ++ index) { 1479for (int index = 0; index < this.entry.CounterIndexes.Length; ++ index) { 1508for (int index = 0; index < this.entry.CounterIndexes.Length; ++ index) { 1601for (int index = 0; index < keys.Length; ++ index) {
services\monitoring\system\diagnosticts\PerformanceCounterPermission.cs (1)
51for (int index = 0; index < permissionAccessEntries.Length; ++index)
services\monitoring\system\diagnosticts\PerformanceCounterPermissionEntryCollection.cs (2)
20for (int index = 0; index < entries.Length; ++index) 42for (int i = 0; ((i) < (value.Length)); i = ((i) + (1))) {
services\monitoring\system\diagnosticts\Process.cs (7)
558ProcessModule[] newModulesArray = new ProcessModule[moduleInfos.Length]; 559for (int i = 0; i < moduleInfos.Length; i++) { 1559for(int i = 0; i < procs.Length; i++) { 1596Process[] processes = new Process[processInfos.Length]; 1597for (int i = 0; i < processInfos.Length; i++) { 2775if (envBlock.Length > UInt16.MaxValue) 2776throw new InvalidOperationException(SR.GetString(SR.EnvironmentBlockTooLong, envBlock.Length));
services\monitoring\system\diagnosticts\ProcessManager.cs (21)
153if (processInfos.Length == 1) { 230for (int i = 0; i < processIds.Length; i++) 340int[] ids = new int[infos.Length]; 341for (int i = 0; i < infos.Length; i++) { 523int[] ids = new int[infos.Length]; 524for (int i = 0; i < infos.Length; i++) 535if (!NativeMethods.EnumProcesses(processIds, processIds.Length * 4, out size)) 537if (size == processIds.Length * 4) { 538processIds = new int[processIds.Length * 2]; 544Array.Copy(processIds, ids, ids.Length); 558if( moduleInfos.Length == 0) { 569Contract.Ensures(Contract.Result<ModuleInfo[]>().Length >= 1); 588enumResult = NativeMethods.EnumProcessModules(processHandle, moduleHandlesArrayHandle.AddrOfPinnedObject(), moduleHandles.Length * IntPtr.Size, ref moduleCount); 640enumResult = NativeMethods.EnumProcessModules(processHandle, moduleHandlesArrayHandle.AddrOfPinnedObject(), moduleHandles.Length * IntPtr.Size, ref moduleCount); 657if (moduleCount <= moduleHandles.Length) break; 658moduleHandles = new IntPtr[moduleHandles.Length * 2]; 771while (processInfos.Length == 0 && retryCount != 0) { 783if (processInfos.Length == 0) 891for (int i = 0; i < counters.Length; i++) { 950for (int i = 0; i < counters.Length; i++) { 1088bufferSize = buffer.Length * sizeof(long);
services\monitoring\system\diagnosticts\ProcessStartInfo.cs (1)
305for (int i = 0; i < names.Length; i++)
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (3)
656for (int i=0; i<counterNamesBytes.Length-1; i+=2) { 668for (int i=0; i<counterNames.Length; i++) 1646Marshal.Copy(tmp, 0, nativePointer, tmp.Length);
services\monitoring\system\diagnosticts\SharedUtils.cs (3)
275for (int i = 0; i < majorVersions.Length; i++) { 285if(splitVersion.Length != 2) { 351for (int i = 0; i < minorVersions.Length; i++) {
sys\system\collections\concurrent\BlockingCollection.cs (14)
1073for (int i = 0; i < collections.Length; i++) 1101List<WaitHandle> handlesList = new List<WaitHandle>(collections.Length + 1); // + 1 for the external token handle to be added 1102List<CancellationToken> tokensList = new List<CancellationToken>(collections.Length + 1); // + 1 for the external token 1109for (int i = 0; i < collections.Length; i++) 1120for (int i = 0; i < collections.Length; i++) 1218Debug.Assert((returnValue >= 0 && returnValue < collections.Length) 1368for (int i = 0; i < collections.Length; i++) 1454if (collections.Length != handles.Count - 1) // -1 because of the combined token handle 1456for (int i = 0; i < collections.Length; i++) 1624Array.Copy(collectionSnapShot, 0, array, index, collectionSnapShot.Length); 1728else if (collections.Length < 1) 1733else if ((!IsSTAThread && collections.Length > 63) || (IsSTAThread && collections.Length > 62)) 1740for (int i = 0; i < collections.Length; ++i)
sys\system\configuration\ApplicationSettingsBase.cs (5)
416for (int i = 0; i < attributes.Length; i ++) { 507for (int i = 0; i < properties.Length; i++) { 539for (int i = 0; i < _classAttributes.Length; i ++) { 717for (int i = 0; i < allProps.Length; i ++) { 719for (int j = 0; j < attributes.Length; j ++) {
sys\System\IO\compression\Crc32Helper.cs (1)
72&& (offset <= buffer.Length - length), "check the caller");
sys\System\IO\compression\DeflateInput.cs (1)
40Debug.Assert(startIndex + count <= buffer.Length, "Input buffer is in invalid state!");
sys\System\IO\compression\DeflaterZLib.cs (4)
138Contract.Assert(startIndex >= 0 && count >= 0 && count + startIndex <= inputBuffer.Length); 157Contract.Ensures(Contract.Result<int>() >= 0 && Contract.Result<int>() <= outputBuffer.Length); 182_zlibStream.AvailOut = (uint) outputBuffer.Length; 185bytesRead = outputBuffer.Length - (int) _zlibStream.AvailOut;
sys\System\IO\compression\DeflateStream.cs (6)
331int bytes = _stream.Read(buffer, 0, buffer.Length); 353if (array.Length - offset < count) 414_stream.BeginRead(buffer, 0, buffer.Length, m_CallBack, userResult); 453_stream.BeginRead(buffer, 0, buffer.Length, m_CallBack, outerResult); 549_stream.Write(b, 0, b.Length); 597_stream.Write(b, 0, b.Length);
sys\System\IO\compression\FastEncoder.cs (1)
176output.WriteBytes(FastEncoderStatics.FastEncoderTreeStructureData, 0, FastEncoderStatics.FastEncoderTreeStructureData.Length);
sys\System\IO\compression\HuffmanTree.cs (9)
61Debug.Assert( codeLengths.Length == MaxLiteralTreeElements 62|| codeLengths.Length == MaxDistTreeElements 63|| codeLengths.Length == NumberOfCodeLengthTreeElements, 67if (codeLengthArray.Length == MaxLiteralTreeElements) { // bits for Literal/Length tree table 124for (int i = 0; i < codeLengthArray.Length; i++) { 145left = new short[2* codeLengthArray.Length]; 146right = new short[2* codeLengthArray.Length]; 147short avail = (short)codeLengthArray.Length; 149for (int ch = 0; ch < codeLengthArray.Length; ch++) {
sys\System\IO\compression\Inflater.cs (3)
410if( symbol < 0 || symbol >= extraLengthBits.Length ) { 429if( length < 0 || length >= lengthBase.Length ) { 550for (int i = codeLengthCodeCount; i < codeOrder.Length; i++) {
sys\System\IO\compression\InputBuffer.cs (2)
121Debug.Assert( offset <= output.Length - length, ""); 164Debug.Assert( offset <= buffer.Length - length, "");
sys\System\IO\compression\OutputBuffer.cs (2)
25return byteBuffer.Length - pos; 41Debug.Assert(byteBuffer.Length - pos >= 2, "No enough space in output buffer!");
sys\system\io\ports\SerialPort.cs (27)
687portNames = new String[deviceNames.Length]; 689for (int i=0; i<deviceNames.Length; i++) 863if (buffer.Length - offset < count) 999if (buffer.Length - offset < count) 1011Debug.Assert(buffer.Length - offset >= count, "invalid offset/count!"); 1138Debug.Assert((buffer.Length - offset - totalCharsFound) >= currentCharsFound, "internal buffer to read one full unicode char sequence is not sufficient!"); 1188internalSerialStream.Read(bytesReceived, CachedBytesToRead, bytesReceived.Length - (CachedBytesToRead)); // get everything 1196int numCharsReceived = localDecoder.GetCharCount(bytesReceived, 0, bytesReceived.Length); 1197int lastFullCharIndex = bytesReceived.Length; 1201Buffer.BlockCopy(bytesReceived, 0, inBuffer, 0, bytesReceived.Length); // put it all back! 1204readLen = bytesReceived.Length; 1215readLen = bytesReceived.Length - (lastFullCharIndex + 1); 1217Buffer.BlockCopy(bytesReceived, lastFullCharIndex + 1, inBuffer, 0, bytesReceived.Length - (lastFullCharIndex + 1)); 1310if (readBuffer.Length > 0) { 1320MaybeResizeBuffer(readBuffer.Length + bytesToSave); 1322Buffer.BlockCopy(readBuffer, 0, inBuffer, readLen, readBuffer.Length); 1323readLen += readBuffer.Length; 1347internalSerialStream.Write(bytesToWrite, 0, bytesToWrite.Length, writeTimeout); 1361if (buffer.Length - offset < count) 1364if (buffer.Length == 0) return; 1367Write(byteArray, 0, byteArray.Length); 1382if (buffer.Length - offset < count) 1384if (buffer.Length == 0) return; 1468if (additionalByteLength + readLen <= inBuffer.Length) 1472if (CachedBytesToRead + additionalByteLength <= inBuffer.Length / 2) 1476int newLength = Math.Max(CachedBytesToRead + additionalByteLength, inBuffer.Length * 2); 1478Debug.Assert(inBuffer.Length >= readLen, "ResizeBuffer - readLen > inBuffer.Length");
sys\system\io\ports\SerialStream.cs (8)
877if (array.Length - offset < numBytes) 911if (array.Length - offset < numBytes) 1089if (array.Length - offset < count) 1179if (array.Length - offset < count) 1538if (bytes.Length - offset < count) 1542if (bytes.Length==0) 1588if (bytes.Length - offset < count) 1592if (bytes.Length==0)
sys\system\Media\SoundPlayer.cs (5)
539if (streamData.Length < currentPos + blockSize) { 540byte[] newData = new byte[streamData.Length * 2]; 541Array.Copy(streamData, newData, streamData.Length); 628if (data.Length < 12) 639int len = data.Length;
sys\system\runtime\versioning\FrameworkName.cs (4)
140if (components.Length < 2 || components.Length > 3) { 159for (int i = 1; i < components.Length; i++) { 163if (keyValuePair.Length != 2) {
System.Activities (167)
Microsoft\VisualBasic\Activities\VisualBasicDesignerHelper.cs (3)
353for (int i = 1; i < typeArgs.Length; ++i) 376for (int i = 0; i < interfaces.Length; ++i) 539for (int i = 1; i < typeArgs.Length; ++i)
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (2)
1461for (int i = 0; i < interfaces.Length; ++i) 1478for (int i = 1; i < typeArgs.Length; ++i)
Microsoft\VisualBasic\Activities\XamlIntegration\VisualBasicExpressionConverter.cs (2)
244for (int i = 0; i < assemblies.Length; ++i) 280for (int i = 0; i < attributes.Length; ++i)
System\Activities\ActivityUtilities.cs (4)
240if (genericArguments.Length == 1) 263if (genericArguments.Length == 1) 504for (int i = 0; i < genericArguments.Length - 1; i++) 508stringBuilder.AppendFormat("{0}>", GetDisplayName(genericArguments[genericArguments.Length - 1]));
System\Activities\Debugger\DebugInfo.cs (4)
176if (this.arguments == null || this.arguments.Length == 0) 186if (this.arguments.Length > 0) 196if (this.locals == null || this.locals.Length == 0) 248if (this.locals.Length > 0)
System\Activities\Debugger\DebugManager.cs (1)
261if ((objects == null || objects.Length == 0))
System\Activities\Debugger\SourceLocationProvider.cs (2)
149fs.Read(buffer, 0, buffer.Length); 223int idOffset = rootIdArray[rootIdArray.Length - 1] - 1;
System\Activities\Debugger\State.cs (1)
151for (int i = 0; i < chars.Length; i++)
System\Activities\Debugger\StateManager.cs (1)
115return DefineState(location, name, debugInfoDescriptions, debugInfoDescriptions.Length);
System\Activities\Debugger\Symbol\ActivitySymbol.cs (2)
51SymbolHelper.WriteEncodedInt32(writer, this.QualifiedId.Length); 52writer.Write(this.QualifiedId, 0, this.QualifiedId.Length);
System\Activities\Debugger\Symbol\SymbolHelper.cs (3)
140return checksumToValidate.Length == Md5HashLength; 144return checksumToValidate.Length == Sha1HashLength; 148return checksumToValidate.Length == Sha256HashLength;
System\Activities\Debugger\Symbol\WorkflowSymbol.cs (4)
71int payloadBytesCount = data.Length - sizeof(EncodingFormat); 107SymbolHelper.WriteEncodedInt32(writer, this.checksum.Length); 181int numSymbols = s.Length - 1; 186Fx.Assert(symbolSegments.Length == 5, "Invalid activity symbol");
System\Activities\DynamicUpdate\ArgumentInfo.cs (1)
311for (int i = 1; i < genericArguments.Length; i++)
System\Activities\DynamicUpdate\DynamicUpdateMap.cs (6)
420for (int i = 0; i < oldIdSegments.Length; i++) 432Array.Copy(oldIdSegments, subIdSegments, subIdSegments.Length); 441newIdSegments = new int[oldIdSegments.Length]; 442Array.Copy(oldIdSegments, newIdSegments, oldIdSegments.Length); 462if (i == oldIdSegments.Length - 1) 602for (int i = idSegments.Length - 1; i >= 0; i--)
System\Activities\DynamicUpdate\NativeActivityUpdateContext.cs (1)
136for (int i = 0; i < idArray.Length - 1; i++)
System\Activities\ExpressionParser\SourceExpressionException.cs (2)
89info.AddValue("count", this.errors.Length); 90for (int i = 0; i < this.errors.Length; ++i)
System\Activities\Expressions\AssemblyNameEqualityComparer.cs (5)
120hashcode ^= objArray.Length.GetHashCode() + 1; 121if (objArray.Length > 0) 141if (reqKeyToken.Length == curKeyToken.Length) 144for (int i = 0; i < reqKeyToken.Length; i++)
System\Activities\Expressions\AssemblyReference.cs (1)
170for (int i = currentAssemblies.Length - 1; i >= 0; i--)
System\Activities\Expressions\ExpressionServices.cs (11)
85if (TypeHelper.AreTypesCompatible(declaringType, typeof(Variable)) && calledMethod.Name == "Get" && parameters.Length == 1 && TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(ActivityContext))) 90&& calledMethod.Name == "Get" && parameters.Length == 1 && TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(ActivityContext))) 95&& calledMethod.Name == "Get" && parameters.Length == 1 && TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(ActivityContext))) 99else if (TypeHelper.AreTypesCompatible(declaringType, typeof(ActivityContext)) && calledMethod.Name == "GetValue" && parameters.Length == 1 && 105else if (TypeHelper.AreTypesCompatible(declaringType, typeof(ActivityContext)) && calledMethod.Name == "GetValue" && parameters.Length == 1 && 208if (TypeHelper.AreTypesCompatible(declaringType, typeof(Variable)) && calledMethod.Name == "Get" && parameters.Length == 1 && TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(ActivityContext))) 213&& calledMethod.Name == "Get" && parameters.Length == 1 && TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(ActivityContext))) 218&& calledMethod.Name == "Get" && parameters.Length == 1 && TypeHelper.AreTypesCompatible(parameters[0].ParameterType, typeof(ActivityContext))) 222else if (TypeHelper.AreTypesCompatible(declaringType, typeof(ActivityContext)) && calledMethod.Name == "GetValue" && parameters.Length == 1 && 1266if (methodCallExpression.Arguments.Count != parameterInfoArray.Length)//no optional argument call for LINQ expression 1411if (newExpression.Arguments.Count != parameterInfoArray.Length)//no optional argument call for LINQ expression
System\Activities\Expressions\IndexerHelper.cs (1)
48setTypes[setTypes.Length - 1] = typeof(TItem);
System\Activities\Expressions\IndexerReference.cs (3)
168this.parameters = new object[this.indices.Length + 1]; 169for (int i = 0; i < this.indices.Length; i++) 173parameters[parameters.Length - 1] = value;
System\Activities\Expressions\MethodCallExpressionHelper.cs (1)
27for (int i = 0; i < parameterInfos.Length; i++)
System\Activities\Expressions\New.cs (1)
87if (constructorInfo == null && (!typeof(TResult).IsValueType || types.Length > 0))
System\Activities\Expressions\PropertyValue.cs (1)
55Fx.Assert(propertyInfo.GetAccessors().Length > 0, "Property should have at least 1 accessor.");
System\Activities\Expressions\ValueTypeIndexerReference.cs (3)
163this.parameters = new object[this.indices.Length + 1]; 164for (int i = 0; i < this.indices.Length; i++) 168parameters[parameters.Length - 1] = value;
System\Activities\ExpressionUtilities.cs (11)
506Type[] setItemParameterTypes = new Type[getItemParameters.Length + 1]; 508for (int i = 0; i < getItemParameters.Length; i++) 512setItemParameterTypes[getItemParameters.Length] = this.getItemMethod.ReturnType; 546setItemArguments = new object[this.setItemArgumentFunctions.Length]; 548for (int i = 0; i < this.setItemArgumentFunctions.Length; i++) 610object[] localSetItemArguments = new object[this.setItemArguments.Length + 1]; 611Array.ConstrainedCopy(this.setItemArguments, 0, localSetItemArguments, 0, this.setItemArguments.Length); 612localSetItemArguments[localSetItemArguments.Length - 1] = value; 669for (int i = 0; i < this.indexFunctions.Length; i++) 678int[] indices = new int[this.indexFunctions.Length]; 679for (int i = 0; i < indices.Length; i++)
System\Activities\Hosting\SymbolResolver.cs (2)
158if (this.symbols.Count > array.Length - arrayIndex) 165Fx.Assert(arrayIndex < array.Length, "We must have room since we validated it.");
System\Activities\Quack.cs (17)
32Fx.Assert(items.Length > 0, "This shouldn't be called with a zero length array."); 39this.count = this.items.Length; 53int realIndex = (this.head + index) % this.items.Length; 67compressedItems[i] = this.items[(this.head + i) % this.items.Length]; 75if (this.count == this.items.Length) 82this.head = this.items.Length - 1; 91if (this.count == this.items.Length) 97if (++this.tail == this.items.Length) 111if (++this.head == this.items.Length) 127int realIndex = (this.head + i) % this.items.Length; 152int sourceIndex = (this.head + i) % this.items.Length; 155if (targetIndex == this.items.Length) 166if (this.head == this.items.Length) 174Fx.Assert(this.items.Length > 0, "Quack is empty"); 176int capacity = this.items.Length * 2; 193Array.Copy(this.items, this.head, newArray, 0, this.items.Length - this.head); 194Array.Copy(this.items, 0, newArray, this.items.Length - this.head, this.tail);
System\Activities\QualifiedId.cs (12)
54for (int i = 0; i < idArray.Length; i++) 62for (int i = 0; i < idArray.Length; i++) 81while (offset < idBytes.Length) 123int[] ids = new int[idStrings.Length]; 126for (int i = 0; i < idStrings.Length; i++) 143for (int i = 0; i < ids.Length; i++) 154if (lhs.Length == rhs.Length) 156for (int i = 0; i < lhs.Length; i++) 181while (offset < this.compressedId.Length) 202while (offset < this.compressedId.Length) 242while (offset < buffer.Length)
System\Activities\Runtime\ActivityInstanceMap.cs (9)
127Fx.Assert(secondaryRootOriginalQID != null && secondaryRootOriginalQID.Length > 1, 130int[] parentOfSecondaryRootOriginalQID = new int[secondaryRootOriginalQID.Length - 1]; 131Array.Copy(secondaryRootOriginalQID, parentOfSecondaryRootOriginalQID, secondaryRootOriginalQID.Length - 1); 134for (int i = 0; i < parentOfSecondaryRootOriginalQID.Length; i++) 161noSymbolAddActivityIDArray[noSymbolAddActivityIDArray.Length - 1] = entry.OldActivityId; 271for (int i = 0; i < this.rawDeserializedLists.Length; i++) 279if (oldIdArray.Length == 1 && oldIdArray[0] != 1) 587this.instanceMapping = new Dictionary<Activity, InstanceList>(this.rawDeserializedLists.Length); 589for (int i = 0; i < this.rawDeserializedLists.Length; i++)
System\Activities\Runtime\CallbackWrapper.cs (3)
159for (int i = 0; i < potentialMatches.Length; i++) 169if (genericArguments.Length == 1) 176for (int parameterIndex = 0; parameterIndex < parameters.Length; parameterIndex++)
System\Activities\Runtime\LocationEnvironment.cs (12)
270for (int i = 0; i < this.locations.Length; i++) 355Fx.Assert((locationReference.Id == 0 && this.locations == null) || (locationReference.Id >= 0 && this.locations != null && locationReference.Id < this.locations.Length), "The environment should have been created with the appropriate capacity."); 382Fx.Assert(id >= 0 && ((this.locations == null && id == 0) || (this.locations != null && id < this.locations.Length)), "Id needs to be within bounds."); 407for (int i = 0; i < this.locations.Length; i++) 434for (int i = 0; i < this.locations.Length; i++) 460if (this.locations.Length > id) 492else if (targetEnvironment.locations != null && targetEnvironment.locations.Length > id) 562actualLocationCount = this.locations.Length; 632Fx.Assert(this.locations != null && this.locations.Length > i, "locations must be non-null and index i must be within the range of locations."); 704Fx.Assert(this.locations != null && this.locations.Length > oldVariablesOffset + i, "locations must be non-null and index i + oldVariableOffset must be within the range of locations."); 715newLocations[newLocations.Length - i] = this.locations[this.locations.Length - i];
System\Activities\Statements\BookmarkTable.cs (1)
15static int tableSize = Enum.GetValues(typeof(CompensationBookmarkName)).Length;
System\Activities\Statements\MethodExecutor.cs (3)
49if (parameters.Length > 0) 51ParameterInfo last = parameters[parameters.Length - 1]; 64int formalParamCount = formalParameters.Length;
System\Activities\Statements\MethodResolver.cs (20)
57if (parameters.Length > 0) 59ParameterInfo last = parameters[parameters.Length - 1]; 60return last.GetCustomAttributes(typeof(ParamArrayAttribute), true).Length > 0; 83formalParamCount = formalParameters.Length - 2; 92formalParamCount = formalParameters.Length - 1; 97formalParamCount = formalParameters.Length; 241int formalParamCount = parameterTypes.Length; 364if (method != null && !methodBinder.SelectMethodCalled && genericTypeArguments.Length > 0) 375if (method.ContainsGenericParameters && method.GetGenericArguments().Length == genericTypeArguments.Length) 449if (this.genericTypeArguments.Length > 0) 470if (methodCandidates.Length == 0) 481if (methodsDeclaredHere.Length > 0) 508Type elementType = formalParams[formalParams.Length - 1].ParameterType.GetElementType(); 513for (int i = formalParams.Length - 1; i < types.Length - 1; i++) 528Type[] typeArray = new Type[formalParams.Length]; 529for (int i = 0; i < typeArray.Length - 1; i++) 533typeArray[typeArray.Length - 1] = elementType.MakeArrayType(); 659int count = instance.ActualParameters.Length;
System\Activities\Statements\StateMachineIdHelper.cs (3)
36Fx.Assert(parent.Length < child.Length, "stateId should not be null or empty."); 37return int.Parse(child[parent.Length], CultureInfo.InvariantCulture);
System\Activities\Validation\ValidationHelper.cs (3)
203for (int i = 0; i < equivalentGroups.Length; i++) 249for (int i = 0; i < groupNames.Length; i++) 253for (int j = i + 1; j < groupNames.Length; j++)
System\Activities\WorkflowApplication.cs (1)
2895if (value != null && value.GetInvocationList().Length > 1)
System\Activities\XamlIntegration\ActivityWithResultConverter.cs (1)
101Fx.Assert(this.valueType.IsGenericType && this.valueType.GetGenericArguments().Length == 1, "Should only get Location<T> here");
System\Activities\XamlIntegration\ActivityXamlServices.cs (1)
463for (resourceIndex = 0; (resourceIndex < resources.Length); resourceIndex = (resourceIndex + 1))
System\Activities\XamlIntegration\DynamicUpdateMapItemConverter.cs (2)
27if (strArray.Length == 1) 34else if (strArray.Length == 2)
System.Activities.Core.Presentation (12)
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (2)
329for (int i = 0; i < modelItemsArray.Length - 1; i++) 356int count = toPack.Length;
System\Activities\Core\Presentation\FlowSwitchLinkMultiValueConverter.cs (1)
21return values.Length == 3 ? values[2] : null;
System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (1)
167Fx.Assert(types.Length == 1, "Switch should have exactly one generic argument");
System\Activities\Presentation\DynamicArgumentDesigner.xaml.cs (2)
505if (innerArgumentTypes.Length > 0) 606if (genericArguments.Length == 0)
System\ServiceModel\Activities\Presentation\ContentCorrelationTypeExpander.xaml.cs (1)
241|| (type.GetCustomAttributes(typeof(CollectionDataContractAttribute), false).Length > 0));
System\ServiceModel\Activities\Presentation\TypeToTreeConverter.cs (5)
71else if (type.GetCustomAttributes(typeof(DataContractAttribute), false).Length > 0) 75.Where(member => member.GetCustomAttributes(typeof(DataMemberAttribute), false).Length > 0) 78else if (type.GetCustomAttributes(typeof(SerializableAttribute), false).Length > 0) 82.Where(member => member.MemberType == MemberTypes.Field && member.GetCustomAttributes(typeof(NonSerializedAttribute), false).Length == 0) 90(member.GetCustomAttributes(typeof(IgnoreDataMemberAttribute), false).Length == 0))
System.Activities.DurableInstancing (7)
System\Activities\DurableInstancing\BinaryHeap.cs (4)
48if (this.itemCount == this.items.Length) 50ResizeItemStore(this.items.Length * 2); 140if (this.items.Length > defaultCapacity && this.itemCount < (this.items.Length >> 1))
System\Activities\DurableInstancing\SerializationUtilities.cs (1)
183for (int i = 0; i < propertyBags.Length; i++)
System\Activities\DurableInstancing\SqlWorkflowInstanceStore.cs (2)
228return base.GetInstanceOwners().Length > 0; 578if (instanceOwners.Length > 0)
System.Activities.Presentation (120)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DefaultValueAttributeInfo.cs (1)
38if (arguments != null && arguments.Length == 1)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\MultiTargetingTypeResolver.cs (2)
38if (properties.Length > targetProperties.Length)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (2)
789&& sourceLocationIndex < viewStateDataSourceLocation.Length) 812Array.Clear(viewStateDataSourceLocation, 0, viewStateDataSourceLocation.Length);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\ContextItemManager.cs (1)
238for (int idx = 0; idx < invocationList.Length; idx++)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (4)
51if (resourceNames == null || resourceNames.Length == 0) 88Fx.Assert(resourceNames != null && resourceNames.Length > 0, "resourceNames parameter should not be null"); 93for (int i = 0; i < resourceNames.Length; i++) 156for (int i = 0; i < SupportedExtensions.Length; i++)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeData.cs (2)
88if (usageAttributes != null && usageAttributes.Length > 0) 90for (int i = 0; i < usageAttributes.Length; i++)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeDataCache.cs (3)
106if (tables == null || tables.Length == 0) 260Type[] parameterTypes = new Type[parameterInfo.Length]; 261for (int i = 0; i < parameterInfo.Length; i++)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\EditorUtilities.cs (1)
100if (genericArgs != null && genericArgs.Length == 1)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagStringConverter.cs (1)
68for (int i = 0; i < flagNames.Length; i++)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\RTLValueConverter.cs (2)
29Fx.Assert(values.Length == 3, "Incorrect values in the MultiValueConverter!"); 30if (values.Length == 3)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\ValueToToolTipConverter.cs (1)
23Fx.Assert(values != null && values.Length == 2, "Invalid values passed into ValueToToolTipConverter");
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ValueToIconConverter.cs (1)
33if (values.Length == 2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\CategoryContainerSelectionPathInterpreter.cs (1)
70bool isAdvanced = pathValues.Length == 2;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelectionPathInterpreter.cs (2)
64if (pathValues.Length < 1) 84while (currentContainer != null && pathIndex < pathValues.Length)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\SelectionPath.cs (1)
63if (values == null || values.Length != 2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\AggregateStateContainer.cs (5)
27states = new object[_containers.Length]; 28for (int i = 0; i < _containers.Length; i++) 43if (states == null || states.Length != _containers.Length) 49for (int i = 0; i < _containers.Length; i++)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\CategoryState.cs (1)
98if (args == null || args.Length != 3)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PersistedStateContainer.cs (1)
69if (stateArray == null || stateArray.Length == 0)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyState.cs (1)
84if (args == null || args.Length != 2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyViewManagerStateContainer.cs (2)
156if ((items.Length % 2) != 0) 167for (int i = 0; i < items.Length;)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (25)
144newTables = new AttributeTable[_tables.Length + 1]; 149newTables[newTables.Length - 1] = table; 208Dictionary<object, Attribute> dict = new Dictionary<object, Attribute>(attrArray.Length); 213int finalCount = attrArray.Length; 215for (int idx = 0; idx < attrArray.Length; idx++) 231if (finalCount != attrArray.Length) 235for (int idx = 0; idx < attrArray.Length; idx++) 309for (int idx = 0; idx < attrArray.Length; idx++) 311attrArray[idx] = attrs[attrArray.Length - idx - 1]; 331if (infos.Length > 0) 344if (infos.Length > 0) 422if (infos != null && infos.Length > 0) 489for (int idx = 0; idx < array.Length; idx++) 509for (int idx = 0; idx < array.Length; idx++) 890Fx.Assert(AttributeArray.Length == 0, "Attribute array should always contain zero elements"); 891return AttributeArray.Length == 0 && _attributes != null; 1140for (int idx = 0; idx < ifaces.Length; idx++) 1169for (int idx = 0; idx < ifaces.Length; idx++) 1190for (int idx = 0; idx < ifaces.Length; idx++) 1203for (int idx = 0; idx < ifaces.Length; idx++) 1216for (int idx = 0; idx < ifaces.Length; idx++) 1645for (int idx = 0; idx < infos.Length; idx++) 1684for (int idx = 0; idx < infos.Length; idx++) 1733for (int idx = 0; idx < infos.Length; idx++) 1777for (int idx = 0; idx < infos.Length; idx++)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\newitemtypesattribute.cs (3)
46if (types == null || types.Length < 1) 111object[] typeId = new object[_types.Length + 2]; 112for (int i = 0; i < _types.Length; i++)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyFilter.cs (1)
52for (int i = 0; i < filterParts.Length; i++)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\ServiceManager.cs (1)
252for (int idx = 0; idx < invocationList.Length; idx++)
System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelItemDictionary.cs (2)
359for (; index < typedArray.Length; index++) { 412if (arrayIndex >= array.Length) {
System.Activities.Presentation\System\Activities\Presentation\Base\Shared\Internal\EqualityArray.cs (4)
18Fx.Assert(_values != null && _values.Length > 0, "EqualityArray expects at least one value"); 24if (otherArray._values.Length != _values.Length) return false; 25for (int idx = 0; idx < _values.Length; idx++) {
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (5)
198if (attributes.Length != 0) 277if (attributes.Length != 0) 307List<DesignObjectPropertyDescriptor> descriptors = new List<DesignObjectPropertyDescriptor>(properties.Length); 308for (int i = 0; i < properties.Length; ++i) 329for (int i = 0; i < DesignObjectWrapper.DefaultProperties.Length; ++i)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
212for (int i = 0; i < allowedItemTypes.Length; ++i)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (2)
493if (points != null && points.Length > 1) 496for (int i = 1; i < points.Length - 1; ++i)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (4)
296if (segments == null || segments.Length < 2) 301for (int i = 1; i < segments.Length; i++) 733if ((linesToExclude.Length % 2) > 0) 1313for (int i = 0; i < linesToExclude.Length / 2; i++)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\DesignerGeometryHelper.cs (1)
29for (int i = 1; i < segments.Length; i++)
System.Activities.Presentation\System\Activities\Presentation\Hosting\WindowHelperService.cs (4)
95Delegate[] combined = new Delegate[initial.Length + 1]; 96combined[initial.Length] = callback; 97Array.Copy(initial, combined, initial.Length); 124if (list.Length == 1)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (11)
187if (path.Length < 1) 193for (int i = 0; i < path.Length && true == result && null != value; ++i) 224if (path.Length < 1) 230for (int i = 0; i < path.Length && true == result; ++i) 235if (i == path.Length - 1) 358if (segments.Length > 0 && segments[0] == rootPath) 361for (int segmentIndex = 1; segmentIndex < segments.Length; segmentIndex++) 783if (visualItems.Length == 0) 810this.DesignerView.MakeRootDesigner(this.itemsToExpand[this.itemsToExpand.Length - 1], false); 836for (int index = 0; null != this.itemsToExpand && index < this.itemsToExpand.Length; ++index) 855for (; j < this.itemsToExpand.Length; ++j)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
1252Fx.Assert(this.genericArguments.Length == 2, "this.genericArguments.Length should be = 2");
System.Activities.Presentation\System\Activities\Presentation\SQM\ActivityUsageCounter.cs (1)
139sqmService.AddArrayToStream((int)DataPointIds.ActivityUsageCount, data, data.Length);
System.Activities.Presentation\System\Activities\Presentation\SQM\FeatureUsageCounter.cs (1)
31sqmService.AddArrayToStream((int)DataPointIds.FeatureUsageCount, data, data.Length);
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemLoader.cs (3)
104if (toolDefinition.Length >= 2) 115for (int i = 2; i < toolDefinition.Length; ++i) 135for (int i = 2; i < toolDefinition.Length; ++i)
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (1)
225if (0 != toolboxItemAttributes.Length)
System.Activities.Presentation\System\Activities\Presentation\View\BreadCrumbTextConverter.cs (1)
55if (values.Length == 3 && values[2] is double)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
562if (commands.Length == 1 && string.Equals(CustomMenuItemsSeparatorCommand, commands[0])) 582else if (commands.Length != 0)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
1592for (int i = 0; i < this.keyboardZoomTicks.Length; ++i) 1605for (int i = this.keyboardZoomTicks.Length - 1; i >= 0; --i)
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (1)
749Fx.Assert(values.Length == 2, "There should be exactly 2 values");
System.Activities.Presentation\System\Activities\Presentation\View\TypeToArgumentTypeConverter.cs (1)
23if (type.GetGenericArguments().Length > 0)
System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
902variableContainer.ItemType.GetGenericArguments().Length != 1 || 918variableContainer.ItemType.GetGenericArguments().Length != 1 ||
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (3)
1312if (path.Length > 0) 1315for (int i = 1; i < path.Length; ++i) 2065if (doubleArray.Length == 2)
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerIcons.cs (1)
210for (int i = 0; i < pixels.Length; ++i)
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (1)
693for (int i = 0; i < arguments.Length; i++)
System.AddIn (28)
System\Addin\Hosting\AddInActivator.cs (1)
701if (publicKey == null || publicKey.Length == 0)
System\Addin\Hosting\AddInStore.cs (2)
286for (int j = 0; j < currentFileCounts.Length; j++) 496for (int i = 0; i < addInFolderPaths.Length; i++)
System\Addin\Hosting\AddInToken.cs (1)
338for(int i = 0; i < componentsAndDependents.Length; i+=2)
System\Addin\Hosting\Store\AddIn.cs (3)
157if (attributes.Length > 0) 244if (pars.Length == 0) { 258if(_potentialAddinBases.Length == 0)
System\Addin\Hosting\Store\AddInAdapter.cs (1)
83if (pars.Length != 1)
System\Addin\Hosting\Store\AddInBase.cs (1)
64for(int i = 0; i < _activatableAs.Length && result == false; i++)
System\Addin\Hosting\Store\HostAdapter.cs (2)
60if (_potentialHAVs.Length == 0) 68if (pars.Length != 1)
System\Addin\Hosting\Store\PipelineComponent.cs (1)
106if (cas != null && cas.Length > 0)
System\Addin\Hosting\Utils.cs (8)
115if (publicKey != null && publicKeyOrToken.Length == publicKey.Length) 117for (int i = 0; i < publicKey.Length; i++) 123if (publicKeyOrToken.Length == publicKeyToken.Length) 125for (int i = 0; i < publicKeyToken.Length; i++) 135if (key == null || key.Length == 0) 138StringBuilder sb = new StringBuilder(key.Length);
System\Addin\MiniReflection\MetadataReader\AssemblyInfo.cs (2)
35if ((Token != null) && (Token.Length==0)) 74for (int i = 0, j = Hashed.Length - 1; i < 8; i++, j--)
System\Addin\MiniReflection\MetadataReader\PEFileReader.cs (2)
269StringBuilder sb = new StringBuilder(2 * bytes.Length); 270for (int i = 0; i < bytes.Length; i++)
System\Addin\MiniReflection\TypeInfo.cs (2)
192_isGeneric = type.ContainsGenericParameters || type.IsGenericType || type.GetGenericArguments().Length > 0; 1006if (ctors.Length > 1)
System\Addin\Pipeline\ContractBase.cs (1)
75List<String> identifiers = new List<String>(interfaces.Length);
System\Addin\Pipeline\ContractListAdapter.cs (1)
80if (index > destination.Length - listContractCount)
System.ComponentModel.DataAnnotations (16)
DataAnnotations\AssociatedMetadataTypeTypeDescriptor.cs (1)
49if (newMetadata.Length > 0) {
DataAnnotations\CustomValidationAttribute.cs (3)
237if (parameterInfos.Length == 0 || parameterInfos[0].ParameterType.IsByRef) { 244this._isSingleArgumentMethod = (parameterInfos.Length == 1); 247if ((parameterInfos.Length != 2) || (parameterInfos[1].ParameterType != typeof(ValidationContext))) {
DataAnnotations\EnumDataTypeAttribute.cs (1)
90return enumType.GetCustomAttributes(typeof(FlagsAttribute), false).Length != 0;
DataAnnotations\MaxLengthAttribute.cs (1)
70length = ((Array)value).Length;
DataAnnotations\MinLengthAttribute.cs (1)
55length = ((Array)value).Length;
DataAnnotations\UIHintAttribute.cs (5)
127this._inputControlParameters = new object[controlParameters.Length]; 128Array.Copy(controlParameters, this._inputControlParameters, controlParameters.Length); 188if (inputControlParameters == null || inputControlParameters.Length == 0) { 191if (inputControlParameters.Length % 2 != 0) { 195for (int i = 0; i < inputControlParameters.Length; i += 2) {
parent\parent\parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (4)
90if (components.Length < 2 || components.Length > 3) 111for (int i = 1; i < components.Length; i++) 116if (keyValuePair.Length != 2)
System.Configuration (29)
System\Configuration\BaseConfigurationRecord.cs (2)
1866if (iKey < keys.Length - 1) { 1986string name = keys[keys.Length-1];
System\Configuration\CallbackValidatorAttribute.cs (1)
39if ((parameters.Length == 1) && (parameters[0].ParameterType == typeof(Object))) {
System\Configuration\ClientConfigPaths.cs (3)
456if (attrs != null && attrs.Length > 0) { 464if (attrs != null && attrs.Length > 0) { 590l = buff.Length;
System\Configuration\ConfigurationErrorsException.cs (3)
219(_errors.Length > 1 )){ 220subErrors = _errors.Length; 222for (int i = 0; i < _errors.Length; i++) {
System\Configuration\ConfigurationSectionCollection.cs (1)
120if (array.Length < c + index) {
System\Configuration\ConfigurationSectionGroupCollection.cs (1)
126if (array.Length < c + index) {
System\Configuration\DPAPIProtectedConfigurationProvider.cs (3)
113Marshal.Copy(outputData.pbData, buf, 0, buf.Length); 180Marshal.Copy(outputData.pbData, buf, 0, buf.Length); 238db.cbData = buf.Length;
System\Configuration\Internal\InternalConfigRoot.cs (7)
135for (; nextIndex < parts.Length; nextIndex++) { 209if (index == parts.Length || !currentRecord.hlNeedsChildFor(parts[index])) { 229if (index == parts.Length) { 239while (index < parts.Length && currentRecord.hlNeedsChildFor(parts[index])) { 287if (index != parts.Length || (configRecord != null && !Object.ReferenceEquals(configRecord, currentRecord))) 291currentRecord.Parent.hlRemoveChild(parts[parts.Length - 1]); 334if (index == parts.Length && Object.ReferenceEquals(configRecord, currentRecord)) {
System\Configuration\MgmtConfigurationRecord.cs (5)
2279byte[] streamStart = new byte[preamble.Length]; 2280if (preambleStream.Read(streamStart, 0, streamStart.Length) == streamStart.Length) { 2282for (int i = 0; i < streamStart.Length; i++) { 3125streamWrite.Write(readBuffer, 0, readBuffer.Length);
System\Configuration\PropertyInformationCollection.cs (1)
72if (array.Length < Count + index) {
System\Configuration\StringUtil.cs (1)
93String[] stringKeys = new String[objectArray.Length];
System\Configuration\TypeUtil.cs (1)
248return (attrs != null && attrs.Length > 0);
System.Core (587)
Microsoft\Scripting\Actions\BinaryOperationBinder.cs (1)
84ContractUtils.Requires(args.Length == 1, "args");
Microsoft\Scripting\Actions\CallSite.cs (12)
239if (rules.Length < (MaxRules - 1)) { 240temp = new T[rules.Length + 1]; 241Array.Copy(rules, 0, temp, 1, rules.Length); 272method = typeof(UpdateDelegates).GetMethod("UpdateAndExecuteVoid" + args.Length, BindingFlags.NonPublic | BindingFlags.Static); 273noMatchMethod = typeof(UpdateDelegates).GetMethod("NoMatchVoid" + args.Length, BindingFlags.NonPublic | BindingFlags.Static); 277method = typeof(UpdateDelegates).GetMethod("UpdateAndExecute" + (args.Length - 1), BindingFlags.NonPublic | BindingFlags.Static); 278noMatchMethod = typeof(UpdateDelegates).GetMethod("NoMatch" + (args.Length - 1), BindingFlags.NonPublic | BindingFlags.Static); 316ContractUtils.Requires(pis.Length > 0 && pis[0].ParameterType == typeof(CallSite), "T"); 318Type[] args = new Type[invoke.ReturnType != typeof(void) ? pis.Length : pis.Length - 1]; 321for (int i = 1; i < pis.Length; i++) { 329args[args.Length - 1] = invoke.ReturnType;
Microsoft\Scripting\Actions\CallSiteBinder.cs (2)
79var @params = new ParameterExpression[pis.Length - 1]; 80for (int i = 0; i < @params.Length; i++) {
Microsoft\Scripting\Actions\ConvertBinder.cs (1)
82ContractUtils.Requires(args == null || args.Length == 0, "args");
Microsoft\Scripting\Actions\DeleteMemberBinder.cs (1)
89ContractUtils.Requires(args == null || args.Length == 0);
Microsoft\Scripting\Actions\DynamicMetaObject.cs (2)
288Expression[] res = new Expression[objects.Length]; 289for (int i = 0; i < objects.Length; i++) {
Microsoft\Scripting\Actions\DynamicMetaObjectBinder.cs (5)
77if (args.Length == 0) { 83if (args.Length != parameters.Count) { 157if (args.Length != 1) { 158mos = new DynamicMetaObject[args.Length - 1]; 159for (int i = 1; i < args.Length; i++) {
Microsoft\Scripting\Actions\DynamicObject.cs (3)
368ReadOnlyCollectionBuilder<Expression> paramArgs = new ReadOnlyCollectionBuilder<Expression>(args.Length); 370for (int i = 0; i < args.Length; i++) { 384for (int i = 0; i < args.Length; i++) {
Microsoft\Scripting\Actions\ExpandoClass.cs (6)
76if (string.Equals(klass._keys[klass._keys.Length - 1], newKey, StringComparison.Ordinal)) { 83string[] keys = new string[_keys.Length + 1]; 84Array.Copy(_keys, keys, _keys.Length); 85keys[_keys.Length] = newKey; 126for (int i = 0; i < _keys.Length; i++) { 152for (int i = _keys.Length - 1; i >= 0; i--) {
Microsoft\Scripting\Actions\ExpandoObject.cs (15)
360for (int i = 0; i < data.Class.Keys.Length; i++) { 388for (int i = 0, n = _expandoData.Class.Keys.Length; i < n; i++) { 468for (int i = 0; i < data.Class.Keys.Length; i++) { 486for (int i = 0; i < data.Class.Keys.Length; i++) { 515for (int i = 0; i < data.Class.Keys.Length; i++) { 618for (int i = 0, n = data.Class.Keys.Length; i < n; i++) { 667for (int i = 0; i < data.Class.Keys.Length; i++) { 806for (int i = 0; i < klass.Keys.Length; i++) { 955get { return _dataArray.Length; } 985if (_dataArray.Length >= newClass.Keys.Length) { 987this[newClass.Keys.Length - 1] = ExpandoObject.Uninitialized; 991int oldLength = _dataArray.Length; 992object[] arr = new object[GetAlignedSize(newClass.Keys.Length)]; 993Array.Copy(_dataArray, arr, _dataArray.Length);
Microsoft\Scripting\Actions\GetMemberBinder.cs (1)
88ContractUtils.Requires(args == null || args.Length == 0, "args");
Microsoft\Scripting\Actions\RuleCache.cs (4)
47int count = _rules.Length - i; 53int max = Math.Min(_rules.Length, i + count); 96if (rules.Length < InsertPosition) { 102int newLength = rules.Length + 1;
Microsoft\Scripting\Actions\SetIndexBinder.cs (2)
58ContractUtils.Requires(args.Length >= 2, "args"); 60DynamicMetaObject value = args[args.Length - 1];
Microsoft\Scripting\Actions\SetMemberBinder.cs (1)
72ContractUtils.Requires(args.Length == 1, "args");
Microsoft\Scripting\Actions\UnaryOperationBinder.cs (1)
89ContractUtils.Requires(args == null || args.Length == 0, "args");
Microsoft\Scripting\Actions\UpdateDelegates.Generated.cs (42)
59for (int i = 0; i < applicable.Length; i++) { 93for (int i = 0; i < applicable.Length; i++) { 184for (int i = 0; i < applicable.Length; i++) { 218for (int i = 0; i < applicable.Length; i++) { 309for (int i = 0; i < applicable.Length; i++) { 343for (int i = 0; i < applicable.Length; i++) { 434for (int i = 0; i < applicable.Length; i++) { 468for (int i = 0; i < applicable.Length; i++) { 559for (int i = 0; i < applicable.Length; i++) { 593for (int i = 0; i < applicable.Length; i++) { 684for (int i = 0; i < applicable.Length; i++) { 718for (int i = 0; i < applicable.Length; i++) { 809for (int i = 0; i < applicable.Length; i++) { 843for (int i = 0; i < applicable.Length; i++) { 934for (int i = 0; i < applicable.Length; i++) { 968for (int i = 0; i < applicable.Length; i++) { 1059for (int i = 0; i < applicable.Length; i++) { 1093for (int i = 0; i < applicable.Length; i++) { 1184for (int i = 0; i < applicable.Length; i++) { 1218for (int i = 0; i < applicable.Length; i++) { 1309for (int i = 0; i < applicable.Length; i++) { 1343for (int i = 0; i < applicable.Length; i++) { 1433for (int i = 0; i < applicable.Length; i++) { 1467for (int i = 0; i < applicable.Length; i++) { 1557for (int i = 0; i < applicable.Length; i++) { 1591for (int i = 0; i < applicable.Length; i++) { 1681for (int i = 0; i < applicable.Length; i++) { 1715for (int i = 0; i < applicable.Length; i++) { 1805for (int i = 0; i < applicable.Length; i++) { 1839for (int i = 0; i < applicable.Length; i++) { 1929for (int i = 0; i < applicable.Length; i++) { 1963for (int i = 0; i < applicable.Length; i++) { 2053for (int i = 0; i < applicable.Length; i++) { 2087for (int i = 0; i < applicable.Length; i++) { 2177for (int i = 0; i < applicable.Length; i++) { 2211for (int i = 0; i < applicable.Length; i++) { 2301for (int i = 0; i < applicable.Length; i++) { 2335for (int i = 0; i < applicable.Length; i++) { 2425for (int i = 0; i < applicable.Length; i++) { 2459for (int i = 0; i < applicable.Length; i++) { 2549for (int i = 0; i < applicable.Length; i++) { 2583for (int i = 0; i < applicable.Length; i++) {
Microsoft\Scripting\Ast\BinaryExpression.cs (7)
618if (pms.Length != 2) 772if (pms.Length != 2) 804if (pmsOpTrue.Length != 1) 1345Debug.Assert(pms.Length == conversion.Parameters.Count); 1346if (pms.Length != 1) { 1479Debug.Assert(pms.Length == conversion.Parameters.Count); 1480if (pms.Length != 1) {
Microsoft\Scripting\Ast\BlockExpression.cs (8)
209Debug.Assert(args.Length == 2); 246Debug.Assert(args.Length == 3); 285Debug.Assert(args.Length == 4); 326Debug.Assert(args.Length == 5); 430Debug.Assert(args.Length == 1); 460Debug.Assert(args.Length == ExpressionCount); 480Debug.Assert(args.Length == ExpressionCount); 682switch (expressions.Length) {
Microsoft\Scripting\Ast\DynamicExpression.cs (6)
454Debug.Assert(args.Length == ((IArgumentProvider)this).ArgumentCount); 500Debug.Assert(args.Length == 1); 548Debug.Assert(args.Length == 2); 598Debug.Assert(args.Length == 3); 650Debug.Assert(args.Length == 4); 849if (pi.Length == 0 || pi[0].ParameterType != typeof(CallSite)) throw Error.FirstArgumentMustBeCallSite();
Microsoft\Scripting\Ast\ElementInit.cs (1)
123if (pis.Length == 0) {
Microsoft\Scripting\Ast\IndexExpression.cs (15)
136Debug.Assert(arguments == null || arguments.Length == _arguments.Count); 235if (arguments == null || arguments.Length == 0) { 261if (members == null || members.Length == 0) 310return parms.Length == 0; 313if (parms.Length != args.Length) 315for (int i = 0; i < args.Length; i++) { 375if (setParameters.Length == 0) throw Error.SetterHasNoParams(); 378Type valueType = setParameters[setParameters.Length - 1].ParameterType; 385if (getParameters.Length != setParameters.Length - 1) throw Error.IndexesOfSetGetMustMatch(); 387for (int i = 0; i < getParameters.Length; i++) { 417if (indexes.Length > 0) { 418if (indexes.Length != arguments.Count) { 422for (int i = 0, n = indexes.Length; i < n; i++) {
Microsoft\Scripting\Ast\InvocationExpression.cs (1)
115Debug.Assert(arguments == null || arguments.Length == _arguments.Count);
Microsoft\Scripting\Ast\LambdaExpression.cs (5)
539if (pis.Length > 0) { 540if (pis.Length != parameters.Count) { 543var set = new Set<ParameterExpression>(pis.Length); 544for (int i = 0, n = pis.Length; i < n; i++) { 578for (int i = 0, n = typeArgs.Length; i < n; i++) {
Microsoft\Scripting\Ast\MethodCallExpression.cs (10)
842for (int i = 0, n = pis.Length; i < n; i++) { 872if (pis.Length != count) { 933if (members == null || members.Length == 0) 942if (typeArgs != null && typeArgs.Length > 0) { 975if (parms.Length != args.Length) 977for (int i = 0; i < args.Length; i++) { 994if (typeArgs == null || typeArgs.Length == 0) { 998if (m.IsGenericMethodDefinition && m.GetGenericArguments().Length == typeArgs.Length)
Microsoft\Scripting\Ast\NewExpression.cs (2)
230if ((pis = constructor.GetParametersCached()).Length > 0) { 231if (arguments.Count != pis.Length) {
Microsoft\Scripting\Ast\SwitchExpression.cs (1)
214if (pms.Length != 2) {
Microsoft\Scripting\Ast\TypeUtils.cs (5)
315Debug.Assert(genericParameters.Length == sourceArguments.Length); 316Debug.Assert(genericParameters.Length == destArguments.Length); 318for (int iParam = 0; iParam < genericParameters.Length; ++iParam)
Microsoft\Scripting\Ast\UnaryExpression.cs (5)
265Debug.Assert(i == temps.Length); 269Debug.Assert(i == temps.Length); 272Debug.Assert(i == block.Length); 397if (pms.Length != 1) 434if (pms.Length != 1) {
Microsoft\Scripting\Compiler\DelegateHelpers.cs (2)
33Type returnType = types[types.Length - 1]; 36TypeBuilder builder = AssemblyGen.DefineDelegateType("Delegate" + types.Length);
Microsoft\Scripting\Compiler\DelegateHelpers.Generated.cs (11)
57paramTypes[paramTypes.Length - 1] = retType; 77for (int i = 0; i < types.Length; i++) { 135for (int i = 0; i < args.Length; i++) { 151Type[] paramTypes = new Type[args.Length + 2]; 153paramTypes[paramTypes.Length - 1] = returnType; 154for (int i = 0; i < args.Length; i++) { 209Debug.Assert(types != null && types.Length > 0); 213if (types.Length > MaximumArity || types.Any(t => t.IsByRef)) { 218if (types[types.Length - 1] == typeof(void)) { 228switch (types.Length) { 261switch (types.Length) {
Microsoft\Scripting\Compiler\ExpressionQuoter.cs (2)
196get { return _boxes.Length; } 228get { return _indexes.Length; }
Microsoft\Scripting\Compiler\LambdaCompiler.cs (1)
134for (int i = 0; i < paramNames.Length; i++) {
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (4)
434Debug.Assert(args.ArgumentCount + skipParameters == pis.Length); 437for (int i = skipParameters, n = pis.Length; i < n; i++) { 949for (int i = 0, n = paramList.Length; i < n; i++) { 1024for (int i = 0, n = paramList.Length; i < n; i++) {
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (1)
546Debug.Assert(slot == jmpLabels.Length);
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (1)
303Debug.Assert(pis != null && pis.Length == 1);
Microsoft\Scripting\Compiler\RuntimeVariableList.cs (1)
94get { return _indexes.Length; }
Microsoft\Scripting\Compiler\StackSpiller.Temps.cs (4)
180int count = clone.Length; 219index += _expressions.Length; 229last += _expressions.Length; 234if (count == _expressions.Length) {
Microsoft\Scripting\Utils\CollectionExtensions.cs (6)
157T[] result = new T[array.Length - 1]; 158Array.Copy(array, 1, result, 0, result.Length); 163T[] result = new T[array.Length - 1]; 164Array.Copy(array, 0, result, 0, result.Length); 198T[] copy = new T[array.Length]; 199Array.Copy(array, copy, array.Length);
Microsoft\Scripting\Utils\ReadOnlyCollectionBuilder.cs (8)
98get { return _items.Length; } 102if (value != _items.Length) { 142if (_size == _items.Length) { 194if (_size == _items.Length) { 416if (_size == _items.Length) { 429if (_items.Length < min) { 431if (_items.Length > 0) { 432newCapacity = _items.Length * 2;
Microsoft\Scripting\Utils\TypeExtensions.cs (3)
101if (ps.Length != argTypes.Length) { 105for (int i = 0; i < ps.Length; i++) {
System\Collections\Generic\HashSet.cs (22)
150if (m_count > 0 && m_slots.Length / m_count > ShrinkThreshold) { 167int capacity = source.m_buckets.Length; 246Array.Clear(m_buckets, 0, m_buckets.Length); 263for (int i = m_buckets[hashCode % m_buckets.Length] - 1; i >= 0; i = m_slots[i].next) { 290int bucket = hashCode % m_buckets.Length; 374info.AddValue(CapacityName, m_buckets == null ? 0 : m_buckets.Length); 412for (int i = 0; i < array.Length; i++) { 854if (arrayIndex > array.Length || count > array.Length - arrayIndex) { 949Debug.Assert(newSlots.Length <= m_slots.Length, "capacity increased after TrimExcess"); 1050int bucket = hashCode % m_buckets.Length; 1054for (int i = m_buckets[hashCode % m_buckets.Length] - 1; i >= 0; i = m_slots[i].next) { 1069if (m_lastIndex == m_slots.Length) { 1072bucket = hashCode % m_buckets.Length; 1087SetCapacity(m_buckets.Length, true); 1097int bucket = hashCode % m_buckets.Length; 1221for (int i = m_buckets[hashCode % m_buckets.Length] - 1; i >= 0; i = m_slots[i].next) { 1329int bucket = hashCode % m_buckets.Length; 1330for (int i = m_buckets[hashCode % m_buckets.Length] - 1; i >= 0; i = m_slots[i].next) { 1342if (m_lastIndex == m_slots.Length) { 1345bucket = hashCode % m_buckets.Length;
System\Diagnostics\Eventing\EventProvider.cs (3)
656if ((eventPayload != null) && (eventPayload.Length != 0)) 658argCount = eventPayload.Length; 684for (index = 0; index < eventPayload.Length; index++)
System\Diagnostics\Eventing\EventProviderTraceListener.cs (2)
235if ((data != null) && (data.Length > 0) ) 237for (index = 0; index < (data.Length - 1); index++)
System\Diagnostics\Eventing\Reader\EventLogPropertySelector.cs (1)
59renderContextHandleValues = NativeWrapper.EvtCreateRenderContext(paths.Length, paths, UnsafeNativeMethods.EvtRenderContextFlags.EvtRenderContextValues);
System\Diagnostics\Eventing\Reader\EventLogReader.cs (5)
149if (batchSize != eventsBuffer.Length) eventsBuffer = new IntPtr[batchSize]; 340if (channelNames.Length != errorStatuses.Length) 343list = new List<EventLogStatus>(channelNames.Length); 344for (int i = 0; i < channelNames.Length; i++) {
System\Diagnostics\Eventing\Reader\EventLogRecord.cs (1)
275if ( theValues.Length == i )
System\Diagnostics\Eventing\Reader\EventLogWatcher.cs (1)
228results = NativeWrapper.EvtNext(this.handle, this.eventsBuffer.Length, this.eventsBuffer, 0, 0, ref this. numEventsInBuffer);
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (4)
1108UnsafeNativeMethods.EvtStringVariant [] stringVariants = new UnsafeNativeMethods.EvtStringVariant[values.Length]; 1109for (int i = 0; i < values.Length; i++) { 1115bool status = UnsafeNativeMethods.EvtFormatMessage(handle, eventHandle, 0xffffffff, values.Length, stringVariants, UnsafeNativeMethods.EvtFormatMessageFlags.EvtFormatMessageEvent, 0, sb, out bufferNeeded); 1139status = UnsafeNativeMethods.EvtFormatMessage(handle, eventHandle, 0xffffffff, values.Length, stringVariants, UnsafeNativeMethods.EvtFormatMessageFlags.EvtFormatMessageEvent, bufferNeeded, sb, out bufferNeeded);
System\Diagnostics\EventSchemaTraceListener.cs (3)
242if ((data != null) && (data.Length > 0)) { 244for (int i=0; i<data.Length; i++) { 734stream.Write(buffer, 0, buffer.Length);
System\IO\BufferedStream2.cs (1)
75if (array.Length - offset < count)
System\IO\LogStream.cs (2)
264if (bytes.Length - offset < count) 268if (bytes.Length==0) {
System\IO\Pipes\PipeStream.cs (10)
190if (buffer.Length - offset < count) { 250if (buffer.Length - offset < count) { 300if (buffer.Length == 0) { 432if (buffer.Length - offset < count) { 481if (buffer.Length - offset < count) { 516if (buffer.Length == 0) { 626Debug.Assert(buffer.Length - offset >= count, "offset + count >= buffer length"); 630if (buffer.Length == 0) { 676Debug.Assert(buffer.Length - offset >= count, "offset + count >= buffer length"); 680if (buffer.Length == 0) {
System\Linq\Enumerable.cs (14)
186while (index < source.Length) { 437while (index < source.Length) { 2242if (g.count != g.elements.Length) { Array.Resize<TElement>(ref g.elements, g.count); } 2260for (Grouping g = groupings[hashCode % groupings.Length]; g != null; g = g.hashNext) 2263if (count == groupings.Length) Resize(); 2264int index = hashCode % groupings.Length; 2308if (elements.Length == count) Array.Resize(ref elements, checked(count * 2)); 2411int bucket = hashCode % buckets.Length; 2433for (int i = buckets[hashCode % buckets.Length] - 1; i >= 0; i = slots[i].next) { 2443if (count == slots.Length) Resize(); 2447int bucket = hashCode % buckets.Length; 2610while (i < map.Length && CompareKeys(x, map[i]) > 0) i++; 2685else if (items.Length == count) { 2700if (items.Length == count) return items;
System\Linq\Parallel\Channels\AsynchronousChannel.cs (7)
161(consumerIndex == 0 && producerIndex == m_buffer.Length - 1); 308Interlocked.Exchange(ref m_producerBufferIndex, (bufferIndex + 1) % m_buffer.Length); 422Contract.Assert(0 <= m_consumerChunkIndex && m_consumerChunkIndex < m_consumerChunk.Length, "chunk index out of bounds"); 428if (m_consumerChunkIndex == m_consumerChunk.Length) 500Contract.Assert(0 <= m_consumerChunkIndex && m_consumerChunkIndex < m_consumerChunk.Length, "chunk index out of bounds"); 505if (m_consumerChunkIndex == m_consumerChunk.Length) 627Interlocked.Exchange(ref m_consumerBufferIndex, (consumerBufferIndex + 1) % m_buffer.Length);
System\Linq\Parallel\Merging\AsynchronousChannelMergeEnumerator.cs (15)
58m_done = new bool[m_channels.Length]; // Initialized to { false }, i.e. no channels done. 74if (m_channelIndex == -1 || m_channelIndex == m_channels.Length) 101if (index == m_channels.Length) 109m_channelIndex = (index + 1) % m_channels.Length; 130while ((currChannelIndex = m_channelIndex) != m_channels.Length) 140m_channelIndex = (currChannelIndex + 1) % m_channels.Length; 173if (++doneChannels == m_channels.Length) 176m_channelIndex = currChannelIndex = m_channels.Length; 182m_channelIndex = currChannelIndex = (currChannelIndex + 1) % m_channels.Length; 197for (int i = 0; i < m_channels.Length; i++) 213if (++doneChannels == m_channels.Length) 217m_channelIndex = currChannelIndex = m_channels.Length; 224if (currChannelIndex == m_channels.Length) 253for (int i = 0; i < m_channels.Length; i++) 272Contract.Assert(currChannelIndex == m_channels.Length);
System\Linq\Parallel\Merging\DefaultMergeHelper.cs (4)
89Contract.Assert(m_asyncChannels == null || m_asyncChannels.Length == partitions.PartitionCount); 90Contract.Assert(m_syncChannels == null || m_syncChannels.Length == partitions.PartitionCount); 149for (int i = 0; i < m_syncChannels.Length; i++) 157for (int i = 0; i < m_syncChannels.Length; i++)
System\Linq\Parallel\Merging\MergeExecutor.cs (2)
166for (int i = 0; i < channels.Length; i++) 193for (int i = 0; i < channels.Length; i++)
System\Linq\Parallel\Merging\OrderPreservingPipeliningMergeHelper.cs (2)
360for (int i = 0; i < locks.Length; i++) 475int partitionCount = m_mergeHelper.m_buffers.Length;
System\Linq\Parallel\Merging\SynchronousChannelMergeEnumerator.cs (3)
65if (m_channelIndex == -1 || m_channelIndex == m_channels.Length) 93while (m_channelIndex != m_channels.Length) 115Contract.Assert(m_channelIndex == m_channels.Length);
System\Linq\Parallel\Partitioning\PartitionedDataSource.cs (9)
145Contract.Assert(partitions.Length == partitionCount); 252m_elementCount = data.Length; 359int smallerChunkSize = data.Length / partitionCount; 360int biggerChunkCount = data.Length % partitionCount; 652Contract.Assert(0 <= currentChunkIndex && currentChunkIndex < chunkBuffer.Length); 666Contract.Assert(0 <= mutables.m_nextChunkMaxSize && mutables.m_nextChunkMaxSize <= chunkBuffer.Length); 709if (mutables.m_nextChunkMaxSize < chunkBuffer.Length) 714if (mutables.m_nextChunkMaxSize > chunkBuffer.Length) 716mutables.m_nextChunkMaxSize = chunkBuffer.Length;
System\Linq\Parallel\Partitioning\PartitionedStream.cs (3)
62Contract.Assert(0 <= index && index < m_partitions.Length, "index out of bounds"); 69Contract.Assert(0 <= index && index < m_partitions.Length, "index out of bounds"); 83return m_partitions.Length;
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (1)
779Contract.Assert(valueArray.Length >= valueCount); // valueArray.Length may be larger than valueCount
System\Linq\Parallel\Scheduling\OrderPreservingPipeliningSpoolingTask.cs (9)
73Contract.Requires(producerWaiting != null && producerWaiting.Length == consumerWaiting.Length); 74Contract.Requires(producerDone != null && producerDone.Length == consumerWaiting.Length); 75Contract.Requires(buffers != null && buffers.Length == consumerWaiting.Length); 76Contract.Requires(partitionIndex >= 0 && partitionIndex < consumerWaiting.Length); 159Contract.Requires(producerDone != null && producerDone.Length == partitions.PartitionCount); 160Contract.Requires(buffers != null && buffers.Length == partitions.PartitionCount);
System\Linq\Parallel\Scheduling\OrderPreservingSpoolingTask.cs (1)
119for (int i = 0; i < sortHelpers.Length; i++)
System\Linq\Parallel\Scheduling\SpoolingTask.cs (2)
41Contract.Requires(partitions.PartitionCount == channels.Length); 94Contract.Requires(partitions.PartitionCount == channels.Length);
System\Linq\Parallel\Utils\ExchangeUtilities.cs (1)
54else if (enumerators.Length != partitionCount)
System\Linq\Parallel\Utils\FixedMaxHeap.cs (2)
65get { return m_elements.Length; } 110if (m_count < m_elements.Length)
System\Linq\Parallel\Utils\GrowingArray.cs (4)
51if (m_count >= m_array.Length) 53GrowArray(2 * m_array.Length); 60Contract.Assert(newSize > m_array.Length); 70if (m_count + otherCount > m_array.Length)
System\Linq\Parallel\Utils\HashLookup.cs (4)
85int bucket = hashCode % buckets.Length; 114for (int i = buckets[hashCode % buckets.Length] - 1; i >= 0; i = slots[i].next) 141if (count == slots.Length) Resize(); 146int bucket = hashCode % buckets.Length;
System\Linq\Parallel\Utils\ListChunk.cs (2)
48if (tail.m_chunkCount == tail.m_chunk.Length) 85Contract.Assert(curr.m_chunkCount == curr.m_chunk.Length || curr.m_nextChunk == null);
System\Linq\Parallel\Utils\Sorting.cs (22)
74Contract.Assert(sharedIndices.Length <= sharedkeys.Length); 75Contract.Assert(sharedIndices.Length == sharedValues.Length); 76Contract.Assert(sharedIndices.Length == sharedBarriers.GetLength(1)); 90Contract.Assert(m_sharedKeys.Length >= m_sharedValues.Length); 281for (int i = 0; i < indices.Length; i++) 287if (indices.Length > 1 290QuickSort(0, indices.Length - 1, keys.InternalArray, indices, m_groupState.CancellationState.MergedCancellationToken); 298for (int i = 0; i < indices.Length; i++) 410int leftCount = myValues.Length; 411int rightCount = rightValues.Length; 503int leftCount = leftValues.Length; 504int rightCount = myValues.Length; 548if (!isLastPhase && myValues.Length > 0) 550mergedKeys.CopyFrom(myKeysArr, myValues.Length); 551Array.Copy(myValues, 0, mergedValues, leftCount, myValues.Length); 582Contract.Assert(keys.Length >= indices.Length); 584Contract.Assert(0 <= left && left < keys.Length); 585Contract.Assert(0 <= right && right < keys.Length);
System\Linq\SequenceQuery.cs (8)
224if (pis.Length > 0) { 226for (int i = 0, n = pis.Length; i < n; i++) { 327if (methods.Length == 0) 339if (mParams.Length != args.Count) 341if (!m.IsGenericMethod && typeArgs != null && typeArgs.Length > 0) { 348if (typeArgs == null || typeArgs.Length == 0) 350if (m.GetGenericArguments().Length != typeArgs.Length)
System\Runtime\InteropServices\ComAwareEventInfo.cs (2)
113if (comEventInterfaces == null || comEventInterfaces.Length == 0) { 118if (comEventInterfaces.Length > 1) {
System\Security\Cryptography\AesCryptoServiceProvider.cs (14)
60if (keySizes.Length != 0) { 78Contract.Result<byte[]>().Length == KeySizeValue / 8); 101if (!ValidKeySize(keyValue.Length * 8)) { 109GetAlgorithmId(keyValue.Length * 8), 116KeySizeValue = keyValue.Length * 8; 164if (!ValidKeySize(key.Length * 8)) { 167if (iv != null && iv.Length * 8 != BlockSizeValue) { 177using (SafeCapiKeyHandle importedKey = CapiNative.ImportSymmetricKey(m_cspHandle, GetAlgorithmId(keyCopy.Length * 8), keyCopy)) { 230if (!ValidKeySize(key.Length * 8)) { 233if (iv != null && iv.Length * 8 != BlockSizeValue) { 243using (SafeCapiKeyHandle importedKey = CapiNative.ImportSymmetricKey(m_cspHandle, GetAlgorithmId(keyCopy.Length * 8), keyCopy)) { 305Contract.Ensures(Contract.Result<KeySizes[]>().Length == 0 || 402Contract.Ensures(IVValue != null && IVValue.Length == BlockSizeValue / 8); 407if (!CapiNative.UnsafeNativeMethods.CryptGenRandom(m_cspHandle, iv.Length, iv)) {
System\Security\Cryptography\AesManaged.cs (4)
95if (!ValidKeySize(key.Length * 8)) { 98if (iv != null && iv.Length * 8 != BlockSizeValue) { 116if (!ValidKeySize(key.Length * 8)) { 119if (iv != null && iv.Length * 8 != BlockSizeValue) {
System\Security\Cryptography\BCryptHashAlgorithm.cs (4)
182if (ibStart < 0 || ibStart > array.Length - cbSize) { 185if (cbSize < 0 || cbSize > array.Length) { 222hashValue.Length, 240bytesRead = stream.Read(buffer, 0, buffer.Length);
System\Security\Cryptography\BCryptNative.cs (8)
520error = getter(algorithm, property, buffer, buffer.Length, ref bufferSize, 0); 639int keySize = key.Length; 686Debug.Assert(inputCount <= input.Length - inputOffset); 690Debug.Assert(outputCount <= output.Length - outputOffset); 705iv == null ? 0 : iv.Length, 736Debug.Assert(inputCount <= input.Length - inputOffset); 740Debug.Assert(outputCount <= output.Length - outputOffset); 755iv == null ? 0 : iv.Length,
System\Security\Cryptography\CapiHashAlgorithm.cs (2)
114if (ibStart < 0 || ibStart > array.Length - cbSize) { 117if (cbSize < 0 || cbSize > array.Length) {
System\Security\Cryptography\CapiNative.cs (13)
543Contract.Ensures(Contract.Result<byte[]>() != null && Contract.Result<byte[]>().Length > 0); 583Debug.Assert(keyBlob.Length > keyDataOffset, "Key blob is in an unexpected format."); 587Debug.Assert(keyBlob.Length >= keyDataOffset + keyLength, "Key blob is in an unexpected format."); 590Buffer.BlockCopy(keyBlob, keyDataOffset, keyData, 0, keyData.Length); 628if (parameterSize != parameterValue.Length) { 732int blobSize = Marshal.SizeOf(typeof(BLOBHEADER)) + Marshal.SizeOf(typeof(int)) + key.Length; 744*pSize = key.Length; 748Buffer.BlockCopy(key, 0, keyBlob, Marshal.SizeOf(typeof(BLOBHEADER)) + Marshal.SizeOf(typeof(int)), key.Length); 757keyBlob.Length, 889(uint)pbEncoded.Length, 899(uint)pbEncoded.Length, 1027SafeLocalAllocHandle pb = CapiNative.LocalAlloc(CapiNative.LMEM_FIXED, new IntPtr(arr.Length)); 1028Marshal.Copy(arr, 0, pb.DangerousGetHandle(), arr.Length);
System\Security\Cryptography\CapiSymmetricAlgorithm.cs (39)
99Array.Clear(m_depadBuffer, 0, m_depadBuffer.Length); 108Contract.Requires(inputBuffer != null && inputCount <= inputBuffer.Length - inputOffset); 111Contract.Requires(outputBuffer != null && inputCount <= outputBuffer.Length - outputOffset); 131int depadDecryptLength = RawDecryptBlocks(m_depadBuffer, 0, m_depadBuffer.Length); 133Array.Clear(m_depadBuffer, 0, m_depadBuffer.Length); 142Debug.Assert(inputCount >= m_depadBuffer.Length, "inputCount >= m_depadBuffer.Length"); 144inputOffset + inputCount - m_depadBuffer.Length, 147m_depadBuffer.Length); 148inputCount -= m_depadBuffer.Length; 166Contract.Requires(block != null && count >= block.Length - offset); 169Contract.Ensures(Contract.Result<byte[]>() != null && Contract.Result<byte[]>().Length <= block.Length); 234Buffer.BlockCopy(block, offset, depadded, 0, depadded.Length); 244Contract.Requires(buffer != null && count <= buffer.Length - offset); 264buffer.Length - offset)) { 279Contract.Requires(block != null && count <= block.Length - offset); 282Contract.Ensures(Contract.Result<byte[]>() != null && Contract.Result<byte[]>().Length % InputBlockSize == 0); 295result[result.Length - 1] = (byte)padBytes; 305CapiNative.UnsafeNativeMethods.CryptGenRandom(m_provider, result.Length - 1, result); 307result[result.Length - 1] = (byte)padBytes; 317Buffer.BlockCopy(block, offset, result, 0, result.Length); 328for (int i = count; i < result.Length; i++) { 366(Contract.Result<byte[]>() != null && Contract.Result<byte[]>().Length == blockSize / 8)); 371if (blockSize / 8 <= iv.Length) { 373Buffer.BlockCopy(iv, 0, realIV, 0, realIV.Length); 394Contract.Requires(buffer != null && count <= buffer.Length - offset); 447buffer.Length); 451resetSize = buffer.Length; 465Array.Clear(m_depadBuffer, 0, m_depadBuffer.Length); 489if (inputCount > inputBuffer.Length - inputOffset) { 495if (inputCount > outputBuffer.Length - outputOffset) { 526if (inputCount > inputBuffer.Length - inputOffset) { 535if (outputData.Length > 0) { 536EncryptBlocks(outputData, 0, outputData.Length); 557ciphertext = new byte[m_depadBuffer.Length + inputCount]; 558Buffer.BlockCopy(m_depadBuffer, 0, ciphertext, 0, m_depadBuffer.Length); 559Buffer.BlockCopy(inputBuffer, inputOffset, ciphertext, m_depadBuffer.Length, inputCount); 563if (ciphertext.Length > 0) { 564int decryptedBytes = RawDecryptBlocks(ciphertext, 0, ciphertext.Length);
System\Security\Cryptography\CngKey.cs (1)
154ephemeralProperty.Length == 1 &&
System\Security\Cryptography\CngProperty.cs (4)
115if (m_value.Length != other.m_value.Length) { 119for (int i = 0; i < m_value.Length; i++) { 135for (int i = 0; i < m_value.Length; i++) {
System\Security\Cryptography\ECDsa.cs (6)
105return SignData(data, 0, data.Length, hashAlgorithm); 110if (offset < 0 || offset > data.Length) { throw new ArgumentOutOfRangeException("offset"); } 111if (count < 0 || count > data.Length - offset) { throw new ArgumentOutOfRangeException("count"); } 134return VerifyData(data, 0, data.Length, signature, hashAlgorithm); 141if (offset < 0 || offset > data.Length) { 144if (count < 0 || count > data.Length - offset) {
System\Security\Cryptography\ECDsaCng.cs (8)
264return SignData(data, 0, data.Length); 274if (offset < 0 || offset > data.Length) { 277if (count < 0 || count > data.Length - offset) { 361return VerifyData(data, 0, data.Length, signature); 369if (offset < 0 || offset > data.Length) { 372if (count < 0 || count > data.Length - offset) { 449Debug.Assert(offset >= 0 && offset <= data.Length); 450Debug.Assert(count >= 0 && count <= data.Length - offset);
System\Security\Cryptography\ManifestSignatureInformation.cs (2)
84manifestStream.Read(buffer, buffer.Length, new IntPtr(&bytesRead)); 89while (bytesRead == buffer.Length);
System\Security\Cryptography\NCryptNative.cs (53)
553data.Length, 567data.Length, 570decrypted.Length, 584if (decrypted.Length != decryptedSize) 588Array.Clear(clear, 0, clear.Length); 666data.Length, 680data.Length, 683encrypted.Length, 765hash.Length, 779hash.Length, 781signature.Length, 856hash.Length, 858signature.Length, 962byte[] blob = new byte[2 * sizeof(int) + xBytes.Length + yBytes.Length]; 964Buffer.BlockCopy(BitConverter.GetBytes(xBytes.Length), 0, blob, sizeof(int), sizeof(int)); 965Buffer.BlockCopy(xBytes, 0, blob, 2 * sizeof(int), xBytes.Length); 966Buffer.BlockCopy(yBytes, 0, blob, 2 * sizeof(int) + xBytes.Length, yBytes.Length); 1063hmacKeyBuffer.cbBuffer = hmacKey.Length; 1071secretPrependBuffer.cbBuffer = secretPrepend.Length; 1079secretAppendBuffer.cbBuffer = secretAppend.Length; 1116parameterDesc.cBuffers = parameters.Length; 1138keyMaterial.Length, 1213labelBuffer.cbBuffer = label.Length; 1219seedBuffer.cbBuffer = seed.Length; 1289keyBlob.Length, 1306Contract.Ensures(Contract.Result<byte[]>() != null && Contract.Result<byte[]>().Length >= keySize / 8); 1309if (key.Length == bytesRequired) { 1322Buffer.BlockCopy(key, 0, fullKey, 0, Math.Min(key.Length, fullKey.Length)); 1377value.Length, 1487else if (valueBytes.Length == 0) { 1546keyBlob.Length, 1575keyBlob.Length, 1633Contract.Ensures(Contract.Result<byte[]>() != null && Contract.Result<byte[]>().Length == buffer.Length); 1634return ReverseBytes(buffer, 0, buffer.Length, false); 1646Contract.Requires(offset >= 0 && offset < buffer.Length); 1647Contract.Requires(count >= 0 && buffer.Length - count >= offset); 1649Contract.Ensures(Contract.Result<byte[]>().Length == (padWithZeroByte ? count + 1 : count)); 1758value != null ? value.Length : 0, 1780hash.Length, 1797hash.Length, 1799signature.Length, 1830hash.Length, 1832signature.Length, 1843hash.Length, 1845signature.Length, 1866Contract.Requires(blob != null && blob.Length > 2 * sizeof(int)); 1876Debug.Assert(blob.Length >= 2 * sizeof(int) + 2 * parameterSize, "blob.Length >= 2 * sizeof(int) + 2 * parameterSize"); 1896hash.Length, 1898signature.Length,
System\Security\Cryptography\Rfc4050KeyFormatter.cs (8)
191int xLen = xBytes.Length; 192int yLen = yBytes.Length; 307int xSize = providedX.Length; 308int ySize = providedY.Length; 330Buffer.BlockCopy(providedX, 0, xBytes, xSize - providedX.Length, providedX.Length); 331Buffer.BlockCopy(providedY, 0, yBytes, ySize - providedY.Length, providedY.Length);
System\Security\Cryptography\RsaCng.cs (29)
164Debug.Assert(offset >= 0 && offset <= data.Length); 165Debug.Assert(count >= 0 && count <= data.Length); 259Buffer.BlockCopy(rsaBlob, offset, rsaParams.Exponent, 0, rsaParams.Exponent.Length); 264Buffer.BlockCopy(rsaBlob, offset, rsaParams.Modulus, 0, rsaParams.Modulus.Length); 271Buffer.BlockCopy(rsaBlob, offset, rsaParams.P, 0, rsaParams.P.Length); 276Buffer.BlockCopy(rsaBlob, offset, rsaParams.Q, 0, rsaParams.Q.Length); 281Buffer.BlockCopy(rsaBlob, offset, rsaParams.DP, 0, rsaParams.DP.Length); 286Buffer.BlockCopy(rsaBlob, offset, rsaParams.DQ, 0, rsaParams.DQ.Length); 291Buffer.BlockCopy(rsaBlob, offset, rsaParams.InverseQ, 0, rsaParams.InverseQ.Length); 296Buffer.BlockCopy(rsaBlob, offset, rsaParams.D, 0, rsaParams.D.Length); 340parameters.Exponent.Length + 341parameters.Modulus.Length; 344blobSize += parameters.P.Length + 345parameters.Q.Length; 358pBcryptBlob->BitLength = parameters.Modulus.Length * 8; 360pBcryptBlob->cbPublicExp = parameters.Exponent.Length; 361pBcryptBlob->cbModulus = parameters.Modulus.Length; 365pBcryptBlob->cbPrime1 = parameters.P.Length; 366pBcryptBlob->cbPrime2 = parameters.Q.Length; 372Buffer.BlockCopy(parameters.Exponent, 0, rsaBlob, offset, parameters.Exponent.Length); 373offset += parameters.Exponent.Length; 376Buffer.BlockCopy(parameters.Modulus, 0, rsaBlob, offset, parameters.Modulus.Length); 377offset += parameters.Modulus.Length; 382Buffer.BlockCopy(parameters.P, 0, rsaBlob, offset, parameters.P.Length); 383offset += parameters.P.Length; 386Buffer.BlockCopy(parameters.Q, 0, rsaBlob, offset, parameters.Q.Length); 387offset += parameters.Q.Length; 488return NCryptNative.SignHashPss(keyHandle, hash, hashAlgorithm.Name, hash.Length); 524return NCryptNative.VerifySignaturePss(KeyHandle, hash, hashAlgorithm.Name, hash.Length, signature);
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (3)
262if (value == null || value.Length == 0) 287Debug.Assert(ecBlob.Length >= sizeof(Interop.BCrypt.BCRYPT_ECCKEY_BLOB)); 321errorCode = BCryptNative.UnsafeNativeMethods.BCryptGetProperty(cryptHandle, propertyName, propertyValue, propertyValue.Length, out numBytesNeeded, 0);
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (1)
48Marshal.Copy(cngBlobHandle.DangerousGetHandle(), cngBlob, 0, cngBlob.Length);
System\Security\Cryptography\X509Certificates\X509Native.cs (2)
156Debug.Assert(rawProperty.Length >= Marshal.SizeOf(typeof(T)), "Property did not return expected structure"); 476Array.Clear(_data, 0, _data.Length);
System\Security\Cryptography\Xml\ManifestSignedXml.cs (5)
57for (int stringIndex = hex.Length - 2, decodedIndex = 0; decodedIndex < bytes.Length;stringIndex -= 2, decodedIndex++) { 157keyBlob.cbData = publicKey.Length; 191for (int i = 0; i < lhs.Length; i++) { 272for (int i = 0; i < bytes.Length; i++) { 501xmlBlob.cbData = licenseXml.Length;
System.Data (1649)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DefaultValueAttributeInfo.cs (1)
38if (arguments != null && arguments.Length == 1)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\MultiTargetingTypeResolver.cs (2)
38if (properties.Length > targetProperties.Length)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\ViewStateXamlHelper.cs (2)
789&& sourceLocationIndex < viewStateDataSourceLocation.Length) 812Array.Clear(viewStateDataSourceLocation, 0, viewStateDataSourceLocation.Length);
cdf\src\NetFx40\Tools\System.Activities.Core.Presentation\System\Activities\Core\Presentation\SwitchDesigner.xaml.cs (1)
167Fx.Assert(types.Length == 1, "Switch should have exactly one generic argument");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\ContextItemManager.cs (1)
238for (int idx = 0; idx < invocationList.Length; idx++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\manifestimages.cs (4)
51if (resourceNames == null || resourceNames.Length == 0) 88Fx.Assert(resourceNames != null && resourceNames.Length > 0, "resourceNames parameter should not be null"); 93for (int i = 0; i < resourceNames.Length; i++) 156for (int i = 0; i < SupportedExtensions.Length; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeData.cs (2)
88if (usageAttributes != null && usageAttributes.Length > 0) 90for (int i = 0; i < usageAttributes.Length; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\Metadata\AttributeDataCache.cs (3)
106if (tables == null || tables.Length == 0) 260Type[] parameterTypes = new Type[parameterInfo.Length]; 261for (int i = 0; i < parameterInfo.Length; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\EditorUtilities.cs (1)
100if (genericArgs != null && genericArgs.Length == 1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\FlagStringConverter.cs (1)
68for (int i = 0; i < flagNames.Length; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\RTLValueConverter.cs (2)
29Fx.Assert(values.Length == 3, "Incorrect values in the MultiValueConverter!"); 30if (values.Length == 3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\ValueToToolTipConverter.cs (1)
23Fx.Assert(values != null && values.Length == 2, "Invalid values passed into ValueToToolTipConverter");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ValueToIconConverter.cs (1)
33if (values.Length == 2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\CategoryContainerSelectionPathInterpreter.cs (1)
70bool isAdvanced = pathValues.Length == 2;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\PropertySelectionPathInterpreter.cs (2)
64if (pathValues.Length < 1) 84while (currentContainer != null && pathIndex < pathValues.Length)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Selection\SelectionPath.cs (1)
63if (values == null || values.Length != 2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\AggregateStateContainer.cs (5)
27states = new object[_containers.Length]; 28for (int i = 0; i < _containers.Length; i++) 43if (states == null || states.Length != _containers.Length) 49for (int i = 0; i < _containers.Length; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\CategoryState.cs (1)
98if (args == null || args.Length != 3)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PersistedStateContainer.cs (1)
69if (stateArray == null || stateArray.Length == 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyState.cs (1)
84if (args == null || args.Length != 2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\State\PropertyViewManagerStateContainer.cs (2)
156if ((items.Length % 2) != 0) 167for (int i = 0; i < items.Length;)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Metadata\MetadataStore.cs (25)
144newTables = new AttributeTable[_tables.Length + 1]; 149newTables[newTables.Length - 1] = table; 208Dictionary<object, Attribute> dict = new Dictionary<object, Attribute>(attrArray.Length); 213int finalCount = attrArray.Length; 215for (int idx = 0; idx < attrArray.Length; idx++) 231if (finalCount != attrArray.Length) 235for (int idx = 0; idx < attrArray.Length; idx++) 309for (int idx = 0; idx < attrArray.Length; idx++) 311attrArray[idx] = attrs[attrArray.Length - idx - 1]; 331if (infos.Length > 0) 344if (infos.Length > 0) 422if (infos != null && infos.Length > 0) 489for (int idx = 0; idx < array.Length; idx++) 509for (int idx = 0; idx < array.Length; idx++) 890Fx.Assert(AttributeArray.Length == 0, "Attribute array should always contain zero elements"); 891return AttributeArray.Length == 0 && _attributes != null; 1140for (int idx = 0; idx < ifaces.Length; idx++) 1169for (int idx = 0; idx < ifaces.Length; idx++) 1190for (int idx = 0; idx < ifaces.Length; idx++) 1203for (int idx = 0; idx < ifaces.Length; idx++) 1216for (int idx = 0; idx < ifaces.Length; idx++) 1645for (int idx = 0; idx < infos.Length; idx++) 1684for (int idx = 0; idx < infos.Length; idx++) 1733for (int idx = 0; idx < infos.Length; idx++) 1777for (int idx = 0; idx < infos.Length; idx++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\newitemtypesattribute.cs (3)
46if (types == null || types.Length < 1) 111object[] typeId = new object[_types.Length + 2]; 112for (int i = 0; i < _types.Length; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyFilter.cs (1)
52for (int i = 0; i < filterParts.Length; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\ServiceManager.cs (1)
252for (int idx = 0; idx < invocationList.Length; idx++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelItemDictionary.cs (2)
359for (; index < typedArray.Length; index++) { 412if (arrayIndex >= array.Length) {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Shared\Internal\EqualityArray.cs (4)
18Fx.Assert(_values != null && _values.Length > 0, "EqualityArray expects at least one value"); 24if (otherArray._values.Length != _values.Length) return false; 25for (int idx = 0; idx < _values.Length; idx++) {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (5)
198if (attributes.Length != 0) 277if (attributes.Length != 0) 307List<DesignObjectPropertyDescriptor> descriptors = new List<DesignObjectPropertyDescriptor>(properties.Length); 308for (int i = 0; i < properties.Length; ++i) 329for (int i = 0; i < DesignObjectWrapper.DefaultProperties.Length; ++i)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (1)
212for (int i = 0; i < allowedItemTypes.Length; ++i)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (2)
493if (points != null && points.Length > 1) 496for (int i = 1; i < points.Length - 1; ++i)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (4)
296if (segments == null || segments.Length < 2) 301for (int i = 1; i < segments.Length; i++) 733if ((linesToExclude.Length % 2) > 0) 1313for (int i = 0; i < linesToExclude.Length / 2; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\DesignerGeometryHelper.cs (1)
29for (int i = 1; i < segments.Length; i++)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Hosting\WindowHelperService.cs (4)
95Delegate[] combined = new Delegate[initial.Length + 1]; 96combined[initial.Length] = callback; 97Array.Copy(initial, combined, initial.Length); 124if (list.Length == 1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (11)
187if (path.Length < 1) 193for (int i = 0; i < path.Length && true == result && null != value; ++i) 224if (path.Length < 1) 230for (int i = 0; i < path.Length && true == result; ++i) 235if (i == path.Length - 1) 358if (segments.Length > 0 && segments[0] == rootPath) 361for (int segmentIndex = 1; segmentIndex < segments.Length; segmentIndex++) 783if (visualItems.Length == 0) 810this.DesignerView.MakeRootDesigner(this.itemsToExpand[this.itemsToExpand.Length - 1], false); 836for (int index = 0; null != this.itemsToExpand && index < this.itemsToExpand.Length; ++index) 855for (; j < this.itemsToExpand.Length; ++j)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (1)
1252Fx.Assert(this.genericArguments.Length == 2, "this.genericArguments.Length should be = 2");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\SQM\ActivityUsageCounter.cs (1)
139sqmService.AddArrayToStream((int)DataPointIds.ActivityUsageCount, data, data.Length);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\SQM\FeatureUsageCounter.cs (1)
31sqmService.AddArrayToStream((int)DataPointIds.FeatureUsageCount, data, data.Length);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemLoader.cs (3)
104if (toolDefinition.Length >= 2) 115for (int i = 2; i < toolDefinition.Length; ++i) 135for (int i = 2; i < toolDefinition.Length; ++i)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxItemWrapper.cs (1)
225if (0 != toolboxItemAttributes.Length)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\BreadCrumbTextConverter.cs (1)
55if (values.Length == 3 && values[2] is double)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
562if (commands.Length == 1 && string.Equals(CustomMenuItemsSeparatorCommand, commands[0])) 582else if (commands.Length != 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
1592for (int i = 0; i < this.keyboardZoomTicks.Length; ++i) 1605for (int i = this.keyboardZoomTicks.Length - 1; i >= 0; --i)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (1)
749Fx.Assert(values.Length == 2, "There should be exactly 2 values");
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeToArgumentTypeConverter.cs (1)
23if (type.GetGenericArguments().Length > 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VariableDesigner.xaml.cs (2)
902variableContainer.ItemType.GetGenericArguments().Length != 1 || 918variableContainer.ItemType.GetGenericArguments().Length != 1 ||
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (3)
1312if (path.Length > 0) 1315for (int i = 1; i < path.Length; ++i) 2065if (doubleArray.Length == 2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerIcons.cs (1)
210for (int i = 0; i < pixels.Length; ++i)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (1)
693for (int i = 0; i < arguments.Length; i++)
fx\src\bid\inc\cs\bidPrivateBase.cs (5)
430if( (UInt16)buff.Length < length ){ 431length = (UInt16)buff.Length; 443if( (UInt16)buff.Length < length ){ 444length = (UInt16)buff.Length; 848if( attrColl.Length == 0 ){
fx\src\data\Microsoft\SqlServer\Server\MemoryRecordBuffer.cs (2)
24_buffer = new SqlRecordBuffer[metaData.Length]; 26for (int i = 0; i < _buffer.Length; ++i) {
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (3)
531if (1 == names.Length) { 534else if (2 == names.Length) { 538else if (3 == names.Length) {
fx\src\data\Microsoft\SqlServer\Server\SmiContextFactory.cs (1)
72for(int i=0; !isSupportedVersion && i<__supportedSmiVersions.Length; i++) {
fx\src\data\Microsoft\SqlServer\Server\SqlDataRecord.cs (14)
41return _columnMetaData.Length; 102int copyLength = ( values.Length < FieldCount ) ? values.Length : FieldCount; 114for( int i=0; i < names.Length; i++ ) { 265int copyLength = (values.Length < FieldCount) ? values.Length : FieldCount; 363int copyLength = ( values.Length > FieldCount ) ? FieldCount : values.Length; 584_columnMetaData = new SqlMetaData[metaData.Length]; 585_columnSmiMetaData = new SmiExtendedMetaData[metaData.Length]; 587for (int i = 0; i < _columnSmiMetaData.Length; i++) { 617_columnMetaData = new SqlMetaData[metaData.Length]; 618_columnSmiMetaData = new SmiExtendedMetaData[metaData.Length]; 619for (int i = 0; i < _columnSmiMetaData.Length; i++) {
fx\src\data\Microsoft\SqlServer\Server\sqlpipe.cs (1)
127if (null != columnMetaData && 0 != columnMetaData.Length) { // SQLBUDT #340528 -- don't send empty results.
fx\src\data\Microsoft\SqlServer\Server\SqlRecordBuffer.cs (5)
307Debug.Assert(value > 0 && value <= ((byte[])_object).Length, "Invalid BytesLength"); 331((StorageType.CharArray == _type && value <= ((char[])_object).Length) || (StorageType.String == _type && value <= ((string)_object).Length)), 430int cbytes = ((byte[])_object).Length; 467int cchars = ((char[])_object).Length; 499_value._int64 = bytes.Length;
fx\src\data\Microsoft\SqlServer\Server\SqlTriggerContext.cs (1)
34result = _columnsUpdated.Length;
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (21)
106fieldOffset, buffer.Length, bufferOffset, length ); 134CheckXetParameters( metaData.SqlDbType, metaData.MaxLength, 0, fieldOffset, buffer.Length, bufferOffset, length ); 146fieldOffset, buffer.Length, bufferOffset, length ); 149length = CheckXetParameters( metaData.SqlDbType, metaData.MaxLength, actualLength, fieldOffset, buffer.Length, bufferOffset, length ); 168length = CheckXetParameters( metaData.SqlDbType, metaData.MaxLength, actualLength, fieldOffset, buffer.Length, bufferOffset, length ); 184fieldOffset, buffer.Length, bufferOffset, length ); 1129Debug.Assert(index >= 0 && index < __dbTypeToStorageType.Length, string.Format(CultureInfo.InvariantCulture, "Unexpected dbType value: {0}", dbType)); 1354length = CheckXetParameters( metaData.SqlDbType, metaData.MaxLength, NoLengthLimit /* actual */, fieldOffset, buffer.Length, bufferOffset, length ); 1389length = CheckXetParameters( metaData.SqlDbType, metaData.MaxLength, NoLengthLimit /* actual */, fieldOffset, buffer.Length, bufferOffset, length ); 1722for ( int i = 0; i < metaData.Length; i++ ) { 2040for (int i = 0; i < metaData.Length; ++i) { 2157for (int i = 0; i < metaData.Length; ++i) 2474int length = CheckXetParameters( metaData.SqlDbType, metaData.MaxLength, NoLengthLimit /* actual */, 0, buffer.Length, offset, buffer.Length - offset ); 2480int length = CheckXetParameters( metaData.SqlDbType, metaData.MaxLength, NoLengthLimit /* actual */, 0, buffer.Length, offset, buffer.Length - offset ); 3031Debug.Assert(bufferOffset >= 0 && length >= 0 && bufferOffset + length <= buffer.Length, string.Format("Bad offset or length. bufferOffset: {0}, length: {1}, buffer.Length{2}", bufferOffset, length, buffer.Length)); 3067Debug.Assert(bufferOffset >= 0 && length >= 0 && bufferOffset + length <= buffer.Length, string.Format("Bad offset or length. bufferOffset: {0}, length: {1}, buffer.Length{2}", bufferOffset, length, buffer.Length)); 3749if (record.FieldCount != mdFields.Length) {
fx\src\data\System\Data\CodeGen\datacache.cs (9)
260relation.ChildColumnsReference.Length != 1 // Multycolumn key 445for (int i = 0; i < index.Length; i++) { 468for (int i = 0; i < index.Length; i++) { 505for (int i = 0; i < index.Length; i++) { 520for (int i = 0; i < index.Length; i++) { 524CodeArrayCreateExpression arrayCreate = new CodeArrayCreateExpression(typeof(object), index.Length); 525for (int i = 0; i < index.Length; i++) { 601CodeExpression[] createArgs = new CodeExpression[columns.Length]; { 602for (int j = 0; j < columns.Length; j++) {
fx\src\data\System\Data\ColumnTypeConverter.cs (4)
97for (int i = 0; i < types.Length; i++) { 123for (int i = 0; i < types.Length; i++) { 143objTypes = new object[types.Length]; 144Array.Copy(types, objTypes, types.Length);
fx\src\data\System\Data\Common\AdapterUtil.cs (10)
356if (0 == value.Length) { 1870for (int i = 0; i < d.Length; i++) { 2136if (values.Length != 1){ 2378if (index == dataRows.Length) { 2396Dictionary<string,int> hash = new Dictionary<string,int>(columnNameArray.Length); 2398int startIndex = columnNameArray.Length; // lowest non-unique index 2399for (int i = columnNameArray.Length - 1; 0 <= i; --i) { 2415for (int i = startIndex; i < columnNameArray.Length; ++i) { 2499return ((null == array) || (0 == array.Length)); 2564for (i = 0; i < AzureSqlServerEndpoints.Length; i++)
fx\src\data\System\Data\Common\BigIntegerStorage.cs (1)
131Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\BooleanStorage.cs (4)
32for (int i = 0; i < records.Length; i++) { 46for (int i = 0; i < records.Length; i++) { 59if (records.Length > 0) { 147Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\ByteStorage.cs (4)
98for (int i = 0; i < records.Length; i++) { 112for (int i = 0; i < records.Length; i++) { 125if (records.Length > 0) { 213Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\CharStorage.cs (4)
32for (int i = 0; i < records.Length; i++) { 46for (int i = 0; i < records.Length; i++) { 59if (records.Length > 0) { 151Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\DataAdapter.cs (7)
459if ((null == dataTables) || (0 == dataTables.Length) || (null == dataTables[0])) { 465if ((1 < dataTables.Length) && ((0 != startRecord) || (0 != maxRecords))) { 477for(int i = 0; i < dataTables.Length; ++i) { 749for (int i = 0; i < tables.Length; ++i) { // search for duplicates 754DataTable[] newTables = new DataTable[tables.Length+1]; // add unique data table 755for (int i = 0; i < tables.Length; ++i) { 758newTables[tables.Length] = newTable;
fx\src\data\System\Data\Common\DataRecordInternal.cs (14)
51return _schemaInfo.Length; 60int copyLen = (values.Length < _schemaInfo.Length) ? values.Length : _schemaInfo.Length; 114cbytes = data.Length; 144cbytes = data.Length; 150if (bufferIndex < 0 || bufferIndex >= buffer.Length) 158if (cbytes + bufferIndex > buffer.Length) 186cchars = data.Length; 216cchars = data.Length; 222if (bufferIndex < 0 || bufferIndex >= buffer.Length) 223throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 230if (cchars + bufferIndex > buffer.Length)
fx\src\data\System\Data\Common\DataStorage.cs (3)
177for (int i = 0; i < recordNos.Length; i++) { 325for (int i = 0; i < StorageClassType.Length; ++i) { 354for (int i = (int)StorageType.SqlBinary; i < StorageClassType.Length; ++i) {
fx\src\data\System\Data\Common\DataTableMapping.cs (1)
39if ((null != columnMappings) && (0 < columnMappings.Length)) {
fx\src\data\System\Data\Common\DateTimeOffsetStorage.cs (5)
31for (int i = 0; i < records.Length; i++) { 45for (int i = 0; i < records.Length; i++) { 58if (records.Length > 0) { 65for (int i = 0; i < records.Length; i++) { 147Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\DateTimeStorage.cs (7)
32for (int i = 0; i < records.Length; i++) { 46for (int i = 0; i < records.Length; i++) { 59if (records.Length > 0) { 66for (int i = 0; i < records.Length; i++) { 181Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length)); 229for (int i = 0; i < values.Length; i++) { 236for (int i = 0; i < values.Length; i++) {
fx\src\data\System\Data\Common\DBCommandBuilder.cs (21)
46_baseParameterNames = new string[schemaRows.Length]; 47_originalParameterNames = new string[schemaRows.Length]; 48_nullParameterNames = new string[schemaRows.Length]; 49_isMutatedName = new bool[schemaRows.Length]; 50_count = schemaRows.Length; 61for (int i = 0; i < schemaRows.Length; i++) { 104for (int i = 0; i < schemaRows.Length; i++) { 149for (int i = 0; i < _baseParameterNames.Length; i++) { 196for (int i = 0; i < _baseParameterNames.Length; i++) { 224for (int i = 0; i < _baseParameterNames.Length; i++) { 567string[] srcColumnNames = new string[schemaRows.Length]; 568for (int i = 0; i < schemaRows.Length; ++i) { 588if ((null == rows) || (0 == rows.Length)) { 597for (int i = 0; i < rows.Length; ++i) { 736string[] parameterName = new string[schemaRows.Length]; 737for (int i = 0; i < schemaRows.Length; ++i) { 821for (int i = 0; i < schemaRows.Length; ++i) { 905for (int i = 0; i < schemaRows.Length; ++i) { 1488for(parts = 0; (parts < qualifiers.Length) && (currentPos < name.Length); ++parts) { 1522if ((currentPos < 0) || (parts == qualifiers.Length-1)) { 1533for(int j = qualifiers.Length-1; 0 <= j; --j) {
fx\src\data\System\Data\Common\DBConnectionString.cs (17)
158if ((null != restrictionValues) && (0 < restrictionValues.Length)) { 160for(int i = 0; i < restrictionValues.Length; ++i) { 241if (this._restrictionValues.Length <= entry._restrictionValues.Length) { 345for (int i = 0; i < allowonly.Length; ++i) { 363for (int i = 0; i < a.Length; ++i) { 386List<string> newlist = new List<string>(a.Length + b.Length); 387for(int i = 0; i < a.Length; ++i) { 390for(int i = 0; i < b.Length; ++i) { // find duplicates 435int count = restrictions.Length; 439for (int i = 1; i < restrictions.Length; ++i) { 446if (0 == restrictions[restrictions.Length-1].Length) { 447restrictions[restrictions.Length-1] = null; 450if (count != restrictions.Length) { 453for (int i = 0; i < restrictions.Length; ++i) { 468for (int i = 1; i < restrictionValues.Length; ++i) {
fx\src\data\System\Data\Common\DbConnectionStringBuilder.cs (2)
207for(int i = 0; i < values.Length; ++i) { 445if ((null == attributes) || (0 == attributes.Length)) {
fx\src\data\System\Data\Common\DbConnectionStringCommon.cs (11)
156Array.Copy(_items, 0, array, arrayIndex, _items.Length); 160Array.Copy(_items, 0, array, arrayIndex, _items.Length); 201get { return _items.Length; } 218return (++_index < _items.Length); 333Debug.Assert(Enum.GetNames(typeof(PoolBlockingPeriod)).Length == 3, "PoolBlockingPeriod enum has changed, update needed"); 360Debug.Assert(Enum.GetNames(typeof(PoolBlockingPeriod)).Length == 3, "PoolBlockingPeriod enum has changed, update needed"); 468Debug.Assert(Enum.GetNames(typeof(ApplicationIntent)).Length == 2, "ApplicationIntent enum has changed, update needed"); 490Debug.Assert(Enum.GetNames(typeof(ApplicationIntent)).Length == 2, "ApplicationIntent enum has changed, update needed"); 594Debug.Assert(Enum.GetNames(typeof(SqlAuthenticationMethod)).Length == 5, "SqlAuthenticationMethod enum has changed, update needed"); 660Debug.Assert(Enum.GetNames(typeof(SqlConnectionColumnEncryptionSetting)).Length == 2, "SqlConnectionColumnEncryptionSetting enum has changed, update needed"); 684Debug.Assert(Enum.GetNames(typeof(SqlAuthenticationMethod)).Length == 5, "SqlAuthenticationMethod enum has changed, update needed");
fx\src\data\System\Data\Common\DbDataAdapter.cs (16)
489if ((null == dataTables) || (0 == dataTables.Length) || (null == dataTables[0])) { 498if ((1 < dataTables.Length) && ((0 != startRecord) || (0 != maxRecords))) { 504if (1 == dataTables.Length) { 719else if (0 != dataRows.Length) { 721for (int i = 0; i < dataRows.Length; ++i) { 808Debug.Assert((null != dataRows) && (0 < dataRows.Length), "Update: bad dataRows"); 827int maxBatchCommands = Math.Min(UpdateBatchSize, dataRows.Length); 830maxBatchCommands = dataRows.Length; 994for(int i = 0; i < batchCommands.Length; ++i) { 1064for(int i = 0; i < batchCommands.Length; ++i) { 1083for(int i = 0; i < batchCommands.Length; ++i) { 1100if (commandCount < rowBatch.Length) { 1130for(int i = 0; i < batchCommands.Length; ++i) { 1145for(int i = 0; i < connections.Length; ++i) { 1230rowUpdatedEvent.Errors = ADP.UpdateConcurrencyViolation(StatementType.Batch, commandCount - rowsInError.Length, commandCount, rowsInError); // MDAC 55735 1260if ((null != dataRows) && (0 < dataRows.Length)) {
fx\src\data\System\Data\Common\DbDataReader.cs (1)
174bytesRead = GetBytes(ordinal, bytesReadTotal, buffer, 0, buffer.Length);
fx\src\data\System\Data\Common\dbenumerator.cs (2)
68object[] values = new object[_schemaInfo.Length]; 94for (int i = 0; i < si.Length; i++) {
fx\src\data\System\Data\Common\DbProviderFactories.cs (1)
132for (int i = 0; i < dbFactoriesConfigSection.Length; i++)
fx\src\data\System\Data\Common\DBSchemaRow.cs (2)
38DbSchemaRow[] schemaRows = new DbSchemaRow[dataRows.Length]; 40for (int i = 0; i < dataRows.Length; ++i) {
fx\src\data\System\Data\Common\DBSchemaTable.cs (1)
68private DataColumn[] columnCache = new DataColumn[DBCOLUMN_NAME.Length];
fx\src\data\System\Data\Common\DecimalStorage.cs (4)
98for (int i = 0; i < records.Length; i++) { 112for (int i = 0; i < records.Length; i++) { 125if (records.Length > 0) { 204Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\DoubleStorage.cs (4)
98for (int i = 0; i < records.Length; i++) { 112for (int i = 0; i < records.Length; i++) { 125if (records.Length > 0) { 211Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\FieldNameLookup.cs (2)
119int length = _fieldNames.Length; 131int length = _fieldNames.Length;
fx\src\data\System\Data\Common\Int16Storage.cs (5)
99for (int i = 0; i < records.Length; i++) { 113for (int i = 0; i < records.Length; i++) { 126if (records.Length > 0) { 133for (int i = 0; i < records.Length; i++) { 217Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\Int32Storage.cs (5)
98for (int i = 0; i < records.Length; i++) { 112for (int i = 0; i < records.Length; i++) { 125if (records.Length > 0) { 132for (int i = 0; i < records.Length; i++) { 216Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\Int64Storage.cs (4)
98for (int i = 0; i < records.Length; i++) { 112for (int i = 0; i < records.Length; i++) { 125if (records.Length > 0) { 211Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\MultipartIdentifier.cs (1)
51int limit = ary.Length;
fx\src\data\System\Data\Common\NameValuePermission.cs (9)
51for(int i = 0; i < tree.Length; ++i) { 132int count = _tree.Length; 133for(int i = 0; i < _tree.Length; ++i) { 146else if (count < _tree.Length) { 148for (int i = 0, j = 0; i < _tree.Length; ++i) { 161int length = ((null != tree) ? tree.Length : 0); 163for(int i = 0; i < newtree.Length-1; ++i) { 182for (int i = 0; i < keytree.Length; ++i) { 233for (int i = 0; i < valuetree.Length; ++i) {
fx\src\data\System\Data\Common\ObjectStorage.cs (8)
134if (arr1.Length > arr2.Length) 136else if (arr1.Length < arr2.Length) 139for (int i = 0; i < arr1.Length; i++){ 260Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length)); 313if (_typename.Length == 2) { // split will return aray of size 1 if ":" is not there 440for(int i = 0; i < values.Length; i++) {
fx\src\data\System\Data\Common\RowUpdatedEventArgs.cs (2)
85return ((null != dataRows) ? dataRows.Length : ((null != _dataRow) ? 1 : 0)); 123if ((null != dataRows) && (1 == dataRows.Length)) { // WebData 100063
fx\src\data\System\Data\Common\SByteStorage.cs (4)
98for (int i = 0; i < records.Length; i++) { 112for (int i = 0; i < records.Length; i++) { 125if (records.Length > 0) { 213Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SingleStorage.cs (4)
99for (int i = 0; i < records.Length; i++) { 113for (int i = 0; i < records.Length; i++) { 126if (records.Length > 0) { 212Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SQLBinaryStorage.cs (3)
32if (records.Length > 0) { 39for (int i = 0; i < records.Length; i++) { 86Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SQlBooleanStorage.cs (5)
34for (int i = 0; i < records.Length; i++) { 48for (int i = 0; i < records.Length; i++) { 61if (records.Length > 0) { 68for (int i = 0; i < records.Length; i++) { 115Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SQLBytesStorage.cs (3)
33if (records.Length > 0) { 40for (int i = 0; i < records.Length; i++) { 85Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SQLByteStorage.cs (5)
100for (int i = 0; i < records.Length; i++) { 115for (int i = 0; i < records.Length; i++) { 129if (records.Length > 0) { 136for (int i = 0; i < records.Length; i++) { 184Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SQLCharsStorage.cs (3)
32if (records.Length > 0) { 39for (int i = 0; i < records.Length; i++) { 86Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SQLDateTimeStorage.cs (5)
34for (int i = 0; i < records.Length; i++) { 49for (int i = 0; i < records.Length; i++) { 63if (records.Length > 0) { 70for (int i = 0; i < records.Length; i++) { 117Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SQLDecimalStorage.cs (5)
100for (int i = 0; i < records.Length; i++) { 115for (int i = 0; i < records.Length; i++) { 129if (records.Length > 0) { 135for (int i = 0; i < records.Length; i++) { 182Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SQLDoubleStorage.cs (5)
100for (int i = 0; i < records.Length; i++) { 115for (int i = 0; i < records.Length; i++) { 129if (records.Length > 0) { 136for (int i = 0; i < records.Length; i++) { 183Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SQLGuidStorage.cs (3)
32if (records.Length > 0) { 39for (int i = 0; i < records.Length; i++) { 86Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SQLInt16Storage.cs (5)
100for (int i = 0; i < records.Length; i++) { 115for (int i = 0; i < records.Length; i++) { 129if (records.Length > 0) { 136for (int i = 0; i < records.Length; i++) { 183Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SQLInt32Storage.cs (5)
100for (int i = 0; i < records.Length; i++) { 115for (int i = 0; i < records.Length; i++) { 129if (records.Length > 0) { 136for (int i = 0; i < records.Length; i++) { 183Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SQLInt64Storage.cs (5)
100for (int i = 0; i < records.Length; i++) { 115for (int i = 0; i < records.Length; i++) { 130if (records.Length > 0) { 137for (int i = 0; i < records.Length; i++) { 184Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SQLMoneyStorage.cs (5)
100for (int i = 0; i < records.Length; i++) { 115for (int i = 0; i < records.Length; i++) { 129if (records.Length > 0) { 136for (int i = 0; i < records.Length; i++) { 183Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SQLSingleStorage.cs (5)
101for (int i = 0; i < records.Length; i++) { 116for (int i = 0; i < records.Length; i++) { 130if (records.Length > 0) { 137for (int i = 0; i < records.Length; i++) { 184Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SQLStringStorage.cs (6)
34for (i = 0; i < recordNos.Length; i++) { 41for (i = i+1; i < recordNos.Length; i++) { 55for (i = 0; i < recordNos.Length; i++) { 62for (i = i+1; i < recordNos.Length; i++) { 73for (i = 0; i < recordNos.Length; i++) { 140Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SqlUDTStorage.cs (1)
131Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\SQLTypes\SqlXmlStorage.cs (3)
31if (records.Length > 0) { 38for (int i = 0; i < records.Length; i++) { 86Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\StringStorage.cs (6)
31for (i = 0; i < recordNos.Length; i++) { 38for (i = i+1; i < recordNos.Length; i++) { 51for (i = 0; i < recordNos.Length; i++) { 58for (i = i+1; i < recordNos.Length; i++) { 69for (i = 0; i < recordNos.Length; i++) { 160Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\TimeSpanStorage.cs (4)
32for (int i = 0; i < records.Length; i++) { 46for (int i = 0; i < records.Length; i++) { 59if (records.Length > 0) { 221Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\UInt16Storage.cs (5)
98for (int i = 0; i < records.Length; i++) { 112for (int i = 0; i < records.Length; i++) { 125if (records.Length > 0) { 132for (int i = 0; i < records.Length; i++) { 216Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\UInt32Storage.cs (5)
98for (int i = 0; i < records.Length; i++) { 112for (int i = 0; i < records.Length; i++) { 125if (records.Length > 0) { 132for (int i = 0; i < records.Length; i++) { 216Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\Common\UInt64Storage.cs (4)
98for (int i = 0; i < records.Length; i++) { 112for (int i = 0; i < records.Length; i++) { 125if (records.Length > 0) { 210Array.Copy(values, 0, newValues, 0, Math.Min(capacity, values.Length));
fx\src\data\System\Data\ConstraintCollection.cs (11)
105if (1 < table.NestedParentRelations.Length) { 214for (int i = 0; i < columns.Length; i++) { 445if (array.Length - index < list.Count) 485if ((null != constraint) && (constraint.Key.ColumnsReference.Length == 1) && (constraint.Key.ColumnsReference[0] == column)) 508if (a1.Length != a2.Length) 512for (i=0; i<a1.Length; i++) { 514for (j=0; j<a2.Length; j++) { 675for (int i = 0; i < delayLoadingConstraints.Length; i++) { 685colCount = constr.columnNames.Length; 714colCount = constr.parentColumnNames.Length;
fx\src\data\System\Data\DataColumn.cs (5)
1240if ((null != o) && (o.ColumnsReference.Length == 1) && (o.ColumnsReference[0] == this)) 1523for (int i = 0; i < parentRelations.Length; i++) { 1526if (key.ColumnsReference.Length == 1 && key.ColumnsReference[0] == this) { 1663for (int i = 0; i < rows.Length; i++) { 1668return (rows.Length > 0);
fx\src\data\System\Data\DataColumnCollection.cs (5)
605if (array.Length - index < _list.Count) 839DataColumn[] tempColumns = new DataColumn[columns.Length +1]; 841tempColumns[columns.Length] = dataColumn; 847DataColumn[] tempColumns = new DataColumn[columns.Length - 1]; 848for(int i = 0, j = 0; i < columns.Length; i++) {
fx\src\data\System\Data\DataColumnPropertyDescriptor.cs (1)
29attrs[attrs.Length - 1] = new ListBindableAttribute(false);
fx\src\data\System\Data\DataError.cs (1)
129if (count >= errorList.Length) {
fx\src\data\System\Data\DataException.cs (5)
521for (int i = 0; i < keys.Length; i++) { 522values += Convert.ToString(keys[i], null) + (i < keys.Length - 1 ? ", " : String.Empty); 527if (columns.Length > 1) { 529for (int i = 0; i < columns.Length; i++) { 530columnNames += columns[i].ColumnName + (i < columns.Length - 1 ? ", " : "");
fx\src\data\System\Data\DataKey.cs (24)
27if (columns.Length == 0) 30if (columns.Length > maxColumns) 33for (int i = 0; i < columns.Length; i++) { 38for (int i = 0; i < columns.Length; i++) { 48this.columns = new DataColumn [columns.Length]; 49for (int i = 0; i < columns.Length; i++) 84for (int i = 1; i < columns.Length; i++) { 106} else if (column1.Length != column2.Length) { 110for (i=0; i<column1.Length; i++) { 112for (j=0; j<column2.Length; j++) { 127for (int i = 0; i < columns.Length; i++) { 164else if (column1.Length != column2.Length) { 168for (int i = 0; i <column1.Length; i++) { 178string[] values = new string[columns.Length]; 179for(int i = 0; i < columns.Length; ++i) { 186IndexField[] indexDesc = new IndexField[columns.Length]; 187for (int i = 0; i < columns.Length; i++) { 194object[] values = new object[columns.Length]; 195for (int i = 0; i < columns.Length; i++) { 211for (int i = 0; i < columns.Length; i++) { 220DataColumn[] values = new DataColumn[columns.Length]; 221for(int i = 0; i < columns.Length; ++i) {
fx\src\data\System\Data\DataRelation.cs (8)
233for (int i = 0; i < values.Length; i++) { 640for (int i = 0; i < parentKey.ColumnsReference.Length; i++) { 676if (parentColumns.Length != childColumns.Length) 679for(int i = 0; i < parentColumns.Length; i++){ 700int keyLength = parentKey.ColumnsReference.Length; 751if (0 < ChildTable.NestedParentRelations.Length) { 753if (childCols.Length != 1 || !IsAutoGenerated(childCols[0])) {
fx\src\data\System\Data\DataRelationCollection.cs (3)
276if (array.Length - index < alist.Count) 781for (int i = 0; i < delayLoadingRelations.Length; i++) { 788colCount = rel.parentColumnNames.Length;
fx\src\data\System\Data\DataRow.cs (5)
391for (int i = 0; i < values.Length; i++) { 402if (_columns.Count < value.Length) { 411for (int i = 0; i < value.Length; ++i) { 1027for (int i = 0; i < columns.Length; i++) { 1136for (int i = 0; i < keyValues.Length; i++) {
fx\src\data\System\Data\DataRowCollection.cs (1)
77if (table.NestedParentRelations.Length > 0) { // get in this trouble only if table has a nested parent
fx\src\data\System\Data\DataSet.cs (19)
450int[] parentInfo = new int[rel.ParentColumns.Length + 1]; 453for (int j = 1; j < parentInfo.Length; j++) { 457int[] childInfo = new int[rel.ChildColumns.Length + 1]; 459for (int j = 1; j < childInfo.Length; j++) { 491DataColumn[] parentkeyColumns = new DataColumn[parentInfo.Length - 1]; 492for (int i = 0; i < parentkeyColumns.Length; i++) { 497DataColumn[] childkeyColumns = new DataColumn[childInfo.Length - 1]; 498for (int i = 0; i < childkeyColumns.Length; i++) { 683if ((dt.NestedParentRelations.Length == 0) || 684(dt.NestedParentRelations.Length == 1 && dt.NestedParentRelations[0].ChildTable == dt)) { 1267for (int i = 0; i < bitMatrix.Length; ++i) { 1275for (int i = 0; i < bitMatrix.Length; ++i) { 1309for (int tableIndex = 0; tableIndex < bitMatrix.Length; ++tableIndex) { 3091if (props.Length < propStart + 1) 3340if ((null != values) && (0 < values.Length) && (null != values[0])) 3425DataTable[] dataTables = new DataTable[tables.Length]; 3426for (int i = 0; i < tables.Length; i++) { 3453if (dataTables.Length == 0) 3456for (int i = 0; i < dataTables.Length; i++) {
fx\src\data\System\Data\DataTable.cs (58)
492int[] colInfo = new int[uc.Columns.Length]; 493for (int j = 0; j < colInfo.Length; j++) { 511int[] parentInfo = new int[fk.RelatedColumns.Length + 1]; 513for (int j = 1; j < parentInfo.Length; j++) { 517int[] childInfo = new int[fk.Columns.Length + 1]; 519for (int j = 1; j < childInfo.Length; j++) { 557DataColumn[] keyColumns = new DataColumn[keyColumnIndexes.Length]; 558for (int i = 0; i < keyColumnIndexes.Length; i++) { 579DataColumn[] parentkeyColumns = new DataColumn[parentInfo.Length - 1]; 580for (int i = 0; i < parentkeyColumns.Length; i++) { 586DataColumn[] childkeyColumns = new DataColumn[childInfo.Length - 1]; 587for (int i = 0; i < childkeyColumns.Length; i++) { 813if (dcArr.Length > 0) { 814int[] columnsInError = new int[dcArr.Length]; 815string[] columnErrors = new string[dcArr.Length]; 816for (int i = 0; i < dcArr.Length; i++) { 843Debug.Assert(columnsInError.Length == columnErrors.Length); 844for (int i = 0; i < columnsInError.Length; i++) { 1548if ((value != null) && (value.Length != 0)) { 1550for (int i = 0; i < value.Length; i++) { 1559if (count != value.Length) { 1613for (int i = 0; i < key.ColumnsReference.Length; i++) 1676if (nestedRelations.Length == 0) { 1729if (nestedRelations.Length > 0) { 1730for(int i =0; i < nestedRelations.Length; i++) { 1739while(j < nestedRelations.Length &&((nestedRelations[j].ParentTable == this)||(visitedTables.Contains(nestedRelations[j].ParentTable)))) { 1742if (j < nestedRelations.Length) { 1976for (int i = 0; i < keyValues.Length; i++) { 2096for (int i = 0; i < cols.Length; i++) { 2123for (int i = 0; i < oldRows.Length; ++i) { 2249if (pkey.Length > 0) { 2250DataColumn[] key = new DataColumn[pkey.Length]; 2251for (int i = 0; i < pkey.Length; i++) { 2767for (int i = 0; i < cols.Length; i++) { 2983for (int i = 0; i < cols.Length; i++) { 3067IndexField[] newIndexDesc = new IndexField[indexDesc.Length]; 3068Array.Copy(indexDesc, 0, newIndexDesc, 0, indexDesc.Length); 3082if (colCount < value.Length) { 3087for (int i = 0; i < value.Length; i++) { 3095for (int i = value.Length; i < colCount; i++) { 3369indexDesc = new IndexField[split.Length]; 3371for (int i = 0; i < split.Length; i++) { 3434Debug.Assert (oldIndex.Length == newIndex.Length, "Size oldIndexes and newIndexes should be the same"); 3435Debug.Assert (oldIndex.Length == shadowIndexes.Count, "Size of OldIndexes should be the same as size of Live indexes"); 3587for (int i = 0; i < oldRows.Length; i++) { 4337if (pkey.Length == 1) 4360if (pkey.Length == 0) 4467if (this.PrimaryKey.Length == 0) { 4496primaryKeyIndex = new int[this.primaryKey.ColumnsReference.Length]; 4497for(int i = 0; i < this.primaryKey.ColumnsReference.Length; i++) { 4502object[] keys = new object[primaryKeyIndex.Length]; 4503for(int i = 0; i < primaryKeyIndex.Length; i++) { 4518for(int count = 0; count < values.Length; count++) { 4523for(int count = values.Length; count < columnCollection.Count ; count++) { 4957for (int j = 0; j < dependency.Length; j++) { 5846for (int j = 0; j < dependency.Length; j++) {
fx\src\data\System\Data\DataTableCollection.cs (1)
507if (array.Length - index < _list.Count)
fx\src\data\System\Data\DataTableReader.cs (23)
50if (dataTables.Length == 0) 54tables = new DataTable[dataTables.Length]; 55for (int i = 0; i < dataTables.Length ; i++) { 141if ((tableCounter == tables.Length -1)) 335return tempBuffer.Length; 338int byteCount = Math.Min(tempBuffer.Length - srcIndex, length); 340throw ADP.InvalidSourceBufferIndex(tempBuffer.Length, srcIndex, "dataIndex"); 342else if ((bufferIndex < 0) || (bufferIndex > 0 && bufferIndex >= buffer.Length)) { 343throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 384return tempBuffer.Length; 388int charCount = Math.Min(tempBuffer.Length - srcIndex, length); 390throw ADP.InvalidSourceBufferIndex(tempBuffer.Length, srcIndex, "dataIndex"); 392else if ((bufferIndex < 0) || (bufferIndex > 0 && bufferIndex >= buffer.Length)) { 393throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 579Array.Copy(currentDataRow.ItemArray, values, currentDataRow.ItemArray.Length > values.Length ? values.Length : currentDataRow.ItemArray.Length); 580return (currentDataRow.ItemArray.Length > values.Length ? values.Length : currentDataRow.ItemArray.Length); 704for (int j = 0; j < dependency.Length; j++) {
fx\src\data\System\Data\DataView.cs (16)
459if (sort.Length == 0 && applyDefaultSort && table != null && table._primaryIndex.Length > 0) { 829for (int i=0; i<rows.Length; i++) { 1024if (table != null && index != null && index.IndexFields.Length == 1) { 1032if (index.IndexFields.Length == 1 && index.IndexFields[0].IsDescending) { 1188if (table != null && index != null && index.IndexFields.Length > 0) { 1189sortDescArray = new ListSortDescription[index.IndexFields.Length]; 1190for(int i = 0; i < index.IndexFields.Length; i++ ) { 1218if (listAccessors == null || listAccessors.Length == 0) { 1236if (listAccessors == null || listAccessors.Length == 0) { 1693if (columnNames.Length == 0) { 1695for (int i = 0; i < columnNames.Length; i++) { 1700int [] columnIndexes = new int[columnNames.Length]; 1704for(int i = 0; i < columnNames.Length ; i++){ 1714object[] o = new object[columnNames.Length]; 1716for (int j = 0; j < columnIndexes.Length; j++) { 1732for (int j = 0; j < objectArray.Length; j++){
fx\src\data\System\Data\DataViewManager.cs (2)
309if (listAccessors == null || listAccessors.Length == 0) { 326if (listAccessors == null || listAccessors.Length == 0) {
fx\src\data\System\Data\DBConcurrencyException.cs (2)
51return (((null != rows) && (0 < rows.Length)) ? rows[0] : null); 61return ((null != dataRows) ? dataRows.Length : 0);
fx\src\data\System\Data\FillErrorEventArgs.cs (2)
54object[] copy = new object[values.Length]; 55for(int i = 0; i < values.Length; ++i) {
fx\src\data\System\Data\Filter\AggregateNode.cs (1)
179for (int i = 0; i < rows.Length; i++) {
fx\src\data\System\Data\Filter\ExpressionParser.cs (11)
994if (pos+1 < text.Length && charsToEscape.IndexOf(text[pos+1]) >= 0) { 999}while (pos < text.Length && text[pos] != chEnd); 1001if (pos >= text.Length) { 1018do pos++; while (pos < text.Length && text[pos] != '#'); 1020if (pos >= text.Length || text[pos]!= '#') { 1022if (pos >= text.Length) 1053int hi = reservedwords.Length - 1; 1080while (pos < text.Length) { 1083if (ch == escape && pos < text.Length && text[pos] == escape) { 1090if (pos >= text.Length) { 1106while (pos < text.Length && IsWhiteSpace(text[pos])) {
fx\src\data\System\Data\Filter\FunctionNode.cs (3)
50for (int i = 0; i < funcs.Length; i++) { 69else if (argumentCount == arguments.Length) { 106Debug.Assert(info < funcs.Length && info >= 0, "Invalid function info.");
fx\src\data\System\Data\Filter\Operators.cs (2)
151if (op > priority.Length) 233if (op <= Looks.Length)
fx\src\data\System\Data\ForeignKeyConstraint.cs (30)
186for (int i = 0; i < values.Length; i++) { 200for (int i = 0; i < uniqueChildKeys.Length; i++) { 207for (int j = 0; j < rows.Length; j++) { 225for (int i = 0; i < uniqueChildKeys.Length; i++) { 293for (int j = 0; j < rows.Length; j++) { 304object[] proposedKey = new object[childKey.ColumnsReference.Length]; 305for (int i = 0; i < childKey.ColumnsReference.Length; i++) 310for (int j = 0; j < rows.Length; j++) { 320object[] proposedKey = new object[childKey.ColumnsReference.Length]; 321for (int i = 0; i < childKey.ColumnsReference.Length; i++) 326for (int j = 0; j < rows.Length; j++) { 355for (int j = 0; j < rows.Length; j++) { 405for (int j = 0; j < rows.Length; j++) { 415object[] proposedKey = new object[childKey.ColumnsReference.Length]; 416for (int i = 0; i < childKey.ColumnsReference.Length; i++) 421for (int j = 0; j < rows.Length; j++) { 430object[] proposedKey = new object[childKey.ColumnsReference.Length]; 431for (int i = 0; i < childKey.ColumnsReference.Length; i++) 436for (int j = 0; j < rows.Length; j++) { 461if (DataRelation.GetChildRows(this.ParentKey, this.ChildKey, row, DataRowVersion.Default).Length > 0) { 532for (lo = 0; lo < childValues.Length; lo++) { 539if (lo == childValues.Length) { 559for (int i = 0; i < parentKey.ColumnsReference.Length; i++) { 637int keys = Columns.Length; 670int keys = Columns.Length; 705if (parentColumns.Length == 0 || childColumns.Length == 0) 708if (parentColumns.Length != childColumns.Length) 711for (int i = 0; i < parentColumns.Length; i++) {
fx\src\data\System\Data\Merger.cs (16)
211for (int i = 0; i < rows.Length; i++) { 341if (targetPKey.Length != tablePKey.Length) { 344if (targetPKey.Length == 0) { 345DataColumn[] key = new DataColumn[tablePKey.Length]; 346for (int i = 0; i < tablePKey.Length; i++) { 351else if (tablePKey.Length != 0) { 356for (int i = 0; i < targetPKey.Length; i++) { 446if (relation.ParentKey.ColumnsReference.Length != destRelation.ParentKey.ColumnsReference.Length) { 452for (int i = 0; i < relation.ParentKey.ColumnsReference.Length; i++) { 498DataColumn[] parentColumns = new DataColumn[relation.ParentKey.ColumnsReference.Length]; 499DataColumn[] childColumns = new DataColumn[relation.ParentKey.ColumnsReference.Length]; 500for (int i = 0; i < relation.ParentKey.ColumnsReference.Length; i++) { 548DataColumn[] srcColumns = new DataColumn[dstColumns.Length]; 549for (int j = 0; j < dstColumns.Length; j++) {
fx\src\data\System\Data\Odbc\DbDataRecord.cs (1)
144int count = _values.Length;
fx\src\data\System\Data\Odbc\OdbcCommandBuilder.cs (2)
142int count = list.Length; 144for(int i = 0; i < list.Length; ++i) {
fx\src\data\System\Data\Odbc\OdbcConnection.cs (4)
356if (buffer.Length+2 <= cbActual) { 363value = Encoding.Unicode.GetString(buffer, 0, Math.Min(cbActual, buffer.Length)); 441if (buffer.Length < cbActual-2) { 448value = Encoding.Unicode.GetString(buffer, 0, Math.Min(cbActual, buffer.Length));
fx\src\data\System\Data\Odbc\OdbcConnectionHandle.cs (6)
224ODBC32.RetCode retcode = UnsafeNativeMethods.SQLGetConnectAttrW(this, attribute, buffer, buffer.Length, out cbActual); 225Bid.Trace("<odbc.SQLGetConnectAttr|ODBC> SQLRETURN=%d, Attribute=%d, BufferLength=%d, StringLength=%d\n", (int)retcode, (int)attribute, buffer.Length, (int)cbActual); 236ODBC32.RetCode retcode = UnsafeNativeMethods.SQLGetInfoW(this, info, buffer, checked((short)buffer.Length), out cbActual); 237Bid.Trace("<odbc.SQLGetInfo|ODBC> SQLRETURN=%d, InfoType=%d, BufferLength=%d, StringLength=%d\n", (int)retcode, (int)info, buffer.Length, (int)cbActual); 242ODBC32.RetCode retcode = UnsafeNativeMethods.SQLGetInfoW(this, info, buffer, checked((short)buffer.Length), ADP.PtrZero); 243Bid.Trace("<odbc.SQLGetInfo|ODBC> SQLRETURN=%d, InfoType=%d, BufferLength=%d\n", (int)retcode, (int)info, buffer.Length);
fx\src\data\System\Data\Odbc\OdbcConnectionStringbuilder.cs (3)
162string[] tmp = new string[knownKeywords.Length + count]; 165int index = knownKeywords.Length; 188for(int i = 0; i < _validKeywords.Length; ++i) {
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (6)
504int nValues = Math.Min(values.Length, FieldCount); 998int cachedObjectLength = isCharsBuffer ? ((string)cachedObj).Length : ((byte[])cachedObj).Length; 1023lengthOfCopy = Math.Min(lengthOfCopy, buffer.Length - bufferIndex); 1133length = Math.Min(length, buffer.Length - bufferIndex); 1165Debug.Assert(buffer == null || bytesOrCharsLength <= (buffer.Length - bufferIndex), "Not enough space in user's buffer"); 1323cbOffset += junk.Length;
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (6)
96for (int i = 0; i < _schemaMapping.Length; i++){ 481Debug.Assert(allRestrictions.Length >= restrictionsCount); 488if (restrictions.Length > restrictionsCount) { 492for (i=0; i < restrictions.Length; i++) { 812if (restrictions.Length >= indexOfIndexName+1) { 948for (int i = 0; i < values.Length; ++i) {
fx\src\data\System\Data\Odbc\OdbcParameter.cs (11)
343cch = ((char[])value).Length - offset; 354cch = ((byte[])value).Length - offset; 394cch = ((char[])value).Length - offset; 398cch = ((byte[])value).Length - offset; 441ccb = (((char[])value).Length - offset ) * 2 + 2; 444ccb = ((byte[])value).Length - offset; 462else if ((value is byte[]) && (ccb < ((byte[])value).Length) && (_bindtype == _originalbindtype)) { 464ccb = ((byte[])value).Length; 567if (offset > ((char[])value).Length) { 572if (offset > ((byte[])value).Length) { 650size = ((byte[])value).Length;
fx\src\data\System\Data\Odbc\OdbcUtils.cs (7)
178Debug.Assert(rgChars.Length < (base.Length - valueOffset), "attempting to extend parameter buffer!"); 180WriteCharArray(offset, rgChars, 0, rgChars.Length); 181WriteInt16(offset+(rgChars.Length * 2), 0); // Add the null terminator 184length = Math.Max(0, ((char[])value).Length - valueOffset); 189Debug.Assert(rgChars.Length < (base.Length - valueOffset), "attempting to extend parameter buffer!"); 192WriteInt16(offset+(rgChars.Length * 2), 0); // Add the null terminator 201int length = rgBytes.Length;
fx\src\data\System\Data\OleDb\ColumnBinding.cs (9)
610Marshal.Copy(ptr, value, 0, value.Length); 626int length = ((ValueBindingOffset < value.Length) ? (value.Length - ValueBindingOffset) : 0); 683int length = ((ValueBindingOffset < value.Length) ? (value.Length - ValueBindingOffset) : 0); 707int bytecount = ((ValueBindingOffset < value.Length) ? Math.Min(value.Length - ValueBindingOffset, ColumnBindingMaxLen) : 0); // 70232 1076int charCount = ((ValueBindingOffset < value.Length) ? Math.Min(value.Length - ValueBindingOffset, (ColumnBindingMaxLen-2)/2) : 0); // 70232
fx\src\data\System\Data\OleDb\DBBindings.cs (13)
47for(int i = 0;i < _dbbindings.Length;++i) { 53internal Bindings(OleDbParameter[] parameters, int collectionChangeID) : this(parameters.Length) { 54_bindInfo = new tagDBPARAMBINDINFO[parameters.Length]; 237Debug.Assert(columnBindings.Length == _dbcolumns.Length, "length mismatch"); 238for(int i = 0; i < columnBindings.Length; ++i) { // WebData 94427 250return (indexStart + columnBindings.Length); 259for(int i = 0; i < parameters.Length; ++i) { 277for(int i = 0; i < parameters.Length; ++i) { 290if (!ForceRebind && ((collection.ChangeID == _collectionChangeID) && (_parameters.Length == collection.Count))) { 291for(int i = 0; i < columnBindings.Length; ++i) { 314for(int i = 0; i < columnBindings.Length; ++i) { 357for(int i = 0; i < columnBindings.Length; ++i) {
fx\src\data\System\Data\OleDb\DBPropSet.cs (5)
175for(int i = 0; i < properties.Length; ++i) { 201Debug.Assert((null != properties) && (0 < properties.Length), "invalid properties"); 203IntPtr countOfBytes = (IntPtr)(properties.Length * ODB.SizeOf_tagDBPROP); 204tagDBPROPSET propset = new tagDBPROPSET(properties.Length, propertySet); 230for(int i = 0; i < properties.Length; ++i) {
fx\src\data\System\Data\OleDb\OleDbCommand.cs (4)
391for (int i = 0; i < parameters.Length; ++i) { 408IntPtr[] ordinals = new IntPtr[bindInfo.Length]; 409for (int i = 0; i < ordinals.Length; ++i) { 414OleDbHResult hr = commandWithParameters.SetParameterInfo((IntPtr)bindInfo.Length, ordinals, bindInfo);
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (4)
131for(int i = 0; i < list.Length; ++i) { 207plist = new OleDbParameter[dataRows.Length]; 208for(index = 0; index < dataRows.Length; ++index) { 286if ((0 == plist.Length) && connection.SupportSchemaRowset(OleDbSchemaGuid.Procedures)) {
fx\src\data\System\Data\OleDb\OleDbConnection.cs (4)
446if ((null == restrictions) || (0 == restrictions.Length)) { 452if ((null == restrictions) || (0 == restrictions.Length)) { 458if ((null == restrictions) || (0 == restrictions.Length)) { 553Debug.Assert(1 == dbprops.Length, "too many Properties");
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (6)
461for (int i = 0; i < values.Length; ++i) { 488for (int i = 0; i < supportedSchemas.Length; ++i) { 552for (int i = 0, offset = 0; i < supportedSchemas.Length; ++i, offset += ODB.SizeOf_Guid) { 558for (int i = 0; i < supportedSchemas.Length; ++i) { 586hr = dbSchemaRowset.GetRowset(ADP.PtrZero, ref schema, restrictions.Length, restrictions, ref ODB.IID_IRowset, 0, ADP.PtrZero, out rowset); 633for (int i = 0; i < schemaSupport.Length; ++i) {
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (2)
295int count = fstream.Read(bytes, 0, bytes.Length); 304count = fstream.Read(bytes, 0, bytes.Length);
fx\src\data\System\Data\OleDb\OledbConnectionStringbuilder.cs (6)
218knownKeywords = new string[_validKeywords.Length + dynamic.Count]; 220dynamic.Keys.CopyTo(knownKeywords, _validKeywords.Length); 240string[] tmp = new string[knownKeywords.Length + count]; 243int index = knownKeywords.Length; 281for(int i = 0; i < _validKeywords.Length; ++i) { 726Array.Sort(objValues, 0, objValues.Length);
fx\src\data\System\Data\OleDb\OleDbDataReader.cs (53)
153return ((null != metadata) ? metadata.Length : 0); 249if ((null != metadata) && (0 < metadata.Length)) { 250if ((0 < metadata.Length) && _useIColumnsRowset && (null != _connection)) { 278if (null != _metadata && 0 < _metadata.Length) { 287if (null != _metadata && 0 < _metadata.Length) { 304schemaTable.MinimumCapacity = metadata.Length; 352if (_visibleFieldCount < metadata.Length) { 361for (int i = 0; i < metadata.Length; ++i) { 388if (_visibleFieldCount < metadata.Length) { 704for (int i = 0; i < bindings.Length; ++i) { 794return value.Length; 797int byteCount = Math.Min(value.Length - srcIndex, length); 799throw ADP.InvalidSourceBufferIndex(value.Length, srcIndex, "dataIndex"); 801else if ((bufferIndex < 0) || (bufferIndex >= buffer.Length)) { // MDAC 71013 802throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 831else if ((bufferIndex < 0) || (bufferIndex >= buffer.Length)) { // MDAC 71013 832throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 1042int count = Math.Min(values.Length, _visibleFieldCount); 1043for (int i = 0; (i < _metadata.Length) && (i < count); ++i) { 1284return (0 < _metadata.Length); 1291Debug.Assert(0 <= _metadata.Length, "incorrect state for fieldCount"); 1303Debug.Assert(0 <= _metadata.Length, "incorrect state for fieldCount"); 1321for (int i = 0; (i < bindings.Length) && (i < _nextAccessorForRetrieval); ++i) { 1337Debug.Assert(null != _metadata && 0 < _metadata.Length, "no columns"); 1342for (int i = 0; i < dbBindings.Length; ++i) { 1377int[] indexToBinding = new int[metadata.Length]; 1378int[] indexWithinBinding = new int[metadata.Length]; 1383for (int i = 0; i < indexToBinding.Length; ++i) { 1409for (int i = 0; i < indexToBinding.Length; ++i) { 1413bindingCount = metadata.Length; 1417for (int i = 0; i < indexToBinding.Length; ++i) { 1429for (int index = 0; index < metadata.Length; ++index) { 1430Debug.Assert(indexToBinding[index] < dbbindings.Length, "bad indexToAccessor"); 1434for (int i = index; (i < metadata.Length) && (bindingCount == indexWithinBinding[i]); ++i) { 1515for (int i = 0; i < dbbindings.Length; ++i) { 1519for (int k = 0; k < columnBindings.Length; ++k) { 1683bool[] mustRelease = new bool[columnBindings.Length]; 1684StringMemHandle[] sptr = new StringMemHandle[columnBindings.Length]; 1688for (int i = 0; i < columnBindings.Length; ++i) { 1713hr = irow.GetColumns((IntPtr)access.Length, access); 1720for (int i = 0; i < mustRelease.Length; i++) { 1746if (_metadata.Length <= 0) { 1751for (int i = 0; i < _metadata.Length; ++i) { 1762for (int i = 0; i < _metadata.Length; ++i) { 1807Hashtable baseColumnNames = new Hashtable(_metadata.Length * 2); // MDAC 67385 1809for (int i = _metadata.Length-1; 0 <= i; --i) { 1815for (int i = 0; i < _metadata.Length; ++i) { 1885for (int i = 0; i < _metadata.Length; ++i) { 1924bool[] keys = new bool[_metadata.Length]; 1925bool[] uniq = new bool[_metadata.Length]; 1984for (int i = 0; i < _metadata.Length; ++i) { 1996for (int i = 0; i < _metadata.Length; ++i) { 2249if ((null != metadata) && (0 < metadata.Length)) {
fx\src\data\System\Data\OleDb\OleDbMetaDataFactory.cs (13)
117for (int i = 0; i < _schemaMapping.Length; i++){ 131for (int i = 0; i < schemaSupport.Length; i++){ 382Debug.Assert(sourceColumns.Length == targetColumns.Length); 397for (int i = 0; i < sourceColumns.Length; i++) { 503for (int i=0; i < _schemaMapping.Length; i++){ 520if (numberOfSupportedRestictions < restrictions.Length){ 533(restrictions.Length >= indexRestrictionTypeSlot+1) && 536mungedRestrictions = new object[restrictions.Length]; 537for (int j = 0; j <restrictions.Length; j++){ 571(restrictions.Length >= procedureRestrictionTypeSlot+1) && 574mungedRestrictions = new object[restrictions.Length]; 575for (int j = 0; j <restrictions.Length; j++){
fx\src\data\System\Data\OleDb\OleDbPermission.cs (2)
58if (0 < restrictions.Length) { 60for (int i = 1; i < restrictions.Length; ++i) {
fx\src\data\System\Data\OleDb\PropertyIDSet.cs (3)
48internal PropertyIDSet(Guid[] propertySets) : base(PropertyIDSetSize * propertySets.Length) { 49_count = propertySets.Length; 50for(int i = 0; i < propertySets.Length; ++i) {
fx\src\data\System\Data\OleDb\RowBinding.cs (6)
105hr = iaccessor.CreateAccessor(flags, (IntPtr)rowBindStatus.Length, this, (IntPtr)_dataLength, out _accessorHandle, rowBindStatus); // MDAC 69530 108for (int k = 0; k < rowBindStatus.Length; ++k) { 126Debug.Assert(dbbindings.Length == BindingCount(), "count mismatch"); 135for(int i = 0; i < dbbindings.Length; ++i) { 146ColumnBinding[] columns = new ColumnBinding[dbbindings.Length]; 147for(int indexWithinAccessor = 0; indexWithinAccessor < columns.Length; ++indexWithinAccessor) {
fx\src\data\System\Data\OleDb\SafeHandles.cs (1)
33int count = (null != literals) ? literals.Length : 0;
fx\src\data\System\Data\ProviderBase\DbBuffer.cs (8)
144Debug.Assert(startIndex + length <= destination.Length, "destination too small"); 172Debug.Assert(startIndex + length <= destination.Length, "destination too small"); 222Debug.Assert(startIndex + length <= destination.Length, "destination too small"); 266Debug.Assert(startIndex + length <= destination.Length, "destination too small"); 388Debug.Assert(startIndex + length <= source.Length, "source too small"); 410Debug.Assert(startIndex + length <= source.Length, "source too small"); 456Debug.Assert(startIndex + length <= source.Length, "source too small"); 498Debug.Assert(startIndex + length <= source.Length, "source too small");
fx\src\data\System\Data\ProviderBase\DbConnectionFactory.cs (3)
223for (idx=0; idx<s_pendingOpenNonPooled.Length; idx++) { 235if (idx == s_pendingOpenNonPooled.Length) { 236idx = s_pendingOpenNonPooledNext++ % s_pendingOpenNonPooled.Length;
fx\src\data\System\Data\ProviderBase\DbConnectionPoolAuthenticationContext.cs (1)
56Debug.Assert(accessToken != null && accessToken.Length > 0);
fx\src\data\System\Data\ProviderBase\DbMetaDataFactory.cs (4)
140if ((restrictions != null) && (restrictions.Length > numberOfRestrictions)) { 153if ((restrictions != null) && (restrictions.Length > i ) && (restrictions[i] != null)) { 396for (int i = 0; i < restrictions.Length; i++) { 465for (int i = 0 ; i < hiddenColumnNames.Length; i++) {
fx\src\Data\System\Data\ProviderBase\DbParameterHelper.cs (2)
257return bvalue.Length; 261return cvalue.Length;
fx\src\data\System\Data\ProviderBase\DbReferenceCollection.cs (3)
93if ((!itemAdded) && (_lastItemIndex + 1 < _items.Length)) { 113Array.Resize<CollectionEntry>(ref _items, _items.Length * 2); 177if (_items.Length > 100) {
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (28)
181bool[] readOnly = new bool[mapped.Length]; 182for (int i = 0; i < readOnly.Length; ++i) { 189for (int i = 0; i < readOnly.Length; ++i) { 195for(int i = 0; i < mapped.Length; ++i) { 203for (int i = 0; i < readOnly.Length; ++i) { 243Debug.Assert(_mappedLength == _indexMap.Length, "incorrect precomputed length"); 255Debug.Assert(_mappedLength == Math.Min(_readerDataValues.Length, _mappedDataValues.Length), "incorrect precomputed length"); 265for(int i = 0; i < _xmlMap.Length; ++i) { 334for (int i = 0; i < _readerDataValues.Length; ++i) { 374for(int i = 0; i < _chapterMap.Length; ++i) { 388int rowLength = _chapterMap.Length; 433for(int i = 0; i < fieldNames.Length; ++i) { 442Debug.Assert(len <= rgcol.Length, "invalid len passed to ResizeArray"); 551for(int x = 0; x < _xmlMap.Length; ++x) { 644Debug.Assert(_dataReader.FieldCount <= schemaRows.Length, "unexpected fewer rows in Schema than FieldCount"); 646if (0 == schemaRows.Length) { 653bool addPrimaryKeys = (((0 == _dataTable.PrimaryKey.Length) && ((4 <= (int)_loadOption) || (0 == _dataTable.Rows.Count))) 675for(int sortedIndex = 0; sortedIndex < schemaRows.Length; ++sortedIndex) { 692chapterIndexMap = new bool[schemaRows.Length]; 699_xmlMap = new int[schemaRows.Length]; 706_xmlMap = new int[schemaRows.Length]; 719columnIndexMap = CreateIndexMap(schemaRows.Length, unsortedIndex); 750for(int x = 0; x < _xmlMap.Length; ++x) { 855keys = new DataColumn[schemaRows.Length]; 879columnIndexMap = CreateIndexMap(schemaRows.Length, unsortedIndex); 912if (keyCount < keys.Length) { 956dataValues = SetupMapping(schemaRows.Length, columnCollection, chapterColumn, chapterValue);
fx\src\data\System\Data\RbTree.cs (14)
123_pageTableMap = new Int32[(_pageTable.Length + TreePage.slotLineSize - 1) / TreePage.slotLineSize]; // Ceiling(size) 163TreePage[] newPageTable = new TreePage[_pageTable.Length * 2]; 164System.Array.Copy (_pageTable, 0, newPageTable, 0, _pageTable.Length); 165Int32[] newPageTableMap = new Int32[(newPageTable.Length + TreePage.slotLineSize - 1) / TreePage.slotLineSize]; 166System.Array.Copy (_pageTableMap, 0, newPageTableMap, 0, _pageTableMap.Length); 168nextFreePageLine = _pageTableMap.Length; 169freePageIndex = _pageTable.Length; 260else if (page.InUseCount == page.Slots.Length - 1) 275while (pageTableMapPos < _pageTableMap.Length) 1563if (array.Length - index < Count) { 1582if (array.Length - index < Count) { 1892if (_inUseCount < Slots.Length) 1895while (segmentPos < SlotMap.Length) 1907if (_inUseCount == Slots.Length) // mark page as full
fx\src\data\System\Data\RecordManager.cs (5)
40Array.Copy(rows, 0, newRows, 0, Math.Min(lastFreeRecord, rows.Length)); 164Debug.Assert(record >= 0 && record < rows.Length, "Invalid record number"); 168Debug.Assert(record >= 0 && record < rows.Length, "Invalid record number"); 174for (int i = 0; i < keyValues.Length; i++) { 233lastFreeRecord = rows.Length;
fx\src\data\System\Data\RelatedView.cs (6)
71if (childValues.Length != parentValues.Length) { 75for (int i = 0; i < childValues.Length; i++) { 131if (value1.Length != value2.Length) { 134for(int i = 0; i < value1.Length; i++) {
fx\src\data\System\Data\Select.cs (20)
158if (fields.Length < IndexFields.Length) 161for (int i = 0; i < fields.Length && j < IndexFields.Length; i++) { 171return j == IndexFields.Length; 201int count = (fields.Length < nCandidates ? fields.Length : nCandidates); 256for (int i = 0; i < depColumns.Length; i++) { 273int lenCanColumns = candidateColumns.Length; 274int lenIndexDesc = IndexFields.Length; 315for(i = 0; i < candidateColumns.Length; i++) { 367for(i = 0; i < candidateColumns.Length; i++) { 397int lenId = fields.Length; 407int lenCanColumns = candidateColumns.Length; 434for (int i=0; i<candidateColumns.Length; i++) { 449if (index == null && (IndexFields.Length > 0 || this.linearExpression == this.expression)) { 480this.recordCount = this.records.Length; 491for (int i = 0; i < newRows.Length; i++) { 663Debug.Assert(matchedCandidates <= index.IndexFields.Length, "GetBinaryFilteredRecords : Invalid Index"); 714int lenIndexDesc = IndexFields.Length;
fx\src\data\System\Data\Selection.cs (21)
106for(int i = 0; i < fields.Length; ++i) { 150IndexFields.Length != indexDesc.Length || 157for (int loop = 0; loop < IndexFields.Length; loop++) { 323if (0 < IndexFields.Length) { 324for (int i = 0; i < IndexFields.Length; i++) { 394for (int i = 0; i < IndexFields.Length; i++) { 494if (IndexFields == null || IndexFields.Length == 0) { 531if (IndexFields.Length != 1) { 532throw ExceptionBuilder.IndexKeyLength(IndexFields.Length, 1); 563c = ((null != originalKey) ? originalKey.Length : 0); 564if ((0 == c) || (IndexFields.Length != c)) { 565throw ExceptionBuilder.IndexKeyLength(IndexFields.Length, c); 571object[] key = new object[originalKey.Length]; 572for(int i = 0; i < originalKey.Length; ++i) { 677if (0 < newRows.Length) { 679for (int i = 0; i < newRows.Length && iterator.MoveNext(); i++) { 692bool append = (0 == IndexFields.Length); 754if ((0 == IndexFields.Length) && (null != table)) 946object[] element = new object[IndexFields.Length]; // number of columns in PK 947for (int j = 0; j < element.Length; ++j) {
fx\src\data\System\Data\Sql\SqlDataSourceEnumerator.cs (1)
144if (dataTable.Select(query).Length == 0) {
fx\src\data\System\Data\Sql\SqlMetaData.cs (16)
907Array.Copy(rgbValue, rgbNewValue, rgbValue.Length); 908Array.Clear(rgbNewValue, rgbValue.Length, rgbNewValue.Length - rgbValue.Length); 1000Array.Clear(rgbTemp, oldLength, rgbTemp.Length - oldLength); 1168long maxLen = ((System.Byte[])value).Length; 1178long maxLen = ((System.Char[])value).Length; 1331if (value.Length < MaxLength) 1334Array.Copy(value, rgbNewValue, value.Length); 1335Array.Clear(rgbNewValue, value.Length, (int) rgbNewValue.Length - value.Length); 1351if (value.Length > MaxLength && Max != MaxLength) 1386long oldLength = value.Length; 1393for(long i=oldLength; i<rgchNew.Length; i++) 1411if (value.Length > MaxLength && Max != MaxLength)
fx\src\data\System\Data\Sql\sqlnorm.cs (20)
87m_fieldsToNormalize = new FieldInfoEx[fields.Length]; 148s.Read(m_PadBuffer, 0, m_PadBuffer.Length); 176s.Write(m_PadBuffer, 0, m_PadBuffer.Length); 270for (int i = 0; i < b.Length; i++) 354s.Write(b, 0, b.Length); 359s.Read(b, 0, b.Length); 376s.Write(b, 0, b.Length); 381s.Read(b, 0, b.Length); 400s.Write(b, 0, b.Length); 405s.Read(b, 0, b.Length); 422s.Write(b, 0, b.Length); 427s.Read(b, 0, b.Length); 444s.Write(b, 0, b.Length); 449s.Read(b, 0, b.Length); 468s.Write(b, 0, b.Length); 473s.Read(b, 0, b.Length); 504s.Write(b, 0, b.Length); 509s.Read(b, 0, b.Length); 551s.Write(b, 0, b.Length); 556s.Read(b, 0, b.Length);
fx\src\data\System\Data\Sql\sqlser.cs (1)
114if (attr != null && attr.Length == 1) {
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256Algorithm.cs (25)
164int numBlocks = plainText.Length / _BlockSizeInBytes + 1; 173int outputBufSize = sizeof(byte) + authenticationTagLen + iv.Length + (numBlocks*_BlockSizeInBytes); 178Buffer.BlockCopy(iv, 0, outBuffer, ivStartIndex, iv.Length); 216byte[] buffTmp = encryptor.TransformFinalBlock(plainText, count, plainText.Length - count); // done encrypting 217Buffer.BlockCopy(buffTmp, 0, outBuffer, cipherIndex, buffTmp.Length); 218cipherIndex += buffTmp.Length; 224hmac.TransformBlock(_version, 0, _version.Length, _version, 0); 225hmac.TransformBlock(iv, 0, iv.Length, iv, 0); 229hmac.TransformFinalBlock(_versionSize, 0, _versionSize.Length); 231Debug.Assert(hash.Length >= authenticationTagLen, "Unexpected hash size"); 271if (cipherText.Length < minimumCipherTextLength) { 272throw SQL.InvalidCipherTextSize(cipherText.Length, minimumCipherTextLength); 292Buffer.BlockCopy(cipherText, startIndex, iv, 0, iv.Length); 293startIndex += iv.Length; 297int cipherTextCount = cipherText.Length - startIndex; 302if (!SqlSecurityUtility.CompareBytes(authenticationTag, cipherText, authenticationTagOffset, authenticationTag.Length)) { 321Debug.Assert ((count+offset) <= cipherText.Length); 391retVal = hmac.TransformBlock(_version, 0, _version.Length, _version, 0); 392Debug.Assert(retVal == _version.Length); 393retVal = hmac.TransformBlock(iv, 0, iv.Length, iv, 0); 394Debug.Assert(retVal == iv.Length); 397hmac.TransformFinalBlock(_versionSize, 0, _versionSize.Length); 401Debug.Assert (computedHash.Length >= authenticationTag.Length); 402Buffer.BlockCopy (computedHash, 0, authenticationTag, 0, authenticationTag.Length);
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256EncryptionKey.cs (2)
74if (rootKey.Length != keySizeInBytes) 77rootKey.Length,
fx\src\data\System\Data\SqlClient\SqlAeadAes256CbcHmac256Factory.cs (1)
50StringBuilder algorithmKeyBuilder = new StringBuilder(Convert.ToBase64String(encryptionKey.RootKey), SqlSecurityUtility.GetBase64LengthFromByteLength(encryptionKey.RootKey.Length) + 4/*separators, type and version*/);
fx\src\data\System\Data\SqlClient\SqlAes256CbcFactory.cs (1)
54StringBuilder algorithmKeyBuilder = new StringBuilder(Convert.ToBase64String(encryptionKey.RootKey), SqlSecurityUtility.GetBase64LengthFromByteLength(encryptionKey.RootKey.Length) + 4/*separators, type and version*/);
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (4)
785for(int i = 0; i < buffers.Length; ++i) { 792SqlBuffer[] copy = new SqlBuffer[values.Length]; 793for (int i=0; i<values.Length; i++) { 801for(int i = 0; i < values.Length; ++i) {
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (5)
132for(int i = 0; i < indexmap.Length; i++) { 1052_currentRowLength = _currentRow.ItemArray.Length; 1568if (rows.Length == 0) { 1613if (rows.Length == 0) { 2471for (int i = 0; i < _currentRowMetadata.Length; i++) {
fx\src\data\System\Data\SqlClient\SqlCachedBuffer.cs (2)
69Debug.Assert(cb == byteArr.Length); 92if ((byteArr.Length < 2 ) || (byteArr[0] != 0xDF) || (byteArr[1] != 0xFF)){
fx\src\data\System\Data\SqlClient\SqlClientSymmetricKey.cs (2)
30if (rootKey == null || rootKey.Length == 0) { 68return _rootKey.Length;
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.cs (45)
86else if (0 == encryptedColumnEncryptionKey.Length) 115int currentIndex = _version.Length; 135int signatureLength = encryptedColumnEncryptionKey.Length - currentIndex - cipherTextLength; 143Buffer.BlockCopy(encryptedColumnEncryptionKey, currentIndex, cipherText, 0, cipherText.Length); 148Buffer.BlockCopy(encryptedColumnEncryptionKey, currentIndex, signature, 0, signature.Length); 154sha256.TransformFinalBlock(encryptedColumnEncryptionKey, 0, encryptedColumnEncryptionKey.Length - signature.Length); 186else if (0 == columnEncryptionKey.Length) 210byte[] keyPathLength = BitConverter.GetBytes((Int16)masterKeyPathBytes.Length); 214byte[] cipherTextLength = BitConverter.GetBytes((Int16)cipherText.Length); 215Debug.Assert(cipherText.Length == keySizeInBytes, @"cipherText length does not match the RSA key size"); 222sha256.TransformBlock(version, 0, version.Length, version, 0); 223sha256.TransformBlock(keyPathLength, 0, keyPathLength.Length, keyPathLength, 0); 224sha256.TransformBlock(cipherTextLength, 0, cipherTextLength.Length, cipherTextLength, 0); 225sha256.TransformBlock(masterKeyPathBytes, 0, masterKeyPathBytes.Length, masterKeyPathBytes, 0); 226sha256.TransformFinalBlock(cipherText, 0, cipherText.Length); 232Debug.Assert(signedHash.Length == keySizeInBytes, @"signed hash length does not match the RSA key size"); 237int encryptedColumnEncryptionKeyLength = version.Length + cipherTextLength.Length + keyPathLength.Length + cipherText.Length + masterKeyPathBytes.Length + signedHash.Length; 242Buffer.BlockCopy(version, 0, encryptedColumnEncryptionKey, currentIndex, version.Length); 243currentIndex += version.Length; 246Buffer.BlockCopy(keyPathLength, 0, encryptedColumnEncryptionKey, currentIndex, keyPathLength.Length); 247currentIndex += keyPathLength.Length; 250Buffer.BlockCopy(cipherTextLength, 0, encryptedColumnEncryptionKey, currentIndex, cipherTextLength.Length); 251currentIndex += cipherTextLength.Length; 254Buffer.BlockCopy(masterKeyPathBytes, 0, encryptedColumnEncryptionKey, currentIndex, masterKeyPathBytes.Length); 255currentIndex += masterKeyPathBytes.Length; 258Buffer.BlockCopy(cipherText, 0, encryptedColumnEncryptionKey, currentIndex, cipherText.Length); 259currentIndex += cipherText.Length; 262Buffer.BlockCopy(signedHash, 0, encryptedColumnEncryptionKey, currentIndex, signedHash.Length); 321sha256.TransformFinalBlock(masterkeyMetadataBytes, 0, masterkeyMetadataBytes.Length); 403if (certParts.Length > 3) 409if (certParts.Length > 2) 427if (certParts.Length > 1) 429if (string.Equals(certParts[certParts.Length - 2], _myCertificateStore, StringComparison.OrdinalIgnoreCase) == true) 436throw SQL.InvalidCertificateStore(certParts[certParts.Length - 2], keyPath, _myCertificateStore, isSystemOp); 441string thumbprint = certParts[certParts.Length - 1]; 526Debug.Assert((cipherText != null) && (cipherText.Length != 0)); 542Debug.Assert((dataToSign != null) && (dataToSign.Length != 0)); 568Debug.Assert((dataToVerify != null) && (dataToVerify.Length != 0)); 569Debug.Assert((signature != null) && (signature.Length != 0));
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCngProvider.cs (38)
67if (0 == encryptedColumnEncryptionKey.Length) 95int currentIndex = _version.Length; 115int signatureLength = encryptedColumnEncryptionKey.Length - currentIndex - cipherTextLength; 123Buffer.BlockCopy(encryptedColumnEncryptionKey, currentIndex, cipherText, 0, cipherText.Length); 128Buffer.BlockCopy(encryptedColumnEncryptionKey, currentIndex, signature, 0, signature.Length); 134sha256.TransformFinalBlock(encryptedColumnEncryptionKey, 0, encryptedColumnEncryptionKey.Length - signature.Length); 167else if (0 == columnEncryptionKey.Length) 190byte[] keyPathLength = BitConverter.GetBytes((Int16)masterKeyPathBytes.Length); 194byte[] cipherTextLength = BitConverter.GetBytes((Int16)cipherText.Length); 195Debug.Assert(cipherText.Length == keySizeInBytes, @"cipherText length does not match the RSA key size"); 202sha256.TransformBlock(version, 0, version.Length, version, 0); 203sha256.TransformBlock(keyPathLength, 0, keyPathLength.Length, keyPathLength, 0); 204sha256.TransformBlock(cipherTextLength, 0, cipherTextLength.Length, cipherTextLength, 0); 205sha256.TransformBlock(masterKeyPathBytes, 0, masterKeyPathBytes.Length, masterKeyPathBytes, 0); 206sha256.TransformFinalBlock(cipherText, 0, cipherText.Length); 212Debug.Assert(signedHash.Length == keySizeInBytes, @"signed hash length does not match the RSA key size"); 217int encryptedColumnEncryptionKeyLength = version.Length + cipherTextLength.Length + keyPathLength.Length + cipherText.Length + masterKeyPathBytes.Length + signedHash.Length; 222Buffer.BlockCopy(version, 0, encryptedColumnEncryptionKey, currentIndex, version.Length); 223currentIndex += version.Length; 226Buffer.BlockCopy(keyPathLength, 0, encryptedColumnEncryptionKey, currentIndex, keyPathLength.Length); 227currentIndex += keyPathLength.Length; 230Buffer.BlockCopy(cipherTextLength, 0, encryptedColumnEncryptionKey, currentIndex, cipherTextLength.Length); 231currentIndex += cipherTextLength.Length; 234Buffer.BlockCopy(masterKeyPathBytes, 0, encryptedColumnEncryptionKey, currentIndex, masterKeyPathBytes.Length); 235currentIndex += masterKeyPathBytes.Length; 238Buffer.BlockCopy(cipherText, 0, encryptedColumnEncryptionKey, currentIndex, cipherText.Length); 239currentIndex += cipherText.Length; 242Buffer.BlockCopy(signedHash, 0, encryptedColumnEncryptionKey, currentIndex, signedHash.Length); 332Debug.Assert((encryptedColumnEncryptionKey != null) && (encryptedColumnEncryptionKey.Length != 0)); 346Debug.Assert((dataToSign != null) && (dataToSign.Length != 0)); 361Debug.Assert((dataToVerify != null) && (dataToVerify.Length != 0)); 362Debug.Assert((signature != null) && (signature.Length != 0));
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (38)
73if (0 == encryptedColumnEncryptionKey.Length) 101int currentIndex = _version.Length; 121int signatureLength = encryptedColumnEncryptionKey.Length - currentIndex - cipherTextLength; 129Buffer.BlockCopy(encryptedColumnEncryptionKey, currentIndex, cipherText, 0, cipherText.Length); 134Buffer.BlockCopy(encryptedColumnEncryptionKey, currentIndex, signature, 0, signature.Length); 140sha256.TransformFinalBlock(encryptedColumnEncryptionKey, 0, encryptedColumnEncryptionKey.Length - signature.Length); 173else if (0 == columnEncryptionKey.Length) 196byte[] keyPathLength = BitConverter.GetBytes((Int16)masterKeyPathBytes.Length); 200byte[] cipherTextLength = BitConverter.GetBytes((Int16)cipherText.Length); 201Debug.Assert(cipherText.Length == keySizeInBytes, @"cipherText length does not match the RSA key size"); 208sha256.TransformBlock(version, 0, version.Length, version, 0); 209sha256.TransformBlock(keyPathLength, 0, keyPathLength.Length, keyPathLength, 0); 210sha256.TransformBlock(cipherTextLength, 0, cipherTextLength.Length, cipherTextLength, 0); 211sha256.TransformBlock(masterKeyPathBytes, 0, masterKeyPathBytes.Length, masterKeyPathBytes, 0); 212sha256.TransformFinalBlock(cipherText, 0, cipherText.Length); 218Debug.Assert(signedHash.Length == keySizeInBytes, @"signed hash length does not match the RSA key size"); 223int encryptedColumnEncryptionKeyLength = version.Length + cipherTextLength.Length + keyPathLength.Length + cipherText.Length + masterKeyPathBytes.Length + signedHash.Length; 228Buffer.BlockCopy(version, 0, encryptedColumnEncryptionKey, currentIndex, version.Length); 229currentIndex += version.Length; 232Buffer.BlockCopy(keyPathLength, 0, encryptedColumnEncryptionKey, currentIndex, keyPathLength.Length); 233currentIndex += keyPathLength.Length; 236Buffer.BlockCopy(cipherTextLength, 0, encryptedColumnEncryptionKey, currentIndex, cipherTextLength.Length); 237currentIndex += cipherTextLength.Length; 240Buffer.BlockCopy(masterKeyPathBytes, 0, encryptedColumnEncryptionKey, currentIndex, masterKeyPathBytes.Length); 241currentIndex += masterKeyPathBytes.Length; 244Buffer.BlockCopy(cipherText, 0, encryptedColumnEncryptionKey, currentIndex, cipherText.Length); 245currentIndex += cipherText.Length; 248Buffer.BlockCopy(signedHash, 0, encryptedColumnEncryptionKey, currentIndex, signedHash.Length); 341Debug.Assert((encryptedColumnEncryptionKey != null) && (encryptedColumnEncryptionKey.Length != 0)); 355Debug.Assert((dataToSign != null) && (dataToSign.Length != 0)); 370Debug.Assert((dataToVerify != null) && (dataToVerify.Length != 0)); 371Debug.Assert((signature != null) && (signature.Length != 0));
fx\src\data\System\Data\SqlClient\SqlCommand.cs (22)
345Bid.Trace("<sc.SqlCommand.CommandEventSink.ParametersAvailable|ADV> %d# metaData.Length=%d.\n", _command.ObjectID, (null!=metaData)?metaData.Length:-1); 348for (int i=0; i < metaData.Length; i++) { 1927bool isXmlCapable = (null != md && md.Length == 1 && (md[0].SqlDbType == SqlDbType.NText 2735Debug.Assert(parsedSProc.Length == 4, "Invalid array length result from SqlCommandBuilder.ParseProcedureName"); 3598for (int i = 0; i < _SqlRPCBatchArray.Length; i++) { 3601if (_SqlRPCBatchArray[i].parameters.Length > 1) { 3631Debug.Assert(_sqlRPCParameterEncryptionReqArray.Length > 0, "There should be at-least 1 describe parameter encryption rpc request."); 3632Debug.Assert(_sqlRPCParameterEncryptionReqArray.Length <= _SqlRPCBatchArray.Length, 3724Debug.Assert(originalRpcRequest.parameters != null && originalRpcRequest.parameters.Length > 0, 3749if (originalRpcRequest.parameters.Length > 1) { 3797Size = attestationParameters.Length, 3834if (resultSetSequenceNumber >= _sqlRPCParameterEncryptionReqArray.Length) { 3872ds.GetBytes((int)DescribeParameterEncryptionResultSet1.KeyMdVersion, 0, keyMdVersion, 0, keyMdVersion.Length); 3985for (paramIdx = parameterStartIndex; paramIdx < rpc.parameters.Length && rpc.parameters[paramIdx] != null; paramIdx++) { 4029for (paramIdx = parameterStartIndex; paramIdx < rpc.parameters.Length && rpc.parameters[paramIdx] != null; paramIdx++) { 4082for (int i = 0; i < _SqlRPCBatchArray.Length; i++) { 5277for(int index=0; index < paramMetaData.Length; index++) { 5401if(rpc.parameters == null || rpc.parameters.Length < paramCount) { 5404else if (rpc.parameters.Length > paramCount) { 5407if(rpc.paramoptions == null || (rpc.paramoptions.Length < paramCount)) { 5883for (int i = 0; i < strings.Length; i++ ) {
fx\src\data\System\Data\SqlClient\SqlCommandSet.cs (4)
160int countOfBytes = byteValues.Length - offset; 165Buffer.BlockCopy(byteValues, offset, copy, 0, copy.Length); 174int countOfChars = charValues.Length - offset; 179Buffer.BlockCopy(charValues, offset, copy, 0, copy.Length*2);
fx\src\data\System\Data\SqlClient\SqlConnection.cs (5)
2020p = new SqlParameter(null, SqlDbType.VarBinary, (null != data) ? data.Length : 0); 2157sdc.machineName = cp.GetString(memMap.rgbMachineName, 0, memMap.rgbMachineName.Length); 2158sdc.sdiDllName = cp.GetString(memMap.rgbDllName, 0, memMap.rgbDllName.Length); 2515Marshal.Copy(rgbMachineName, 0, ADP.IntPtrOffset(pMemMap, offset), rgbMachineName.Length); 2517Marshal.Copy(rgbSDIDLLName, 0, ADP.IntPtrOffset(pMemMap, offset), rgbSDIDLLName.Length);
fx\src\data\System\Data\SqlClient\SqlConnectionStringBuilder.cs (4)
887object[] values = new object[_validKeywords.Length]; 888for(int i = 0; i < values.Length; ++i) { 897for(int i = 0; i < _validKeywords.Length; ++i) { 1339for(int i = 0; i < serverNames.Length; ++i) {
fx\src\data\System\Data\SqlClient\SqlConnectionTimeoutErrorInternal.cs (2)
92for (int i = 0; i < phaseDurations.Length; i++) 118for (int i = 0; i < phaseDurations.Length; i++)
fx\src\data\System\Data\SqlClient\SqlDataReader.cs (24)
1148for (int i = 0; i < indexMap.Length; ++i) { 1217Debug.Assert(i < _data.Length, "Reading beyond data length?"); 1616if (bufferIndex < 0 || bufferIndex >= buffer.Length) 1617throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 1620if (length + bufferIndex > buffer.Length) 1683cbytes = data.Length; 1711cbytes = data.Length; 1717if (bufferIndex < 0 || bufferIndex >= buffer.Length) 1718throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 1721if (cbytes + bufferIndex > buffer.Length) 1793Debug.Assert(index + length <= buffer.Length, "Buffer too small"); 1978if ((bufferIndex < 0) || (buffer != null && bufferIndex >= buffer.Length)) { 1979throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 1983if (buffer != null && (length + bufferIndex > buffer.Length)) { 2026int cchars = _columnDataChars.Length; 2060cchars = _columnDataChars.Length; 2066if (bufferIndex < 0 || bufferIndex >= buffer.Length) 2067throw ADP.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 2070if (cchars + bufferIndex > buffer.Length) 2480int copyLen = (values.Length < _metaData.visibleColumns) ? values.Length : _metaData.visibleColumns; 2685int copyLen = (values.Length < _metaData.visibleColumns) ? values.Length : _metaData.visibleColumns; 3738if (_data == null || _data.Length<metaDataSet.Length) {
fx\src\data\System\Data\SqlClient\SqlDataReaderSmi.cs (9)
162int copyLength = (values.Length < _visibleColumnCount) ? values.Length : _visibleColumnCount; 836int copyLength = (values.Length < _visibleColumnCount) ? values.Length : _visibleColumnCount; 1020return _currentMetaData.Length; 1078_indexMap = new int[_currentMetaData.Length]; 1081for(i=0; i<_currentMetaData.Length; i++) { 1150Bid.Trace("<sc.SqlDataReaderSmi.ReaderEventSink.MetaDataAvailable|ADV> %d#, md.Length=%d nextEventIsRow=%d.\n", reader.ObjectID, (null != md) ? md.Length : -1, nextEventIsRow); 1153for (int i=0; i < md.Length; i++) {
fx\src\data\System\Data\SqlClient\SqlDelegatedTransaction.cs (1)
476Array.Copy(_connection.PromotedDTCToken, _globalTransactionsTokenVersionSizeInBytes /* Skip the version */, txnGuid, 0, txnGuid.Length);
fx\src\data\System\Data\SqlClient\SqlDependency.cs (2)
951Debug.Assert(temp.Length == 1, "If databaseList.Count==1, why does copied array have length other than 1?"); 1181for (int j=0; j<temp.Length; j++) {
fx\src\data\System\Data\SqlClient\SqlDependencyUtils.cs (2)
527for (int i=0; i < dependencies.Length; i++) { 557for (int i=0; i < dependencies.Length; i++) {
fx\src\data\System\Data\SqlClient\SqlEnums.cs (2)
291if (!inferLen || ((byte[]) value).Length <= TdsEnums.TYPE_SIZE_LIMIT) { 486Debug.Assert(attributes.Length > 0, failedAssertMessage);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionSmi.cs (2)
410Bid.TraceBin("<sc.SqlInternalConnectionSmi.GetDTCAddress|ADV> whereAbouts", whereAbouts, (UInt16)whereAbouts.Length); 463Bid.TraceBin("<sc.SqlInternalConnectionSmi.PropagateTransactionCookie|ADV> transactionCookie", transactionCookie, (UInt16)transactionCookie.Length);
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (8)
2475Debug.Assert(fedAuthToken.accessToken != null && fedAuthToken.accessToken.Length > 0, "fedAuthToken.accessToken should not be null or empty."); 2508while (i < data.Length) { 2545if (data.Length != 0) { 2586if (data.Length < 1) { 2602if (data.Length > 1) { 2603_parser.EnclaveType = Encoding.Unicode.GetString(data, 2, (data.Length - 2)); 2614if (data.Length < 1) { 2631if (data.Length < 1) {
fx\src\data\System\Data\SqlClient\SqlParameter.cs (9)
456if (1 == names.Length) { 459else if (2 == names.Length) { 463else if (3 == names.Length) { 1106if (null != dt.PrimaryKey && 0 < dt.PrimaryKey.Length) { 1645return ((SqlChars)value).Value.Length; 1655return cvalue.Length; 1673return ((SqlBytes)value).Value.Length; 1679return bvalue.Length; 1701return ((SqlChars) value).Value.Length;
fx\src\data\System\Data\SqlClient\SqlSecurityUtility.cs (11)
34Debug.Assert(hash.Length != 0 && hash.Length <= MaxSHA256HashBytes); 40Buffer.BlockCopy (computedHash, 0, hash, 0, hash.Length); 80Debug.Assert (buffer2Index > -1 && buffer2Index < buffer2.Length, "invalid index");// bounds on buffer2Index 81if ((buffer2.Length -buffer2Index) < lengthToCompare) { 85for (int index = 0; index < buffer1.Length && index < lengthToCompare; ++index) { 163if (null == cipherText || 0 == cipherText.Length) { 174int count = (buff.Length > countOfBytes) ? countOfBytes : buff.Length; 177startIndex = buff.Length - count; 290if (CMKSignature == null || CMKSignature.Length == 0) {
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (1)
331if (checked(offset + count) > buffer.Length)
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (14)
172if ((byteBufferUsed < byteBuffer.Length) || (byteBuffer.Length == 0)) 178Task<int> getBytesTask = reader.GetBytesAsync(_columnIndex, byteBuffer, byteBufferUsed, byteBuffer.Length - byteBufferUsed, Timeout.Infinite, _disposalTokenSource.Token, out bytesRead); 310Debug.Assert((index >= 0) && (count >= 0) && (index + count <= buffer.Length), string.Format("Bad count: {0} or index: {1}", count, index)); 317byteBufferUsed += _reader.GetBytesInternalSequential(_columnIndex, byteBuffer, byteBufferUsed, byteBuffer.Length - byteBufferUsed); 358if (_leftOverBytes.Length > byteBufferSize) 361byteBufferUsed = byteBuffer.Length; 367Array.Copy(_leftOverBytes, byteBuffer, _leftOverBytes.Length); 368byteBufferUsed = _leftOverBytes.Length; 393Debug.Assert((inBufferCount > 0) && (inBufferCount <= inBuffer.Length), string.Format("Bad inBufferCount: {0}", inBufferCount)); 395Debug.Assert((outBufferOffset >= 0) && (outBufferCount > 0) && (outBufferOffset + outBufferCount <= outBuffer.Length), string.Format("Bad outBufferCount: {0} or outBufferOffset: {1}", outBufferCount, outBufferOffset)); 406Array.Copy(inBuffer, bytesUsed, _leftOverBytes, 0, _leftOverBytes.Length); 468if (checked(index + count) > buffer.Length) 518Convert(bytes, byteIndex, byteCount, chars, charIndex, chars.Length - charIndex, true, out bytesUsed, out charsUsed, out completed);
fx\src\data\System\Data\SqlClient\SqlStream.cs (8)
110if (buffer.Length - offset < count) { 310pos += _cachedBytes[ii].Length; 358if (buffer.Length - offset < count) { 367if (_cachedBytes[_currentArrayIndex].Length <= _currentPosition) { 376cb = _cachedBytes[_currentArrayIndex].Length - _currentPosition; 433if (pos > _cachedBytes[ii].Length) { 434pos -= _cachedBytes[ii].Length; 451pos += _cachedBytes[ii].Length;
fx\src\data\System\Data\SqlClient\SqlSymmetricKeyCache.cs (1)
41StringBuilder cacheLookupKeyBuilder = new StringBuilder(serverName, capacity: serverName.Length + SqlSecurityUtility.GetBase64LengthFromByteLength(keyInfo.encryptedKey.Length) + keyInfo.keyStoreName.Length + 2/*separators*/);
fx\src\data\System\Data\SqlClient\SqlUdtInfo.cs (1)
68if (attr != null && attr.Length == 1) {
fx\src\data\System\Data\SqlClient\SqlUtil.cs (3)
874Debug.Assert(2 == validLocations.Length); 902Debug.Assert(2 == validLocations.Length); 993Debug.Assert(2 == validLocations.Length);
fx\src\data\System\Data\SqlClient\TdsParser.cs (102)
826Debug.Assert(GUID_SIZE == connectionIdBytes.Length); 899result = _physicalStateObj.TryReadByteArray(payload, 0, payload.Length); 1092if (offset < payload.Length) { 1521Debug.Assert(2 == stateObj._bShortBytes.Length); 1534if ((stateObj._outBytesUsed + 2) > stateObj._outBuff.Length) { 1570Debug.Assert (4 == stateObj._bIntBytes.Length); 1585if ((stateObj._outBytesUsed + 4) > stateObj._outBuff.Length) { 1616stateObj.WriteByteArray(bytes, bytes.Length, 0); 1629Debug.Assert (8 == bytes.Length, "Cached buffer has wrong size"); 1646if ((stateObj._outBytesUsed + 8) > stateObj._outBuff.Length) { 1689if ((stateObj._outBytesUsed + length) > stateObj._outBuff.Length) { 1725stateObj.WriteByteArray(bytes, bytes.Length, 0); 2074for (int ii = 0; ii < env.Length; ii++) { 2367if (nvalues >= envarray.Length) { 2369SqlEnvChange[] newenvarray = new SqlEnvChange[envarray.Length + 3]; 2371for (int ii = 0; ii < envarray.Length; ii++) 2987if (buffer.Length < stateLen) { 3027if (!stateObj.TryReadByteArray(b, 0, b.Length)) { 4469MultiPartTableName[] newTables = new MultiPartTableName[tables.Length + 1]; 4470Array.Copy(tables, 0, newTables, 0, tables.Length); 4471newTables[tables.Length] = mpt; 4609Debug.Assert(reader.TableNames.Length >= col.tableNum, "invalid tableNames array!"); 5045int length = unencryptedBytes.Length; 5065if (unencryptedBytes.Length != 8) { 5099if (unencryptedBytes.Length != 4) { 5109if (unencryptedBytes.Length != 8) { 5125if (unencryptedBytes.Length != 8) { 5147if (unencryptedBytes.Length != 4) { 5159if (unencryptedBytes.Length != 8) { 5187Buffer.BlockCopy(unencryptedBytes, 0, bytes, 0, unencryptedBytes.Length); 5908Debug.Assert((length == b.Length) && (length == 16), "Invalid length for guid type in com+ object"); 6040length = b.Length; 6063length = b.Length; 6316length = bytesPart.Length + 2; 6363for (i = 0; i < bits.Length; i++) 6566if(cBytes < (stateObj._outBuff.Length - stateObj._outBytesUsed)) { 6572if (stateObj._bTmp == null || stateObj._bTmp.Length < cBytes) { 6593if(cBytes < (stateObj._outBuff.Length - stateObj._outBytesUsed)) { 6599if (stateObj._bTmp == null || stateObj._bTmp.Length < cBytes) { 6617if (checked(sourceOffset + charLength) > source.Length || sourceOffset < 0) { 6624if (checked(destOffset + byteLength) > dest.Length || destOffset < 0) { 6654if (checked(destOffset + byteLength) > dest.Length || destOffset < 0) { 6684byteData = new byte[encoding.GetByteCount(charData, 0, charData.Length)]; 6685encoding.GetBytes(charData, 0, charData.Length, byteData, 0); 6702int bytesLeft = stateObj._outBuff.Length - stateObj._outBytesUsed; 6703if ((numChars <= bytesLeft) && (encoding.GetMaxByteCount(charData.Length) <= bytesLeft)) { 6704int bytesWritten = encoding.GetBytes(charData, 0, charData.Length, stateObj._outBuff, stateObj._outBytesUsed); 6711return stateObj.WriteByteArray(byteData, byteData.Length, 0, canAccumulate); 6907initialLength += 1 /* StateId*/ + StateValueLength(reconnectData._initialState[i].Length); 6919if (reconnectData._initialState[i] != null && reconnectData._initialState[i].Length == reconnectData._delta[i]._dataLength) { 6942if (reconnectData._initialState[i].Length < 0xFF) { 6943_physicalStateObj.WriteByte((byte)reconnectData._initialState[i].Length); 6947WriteInt(reconnectData._initialState[i].Length, _physicalStateObj); 6949_physicalStateObj.WriteByteArray(reconnectData._initialState[i], reconnectData._initialState[i].Length, 0); 6990dataLen = 1 + sizeof(int) + fedAuthFeatureData.accessToken.Length; // length of feature data = 1 byte for library and echo, security token length and sizeof(int) for token lengh itself 7050WriteInt(fedAuthFeatureData.accessToken.Length, _physicalStateObj); 7051_physicalStateObj.WriteByteArray(fedAuthFeatureData.accessToken, fedAuthFeatureData.accessToken.Length, 0); 7095WriteInt(s_FeatureExtDataAzureSQLSupportFeatureRequest.Length, _physicalStateObj); 7097_physicalStateObj.WriteByteArray(s_FeatureExtDataAzureSQLSupportFeatureRequest, s_FeatureExtDataAzureSQLSupportFeatureRequest.Length, 0); 7152encryptedPasswordLengthInBytes = encryptedPassword.Length; // password in clear text is already encrypted and its length is in byte 7160encryptedChangePasswordLengthInBytes = encryptedChangePassword.Length; 7389_physicalStateObj.WriteByteArray(s_nicAddress, s_nicAddress.Length, 0); 7513WriteUnsignedInt((uint)accessToken.Length + sizeof(uint), _physicalStateObj); 7516WriteUnsignedInt((uint)accessToken.Length, _physicalStateObj); 7519_physicalStateObj.WriteByteArray(accessToken, accessToken.Length, 0); 7764WriteShort(buffer.Length, stateObj); 7765stateObj.WriteByteArray(buffer, buffer.Length, 0); 8101for (int ii = startRpc; ii < rpcArray.Length; ii++) { 8128for (int i = (ii == startRpc) ? startParam : 0; i < parameters.Length; i++) { 8277Debug.Assert(encryptedValue != null && encryptedValue.Length > 0, 8289actualSize = (encryptedValue == null) ? 0 : encryptedValue.Length; 8383size = udtVal.Length; 8402if (!ADP.IsEmpty(names[1]) && TdsEnums.MAX_SERVERNAME < names[names.Length - 2].Length) { 8413WriteUnsignedLong((ulong)udtVal.Length, stateObj); // PLP length 8414if (udtVal.Length > 0) { // Only write chunk length if its value is greater than 0 8415WriteInt(udtVal.Length, stateObj); // Chunk length 8416stateObj.WriteByteArray(udtVal, udtVal.Length, 0); // Value 8569if (ii < (rpcArray.Length - 1)) { 8639WriteShort((short) enclavePackage.Length, stateObj); 8640stateObj.WriteByteArray(enclavePackage, enclavePackage.Length, 0); 9180Debug.Assert (8 == cekTable[i].CekMdVersion.Length); 9338stateObj.WriteByteArray(s_xmlMetadataSubstituteSequence, s_xmlMetadataSubstituteSequence.Length, 0); 9416actualLengthInBytes = (isSqlType) ? ((SqlBinary)value).Length : ((byte[])value).Length; 9537ccb = (isSqlType) ? ((SqlBinary)value).Length : ((byte[])value).Length; 9594stateObj.WriteByteArray(s_longDataHeader, s_longDataHeader.Length, 0); 9988Debug.Assert((actualLength == b.Length) && (actualLength == 16), "Invalid length for guid type in com+ object"); 10157if (_preambleToStrip != null && count >= _preambleToStrip.Length) { 10159for (int idx = 0; idx < _preambleToStrip.Length; idx++) { 10166offset += _preambleToStrip.Length; 10167count -= _preambleToStrip.Length; 10244if (checked(offset + count) > buffer.Length) { 10348if (checked(offset + count) > buffer.Length) { 10553Debug.Assert((actualLength == b.Length) && (actualLength == 16), "Invalid length for guid type in com+ object"); 10740columnEncryptionParameterInfo.SerializedWireFormat.Length, 10779Debug.Assert((actualLength == b.Length) && (actualLength == 16), "Invalid length for guid type in com+ object"); 10952Debug.Assert((actualLength == b.Length) && (actualLength == 16), "Invalid length for guid type in com+ object"); 11121Debug.Assert((buff == null && len == 0) || (buff.Length >= offst + len), "Invalid length sent to ReadPlpUnicodeChars()!"); 11172Debug.Assert((buff == null && offst == 0) || (buff.Length >= offst + len), "Invalid length sent to ReadPlpUnicodeChars()!"); 11196if ((buff == null) || (buff.Length < (offst + charsRead))) { 11263Debug.Assert((buff == null && offst == 0) || (buff.Length >= offst + len), "Invalid length sent to ReadPlpAnsiChars()!"); 11291if ((stateObj._bTmp == null) || (stateObj._bTmp.Length < bytesRead)) { 11443null == _sniSpnBuffer ? "(null)" : _sniSpnBuffer.Length.ToString((IFormatProvider)null),
fx\src\data\System\Data\SqlClient\TdsParserHelperClasses.cs (12)
225Debug.Assert (_cekMdVersion != null && cekMdVersion != null && _cekMdVersion.Length == _cekMdVersion.Length); 258Debug.Assert (index < keyList.Length, "Invalid index specified."); 262Debug.Assert (index < keyList.Length, "Invalid index specified."); 269return keyList.Length; 567for(int i = 0; i < metaDataArray.Length; ++i) { 582metaDataArray = new _SqlMetaData[original.metaDataArray.Length]; 583for (int idx=0; idx<metaDataArray.Length; idx++) { 591return metaDataArray.Length; 993totalLength += _cipherMetadata.EncryptionKeyInfo.Value.cekMdVersion.Length; 1019Buffer.BlockCopy(_cipherMetadata.EncryptionKeyInfo.Value.cekMdVersion, 0, serializedWireFormat, consumedBytes, _cipherMetadata.EncryptionKeyInfo.Value.cekMdVersion.Length); 1020consumedBytes += _cipherMetadata.EncryptionKeyInfo.Value.cekMdVersion.Length;
fx\src\data\System\Data\SqlClient\TdsParserStateObject.cs (31)
292Debug.Assert(_parser._physicalStateObj._outBuff.Length == 293_parser._physicalStateObj._inBuff.Length, "Unexpected unequal buffers."); 296SetPacketSize(_parser._physicalStateObj._outBuff.Length); 504if (_nullBitmap == null || _nullBitmap.Length != bitmapArrayLength) { 509if (!stateObj.TryReadByteArray(_nullBitmap, 0, _nullBitmap.Length)) { 515Bid.TraceBin("<sc.TdsParserStateObject.NullBitmap.Initialize|INFO|ADV> NBCROW bitmap data: ", _nullBitmap, (UInt16)_nullBitmap.Length); 734Debug.Assert(_outBuff.Length == _inBuff.Length, "Unexpected unequal buffers."); 736myInfo.defaultBufferSize = _outBuff.Length; // Obtain packet size from outBuff size. 1113(_outBuff.Length == _inBuff.Length), 1127if (_inBuff == null || _inBuff.Length != size) { // We only check _inBuff, since two buffers should be consistent. 1134else if (size != _inBuff.Length) { 1144if ((temp.Length < _inBytesUsed + remainingData) || (_inBuff.Length < remainingData)) { 1145string errormessage = Res.GetString(Res.SQL_InvalidInternalPacketSize) + ' ' + temp.Length + ", " + _inBytesUsed + ", " + remainingData + ", " + _inBuff.Length; 1222Debug.Assert(buff == null || buff.Length >= len, "Invalid length sent to ReadByteArray()!"); 1573if (_bTmp == null || _bTmp.Length < cBytes) { 1638if (_bTmp == null || _bTmp.Length < length) { 1769Debug.Assert((buff == null && offst == 0) || (buff.Length >= offst + len), "Invalid length sent to ReadPlpBytes()!"); 1796if (buff.Length < (offst + bytesToRead)) { 1908_inBuff = new byte[_inBuff.Length]; 2412if (_inBuff.Length < dataSize) { 2654Debug.Assert((_outBytesUsed + lengthInBytes) < _outBuff.Length, "Passwords cannot be splited into two different packet or the last item which fully fill up _outBuff!!!"); 2661for (int i = 0; i < _securePasswords.Length; ++i) { 2712Debug.Assert(_outBytesUsed <= _outBuff.Length, "ERROR - TDSParser: _outBytesUsed > _outBuff.Length"); 2715if (_outBytesUsed == _outBuff.Length) { 2741Debug.Assert(b.Length >= len, "Invalid length sent to WriteByteArray()!"); 2745if ((_outBytesUsed + len) > _outBuff.Length) { 2750int remainder = _outBuff.Length - _outBytesUsed;
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (10)
238SetBytesNoOffsetHandling(fieldOffset, bytes, 0, bytes.Length); 326SetBytes(0, bytes, 0, bytes.Length); 327SetBytesLength(bytes.Length); 345_stateObj.Parser.WriteSqlVariantHeader(9 + bytes.Length, TdsEnums.SQLBIGVARCHAR, 7, _stateObj); 348_stateObj.Parser.WriteShort(bytes.Length, _stateObj); // propbyte: varlen 349_stateObj.WriteByteArray(bytes, bytes.Length, 0); 532Debug.Assert(SmiMetaData.DefaultUniqueIdentifier.MaxLength == bytes.Length, "Invalid length for guid bytes: " + bytes.Length); 538Debug.Assert(_metaData.MaxLength == bytes.Length, "Unexpected uniqueid metadata length: " + _metaData.MaxLength); 542_stateObj.WriteByteArray(bytes, bytes.Length, 0);
fx\src\data\System\Data\SQLTypes\SQLBinary.cs (19)
57m_value = new byte[value.Length]; 99byte[] value = new byte[m_value.Length]; 125return m_value.Length; 159return IsNull ? SQLResource.NullString : "SqlBinary(" + m_value.Length.ToString(CultureInfo.InvariantCulture) + ")"; 178byte[] rgbResult = new byte[x.Value.Length + y.Value.Length]; 180y.Value.CopyTo(rgbResult, x.Value.Length); 190int len = (x.Length < y.Length) ? x.Length : y.Length; 202if (x.Length == y.Length) 209if (x.Length < y.Length) { 211for (i = len; i < y.Length; ++i) { 218for (i = len; i < x.Length; ++i) { 429SQLDebug.Check(rgbValue.Length >= length); 458int cbLen = m_value.Length;
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (18)
119 m_lCurLen = (long)m_rgbBuf.Length; 159 m_lCurLen = m_rgbBuf.Length; 215 return (m_rgbBuf == null) ? -1L : (long)m_rgbBuf.Length; 326 if (value > (long)m_rgbBuf.Length) 352 if (offsetInBuffer > buffer.Length || offsetInBuffer < 0) 355 if (count < 0 || count > buffer.Length - offsetInBuffer) 395 if (offset > m_rgbBuf.Length) 398 if (offsetInBuffer < 0 || offsetInBuffer > buffer.Length) 401 if (count < 0 || count > buffer.Length - offsetInBuffer) 404 if (count > m_rgbBuf.Length - offset) 471 Debug.Assert(FStream() || (m_rgbBuf != null && m_lCurLen <= m_rgbBuf.Length)); 474 Debug.Assert(m_rgbWorkBuf == null || m_rgbWorkBuf.Length == 1); 487 if (m_rgbBuf == null || m_rgbBuf.Length < lStreamLen) 509 m_lCurLen = (m_rgbBuf == null) ? x_lNull : (long)m_rgbBuf.Length; 722 if (offset < 0 || offset > buffer.Length) 724 if (count < 0 || count > buffer.Length - offset) 738 if (offset < 0 || offset > buffer.Length) 740 if (count < 0 || count > buffer.Length - offset)
fx\src\data\System\Data\SQLTypes\SQLChars.cs (18)
110 m_lCurLen = (long)m_rgchBuf.Length; 150 m_lCurLen = m_rgchBuf.Length; 207 return (m_rgchBuf == null) ? -1L : (long)m_rgchBuf.Length; 322 if (value > (long)m_rgchBuf.Length) 349 if (offsetInBuffer > buffer.Length || offsetInBuffer < 0) 352 if (count < 0 || count > buffer.Length - offsetInBuffer) 393 if (offset > m_rgchBuf.Length) 396 if (offsetInBuffer < 0 || offsetInBuffer > buffer.Length) 399 if (count < 0 || count > buffer.Length - offsetInBuffer) 402 if (count > m_rgchBuf.Length - offset) 469 Debug.Assert(FStream() || (m_rgchBuf != null && m_lCurLen <= m_rgchBuf.Length)); 472 Debug.Assert(m_rgchWorkBuf == null || m_rgchWorkBuf.Length == 1); 490 if (m_rgchBuf == null || m_rgchBuf.Length < lStreamLen) 506 m_lCurLen = (m_rgchBuf == null) ? x_lNull : (long)m_rgchBuf.Length; 709 if (offset < 0 || offset > buffer.Length) 711 if (count < 0 || count > buffer.Length - offset) 725 if (offset < 0 || offset > buffer.Length) 727 if (count < 0 || count > buffer.Length - offset)
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (12)
598else if (bits.Length != 4) 784SQLDebug.Check(rglData.Length >= 4); 1001int cwchStr = rgwchStr.Length; 1833SQLDebug.Check(rgulData.Length == x_cNumeMax, "rgulData.Length == x_cNumeMax", "Invalid array length"); 1901SQLDebug.Check(rglData.Length == 4, "rglData.Length == 4", "Wrong array length: " + rglData.Length.ToString(CultureInfo.InvariantCulture)); 2400SQLDebug.Check(rgulS.Length >= ciulS, "rgulS.Length >= ciulS", "Invalid array length"); 2401SQLDebug.Check(rgulD.Length >= ciulS, "rgulD.Length >= ciulS", "Invalid array length"); 2467SQLDebug.Check(rgulU.Length == x_cNumeMax); 2530SQLDebug.Check(rgulU.Length == x_cNumeMax); 2531SQLDebug.Check(rgulD.Length == x_cNumeMax); 2917SQLDebug.Check(rguiData.Length == 4);
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (3)
1037if (transactionContext.Length >= UInt16.MaxValue) 1047eaBuffer.EaValueLength = (ushort) transactionContext.Length; 1095System.Diagnostics.Debug.Assert ( cbOffset < m_cbBuffer || transactionContext.Length == 0 && cbOffset == m_cbBuffer );
fx\src\data\System\Data\SQLTypes\SQLGuid.cs (2)
62if (value == null || value.Length != SizeOfGuid) 73if (value == null || value.Length != SizeOfGuid)
fx\src\data\System\Data\SQLTypes\SQLString.cs (5)
162: this(lcid, compareOptions, data, 0, data.Length, fUnicode) { 180 : this(lcid, compareOptions, data, 0, data.Length, true) { 804int cbX = rgDataX.Length; 805int cbY = rgDataY.Length; 994return SqlBinary.HashByteArray(rgbSortKey, rgbSortKey.Length);
fx\src\data\System\Data\SQLTypes\SqlXml.cs (4)
392 if (offset < 0 || offset > buffer.Length) 394 if (count < 0 || count > buffer.Length - offset) 411 if (offset < 0 || offset > buffer.Length) 413 if (count < 0 || count > buffer.Length - offset)
fx\src\data\System\Data\UniqueConstraint.cs (8)
144DataColumn[] sortIndexColumns = new DataColumn[_constraintIndex.IndexFields.Length]; 145for (int i = 0; i < sortIndexColumns.Length; i++) { 215for (int i = 0; i < uniqueKeys.Length; i++) { 220for (int j = 0; j < rows.Length; j++) { 270int keys = ColumnsReference.Length; 292int keys = ColumnsReference.Length; 351for (int i = 0; i < columns.Length; i++) { 379if (key.ColumnsReference.Length == 1) {
fx\src\data\System\Data\XDRSchema.cs (3)
280if (parts.Length > 2) { 283else if (parts.Length == 2) { 570int keyLength = list.Length;
fx\src\data\System\Data\XmlDataLoader.cs (3)
779for ( int i = foundColumns.Length -1; i >= 0; --i) { 1005for ( int i = foundColumns.Length - 1; i >= 0 ; --i) { 1029for ( int i = foundColumns.Length -1; i >= 0 ; --i) {
fx\src\data\System\Data\xmlsaver.cs (25)
566if (top.Length == 0 || schFormat == SchemaFormat.WebServiceSkipSchema || schFormat == SchemaFormat.RemotingSkipSchema) { 597for (int i = 0; i < top.Length; i++) { 670for (int i = 0; i < rels.Length; ++i) { 990if (1 < key.Length) { 993for (int i = 1; i < key.Length; i++) { 1002if (1 < key.Length) { 1010for (int i = 1; i < key.Length; i++) { 1182if (nestedParentRelations.Length != 0) { 1183for(int i = 0; i < nestedParentRelations.Length; i++) { 1395if (rel.ChildColumnsReference.Length != 1) 1401if (rel.ParentColumnsReference.Length != 1) 1425if (unique.Key.ColumnsReference.Length !=1) 1462if (fk.RelatedColumnsReference.Length !=1) 1489if (nestedParentRelations.Length == 0){ 1494for(int i = 0; i < nestedParentRelations.Length; i++) { 1538if (childRelations[j].Nested && childRelations[j].ParentKey.ColumnsReference.Length == 1 && childRelations[j].ParentKey.ColumnsReference[0] == col) 1751if (0 < fields.Length) { 1753for (int k = 0; k < fields.Length; k++) { 1810if (0 < fields.Length) { 1812for (int k = 0; k < fields.Length; k++) { 1884if (0 < fields.Length) { 1886for (int k = 0; k < fields.Length; k++) { 2168if ( (state == DataRowState.Deleted ) && (row.Table.NestedParentRelations.Length != 0)){ 2428int countTopTable = topLevelTables.Length; 2465int countTopTable = topLevelTables.Length;
fx\src\data\System\Data\XMLSchema.cs (18)
240for (int i = 0; i < attrs.Length; i++) { 286for (int i = 0; i < attrs.Length; i++) { 319for (int i = 0; i < attrs.Length; i++) { 336for(int i=0; i<nodeAttributes.Length;i++) 410keyLength = parentNames.Length; 411if (keyLength != childNames.Length) 698if (dt.NestedParentRelations.Length == 0 && dt.Namespace == ds.Namespace) { 741for (int i = 0; i<relations.Length; i++) 998colName = split [split.Length - 1]; 1206if (0 < key.Length) { 1220for (int i=0; i<key.Length; i++) 1757for(int i=0; i< attrs.Length;i++) { 1856for(int i=0; i< attrs.Length;i++) { 2366for(int i = 0; i < qualifiedNames.Length; i++) { 2379for(int i = 0; i < qualifiedNames.Length; i++) { 2393string QualifiedTableName = split[split.Length - 1]; //get the last string after '/' and ':' 2411String tableName = split[split.Length - 1]; //get the last string after '/' and ':' 2426for(int i = 0; i < attribs.Length; i++) {
fx\src\data\System\NewXml\XmlDataDocument.cs (4)
726if (relations.Length == 0) 1126for(int i = 0; i < orderedTables.Length; i++) { 1528for (int i = 0; i < columns.Length; i++) { 2612if (relations.Length != 0 && relations[0].ParentTable == parentRow.Table ) // just backward compatable
System.Data.DataSetExtensions (9)
System\Data\DataRowComparer.cs (7)
61(a.Length != b.Length)) 86int length = index1 + a.Length; 108if (a.Length != b.Length) 113for (int i = 0; i < a.Length; ++i) 222else if (array.Length > 0)
System\Data\LinqDataView.cs (2)
169else if (base.SortComparison != null && key.Length != sortExpressionBuilder.Count) 207else if (base.SortComparison != null && key.Length != sortExpressionBuilder.Count)
System.Data.Entity (367)
System\Data\Common\CommandTrees\DbLambda.cs (4)
695Debug.Assert(paramNames.Length == argumentTypes.Length, "Lambda function method parameter count does not match argument count"); 696DbVariableReferenceExpression[] result = new DbVariableReferenceExpression[argumentTypes.Length]; 697for (int idx = 0; idx < paramNames.Length; idx++)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (6)
1744Debug.Assert(aliases.Length > 0, "Incompatible method: at least one parameter is required"); 1758paramCount = methodParams.Length - 1; 1764paramCount = methodParams.Length; 1769for (int idx = start; idx < methodParams.Length; idx++) 1816typeof(TInstance).GetProperties(BindingFlags.Static).Length == 0 && 1817typeof(TInstance).GetProperties(BindingFlags.Instance | BindingFlags.NonPublic).Length == 0)
System\Data\Common\CommandTrees\ExpressionBuilder\EdmFunctions.cs (2)
57TypeUsage[] argumentTypes = new TypeUsage[arguments.Length]; 58for (int idx = 0; idx < arguments.Length; idx++)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (3)
339DbExpressionList funcArgs = CreateExpressionList(args, "argument", expectedParams.Length, (exp, idx) => 1495validArgs = CreateExpressionList(arguments, "arguments", expectedParams.Length, (exp, idx) => 2090|| clrEnumType.GetEnumNames().Length != edmEnumType.Members.Count)
System\Data\Common\DataRecord.cs (17)
67Debug.Assert(_values.Length == _recordInfo.FieldMetadata.Count, "wrong values array size"); 80return _values.Length; 132cbytes = data.Length; 166cbytes = data.Length; 172if (bufferOffset < 0 || bufferOffset >= buffer.Length) 180if (cbytes + bufferOffset > buffer.Length) 246if (bufferOffset < 0 || bufferOffset >= buffer.Length) 247throw EntityUtil.InvalidDestinationBufferIndex(buffer.Length, bufferOffset, "bufferOffset"); 254if (cchars + bufferOffset > buffer.Length) 407int copyLen = Math.Min(values.Length, FieldCount); 446if (Attributes.Length != other.Length) return false; 448for (int i = 0; i < other.Length; i++) 472if (_propertyDescriptors == null && 0 < _values.Length) 511bool filtering = (null != attributes && 0 < attributes.Length); 526if (null == _attrCache && null!=attributes && 0<attributes.Length) 533Attribute[] attrArray = new Attribute[atts.Length];
System\Data\Common\DataRecordInfo.cs (1)
84for (int i = 0; i < fieldList.Length; ++i)
System\Data\Common\EntitySql\AST\DotExpr.cs (3)
76_names = new string[leftNames.Length + 1]; 78_names[_names.Length - 1] = _identifier.Name; 81Debug.Assert(_names == null || _names.Length > 0, "_names must be null or non-empty");
System\Data\Common\EntitySql\AST\Literal.cs (11)
412int before = stringLiteralValue.Split(new char[] { delimiter }).Length - 1; 428int after = result.Split(new char[] { delimiter }).Length - 1; 502Debug.Assert(datetimeParts.Length >= 5, "datetime literal value must have at least 5 parts"); 530Debug.Assert(datetimeParts.Length >= 7, "datetime literal value must have at least 7 parts"); 541string[] timeParts = new String[datetimeParts.Length - 2]; 542Array.Copy(datetimeParts, timeParts, datetimeParts.Length - 2); 552int offsetHours = Int32.Parse(datetimeParts[datetimeParts.Length - 2], NumberStyles.Integer, CultureInfo.InvariantCulture); 553int offsetMinutes = Int32.Parse(datetimeParts[datetimeParts.Length - 1], NumberStyles.Integer, CultureInfo.InvariantCulture); 581Debug.Assert(datetimeParts.Length >= 2, "time literal value must have at least 2 parts"); 613if (datetimeParts.Length > timePartStartIndex) 621if (datetimeParts.Length > timePartStartIndex)
System\Data\Common\EntitySql\CqlLexer.cs (5)
654yy_buffer.Length - yy_buffer_read); 663if (yy_buffer_index >= yy_buffer.Length) 668yy_buffer.Length - yy_buffer_read); 739newbuf = new char[2*buf.Length]; 740for (i = 0; i < buf.Length; i++)
System\Data\Common\EntitySql\CqlLexerHelpers.cs (4)
678for (int i = 0; i < _newLineCharacters.Length; i++) 698Debug.Assert(literal.Split(new char[] { '\'' }).Length == 3, "quoted literal value must have 2 single quotes"); 703if ((literal.Split(new char[] { '\'' }).Length != 3) || (-1 == literal.IndexOf('\'')) || (-1 == literal.LastIndexOf('\''))) 718if (literalPayload.Split(new char[] { '\'' }).Length != 1)
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (5)
137Debug.Assert(argTypesFlat.Count == rank.Length, "argTypesFlat.Count == rank.Length"); 158Debug.Assert(rank.Length == bestCandidateRank.Length, "composite ranks have different number of elements"); 164for (int i = 0; i < rank.Length; ++i) 265for (int i = 0; i < parameterRanks.Length; ++i)
System\Data\Common\EntitySql\SemanticAnalyzer.cs (6)
1610switch (toEndCandidates.Length) 1649switch (fromEndCandidates.Length) 1749switch (fromEndCandidates.Length) 1770switch (toEndCandidates.Length) 2588if (multisetTypes.Length == 0) 2608for (int i = 0; i < mSetExprs.Length; i++)
System\Data\Common\EntitySql\SemanticResolver.cs (1)
829return names[names.Length - 1];
System\Data\Common\EntitySql\TypeResolver.cs (7)
334Debug.Assert(name != null && name.Length > 0, "name must not be empty"); 337if (name.Length == 1) 343metadataMember = ResolveFullyQualifiedName(name, name.Length, errCtx); 452if (multipart.Length > 1 && multipart.All(p => p.Length > 0)) 454var functionName = multipart[multipart.Length - 1]; 515Debug.Assert(name != null && length > 1 && length <= name.Length, "name must not be empty"); 609Debug.Assert(names != null && names.Length > 0, "names must not be null or empty");
System\Data\Common\EntityUtil.cs (1)
1748if (unchecked((uint)values.Length <= (uint)index))
System\Data\Common\FieldNameLookup.cs (2)
102int length = _fieldNames.Length; 114int length = _fieldNames.Length;
System\Data\Common\Internal\Materialization\CoordinatorFactory.cs (1)
100this.IsLeafResult = 0 == nestedCoordinators.Length;
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (2)
162for (int i = 0; i < recordStateFactories.Length; i++) 173for (int i = 0; i < nestedCoordinators.Length; i++)
System\Data\Common\Internal\Materialization\RecordState.cs (4)
93for (int ordinal = 0; ordinal < CurrentColumnValues.Length; ordinal++) 146int valueLength = byteValue.Length; 179int valueLength = charValue.Length; 291for (int i = 0; i < PendingColumnValues.Length; i++)
System\Data\Common\Internal\Materialization\RecordStateScratchpad.cs (1)
71for (int i = 0; i < nestedRecordStateFactories.Length; i++)
System\Data\Common\Internal\Materialization\Shaper.cs (3)
1366for (; depth < _current.Length; depth++) 1407for (; depth < _current.Length; depth++) 1638if (-1 == _depth || _rowEnumerator.Current.Length == _depth)
System\Data\Common\Internal\Materialization\Translator.cs (21)
878if (left.Length != right.Length) 882for (int i = 0; i < left.Length; i++) 903List<Expression> keyReaders = new List<Expression>(entityIdentity.Keys.Length); 904for (int i = 0; i < entityIdentity.Keys.Length; i++) 940for (int i = 0; i < entitySets.Length; i++) 958if (1 == entityIdentity.Keys.Length) 1004Debug.Assert(0 < keyColumns.Length, "empty keyColumns?"); 1355List<MemberBinding> result = new List<MemberBinding>(columnMap.Properties.Length); 1359for (int i = 0; i < columnMap.Properties.Length; i++) 1494Expression[] discriminatorReaders = new Expression[columnMap.TypeDiscriminators.Length]; 1495for (int i = 0; i < discriminatorReaders.Length; i++) 1590int propertyCount = columnMap.Properties.Length; 1662List<TranslatorResult> propertyReaders = new List<TranslatorResult>(columnMap.Properties.Length); 1694Expression[] columnReaders = new Expression[columnMap.Properties.Length]; 1695for (int i = 0; i < columnReaders.Length; i++) 1733for (int i = 1; i < columnMap.Properties.Length; i++) 1843keyReaders = new Expression[columnMap.Keys.Length]; 1844for (int i = 0; i < keyReaders.Length; i++) 1988List<Expression> setKeyTerms = new List<Expression>(keyReaders.Length); 1989List<Expression> checkKeyTerms = new List<Expression>(keyReaders.Length);
System\Data\Common\QueryCache\QueryCacheManager.cs (1)
261private static readonly int AgingMaxIndex = _agingFactor.Length - 1;
System\Data\Common\Utils\AliasGenerator.cs (2)
104if ((null == _cache) || unchecked((uint)_cache.Length <= (uint)index)) 110if (unchecked((uint)_counterNames.Length <= (uint)index))
System\Data\Common\Utils\Boolean\BoolExpr.cs (1)
84Debug.Assert(null != candidates && 1 < candidates.Length, "must be at least one to pick");
System\Data\Common\Utils\Boolean\ConversionContext.cs (2)
80Debug.Assert(2 == vertex.Children.Length); 166for (int i = 0; i < vertex.Children.Length; i++)
System\Data\Common\Utils\Boolean\Solver.cs (9)
107Debug.Assert(2 <= children.Length, "must be at least 2 children"); 232topVariableDomainCount = condition.Children.Length; 237topVariableDomainCount = then.Children.Length; 242topVariableDomainCount = @else.Children.Length; 266Debug.Assert(variableAssigment < vertex.Children.Length, "variable assignment out of range"); 323x.Children.Length != y.Children.Length) 327for (int i = 0; i < x.Children.Length; i++) 347Debug.Assert(2 <= vertex.Children.Length, "internal vertices must have at least 2 children");
System\Data\Common\Utils\Boolean\Vertex.cs (1)
54Debug.Assert(2 <= children.Length, "internal vertices must have at least two children");
System\Data\Common\Utils\ByValueEqualityComparer.cs (7)
77for (int i = 0, n = Math.Min(bytes.Length, 7); i < n; i++) 88if (first.Length != second.Length) 93for (int i = 0; i < first.Length; i++) 144int result = xAsBytes.Length - yAsBytes.Length; 148while (result == 0 && idx < xAsBytes.Length)
System\Data\Common\Utils\CommandHelper.cs (2)
53if (2 == nameParts.Length) 58else if (1 == nameParts.Length && null != defaultContainerName)
System\Data\Common\Utils\Helpers.cs (2)
73TElement[] retVal = new TElement[args.Length + 1]; 75for (int idx = 0; idx < args.Length; idx++)
System\Data\Common\Utils\StringUtil.cs (2)
206Debug.Assert(args.Length > 0, "Formatting utilities must be called with at least one argument"); 213Debug.Assert(args.Length > 0, "Formatting utilities must be called with at least one argument");
System\Data\EntityClient\DbParameterHelper.cs (2)
243return bvalue.Length; 247return cvalue.Length;
System\Data\EntityClient\EntityCommandDefinition.cs (1)
403for (int i = 1; i < _columnMapGenerators.Length; ++i)
System\Data\EntityClient\EntityConnectionStringBuilder.cs (1)
179Hashtable table = new Hashtable(s_validKeywords.Length);
System\Data\EntityKey.cs (22)
303keyValues = new EntityKeyMember[_compositeKeyValues.Length]; 304for (int i = 0; i < _compositeKeyValues.Length; ++i) 446for (int i = 0, n = _compositeKeyValues.Length; i < n; i++) 593if (null != key1._compositeKeyValues && null != key2._compositeKeyValues && key1._compositeKeyValues.Length == key2._compositeKeyValues.Length) 631for (int i = 0; i < key1._compositeKeyValues.Length; ++i) 652for (int i = 0; i < key2._keyNames.Length; i++) 664for (int i = 0; i < key1._compositeKeyValues.Length; ++i) 685for (int i = 0; i < key2._keyNames.Length; i++) 720numKeyMembers = _compositeKeyValues.Length; 752keyColumns = new KeyValuePair<string, DbExpression>[_compositeKeyValues.Length]; 753for (int i = 0; i < _compositeKeyValues.Length; ++i) 801for (int i = 0; i < compositeKeyValues.Length; i++) 819if (result.Length != 2) 1040if (keyMembers.Count != _compositeKeyValues.Length) 1044throw EntityUtil.IncorrectNumberOfKeyValuePairs(argumentName, entitySet.ElementType.FullName, keyMembers.Count, _compositeKeyValues.Length); 1048throw EntityUtil.IncorrectNumberOfKeyValuePairsInvalidOperation(entitySet.ElementType.FullName, keyMembers.Count, _compositeKeyValues.Length); 1052for (int i = 0; i < _compositeKeyValues.Length; ++i) 1056for (int j = 0; j < _compositeKeyValues.Length; ++j) 1173Debug.Assert(entitySet.ElementType.KeyMembers.Count == _compositeKeyValues.Length, "Incorrect number of values specified to composite key."); 1175for (int i = 0; i < _compositeKeyValues.Length; ++i) 1230for (int i = 0; i < _keyNames.Length; i++)
System\Data\EntityModel\SchemaObjectModel\RelationshipEndCollection.cs (1)
254Debug.Assert(ends.Length-index >= Count);
System\Data\EntitySqlException.cs (1)
235lineNumber < queryLines.Length && columnNumber > queryLines[lineNumber].Length;
System\Data\Mapping\FunctionImportMapping.cs (11)
298for (int i = 0; i < discriminatorDomains.Length; i++) 319var discriminatorVariables = new DomainVariable<string, ValueCondition>[discriminatorDomains.Length]; 320for (int i = 0; i < discriminatorVariables.Length; i++) 335for (int i = 0; i < conditions.Length; i++) 378for (int i = 0; i < candidateFunctions.Length; i++) 401for (int i = 0; i < candidateFunctions.Length; i++) 428for (int i = 0; i < candidateFunctions.Length; i++) 446var unambigouslyReachableMap = new BitArray(candidateFunctions.Length, true); 447for (int i = 0; i < candidateFunctions.Length; ++i) 456for (int j = i + 1; j < candidateFunctions.Length; ++j) 468for (int i = 0; i < candidateFunctions.Length; ++i)
System\Data\Mapping\FunctionImportMappingComposable.cs (6)
51Debug.Assert(targetFunctionKeys == null || targetFunctionKeys.Length > 0, "Keys must be null or non-empty."); 145Debug.Assert(m_commandParameters.Length == targetIqtArguments.Count, "m_commandParameters.Length == targetIqtArguments.Count"); 146Dictionary<string, Node> viewArguments = new Dictionary<string, Node>(m_commandParameters.Length); 147for (int i = 0; i < m_commandParameters.Length; ++i) 252Debug.Assert(this.FunctionImport.Parameters.Count == m_commandParameters.Length, "this.FunctionImport.Parameters.Count == m_commandParameters.Length"); 253Debug.Assert(this.TargetFunction.Parameters.Count == m_commandParameters.Length, "this.TargetFunction.Parameters.Count == m_commandParameters.Length");
System\Data\Mapping\MetadataMappingHasherVisitor.HashSourceBuilder.cs (5)
148else if (_cachedBuffer.Length < byteCount) 154int bufferSize = Math.Max(_cachedBuffer.Length + (_cachedBuffer.Length / 2), byteCount); 196StringBuilder stringData = new StringBuilder(hash.Length * 2); 199for (int i = 0; i < hash.Length; i++)
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
376if ((viewGenAttributes != null) && (viewGenAttributes.Length != 0))
System\Data\Mapping\StorageMappingItemLoader.cs (5)
2218Debug.Assert(keys.Length == currentKeys.Length, "All subtypes must have the same number of keys."); 2219for (int i = 0; i < keys.Length; ++i) 2230for (int i = 0; i < keys.Length; ++i) 2244for (int i = 0; i < keys.Length; ++i)
System\Data\Mapping\Update\Internal\CompositeKey.cs (7)
58Debug.Assert(null != other && other.KeyComponents.Length == this.KeyComponents.Length, "expected a compatible CompositeKey"); 59PropagatorResult[] mergedKeyValues = new PropagatorResult[this.KeyComponents.Length]; 60for (int i = 0; i < this.KeyComponents.Length; i++) 93if (left.KeyComponents.Length != right.KeyComponents.Length) { return false; } 95for (int i = 0; i < left.KeyComponents.Length; i++)
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (2)
326for (int i = 0; i < m_processor.KeyOrdinals.Length; i++) 337for (int i = 0; i < m_processor.KeyOrdinals.Length; i++)
System\Data\Mapping\Update\Internal\ExtractorMetadata.cs (1)
308for (int ordinal = 0; ordinal < nestedValues.Length; ordinal++)
System\Data\Mapping\Update\Internal\KeyManager.cs (1)
333valueKey = keyValues.Length == 1
System\Data\Mapping\Update\Internal\Propagator.cs (1)
267for (int ordinal = 0; ordinal < projectedValues.Length; ordinal++)
System\Data\Mapping\Update\Internal\Propagator.JoinPropagator.cs (1)
408for (int i = 0; i < leftKey.KeyComponents.Length; i++)
System\Data\Mapping\Update\Internal\Propagator.JoinPropagator.SubstitutingCloneVisitor.cs (1)
85for (int i = 0; i < placeholderKey.KeyComponents.Length; i++)
System\Data\Mapping\Update\Internal\PropagatorResult.cs (3)
519Debug.Assert(values.Length == TypeHelpers.GetAllStructuralMembers(structuralType).Count); 566PropagatorResult[] newValues = new PropagatorResult[m_values.Length]; 568for (int i = 0; i < newValues.Length; i++)
System\Data\Mapping\Update\Internal\TableChangeProcessor.cs (3)
213for (int i = 0; sharedPrincipal && i < key.KeyComponents.Length; i++) 268PropagatorResult[] keyConstants = new PropagatorResult[m_keyOrdinals.Length]; 269for (int i = 0; i < m_keyOrdinals.Length; i++)
System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (1)
400for (int i = 0; i < keyValues.Length; i++)
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (1)
221for (int i = 0; i < processor.KeyOrdinals.Length; i++)
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (2)
243for (int i = 0, n = keyValues.Length; i < n; i++) 261if (1 == keyValues.Length)
System\Data\Mapping\ViewGeneration\ConfigViewGenerator.cs (1)
58int numEnums = Enum.GetNames(typeof(PerfType)).Length;
System\Data\Mapping\ViewGeneration\CqlGenerator.cs (6)
131Debug.Assert(requiredSlots.Length == TotalSlots, "Wrong number of requiredSlots"); 225Debug.Assert(thisRequiredSlots.Length == parentRequiredSlots.Length && 226thisRequiredSlots.Length == TotalSlots, 256for (int i = 1; i < slotInfos.Length; i++) 350Debug.Assert(requiredSlots.Length == TotalSlots, "Invalid array size for populating required slots");
System\Data\Mapping\ViewGeneration\Structures\CellIdBoolean.cs (1)
85int numBoolSlots = requiredSlots.Length - projectedSlotMap.Count;
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (7)
137get { return m_projectedSlots.Length; } 196Debug.Assert(slotNum < m_projectedSlots.Length, "Slot number too high"); 217for (int i = 0; i < m_projectedSlots.Length; i++) 402for (int i = 0; i < m_projectedSlots.Length; i++) 559for (int i = 0; i < m_projectedSlots.Length; i++) 574for (int i = 0; i < m_projectedSlots.Length; i++) 612for (int i = 0; i < m_projectedSlots.Length; i++)
System\Data\Mapping\ViewGeneration\Structures\LeafCellTreeNode.cs (1)
129int totalSlots = requiredSlots.Length;
System\Data\Mapping\ViewGeneration\Structures\OpCellTreeNode.cs (7)
228int totalSlots = requiredSlots.Length; 235for (int qualifiedSlotNumber = childProjectedSlots.Length; qualifiedSlotNumber < childBlock.Slots.Count; qualifiedSlotNumber++) 324Debug.Assert(boolArray.Length == another.Length); 325for (int i = 0; i < boolArray.Length; i++) 338int totalSlots = requiredSlots.Length; 356for (int qualifiedSlotNumber = childProjectedSlots.Length; qualifiedSlotNumber < childBlock.Slots.Count; qualifiedSlotNumber++)
System\Data\Mapping\ViewGeneration\Structures\ProjectedSlot.cs (4)
119Debug.Assert(slots1.Length == slots2.Length, "Merged slots of two cells must be same size"); 120slots = new ProjectedSlot[slots1.Length]; 122for (int i = 0; i < slots.Length; i++)
System\Data\Metadata\CacheForPrimitiveTypes.cs (4)
94Debug.Assert(facetDescriptions.Length > 0); 153Debug.Assert(facetDescriptions != null && facetDescriptions.Length > 0); 155Facet[] facets = new Facet[facetDescriptions.Length]; 157for (int i = 0; i < facetDescriptions.Length; ++i)
System\Data\Metadata\Converter.cs (1)
325for (int i = 0; i < keyMembers.Length; i++)
System\Data\Metadata\Edm\EdmFunction.cs (1)
62Debug.Assert(_returnParameters.Count == payload.EntitySets.Length, "The number of entity sets should match the number of return parameters");
System\Data\Metadata\Edm\EntityType.cs (1)
311var builder = new StringBuilder(hash.Length * 2);
System\Data\Metadata\Edm\EntityTypeBase.cs (2)
77for (int i = 0; i < keyNames.Length; i++) 83Debug.Assert(_keyMemberNames.Length == this.KeyMembers.Count, "This list is out of sync with the key members count. This property was called before all the keymembers were added");
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (2)
205if (0 != mi.GetParameters().Length) 414if ((null == parameters) || (1 != parameters.Length))
System\Data\Metadata\Edm\MemberCollection.cs (1)
223if (base.Count + baseTypeMemberCount > array.Length - arrayIndex)
System\Data\Metadata\Edm\MetadataCollection.cs (5)
243for(int i = 0; i < orderIndex.InexactIndexes.Length; ++i) 256inexact = new int[orderIndex.InexactIndexes.Length + 1]; 258inexact[inexact.Length-1] = index; 507for (int i = 0; i < orderIndex.InexactIndexes.Length; ++i) 582if (_collectionData.OrderedList.Count > array.Length - arrayIndex)
System\Data\Metadata\Edm\MetadataItem_Static.cs (3)
423for (int i = 0; i < _builtInTypes.Length; i++) 509for (int i = 0; i < properties.Length; i++) 536for (int i = 0; i < enumMemberNames.Length; i++)
System\Data\Metadata\Edm\Provider\EdmProviderManifestFunctionBuilder.cs (1)
30Debug.Assert((int)edmType.PrimitiveTypeKind < primitiveTypeUsages.Length && (int)edmType.PrimitiveTypeKind >= 0, "Invalid PrimitiveTypeKind value?");
System\Data\Metadata\Edm\TypeUsage.cs (1)
415for (int i = 0; i < properties.Length; i++)
System\Data\Metadata\MetadataArtifactLoaderCompositeResource.cs (4)
364if (result.Length == 0 || result.Length > 2) 369if (result.Length >= 1) 378if (result.Length == 2)
System\Data\Metadata\MetadataCache.cs (1)
174for (int i = 0; i < results.Length; i++)
System\Data\Metadata\ObjectLayer\MetadataAssemblyHelper.cs (3)
60if (left.Length != right.Length) 65for (int i = 0; i < left.Length; i++)
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (5)
141clrType.GetCustomAttributes(typeof(EdmTypeAttribute), false /*inherit*/).Length == 0 || // not a type we track 286if (typeAttributes.Length != 0) 371if (type.GetCustomAttributes(typeof(EdmEntityTypeAttribute), false).Length > 0 && TryGetLoadedType(type, out edmType)) 524Debug.Assert(relationshipPropertyAttributes.Length == 1, "There should be exactly one property for every navigation property"); 636Debug.Assert(attrs.Length == 1, "Every property can exactly have one ScalarProperty Attribute");
System\Data\Objects\DataRecordObjectView.cs (4)
80for (int idx = 0; idx < props.Length; idx++) 82if (props[idx].GetIndexParameters().Length > 0 && props[idx].PropertyType != typeof(object)) 144if (listAccessors == null || listAccessors.Length == 0) 152PropertyDescriptor propertyDescriptor = listAccessors[listAccessors.Length - 1];
System\Data\Objects\ELinq\ExpressionConverter.cs (3)
1455DbExpression[] translatedArguments = new DbExpression[linqArguments.Length]; 1456for (int i = 0; i < linqArguments.Length; i++) 1472List<TypeUsage> translatedArgumentTypes = new List<TypeUsage>(translatedArguments.Length);
System\Data\Objects\ELinq\InitializerFacet.cs (2)
396MemberBinding[] constantMemberBindings = new MemberBinding[memberBindings.Length]; 397for (int i = 0; i < memberBindings.Length; i++)
System\Data\Objects\ELinq\Translator.cs (2)
796if ((linq.NewExpression.Constructor != null) && (linq.NewExpression.Constructor.GetParameters().Length != 0)) 8170 != linq.NewExpression.Constructor.GetParameters().Length)
System\Data\Objects\ELinq\TypeSystem.cs (3)
122if (0 != property.GetIndexParameters().Length) 170if (ifaces != null && ifaces.Length > 0) 273if (propIndex > -1 && propIndex < targetMethods.Length)
System\Data\Objects\EntityEntry.cs (3)
633Debug.Assert(_countRelationshipEnds == (new RelationshipEndEnumerable(this)).ToArray().Length, "different count"); 704Debug.Assert(_countRelationshipEnds == (new RelationshipEndEnumerable(this)).ToArray().Length, "different count"); 802for (int i = 0; i < list.Length; ++i)
System\Data\Objects\Internal\ComplexTypeMaterializer.cs (2)
58for (int i = 0; i < properties.Length; ++i) 149for (int i = 0; i < Properties.Length; ++i)
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
1528if (attributes.Length > 0)
System\Data\Objects\Internal\EntitySqlQueryBuilder.cs (1)
56if (sourceQueryParams == null && builderMethodParams.Length == 0)
System\Data\Objects\Internal\ForeignKeyFactory.cs (1)
115Debug.Assert(keyNames.Length == numValues, "Number of entity set key names does not match constraint names");
System\Data\Objects\ObjectContext.cs (16)
476get { return _onObjectMaterialized != null && _onObjectMaterialized.GetInvocationList().Length != 0; } 1870if (result.Length > 2) 1874if (result.Length == 1) // if not '.' at all 2513ObjectParameter[] parameters = new ObjectParameter[members.Length]; 2515for (int i = 0; i < members.Length; i++) 2638for (int i = 0; i < parameters.Length; i++) 2675Debug.Assert(edmTypes != null && edmTypes.Length > 0); 2708bool shaperOwnsReader = edmTypes.Length <= resultSetIndex + 1; 2766for (int i = 0; i < parameters.Length; i++) 2845for (int i = 0; i < parameters.Length && matchCount < 2; i++) 3211if (null != parameters && parameters.Length > 0) 3213DbParameter[] dbParameters = new DbParameter[parameters.Length]; 3219for (int i = 0; i < parameters.Length; i++) 3226string[] parameterNames = new string[parameters.Length]; 3227string[] parameterSql = new string[parameters.Length]; 3228for (int i = 0; i < parameters.Length; i++)
System\Data\Objects\ObjectStateEntryBaseUpdatableDataRecord.cs (12)
116return tempBuffer.Length; 119int byteCount = Math.Min(tempBuffer.Length - srcIndex, length); 122throw EntityUtil.InvalidSourceBufferIndex(tempBuffer.Length, srcIndex, "dataIndex"); 124else if ((bufferIndex < 0) || (bufferIndex > 0 && bufferIndex >= buffer.Length)) 126throw EntityUtil.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 170return tempBuffer.Length; 174int charCount = Math.Min(tempBuffer.Length - srcIndex, length); 177throw EntityUtil.InvalidSourceBufferIndex(tempBuffer.Length, srcIndex, "dataIndex"); 179else if ((bufferIndex < 0) || (bufferIndex > 0 && bufferIndex >= buffer.Length)) 181throw EntityUtil.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 364int minValue = Math.Min(values.Length, FieldCount); 513int minValue = Math.Min(values.Length, FieldCount);
System\Data\Objects\ObjectStateEntryDbDataRecord.cs (11)
100return tempBuffer.Length; 103int byteCount = Math.Min(tempBuffer.Length - srcIndex, length); 106throw EntityUtil.InvalidSourceBufferIndex(tempBuffer.Length, srcIndex, "dataIndex"); 108else if ((bufferIndex < 0) || (bufferIndex > 0 && bufferIndex >= buffer.Length)) 110throw EntityUtil.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 138return tempBuffer.Length; 142int charCount = Math.Min(tempBuffer.Length - srcIndex, length); 145throw EntityUtil.InvalidSourceBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 147else if ((bufferIndex < 0) || (bufferIndex > 0 && bufferIndex >= buffer.Length)) 149throw EntityUtil.InvalidDestinationBufferIndex(buffer.Length, bufferIndex, "bufferIndex"); 244int minValue = Math.Min(values.Length, FieldCount);
System\Data\Objects\ObjectStateManager.cs (1)
3742if (keyValues.Length == 1)
System\Data\Objects\ObjectStateManagerMetadata.cs (3)
175for (int i = 0; i < _members.Length; ++i) 211return _members.Length; 222if (unchecked((uint)ordinal < (uint)_members.Length))
System\Data\Objects\ObjectViewFactory.cs (1)
236Debug.Assert(viewDataInterfaces.Length == 1, "Could not find IObjectViewData<T> interface definition for ObjectViewQueryResultData<T>.");
System\Data\Query\InternalTrees\ColumnMapCopier.cs (2)
122TListType[] newTList = new TListType[tList.Length]; 123for(int i = 0; i < tList.Length; ++i) {
System\Data\Query\InternalTrees\ColumnMapFactory.cs (2)
156prop.CanWrite && prop.GetIndexParameters().Length == 0 && null != prop.GetSetMethod(/* nonPublic */true)) 302for (int i = 0; i < discriminatorColumns.Length; i++)
System\Data\Query\InternalTrees\Dump.cs (4)
601if (columnMap.ForeignKeys.Length > 0) { 606if (columnMap.Keys.Length > 0) { 810if (entityIdentity.Keys.Length > 0) { 826if (entityIdentity.Keys.Length > 0) {
System\Data\Query\PlanCompiler\ColumnMapProcessor.cs (2)
415for (int i = 0; i < propertyColumnMapList.Length; ++i) 444for (int i = 0; i < keyColList.Length; ++i)
System\Data\Query\PlanCompiler\ColumnMapTranslator.cs (1)
230for (int i = 0; i < tList.Length; i++)
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (1)
1486for (int i = 0; i < op.VarMap.Length; i++)
System\Data\Query\PlanCompiler\PreProcessor.cs (1)
1150PlanCompiler.Assert(functionImportMappingComposable.TvfKeys != null && functionImportMappingComposable.TvfKeys.Length > 0, "Function imports returning entities must have inferred keys.");
System\Data\Query\PlanCompiler\TransformationRules.cs (2)
708ReadOnlyCollection<InternalTrees.Rule>[] rulesPerType = new ReadOnlyCollection<InternalTrees.Rule>[lookupTable.Length]; 709for (int i = 0; i < lookupTable.Length; ++i)
System\Data\Query\ResultAssembly\BridgeDataRecord.cs (1)
492int copy = Math.Min(values.Length, FieldCount);
System\Data\SqlClient\SqlGen\SqlGenerator.cs (2)
4215StringBuilder sb = new StringBuilder( binaryArray.Length * 2 ); 4216for (int i = 0 ; i < binaryArray.Length ; i++)
System\Data\SqlClient\SqlProviderServices.cs (1)
841for (int iter = 0; iter < strippedFileNameChars.Length; iter++)
System\Data\SqlClient\SqlTypesAssembly.cs (1)
524Debug.Assert(staticCtorMethod.GetParameters().Length == 2 && staticCtorMethod.GetParameters()[1].ParameterType == typeof(int), "Static constructor method on '" + spatialType.FullName + "' does not match static constructor pattern?");
System.Data.Entity.Design (15)
System\Data\Entity\Design\Common\MetadataUtil.cs (1)
199Debug.Assert(args.Length > 0, "Formatting utilities must be called with at least one argument");
System\Data\Entity\Design\EntityModelSchemaGenerator.cs (3)
74if (storeContainers.Length != 1) 494if (_storeFunctions == null || _storeFunctions.Length == 0 || _targetEntityFrameworkVersion < EntityFrameworkVersions.Version3) 1142for (int i = 0; i < ecmaNameArray.Length; i++)
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (3)
1194if (primaryKeys != null && excludedKeyColumns.Length == 0) 1216if (excludedKeyColumns.Length > 0) 1219if (primaryKeys != null && excludedKeyColumns.Length < primaryKeys.Count)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
360for (int i = 1; i < arguments.Length; i += 2)
System\Data\EntityModel\Emitters\CommentEmitter.cs (2)
214if (lines.Length == 1) 277for (int i = 0; i < lines.Length; ++i)
System\Data\EntityModel\Emitters\FixUp.cs (3)
78Class = nameParts[nameParts.Length-1]; 82Class = nameParts[nameParts.Length-2]; 83string name = nameParts[nameParts.Length-1];
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
749CodeExpression[] bytes = new CodeExpression[data.Length]; 751for (int iByte = 0; iByte < data.Length; ++iByte)
System.Data.Linq (132)
ChangeConflicts.cs (6)
343if (a1.Length != a2.Length) 345for (int i = 0, n = a1.Length; i < n; i++) { 354if (a1.Length != a2.Length) 356for (int i = 0, n = a1.Length; i < n; i++) {
ChangeDirector.cs (2)
290System.Diagnostics.Debug.Assert(syncResults.Length == membersToSync.Count); 292syncRollbackValues = new object[syncResults.Length];
ChangeProcessor.cs (1)
528for (int i = 0, n = currentFKs.Length; i < n; i++) {
DataContext.cs (4)
753_miExecuteQuery = typeof(DataContext).GetMethods().Single(m => m.Name == "ExecuteQuery" && m.GetParameters().Length == 2); 809if (parameters.Length > 0) { 811List<Expression> args = new List<Expression>(parameters.Length); 812for (int i = 0, n = parameters.Length; i < n; i++) {
DataServices.cs (4)
271Expression[] keyValueExpressions = new Expression[keyValues.Length]; 388for (int i = 0, n = keyValues.Length; i < n; i++) { 415Expression[] keyExprs = new Expression[keyValues.Length]; 417for (int i = 0, n = keyValues.Length; i < n; i++) {
IdentityManager.cs (5)
173System.Diagnostics.Debug.Assert(this.offset < values.Length, "offset is outside the bounds of the values array"); 275int bucket = hashCode % buckets.Length; 315for (int i = buckets[hashCode % buckets.Length] - 1; i >= 0; i = slots[i].next) { 328if (count == slots.Length) Resize(); 332int bucket = hashCode % buckets.Length;
Mapping\AttributedMetaModel.cs (16)
81if (attrs != null && attrs.Length == 1) { // Provider attribute is !AllowMultiple 89this.dbName = (das != null && das.Length > 0) ? das[0].Name : this.contextType.Name; 234if (attrs.Length == 0) { 257if (attrs.Length > 0) 398if (inheritanceInfo.Length > 0) { 463if (attrs.Length > 0) 604for (int i = 0, n = fis.Length; i < n; i++) { 622for (int i = 0, n = pis.Length; i < n; i++) { 882if (attrs.Length == 0 && mi.ReturnType == typeof(IMultipleResults)) { 885else if (attrs.Length > 1 && mi.ReturnType != typeof(IMultipleResults)) { 888else if (attrs.Length <= 1 && mi.ReturnType.IsGenericType && 895else if (attrs.Length > 0) { 913if (pis.Length > 0) { 914List<MetaParameter> mps = new List<MetaParameter>(pis.Length); 915for (int i = 0, n = pis.Length; i < n; i++) { 1041if (mis == null || mis.Length != 1) {
Mapping\MappedMetaModel.cs (8)
972if (mis == null || mis.Length != 1) { 1377if (pis.Length > 0) { 1378List<MetaParameter> mps = new List<MetaParameter>(pis.Length); 1379if (this.map.Parameters.Count != pis.Length) { 1382for (int i = 0; i < pis.Length; i++) { 1492MetaDataMember[] members = new MetaDataMember[names.Length]; 1493for (int i = 0; i < names.Length; i++) { 1496if (rmis == null || rmis.Length != 1) {
SqlClient\Common\SqlFactory.cs (6)
112SqlExpression result = expressions[expressions.Length - 1]; 113for (int i = expressions.Length - 2; i >= 0; i--) { 120SqlExpression sum = expressions[expressions.Length - 1]; 121for (int i = expressions.Length - 2; i >= 0; i--) { 132SqlExpression result = expressions[expressions.Length - 1]; 133for (int i = expressions.Length - 2; i >= 0; i--) {
SqlClient\Common\TypeSystem.cs (8)
36if (ifaces != null && ifaces.Length > 0) { 159if (mParams.Length != argTypes.Length) 165if (typeArgs == null || typeArgs.Length == 0) 167if (m.GetGenericArguments().Length != typeArgs.Length) 172else if (typeArgs != null && typeArgs.Length > 0) { 175for (int i = 0, n = argTypes.Length; i < n; i++) {
SqlClient\Query\QueryConverter.cs (12)
356for(int i = 0; i<args.Length; ++i) { 864for (int i = 0, n = args.Length; i < n; i++) { 871int[] ordinal = new int[members.Length]; 885Array.Sort(ordinal, members, 0, members.Length); 1241SqlExpression[] args = new SqlExpression[arguments.Length]; 1242for (int i = 0, n = args.Length; i < n; i++) { 1907if (typeArgs.Length == 1 && mc.Method.GetParameters().Length == 0) { 1941for (int i = 0, n = args.Length; i < n; i++) { 2342if (mc.Method.GetGenericArguments().Length == 1) { 2684for (int i = 0, n = exprs.Length; i < n; i++) { 2697for (int i = 0, n = exprs.Length; i < n; i++) {
SqlClient\Query\SqlBinder.cs (4)
323for (int i = 0; i < leftPossibleTypes.Length; ++i) { 324for (int j = 0; j < rightPossibleTypes.Length; ++j) { 339if (leftPossibleTypes.Length == 1 && rightPossibleTypes.Length == 1) {
SqlClient\Query\SqlDuplicator.cs (8)
107for (int i = 0, n = exprs.Length; i < n; i++) { 123for (int i = 0, n = args.Length; i < n; i++) { 126for (int i = 0, n = bindings.Length; i < n; i++) { 133for (int i = 0, n = exprs.Length; i < n; i++) { 310for (int i = 0, n = whens.Length; i < n; i++) { 319for (int i = 0, n = whens.Length; i < n; i++) { 328for (int i = 0, n = whens.Length; i < n; i++) { 339for (int i = 0, n = exprs.Length; i < n; i++) {
SqlClient\Query\SqlExpander.cs (12)
80for (int i = 0, n = exprs.Length; i < n; i++) { 121for (int i = 0; i < mcs.Length; ++i) { 129for (int j = 0; j < mcs.Length; ++j) { 141for (int i = 1; i < scs.Length; ++i) { 147for (int i = 0; i < scs.Length; ++i) { 156for (int j = 0; j < scs.Length; ++j) { 169for (int i = 1; i < tcs.Length; ++i) { 175for (int i = 0; i < tcs.Length; ++i) { 180for (int i = 0; i < tcs.Length; ++i) { 187for (int j = 0; j < tcs.Length; ++j) { 214for (int m = 0, mn = bindings.Length; m < mn; m++) { 225for (int m = 0, mn = arguments.Length; m < mn; ++m) {
SqlClient\Query\SqlFormatter.cs (1)
535for (int i = 0, n = args.Length; i < n; i++) {
SqlClient\Query\SqlMultiplexer.cs (1)
255for (int i = 0, n = exprs.Length; i < n; i++) {
SqlClient\Query\SqlNamer.cs (1)
81for (int i = 0, n = names.Length; i < n; i++) {
SqlClient\Query\Translator.cs (2)
121for (int i = 0, n = exprs.Length; i < n; i++) { 168for (int i = 0; i < keyMembers.Length; i++) {
SqlClient\Reader\ObjectReaderCompiler.cs (6)
2555int nParent = this.session.ParentArguments.Length; 2556object[] tmp = new object[nParent + parentArgs.Length]; 2558Array.Copy(parentArgs, 0, tmp, nParent, parentArgs.Length); 2598if (namedColumns == null || namedColumns.Length == 0) { 2601int[] columnOrdinals = new int[namedColumns.Length]; 2608for (int i = 0, n = namedColumns.Length; i < n; i++) {
SqlClient\SqlProvider.cs (10)
821QueryInfo qi = qis[qis.Length - 1]; 839System.Diagnostics.Debug.Assert(qis.Length == 1); 903QueryInfo qi = qis[qis.Length - 1]; 985for (int i = 0, n = queries.Length; i < n; i++) { 994for (int i = 0, n = queryInfos.Length; i < n; i++) { 1253for (int i = 0, n = qis.Length; i < n; i++) { 1280QueryInfo qi = qis[qis.Length - 1]; 1602QueryInfo[] queries = new QueryInfo[commands.Length]; 1603for (int i = 0, n = commands.Length; i < n; i++) { 1682return this.GetReaderFactory(qis[qis.Length - 1].Query, rowType.Type);
SqlClient\SqlTypeSystemProvider.cs (3)
1179for (int i = 0, n = array.Length; i < n; i++) { 1197SqlType arg1 = argumentTypes.Length > 1 ? (SqlType)argumentTypes[1] : (SqlType)null; 1385return From(clrType, arr.Length);
Types.cs (12)
681if (items == null || items.Length == count) GrowItems(); 712if (items == null || items.Length == count) GrowItems(); 774this.bytes = new byte[value.Length]; 775Array.Copy(value, this.bytes, value.Length); 781byte[] copy = new byte[this.bytes.Length]; 782Array.Copy(this.bytes, copy, copy.Length); 787get { return this.bytes.Length; } 835sb.Append(System.Convert.ToBase64String(this.bytes, 0, this.bytes.Length)); 845if (this.bytes.Length != binary.bytes.Length) 849for (int i = 0, n = this.bytes.Length; i < n; i++) { 863for (int i = 0; i < bytes.Length; i++) {
System.Data.Services (207)
parent\Client\System\Data\Services\Client\BatchStream.cs (13)
237while (0 < this.ReadDelimiter(buffer, 0, buffer.Length)) 849int oldSize = (null != buffer) ? buffer.Length : 0; 888this.byteLength = this.reader.Read(this.byteBuffer, this.bytePosition, this.byteBuffer.Length); 906if (preamble.Length <= this.byteLength) 908for (int i = 0; i < preamble.Length; ++i) 919this.byteLength -= preamble.Length; 920this.bytePosition += preamble.Length; 952Debug.Assert(this.bytePosition + this.byteLength <= this.byteBuffer.Length, "byte tracking out of range"); 969s = this.Encoding.GetString(buffer, 0, buffer.Length); 1013return this.Encoding.GetString(buffer, 0, buffer.Length); 1100Debug.Assert(offset + count <= buffer.Length, "offset + count <= buffer.Length"); 1229int tmp = this.reader.Read(this.byteBuffer, this.byteLength, this.byteBuffer.Length - this.byteLength); 1271Debug.Assert(offset + count <= buffer.Length, "offset + count <= buffer.Length");
System\Data\Services\BatchServiceHost.cs (2)
311if (result == null || result.Length == 0) 315else if (result.Length == 1)
System\Data\Services\DataService.cs (6)
1340Debug.Assert(parentResourceIndex >= 0 && parentResourceIndex < description.SegmentInfos.Length, "parentResourceIndex >= 0 && parentResourceIndex < description.SegmentInfos.Length"); 1403return WriteSingleElementResponse(description, responseFormat, queryResults, description.SegmentInfos.Length - 1, etagValue, dataService); 1514for (int segmentIdx = parentResourceIndex + 1; segmentIdx < description.SegmentInfos.Length; segmentIdx++) 1524Debug.Assert(segmentIdx == description.SegmentInfos.Length - 1, "$value has to be the last segment."); 1601Debug.Assert(results != null && results.Length == 1, "results != null && results.Length == 1"); 2278Debug.Assert(segmentIndex >= 0 && segmentIndex < description.SegmentInfos.Length, "segment index must be a valid one");
System\Data\Services\DataServiceConfiguration.cs (11)
478if (methods == null || methods.Length == 0) 484for (int i = 0; i < methods.Length; i++) 539for (int i = 0; i < methods.Length; i++) 647Debug.Assert(index >= 0 && index < description.SegmentInfos.Length, "index >=0 && index <description.SegmentInfos.Length"); 849Enum.GetValues(typeof(DataServiceProtocolVersion)).Length == 2, 901if (parameters.Length != 0) 903throw new InvalidOperationException(Strings.DataService_QueryInterceptorIncorrectParameterCount(method.Name, type.FullName, parameters.Length)); 963if (parameters.Length == 1 && !parameters[0].IsOut) 998for (int i = 0; i < methods.Length; i++) 1043if (parameters.Length != 2) 1048parameters.Length);
System\Data\Services\DataServiceOperationContext.cs (1)
84if (segments.Length > 0 && segments[0] == XmlConstants.UriBatchSegment)
System\Data\Services\Epm\EpmTargetTree.cs (4)
81for (int i = 0; i < targetSegments.Length; i++) 90if (targetSegment[0] == '@' && i != targetSegments.Length - 1) 154for (int i = 0; i < targetSegments.Length; i++) 163if (targetSegment[0] == '@' && i != targetSegments.Length - 1)
System\Data\Services\ETagAttribute.cs (1)
50if (propertyNames.Length == 0)
System\Data\Services\HttpContextServiceHost.cs (9)
130if (methodValues == null || methodValues.Length == 0) 134else if (methodValues.Length == 1) 149throw DataServiceException.CreateBadRequestError(Strings.HttpContextServiceHost_XMethodIncorrectCount(methodValues.Length)); 395if (values == null || values.Length == 0) 413if (values == null || values.Length == 0) 419Debug.Assert(values != null && values.Length > 0, "values != null && values.Length > 0 - otherwise we should have returned already"); 420if (values.Length == 1) 464for (int j = 0; j < values.Length; j++) 501if (values == null || values.Length != 1)
System\Data\Services\HttpProcessUtility.cs (6)
102for (int i = 0; i < availableTypes.Length; i++) 167Debug.Assert(exactContentType != null && exactContentType.Length != 0, "exactContentType != null && exactContentType.Length != 0"); 183for (int i = 0; i < exactContentType.Length; i++) 703KeyValuePair<string, string>[] grow = new KeyValuePair<string, string>[parameters.Length + 1]; 704Array.Copy(parameters, grow, parameters.Length); 708parameters[parameters.Length - 1] = new KeyValuePair<string, string>(parameterName, parameterValue);
System\Data\Services\IgnorePropertiesAttribute.cs (4)
52if (propertyNames.Length == 0) 82Debug.Assert(attributes.Length == 0 || attributes.Length == 1, "There should be atmost one IgnoreProperties specified"); 83if (attributes.Length == 1)
System\Data\Services\Internal\ExpandedWrapper.cs (3)
50int expectedLength = this.GetType().GetGenericArguments().Length - 1; 51if (this.propertyNames.Length != expectedLength) 100for (int i = 0; i < this.propertyNames.Length; i++)
System\Data\Services\Internal\ProjectedWrapper.cs (26)
119for (int i = 0; i < this.propertyNames.Length; i++) 136if (projectedPropertyCount < precreatedProjectedWrapperTypes.Length) 159Debug.Assert(bindingExpressions.Length >= 2, "At least the ResourceTypeName and PropertyNameList properties must be bound."); 161GetProjectedWrapperType(bindingExpressions.Length - 2) == projectedWrapperType, 164int bindingsCount = bindingExpressions.Length; 167if (bindingsCount <= precreatedProjectedWrapperTypes.Length + 1) 185bindings = new MemberBinding[precreatedProjectedWrapperTypes.Length + 2]; 276Debug.Assert(bindings.Length >= 2, "Must have at least two bindings."); 277Debug.Assert(bindingExpressions.Length >= 2, "Must have at least two expressions to bind."); 295propertyIndex < projectedPropertyNames.Length, 315bindings.Length - bindingStartIndex == precreatedProjectedWrapperTypes.Length, 317Debug.Assert(bindingExpressions.Length > expressionStartIndex, "At least one expression to bind."); 320for (; propertyIndex < precreatedProjectedWrapperTypes.Length - 1 && propertyIndex + expressionStartIndex < bindingExpressions.Length; propertyIndex++) 328if (bindingExpressions.Length > precreatedProjectedWrapperTypes.Length - 1 + expressionStartIndex) 330int nextCount = bindingExpressions.Length - (precreatedProjectedWrapperTypes.Length - 1 + expressionStartIndex); 331if (nextCount > precreatedProjectedWrapperTypes.Length - 1) 334nextCount = precreatedProjectedWrapperTypes.Length; 338MemberBinding[] nextBindings = new MemberBinding[precreatedProjectedWrapperTypes.Length + 2]; 347expressionStartIndex + precreatedProjectedWrapperTypes.Length - 1, 353bindings[bindingStartIndex + precreatedProjectedWrapperTypes.Length - 1] = Expression.Bind( 363for (; propertyIndex < precreatedProjectedWrapperTypes.Length - 1; propertyIndex++) 378bindings[bindingStartIndex + precreatedProjectedWrapperTypes.Length - 1] = Expression.Bind(
System\Data\Services\Parsing\FunctionDescription.cs (17)
125Expression[] methodArguments = new Expression[arguments.Length - 1]; 126Array.Copy(arguments, 1, methodArguments, 0, arguments.Length - 1); 156Debug.Assert(arguments.Length == this.ParameterTypes.Length, "arguments.Length == this.ParameterTypes.Length"); 158Type[] argumentTypes = new Type[this.parameterTypes.Length]; 159for (int i = 0; i < argumentTypes.Length; i++) 282List<FunctionDescription> castSignatures = new List<FunctionDescription>(primitiveTypes.Length + 4); 283for (int i = 0; i < primitiveTypes.Length; i++) 311Debug.Assert(arguments.Length == 2, "arguments.Length == 2"); 347Debug.Assert(arguments.Length == 1, "arguments.Length == 1"); 360Debug.Assert(arguments.Length == 3, "arguments.Length == 3"); 376Debug.Assert(arguments.Length == 1, "arguments.Length == 1"); 387Debug.Assert(arguments.Length == 2, "arguments.Length == 2"); 413Debug.Assert(arguments.Length == 1, "arguments.Length == 1"); 426Debug.Assert(arguments.Length == 3, "arguments.Length == 3"); 452Debug.Assert(parameterTypes.Length == 0 || method, "parameterTypes.Length == 0 || method"); 472functionParameterTypes = new Type[parameterTypes.Length + 1];
System\Data\Services\Parsing\RequestQueryParser.cs (35)
391if (b0.Length != b1.Length) 396for (int i = 0; i < b0.Length; i++) 770for (int i = 0; i < args.Length; i++) 1862Expression candidateTypeArgument = arguments.Length > 1 ? arguments[1] : 1863arguments.Length > 0 ? arguments[0] : 1887if (functionDescription.ParameterTypes.Length == arguments.Length) 1894Expression[] openArguments = new Expression[arguments.Length]; 1895for (int i = 0; i < openArguments.Length; i++) 1933Expression typeExpression = arguments[arguments.Length - 1]; 1940arguments[arguments.Length - 1] = Expression.Constant(typeof(Nullable<>).MakeGenericType(castTargetType)); 1949finalArguments = new Expression[arguments.Length + 1]; 1950for (int i = 0; i < arguments.Length; i++) 1955finalArguments[arguments.Length] = Expression.Constant(IsOpenPropertyExpression(arguments[0]), typeof(bool)); 1968originalArguments.Length == arguments.Length, 1970for (int i = 0; i < originalArguments.Length; i++) 2185List<FunctionDescription> applicableFunctions = new List<FunctionDescription>(functions.Length); 2186List<Expression[]> applicablePromotedArguments = new List<Expression[]>(functions.Length); 2191if (candidate.ParameterTypes.Length != arguments.Length) 2196Expression[] promotedArguments = new Expression[arguments.Length]; 2198for (int i = 0; i < candidate.ParameterTypes.Length; i++) 2385if (applicable.Length > 1) 2390int result = applicable.Length; 2392if (applicable.Length == 1) 2400for (int i = 0; i < args.Length; i++) 2410else if (applicable.Length > 1) 2415if (args.Length == 2 && applicable.Length == 2 && 2438if (method.Parameters.Length != args.Length) 2443Expression[] promotedArgs = new Expression[args.Length]; 2444for (int i = 0; i < args.Length; i++)
System\Data\Services\Parsing\WebConvert.cs (3)
52StringBuilder hexBuilder = new StringBuilder(3 + byteArray.Length * 2); 55for (int i = 0; i < byteArray.Length; i++) 259while (resultIndex < result.Length)
System\Data\Services\Providers\BaseServiceProvider.cs (5)
484if (queriables != null && queriables.Length == 1) 507if (methodInfo.GetCustomAttributes(typeof(WebGetAttribute), true).Length != 0) 511else if (methodInfo.GetCustomAttributes(typeof(WebInvokeAttribute), true).Length != 0) 801ServiceOperationParameter[] parameters = new ServiceOperationParameter[parametersInfo.Length]; 802for (int i = 0; i < parameters.Length; i++)
System\Data\Services\Providers\BasicExpandProvider.cs (2)
1225p.Length == 2 && 1230return functionParameter.IsGenericType && functionParameter.GetGenericArguments().Length == 2;
System\Data\Services\Providers\EntityPropertyMappingInfo.cs (2)
191if (element == null || currentSegment == srcPathSegments.Length) 203if (!resourceProperty.IsOfKind(currentSegment == srcPathSegments.Length - 1 ? ResourcePropertyKind.Primitive : ResourcePropertyKind.ComplexType))
System\Data\Services\Providers\ReflectionServiceProvider.cs (7)
254if (!propertiesToBeIgnored.Contains(property.Name) && property.CanRead && property.GetIndexParameters().Length == 0) 626if (property.CanRead && property.GetIndexParameters().Length == 0) 922Debug.Assert(attributes.Length <= 1, "Only one attribute can be specified per type"); 924if (attributes.Length == 1) 954if (type.GetCustomAttributes(typeof(HasStreamAttribute), true /* inherit */).Length == 1) 987StringBuilder builder = new StringBuilder(type.Name.Length * 2 * (1 + genericArguments.Length)); 997for (int i = 0; i < genericArguments.Length; i++)
System\Data\Services\RequestDescription.cs (11)
140Debug.Assert(segmentInfos != null && segmentInfos.Length != 0, "segmentInfos != null && segmentInfos.Length != 0"); 191int lastSegmentIndex = other.SegmentInfos.Length - 1; 280get { return this.segmentInfos[this.segmentInfos.Length - 1]; } 288return (this.segmentInfos.Length >= 3 && this.segmentInfos[this.segmentInfos.Length - 2].TargetKind == RequestTargetKind.Link); 425segmentInfos[segmentInfos.Length - 1] = segmentInfo; 565Debug.Assert(this.segmentInfos.Length >= 1, "this.segmentInfos.Length >= 1"); 569return this.SegmentInfos.Length - 1; 572for (int j = this.SegmentInfos.Length - 1; j >= 0; j--) 653for (; idx < this.segmentInfos.Length; idx++) 661Debug.Assert(idx > 0 && idx < this.segmentInfos.Length - 1, "idx > 0 && idx < this.segmentInfos.Length - 1");
System\Data\Services\RequestUriProcessor.cs (14)
75if (segments.Length > RecursionLimit) 81SegmentInfo lastSegment = (segmentInfos.Length == 0) ? null : segmentInfos[segmentInfos.Length - 1]; 124segmentInfos[segmentInfos.Length - 2].Identifier; 331numberOfSegmentsToSkip = baseUri.Segments.Length; 335for (int i = numberOfSegmentsToSkip; i < uriSegments.Length; i++) 346for (int i = numberOfSegmentsToSkip; i < uriSegments.Length; i++) 360Debug.Assert(segmentIndex == segments.Length, "segmentIndex == segments.Length -- otherwise we mis-counted populated/skipped segments."); 666SegmentInfo[] segmentInfos = new SegmentInfo[segments.Length]; 669for (int i = 0; i < segments.Length; i++) 672bool checkRights = (i != segments.Length - 1); // Whether rights should be checked on this segment. 687segment = CreateFirstSegment(service, identifier, checkRights, queryPortion, segments.Length == 1, out crossReferencingUri); 919if (!crossReferencingUri && ShouldRequestQuery(service, i == segments.Length - 1, postLinkSegment, queryPortion)) 934if (segments.Length != 0 && previous.TargetKind == RequestTargetKind.Link)
System\Data\Services\Serializers\BinarySerializer.cs (1)
63this.outputStream.Write(bytes, 0, bytes.Length);
System\Data\Services\Serializers\Deserializer.cs (7)
394Debug.Assert(description.SegmentInfos.Length >= 2, "description.SegmentInfos.Length >= 2"); 409modifyingResourceIndex = description.SegmentInfos.Length - 3; 413modifyingResourceIndex = description.SegmentInfos.Length - 2; 626Debug.Assert(results != null && results.Length == 1, "results != null && results.Length == 1"); 920object resourceCookie = this.Service.GetResource(requestDescription, requestDescription.SegmentInfos.Length - 1, null); 1056result = stream.Read(data, 0, data.Length); 1060while (result == data.Length);
System\Data\Services\Serializers\Serializer.cs (2)
419return this.currentSkipTokenForCustomPaging != null && this.currentSkipTokenForCustomPaging.Length > 0; 1133for (int i = 0; i < skipTokenProperties.Length; i++)
System\Data\Services\Serializers\SyndicationDeserializer.cs (1)
516object targetResource = this.Service.GetResource(description, description.SegmentInfos.Length - 1, null);
System\Data\Services\SingleResultAttribute.cs (1)
40return method.GetCustomAttributes(typeof(SingleResultAttribute), true).Length > 0;
System\Data\Services\UpdatableWrapper.cs (1)
383for (int i = 0; i < etagPropertyInfo.Length; i++)
System\Data\Services\UpdateTracker.cs (2)
60for (int i = 0; i < methods.Length; i++) 99for (int i = 0; i < methods.Length; i++)
System\Data\Services\WebUtil.cs (10)
316if (segments.Length > 0) 318string lastBaseSegment = segments[segments.Length - 1]; 544while (0 < (count = input.Read(buffer, 0, buffer.Length))) 636for (int i = 0; i < types.Length; i++) 991ResourceType[] types = new ResourceType[PrimitiveTypesEdmNameMapping.Length]; 992for (int i = 0; i < types.Length; i++) 1330Debug.Assert(wrapperParameters.Length > 1, "Must have 1 element besides the ProjectedType"); 1331if (wrapperParameters.Length - 1 > 12) 1333throw DataServiceException.CreateBadRequestError(errorGenerator(wrapperParameters.Length - 1)); 1336return WebUtil.GenericExpandedWrapperTypes.Single(x => x.Index == wrapperParameters.Length - 1).Type.MakeGenericType(wrapperParameters);
System.Data.Services.Client (87)
parent\Server\System\Data\Services\Epm\EpmTargetTree.cs (4)
81for (int i = 0; i < targetSegments.Length; i++) 90if (targetSegment[0] == '@' && i != targetSegments.Length - 1) 154for (int i = 0; i < targetSegments.Length; i++) 163if (targetSegment[0] == '@' && i != targetSegments.Length - 1)
parent\Server\System\Data\Services\HttpProcessUtility.cs (3)
703KeyValuePair<string, string>[] grow = new KeyValuePair<string, string>[parameters.Length + 1]; 704Array.Copy(parameters, grow, parameters.Length); 708parameters[parameters.Length - 1] = new KeyValuePair<string, string>(parameterName, parameterValue);
parent\Server\System\Data\Services\Parsing\WebConvert.cs (2)
52StringBuilder hexBuilder = new StringBuilder(3 + byteArray.Length * 2); 55for (int i = 0; i < byteArray.Length; i++)
parent\Server\System\Data\Services\Providers\EntityPropertyMappingInfo.cs (2)
130if (element == null || currentSegment == srcPathSegments.Length) 145if (resourceProperty.IsKnownType ^ (currentSegment == srcPathSegments.Length - 1))
System\Data\Services\Client\ALinq\ProjectionAnalyzer.cs (2)
313if (lastExpressions.Length == 0) 318MemberExpression lastExpression = lastExpressions[lastExpressions.Length - 1] as MemberExpression;
System\Data\Services\Client\ALinq\ResourceBinder.cs (5)
1730if (ne.Members.Count != constructorParams.Length) 1745Dictionary<string, Expression> sourceAccessors = new Dictionary<string, Expression>(constructorParams.Length - 1, StringComparer.Ordinal); 1986if (memberExpressions.Length > assignedExpressions.Length) 1992for (int i = 0; i < memberExpressions.Length; i++)
System\Data\Services\Client\ALinq\TypeSystem.cs (1)
215if (ifaces != null && ifaces.Length > 0)
System\Data\Services\Client\ArraySet.cs (5)
70if ((null == this.items) || (index == this.items.Length)) 174if ((0 == lastIndex) && (256 <= array.Length)) 178else if ((256 < array.Length) && (lastIndex < array.Length / 4)) 180Array.Resize(ref this.items, array.Length / 2);
System\Data\Services\Client\AtomMaterializer.cs (1)
658for (int i = 0; i < properties.Length; i++)
System\Data\Services\Client\BatchStream.cs (13)
237while (0 < this.ReadDelimiter(buffer, 0, buffer.Length)) 849int oldSize = (null != buffer) ? buffer.Length : 0; 888this.byteLength = this.reader.Read(this.byteBuffer, this.bytePosition, this.byteBuffer.Length); 906if (preamble.Length <= this.byteLength) 908for (int i = 0; i < preamble.Length; ++i) 919this.byteLength -= preamble.Length; 920this.bytePosition += preamble.Length; 952Debug.Assert(this.bytePosition + this.byteLength <= this.byteBuffer.Length, "byte tracking out of range"); 969s = this.Encoding.GetString(buffer, 0, buffer.Length); 1013return this.Encoding.GetString(buffer, 0, buffer.Length); 1100Debug.Assert(offset + count <= buffer.Length, "offset + count <= buffer.Length"); 1229int tmp = this.reader.Read(this.byteBuffer, this.byteLength, this.byteBuffer.Length - this.byteLength); 1271Debug.Assert(offset + count <= buffer.Length, "offset + count <= buffer.Length");
System\Data\Services\Client\Binding\BindingEntityInfo.cs (2)
146if (parms != null && parms.Length == 1 && IsEntityType(parms[0])) 281bindingEntityInfo.EntitySet = (attributes != null && attributes.Length == 1) ? ((EntitySetAttribute)attributes[0]).EntitySet : null;
System\Data\Services\Client\ClientType.cs (6)
154(0 == pinfo.GetIndexParameters().Length)) 626type = genericArguments[genericArguments.Length - 1]; 774if (attributes != null && attributes.Length > 0) 776Debug.Assert(attributes.Length == 1, "The AttributeUsage in the attribute definition should be preventing more than 1 per property"); 792if (attributes != null && attributes.Length > 0) 794Debug.Assert(attributes.Length == 1, "The AttributeUsage in the attribute definition should be preventing more than 1 per property");
System\Data\Services\Client\DataServiceContext.cs (15)
2289Debug.Assert(Util.SupportedResponseVersions.Length > 0, "At least one supported version must exist."); 2292for (int versionIdx = 1; versionIdx < Util.SupportedResponseVersions.Length; versionIdx++) 2333if (1 < keys.Length) 3805numRead = responseStream.Read(buffer, 0, buffer.Length); 3817numRead = m.Read(completeBuffer, 0, completeBuffer.Length); 4385read = contentStream.Stream.Read(buffer, 0, buffer.Length); 4685mediaRequest.ContentLength = buffer.Length; 4688this.mediaResourceRequestStream = new MemoryStream(buffer, 0, buffer.Length, false, true); 5086for (int i = 0; i < this.Queries.Length; ++i) 5663(null != this.Queries && queryCount != this.Queries.Length)) 5754asyncResult = BaseAsyncResult.InvokeAsync(contentStream.Stream.BeginRead, pereq.RequestContentBuffer, 0, pereq.RequestContentBuffer.Length, this.AsyncRequestContentEndRead, pereq); 5814asyncResult = BaseAsyncResult.InvokeAsync(contentStream.Stream.BeginRead, pereq.RequestContentBuffer, 0, pereq.RequestContentBuffer.Length, this.AsyncRequestContentEndRead, pereq); 5882asyncResult = BaseAsyncResult.InvokeAsync(contentStream.Stream.BeginRead, pereq.RequestContentBuffer, 0, pereq.RequestContentBuffer.Length, this.AsyncRequestContentEndRead, pereq); 5956asyncResult = BaseAsyncResult.InvokeAsync(stream.BeginRead, this.buildBatchBuffer, 0, this.buildBatchBuffer.Length, this.AsyncEndRead, pereq); 6014asyncResult = BaseAsyncResult.InvokeAsync(stream.BeginRead, this.buildBatchBuffer, 0, this.buildBatchBuffer.Length, this.AsyncEndRead, pereq);
System\Data\Services\Client\DataServiceKeyAttribute.cs (1)
49if (keyNames.Length == 0 || keyNames.Any(f => f == null || f.Length == 0))
System\Data\Services\Client\DataServiceQueryContinuation.cs (1)
97Debug.Assert(constructors.Length == 1, "constructors.Length == 1");
System\Data\Services\Client\MemberAssignmentAnalysis.cs (4)
284for (int i = 0; i < result.Length; i++) 306if (previous.Length != candidate.Length) 311for (int i = 0; i < previous.Length; i++)
System\Data\Services\Client\ProjectionPathBuilder.cs (5)
187if (names.Count != rewrite.MemberNames.Length) 193for (int i = 0; i < names.Count && i < rewrite.MemberNames.Length; i++) 259if (names.Length != this.rewrites[i].MemberNames.Length) 265for (int j = 0; j < names.Length; j++)
System\Data\Services\Client\ProjectionPlanCompiler.cs (6)
531Debug.Assert(expressions.Length != 0, "expressions.Length != 0 -- otherwise there is no correlation to parameter in entity member init"); 556if (expressions.Length <= 1) 691for (int i = 1; i < expressions.Length; i++) 718Debug.Assert(path.Length > 1, "path.Length > 1"); 730while (pathIndex < path.Length); 846c => c.GetParameters().Length == 7 && c.GetParameters()[0].ParameterType == typeof(object));
System\Data\Services\Client\QueryResult.cs (2)
633bufferLength = buffer.Length; 678if (0 < count && 0 < buffer.Length && stream.CanRead)
System\Data\Services\Client\Util.cs (6)
180if (0 == value.Length) 185for (int i = 0; i < value.Length; ++i) 245while (whitespace.Length <= depth) 247char[] tmp = new char[2 * whitespace.Length]; 250for (int i = 2; i < tmp.Length; ++i) 346for (int i = 0; i < array.Length; ++i)
System\Data\Services\Client\WebUtil.cs (1)
75while (input.CanRead && (0 < (count = input.Read(buffer, 0, buffer.Length))))
System.Data.Services.Design (10)
System\Data\EntityModel\DataServiceBuildProvider.cs (1)
196for (int i = 0; i < chunks.Length; i++)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
250return IsOpenPropertyOnPath(entityPropertyType, String.Join("/", propertyPath, 1, propertyPath.Length - 1));
System\Data\EntityModel\Emitters\CommentEmitter.cs (2)
211if (lines.Length == 1) 274for (int i = 0; i < lines.Length; ++i)
System\Data\EntityModel\Emitters\FixUp.cs (3)
76Class = nameParts[nameParts.Length-1]; 80Class = nameParts[nameParts.Length-2]; 81string name = nameParts[nameParts.Length-1];
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
676CodeExpression[] bytes = new CodeExpression[data.Length]; 678for (int iByte = 0; iByte < data.Length; ++iByte)
System\Data\EntityModel\Emitters\TypeReference.cs (1)
79if ((null != argument) && (0 < argument.Length))
System.Data.SqlXml (151)
System\Xml\Xsl\IlGen\OptimizerPatterns.cs (1)
57private static readonly int PatternCount = Enum.GetValues(typeof(OptimizerPatternName)).Length;
System\Xml\Xsl\IlGen\XmlILModule.cs (4)
177paramTypesNew = new Type[paramTypes.Length + 1]; 179Array.Copy(paramTypes, 0, paramTypesNew, 1, paramTypes.Length); 201for (int i = 0; i < paramNames.Length; i++) { 215for (int i = 0; i < paramNames.Length; i++) {
System\Xml\Xsl\QIL\QilList.cs (1)
111if (this.count == this.members.Length) {
System\Xml\Xsl\QIL\QilPatternFactory.cs (1)
344switch(args.Length) {
System\Xml\Xsl\QIL\QilXmlReader.cs (8)
47for (i = 0; i < parms.Length; i++) { 52if (i == parms.Length) { 54if (!nameToFactoryMethod.ContainsKey(mi.Name) || nameToFactoryMethod[mi.Name].GetParameters().Length < parms.Length) 366Debug.Assert(facMethod.GetParameters().Length == list.Count, "NodeType " + r.LocalName + " does not allow " + list.Count + " parameters"); 370for (int i = 0; i < facArgs.Length; i++) 428XmlQueryType[] types = new XmlQueryType[codes.Length]; 430for (int i = 0; i < codes.Length; i++)
System\Xml\Xsl\Runtime\NumberFormatter.cs (1)
109for (int idx = RomanDigitValue.Length; idx-- != 0; ) {
System\Xml\Xsl\Runtime\XmlAttributeCache.cs (2)
325else if (this.numEntries >= this.arrAttrs.Length) { 327Debug.Assert(this.numEntries == this.arrAttrs.Length);
System\Xml\Xsl\Runtime\XmlCollation.cs (2)
193if (pair.Length != 2) { 395if (UpperFirst && bytesKey.Length != 0) {
System\Xml\Xsl\Runtime\XmlExtensionFunction.cs (9)
156if (methSearch.Name.Equals(this.name, comparison) && (this.numArgs == -1 || methSearch.GetParameters().Length == this.numArgs)) { 177if (methSearch.Name.Equals(this.name, comparison) && (this.numArgs == -1 || methSearch.GetParameters().Length == this.numArgs)) { 188if (methSearch.Name.Equals(this.name, comparison) && methSearch.GetParameters().Length == this.numArgs) 213this.argClrTypes = new Type[paramInfo.Length]; 214for (i = 0; i < paramInfo.Length; i++) 221this.argXmlTypes = new XmlQueryType[paramInfo.Length]; 222for (i = 0; i < paramInfo.Length; i++) { 253Debug.Assert(args.Length == this.argClrTypes.Length, "Mismatched number of actual and formal arguments.");
System\Xml\Xsl\Runtime\XmlIterators.cs (1)
43if (this.idx >= idrefs.Length)
System\Xml\Xsl\Runtime\XmlNavigatorStack.cs (1)
37if (this.sp >= this.stkNav.Length)
System\Xml\Xsl\Runtime\XmlQueryContext.cs (3)
248XmlExtensionFunction extFunc = this.extFuncsLate.Bind(name, namespaceUri, args.Length, instance.GetType(), XmlQueryRuntime.LateBoundFlags); 251objActualArgs = new object[args.Length]; 253for (int i = 0; i < args.Length; i++) {
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (14)
92this.earlyObjects = (this.earlyInfo != null) ? new object[earlyInfo.Length] : null; 96this.globalValues = (this.globalNames != null) ? new object[this.globalNames.Length] : null; 106this.atomizedNames = new string[names.Length]; 111for (i = 0; i < names.Length; i++) { 118for (i = 0; i < names.Length; i++) 128this.filters = new XmlNavigatorFilter[filters.Length]; 130for (i = 0; i < filters.Length; i++) 172for (int idx = 0; idx < this.globalNames.Length; idx++) { 186for (int idx = 0; idx < this.globalNames.Length; idx++) { 249Debug.Assert(this.earlyObjects != null && index < this.earlyObjects.Length, "Early bound object does not exist"); 268for (int idx = 0; idx < this.earlyInfo.Length; idx++) { 846if (this.indexes != null && indexId < this.indexes.Length) { 881else if (indexId >= this.indexes.Length) { 884Array.Copy(this.indexes, 0, indexesNew, 0, this.indexes.Length);
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (4)
355Debug.Assert(keys.Length >= this.size, "Number of keys must be >= number of items."); 366if (this.size >= this.items.Length) { 547for (iEach = 0; iEach < sortArray.Length; iEach++) 554for (iEach = 1; iEach < sortArray.Length; iEach++) {
System\Xml\Xsl\Runtime\XmlQueryStaticData.cs (9)
198dataWriter.Write(this.names.Length); 209dataWriter.Write(this.prefixMappingsList.Length); 211dataWriter.Write(mappings.Length); 224dataWriter.Write(this.filters.Length); 236dataWriter.Write(this.types.Length); 247dataWriter.Write(this.collations.Length); 258dataWriter.Write(this.globalNames.Length); 270dataWriter.Write(this.earlyBound.Length); 271ebTypes = new Type[this.earlyBound.Length];
System\Xml\Xsl\Runtime\XmlSortKey.cs (8)
233cntCmp = (this.sortKeyBytes.Length < that.sortKeyBytes.Length) ? this.sortKeyBytes.Length : that.sortKeyBytes.Length; 247if (this.sortKeyBytes.Length < that.sortKeyBytes.Length) 249else if (this.sortKeyBytes.Length > that.sortKeyBytes.Length)
System\Xml\Xsl\Runtime\XmlSortKeyAccumulator.cs (2)
75if (this.pos >= this.keys.Length) { 77Array.Copy(this.keys, 0, keysNew, 0, this.keys.Length);
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
102for (int i = 0; i < arr.Length; i++)
System\Xml\Xsl\XmlIlGenerator.cs (3)
348this.helper.LoadInteger(data.Length); 358this.helper.LoadInteger(ebTypes.Length); 362for (int idx = 0; idx < ebTypes.Length; idx++) {
System\Xml\Xsl\XmlQueryCardinality.cs (1)
285for (int i = 0; i < serialized.Length; i++) {
System\Xml\Xsl\XmlQueryType.cs (7)
34TypeCodeDerivation = new BitMatrix(BaseTypeCodes.Length); 37for (int i = 0; i < BaseTypeCodes.Length; i++) { 449for (int i = 1; i < sa.Length; i++) { 851Debug.Assert(index1 < bits.Length && index2 < bits.Length, "Index out of range."); 855Debug.Assert(index1 < bits.Length && index2 < bits.Length, "Index out of range.");
System\Xml\Xsl\XmlQueryTypeFactory.cs (6)
65XmlQueryType[] queryMemberTypes = new XmlQueryType[baseMemberTypes.Length]; 67for (int i = 0; i < baseMemberTypes.Length; i++) 89if (types.Length == 0) 91else if (types.Length == 1) 98for (int i = 1; i < types.Length; i++) { 519for (int idx = 0; idx < SpecialBuiltInItemTypes.Length; idx++) {
System\Xml\Xsl\XPath\XPathBuilder.cs (1)
860Debug.Assert(maxArgs == 0 || maxArgs == Infinity || argTypes != null && argTypes.Length == maxArgs);
System\Xml\Xsl\XslException.cs (2)
48if (args != null && args.Length > 0) { 52for (int idx = 1; idx < args.Length; idx++) {
System\Xml\Xsl\Xslt\CompilerScopeManager.cs (1)
117if (++lastRecord == records.Length) {
System\Xml\Xsl\Xslt\MatcherBuilder.cs (1)
462Debug.Assert(priority == branches.Length - 1);
System\Xml\Xsl\Xslt\OutputScopeManager.cs (1)
62if (lastRecord == records.Length) {
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (1)
28Debug.Assert(args == null || args.Length == 0, "Error message must already be composed in res");
System\Xml\Xsl\Xslt\XsltInput.cs (13)
85if (records.Length <= position) { 86int newSize = records.Length * 2; 91Array.Copy(records, tmp, records.Length); 619Debug.Assert(attributes.Length <= xsltAttributeNumber.Length); 635for (int i = 0; i < attributes.Length; i++) { 663for (kwd = 0; kwd < attributes.Length; kwd++) { 670if (kwd == attributes.Length) { 706for (int i = 0; i < attributes.Length; i ++) { 815for (int idx = 0; idx < list.Length; idx++) { 830for (int idx = 0; idx < list.Length; idx++) { 857for (col = 0; col < list.Length; col++) { 862if (col == list.Length) {
System\Xml\Xsl\Xslt\XsltLoader.cs (7)
103for(int i = 0; i < attributes.Length; i ++) { 513for (int i = 0; i < qnames.Length; i++) { 787Debug.Assert(NumCharAttrs == DefaultValues.Length); 1201if ((publicKeyToken == null || publicKeyToken.Length == 0) && asmName.Version == null) { 2455List<QilName> modes = new List<QilName>(list.Length); 2459if (list.Length == 0) { 2582for (int i = 0; i < tokens.Length; i++) {
System\Xml\Xsl\XsltOld\ActionFrame.cs (3)
89Debug.Assert(this.variables != null && index < this.variables.Length); 94Debug.Assert(this.variables != null && index < this.variables.Length); 289return this.action.GetDbgData(this).Variables.Length;
System\Xml\Xsl\XsltOld\Avt.cs (1)
48for(int i = 0; i < events.Length; i ++) {
System\Xml\Xsl\XsltOld\BuilderInfo.cs (1)
65if (this.TextInfo.Length < newSize) {
System\Xml\Xsl\XsltOld\Compiler.cs (1)
402for (int idx = 0; idx < nsList.Length; idx++) {
System\Xml\Xsl\XsltOld\ContainerAction.cs (1)
388for (int i = 0; i < elements.Length; i++){
System\Xml\Xsl\XsltOld\InputScopeManager.cs (2)
121for (int idx = 0; idx < nsList.Length; idx++) { 139for (int idx = 0; idx < nsList.Length; idx++) {
System\Xml\Xsl\XsltOld\Processor.cs (1)
328for (int i = 0; i < this.keyList.Length; i ++) {
System\Xml\Xsl\XsltOld\SequentialOutput.cs (3)
559Debug.Assert(find.Length == replace.Length); 577for(i = find.Length - 1; 0 <= i; i --) {
System\Xml\Xsl\XsltOld\UseAttributesetsAction.cs (3)
41this.useAttributeSets = new XmlQualifiedName[qnames.Length]; { 42for (int i = 0; i < qnames.Length; i++) { 65if (frame.Counter < this.useAttributeSets.Length) {
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (17)
100int length = methods.Length; 122if(methods[i].GetParameters().Length == argTypes.Length) { 137for(int par = 0; par < parameters.Length; par ++) { 202if (argTypes.Length < func.Minargs || func.Maxargs < argTypes.Length) { 203throw XsltException.Create(Res.Xslt_WrongNumberArgs, name, argTypes.Length.ToString(CultureInfo.InvariantCulture)); 636if(args.Length > 0) { 682if (args.Length == 2) { 772DecimalFormat formatInfo = ((XsltCompileContext)xsltContext).ResolveFormatName(args.Length == 3 ? ToString(args[2]) : null); 799int minArgs = parameters.Length; 800int maxArgs = parameters.Length; 801this.typeCodes = new TypeCode[parameters.Length]; 802XPathResultType[] argTypes = new XPathResultType[parameters.Length]; 804for (int i = parameters.Length - 1; 0 <= i; i --) { // Revers order is essential: counting optional parameters 819Debug.Assert(args.Length <= this.Minargs, "We cheking this on resolve time"); 820for(int i = args.Length -1; 0 <= i; i --) {
System\Xml\Xsl\XsltOld\XsltOutput.cs (2)
171this.cdataElements = new Hashtable(qnames.Length); 174for (int i = 0; i < qnames.Length; i++) {
System.Drawing (243)
commonui\System\Drawing\Advanced\ColorPalette.cs (1)
92int length = entries.Length;
commonui\System\Drawing\Advanced\EncoderParameter.cs (18)
268numberOfValues = value.Length; 292numberOfValues = value.Length; 311numberOfValues = value.Length; 332numberOfValues = value.Length; 342for (int i=0; i<value.Length; i++) { 358if (numerator.Length != denominator.Length) 362numberOfValues = numerator.Length; 387if (rangebegin.Length != rangeend.Length) 391numberOfValues = rangebegin.Length; 418if (numerator1.Length != denominator1.Length || 419numerator1.Length != denominator2.Length || 420denominator1.Length != denominator2.Length) 424numberOfValues = numerator1.Length;
commonui\System\Drawing\Advanced\EncoderParameters.cs (1)
80int length = param.Length;
commonui\System\Drawing\Advanced\Gdiplus.cs (4)
3261int count = points.Length; 3282int count = points.Length; 3303int count = rect.Length; 3324int count = rect.Length;
commonui\System\Drawing\Advanced\GPStream.cs (4)
29if (bytes.Length < current + ReadBlock) { 30byte[] newData = new byte[bytes.Length * 2]; 31Array.Copy(bytes, newData, bytes.Length); 92if (pcbRead != null && pcbRead.Length > 0) {
commonui\System\Drawing\Advanced\GraphicsPath.cs (25)
99if (pts.Length != types.Length) 102int count = types.Length; 152if (pts.Length != types.Length) 155int count = types.Length; 713int status = SafeNativeMethods.Gdip.GdipAddPathLine2(new HandleRef(this, nativePath), new HandleRef(null, buf), points.Length); 757int status = SafeNativeMethods.Gdip.GdipAddPathLine2I(new HandleRef(this, nativePath), new HandleRef(null, buf), points.Length); 864int status = SafeNativeMethods.Gdip.GdipAddPathBeziers(new HandleRef(this, nativePath), new HandleRef(null, buf), points.Length); 911int status = SafeNativeMethods.Gdip.GdipAddPathBeziersI(new HandleRef(this, nativePath), new HandleRef(null, buf), points.Length); 936int status = SafeNativeMethods.Gdip.GdipAddPathCurve(new HandleRef(this, nativePath), new HandleRef(null, buf), points.Length); 954points.Length, tension); 975points.Length, offset, 997int status = SafeNativeMethods.Gdip.GdipAddPathCurveI(new HandleRef(this, nativePath), new HandleRef(null, buf), points.Length); 1017points.Length, tension); 1038points.Length, offset, 1060int status = SafeNativeMethods.Gdip.GdipAddPathClosedCurve(new HandleRef(this, nativePath), new HandleRef(null, buf), points.Length); 1080int status = SafeNativeMethods.Gdip.GdipAddPathClosedCurve2(new HandleRef(this, nativePath), new HandleRef(null, buf), points.Length, tension); 1101int status = SafeNativeMethods.Gdip.GdipAddPathClosedCurveI(new HandleRef(this, nativePath), new HandleRef(null, buf), points.Length); 1121int status = SafeNativeMethods.Gdip.GdipAddPathClosedCurve2I(new HandleRef(this, nativePath), new HandleRef(null, buf), points.Length, tension); 1153int status = SafeNativeMethods.Gdip.GdipAddPathRectangles(new HandleRef(this, nativePath), new HandleRef(null, buf), rects.Length); 1187int status = SafeNativeMethods.Gdip.GdipAddPathRectanglesI(new HandleRef(this, nativePath), new HandleRef(null, buf), rects.Length); 1306int status = SafeNativeMethods.Gdip.GdipAddPathPolygon(new HandleRef(this, nativePath), new HandleRef(null, buf), points.Length); 1324int status = SafeNativeMethods.Gdip.GdipAddPathPolygonI(new HandleRef(this, nativePath), new HandleRef(null, buf), points.Length); 1653destPoints.Length,
commonui\System\Drawing\Advanced\GraphicsPathIterator.cs (7)
266if (points.Length != types.Length) 271int count = points.Length; 308if ((points.Length != types.Length) || (endIndex - startIndex + 1 > points.Length)) 313int count = points.Length;
commonui\System\Drawing\Advanced\ImageAttributes.cs (1)
619int mapSize = map.Length;
commonui\System\Drawing\Advanced\ImageFormatConverter.cs (2)
72for (int i = 0; i < props.Length; i++) { 141for (int i = 0; i < props.Length; i++) {
commonui\System\Drawing\Advanced\LinearGradientBrush.cs (8)
457int count = blend.Factors.Length; 600blend.Colors = new Color[argb.Length]; 602for (int i=0; i<argb.Length; i++) { 626else if (blend.Colors.Length < 2) { 631else if (blend.Colors.Length != blend.Positions.Length) { 641else if (blend.Positions[blend.Positions.Length - 1] != 1.0f) { 651int count = blend.Colors.Length;
commonui\System\Drawing\Advanced\Matrix.cs (14)
84if (plgpts.Length != 3) { 119if (plgpts.Length != 3) { 443pts.Length); 449PointF[] newPts = SafeNativeMethods.Gdip.ConvertGPPOINTFArrayF(buf, pts.Length); 451for (int i=0; i<pts.Length; i++) { 475pts.Length); 482Point[] newPts = SafeNativeMethods.Gdip.ConvertGPPOINTArray(buf, pts.Length); 484for (int i=0; i<pts.Length; i++) { 507pts.Length); 514PointF[] newPts = SafeNativeMethods.Gdip.ConvertGPPOINTFArrayF(buf, pts.Length); 516for (int i=0; i<pts.Length; i++) { 548pts.Length); 555Point[] newPts = SafeNativeMethods.Gdip.ConvertGPPOINTArray(buf, pts.Length); 557for (int i=0; i<pts.Length; i++) {
commonui\System\Drawing\Advanced\PathGradientBrush.cs (9)
68points.Length, 128points.Length, 244if ((colors.Length > count) || (count <= 0)) 247count = colors.Length; 249for (int i=0; i<colors.Length; i++) 414int count = blend.Factors.Length; 563blend.Colors = new Color[argb.Length]; 565for (int i=0; i<argb.Length; i++) { 585int count = blend.Colors.Length;
commonui\System\Drawing\Advanced\SizeFConverter.cs (3)
80float[] values = new float[tokens.Length]; 82for (int i = 0; i < values.Length; i++) { 86if (values.Length == 2) {
commonui\System\Drawing\Advanced\StringFormat.cs (2)
258int status = SafeNativeMethods.Gdip.GdipSetStringFormatMeasurableCharacterRanges(new HandleRef(this, nativeFormat), ranges.Length, ranges); 365int status = SafeNativeMethods.Gdip.GdipSetStringFormatTabStops(new HandleRef(this, nativeFormat), firstTabOffset, tabStops.Length, tabStops);
commonui\System\Drawing\Advanced\SystemColorTracker.cs (9)
40Debug.Assert(list.Length > 0, "INITIAL_SIZE was initialized after list"); 42if (list.Length == count) { 61Debug.Assert(list[index].Target == null, "Trying to reuse a weak reference that isn't broken yet: list[" + index + "], length =" + list.Length); 73int right = list.Length - 1; 76int length = list.Length; 99Debug.Assert(count >= 0 && count <= list.Length, "count not a legal index into list"); 121if (count / (float) list.Length > EXPAND_THRESHOLD) { 122WeakReference[] newList = new WeakReference[list.Length * EXPAND_FACTOR]; 126if (list.Length >= WARNING_SIZE) {
commonui\System\Drawing\BitmapSelector.cs (1)
96if (attr.Length > 0) {
commonui\System\Drawing\ColorConverter.cs (4)
176int[] values = new int[tokens.Length]; 177for (int i = 0; i < values.Length; i++) { 188switch (values.Length) { 339for (int i = 0; i < props.Length; i++) {
commonui\System\Drawing\Design\ToolboxItem.cs (5)
341if (comps != null && comps.Length > 0) { 355if (comps != null && comps.Length > 0) { 393for (int i = 0; i < components.Length; i++) { 406for (int index = 0; index < components.Length; index++) { 738if (companyattrs != null && companyattrs.Length > 0) {
commonui\System\Drawing\FontConverter.cs (4)
154for (int tokenCount = 0; tokenCount < styleTokens.Length; tokenCount++) { 420for (int i = 0; i < UnitName.names.Length; i++) { 494for (int i = 0; i < UnitName.names.Length; i++) { 600for (int i = 0; i < fonts.Length; i++) {
commonui\System\Drawing\Graphics.cs (49)
1067unchecked((int) srcSpace), buf, pts.Length); 1075PointF[] newPts = SafeNativeMethods.Gdip.ConvertGPPOINTFArrayF(buf, pts.Length); 1077for (int i=0; i<pts.Length; i++) { 1100unchecked((int)srcSpace), buf, pts.Length); 1107Point[] newPts = SafeNativeMethods.Gdip.ConvertGPPOINTArray(buf, pts.Length); 1109for (int i=0; i<pts.Length; i++) { 1185new HandleRef(this, buf), points.Length); 1241new HandleRef(this, buf), points.Length); 1357new HandleRef(this, buf), points.Length); 1394new HandleRef(this, buf), points.Length); 1470new HandleRef(this, buf), rects.Length); 1497new HandleRef(this, buf), rects.Length); 1645new HandleRef(this, buf), points.Length); 1670new HandleRef(this, buf), points.Length); 1717points.Length); 1743points.Length, tension); 1778points.Length, offset, numberOfSegments, 1805points.Length); 1830points.Length, tension); 1856points.Length, offset, numberOfSegments, 1884points.Length); 1910points.Length, tension); 1936points.Length); 1961points.Length, tension); 2060new HandleRef(this, buf), rects.Length); 2087new HandleRef(this, buf), rects.Length); 2124new HandleRef(this, buf), points.Length, unchecked((int) fillMode)); 2160new HandleRef(this, buf), points.Length, unchecked((int) fillMode)); 2319new HandleRef(this, buf), points.Length); 2353new HandleRef(this, buf), points.Length, 2380new HandleRef(this, buf), points.Length); 2411new HandleRef(this, buf), points.Length, 2925int count = destPoints.Length; 2958int count = destPoints.Length; 3118int count = destPoints.Length; 3129destPoints.Length, 3176int count = destPoints.Length; 3187destPoints.Length, 3242int count = destPoints.Length; 3253destPoints.Length, 3551if (destPoints.Length != 3) { 3563destPoints.Length, 3597if (destPoints.Length != 3) { 3609destPoints.Length, 3829if (destPoints.Length != 3) { 3843destPoints.Length, 3891if (destPoints.Length != 3) { 3905destPoints.Length, 4565int status = SafeNativeMethods.Gdip.GdipComment(new HandleRef(this, this.NativeGraphics), data.Length, data);
commonui\System\Drawing\Icon.cs (11)
104f.Read(iconData, 0, iconData.Length); 164stream.Read(iconData, 0, iconData.Length); 193stream.Read(iconData, 0, iconData.Length); 612if (iconData.Length < icondirSize) { 660Debug.Assert((icondirEntrySize * (idCount - 1) + icondirSize) <= iconData.Length, "Illegal number of ICONDIRENTRIES"); 662if ((icondirEntrySize * (idCount - 1) + icondirSize) > iconData.Length) 736Debug.Assert(bestImageOffset >= 0 && bestBytesInRes >= 0 && (bestImageOffset + bestBytesInRes) <= iconData.Length, "Illegal offset/length for the Icon data"); 754if (endOffset > iconData.Length) { 867outputStream.Write(iconData, 0, iconData.Length); 967Debug.Assert(bestImageOffset >= 0 && (bestImageOffset + bestBytesInRes) <= iconData.Length, "Illegal offset/length for the Icon data"); 1118if (iconData != null && iconData.Length >= bestImageOffset + 8) {
commonui\System\Drawing\Image.cs (2)
621fs.Write(rawData, 0, rawData.Length); 710stream.Write(rawData, 0, rawData.Length);
commonui\System\Drawing\ImageConverter.cs (4)
198if (rawData.Length <= sizeof(SafeNativeMethods.OBJECTHEADER) || Marshal.ReadInt16(addr) != 0x1c15) 212if (rawData.Length <= pHeader.headersize + 18) 230for (int i = pHeader.headersize + 18; i < pHeader.headersize + 510 && i+1 < rawData.Length; i++) 237return new MemoryStream(rawData, i, rawData.Length - i);
commonui\System\Drawing\ImageInfo.cs (1)
50Debug.Assert(values.Length == 4 * FrameCount, "PropertyItem has invalid value byte array");
commonui\System\Drawing\KnownColorTable.cs (1)
35for(int index = 0; index < colorTable.Length; ++index) {
commonui\System\Drawing\Pen.cs (3)
1030if (value == null || value.Length == 0) { 1034int count = value.Length; 1080int status = SafeNativeMethods.Gdip.GdipSetPenCompoundArray(new HandleRef(this, this.NativePen), value, value.Length);
commonui\System\Drawing\PointConverter.cs (3)
80int[] values = new int[tokens.Length]; 82for (int i = 0; i < values.Length; i++) { 87if (values.Length == 2) {
commonui\System\Drawing\Printing\MarginsConverter.cs (3)
79int[] values = new int[tokens.Length]; 81for (int i = 0; i < values.Length; i++) { 86if (values.Length != 4) {
commonui\System\Drawing\Printing\PageSettings.cs (3)
493for (int i = 0; i < sizes.Length; i++) { 508for (int i = 0; i < sources.Length; i++) { 523for (int i = 0; i < resolutions.Length; i++) {
commonui\System\Drawing\Printing\PrinterSettings.cs (16)
1405Marshal.Copy(bytes, 0, address, bytes.Length); 1406Marshal.WriteByte(checked((IntPtr)((long)address + bytes.Length)), 0); 1410Marshal.Copy(data, 0, address, data.Length); 1411Marshal.WriteInt16((IntPtr)(checked((long)address + data.Length*2)), 0); 1444return array.Length; 1507Array.Copy(this.array, index, array, 0, this.array.Length); 1511Array.Copy(this.array, index, paperSizes, 0, this.array.Length); 1568return array.Length; 1635Array.Copy(this.array, index, array, 0, this.array.Length); 1639Array.Copy(this.array, index, paperSources, 0, this.array.Length); 1697return array.Length; 1764Array.Copy(this.array, index, array, 0, this.array.Length); 1768Array.Copy(this.array, index, printerResolutions, 0, this.array.Length); 1826return array.Length; 1893Array.Copy(this.array, index, array, 0, this.array.Length); 1898Array.Copy(this.array, index, strings, 0, this.array.Length);
commonui\System\Drawing\PropertyItemInternal.cs (1)
56int length = propItemValue.Length;
commonui\System\Drawing\RectangleConverter.cs (3)
80int[] values = new int[tokens.Length]; 82for (int i = 0; i < values.Length; i++) { 87if (values.Length == 4) {
commonui\System\Drawing\Region.cs (1)
135rgnData.Data.Length,
commonui\System\Drawing\SizeConverter.cs (3)
80int[] values = new int[tokens.Length]; 82for (int i = 0; i < values.Length; i++) { 87if (values.Length == 2) {
commonui\System\Drawing\SystemBrushes.cs (1)
382Debug.Assert(idx >= 0 && idx < systemBrushes.Length, "System colors have been added but our system color array has not been expanded.");
commonui\System\Drawing\SystemPens.cs (1)
382Debug.Assert(idx >= 0 && idx < systemPens.Length, "System colors have been added but our system color array has not been expanded.");
commonui\System\Drawing\UnsafeNativeMethods.cs (1)
273if (pcbRead != null && pcbRead.Length > 0) {
misc\ClientUtils.cs (3)
134System.Diagnostics.Debug.Assert(Enum.GetValues(enumValue.GetType()).Length == enumValues.Length, "Not all the enum members were passed in."); 135for (int i = 0; i < enumValues.Length; i++){
misc\DebugHandleTracker.cs (2)
67for (int i = 0; i < types.Length; i++) { 93for (int i = 0; i < types.Length; i++) {
misc\GDI\UnsafeNativeMethods.cs (3)
389IntUnsafeNativeMethods.WideCharToMultiByte( IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero ); 428IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero); 463IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero);
misc\GDI\WindowsGraphics.cs (1)
177if( data != null && data.Length == 2 )
misc\HandleCollector.cs (1)
83if (handleTypeCount == 0 || handleTypeCount == handleTypes.Length) {
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (4)
90if (components.Length < 2 || components.Length > 3) 111for (int i = 1; i < components.Length; i++) 116if (keyValuePair.Length != 2)
System.IdentityModel (324)
parent\parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (4)
90if (components.Length < 2 || components.Length > 3) 111for (int i = 1; i < components.Length; i++) 116if (keyValuePair.Length != 2)
System\IdentityModel\Asn1IntegerConverter.cs (7)
20if (asn1.Length == 0) 24List<byte> positiveDecimalDigits = new List<byte>((asn1.Length * 8) / 3); 30for (int byteNumber = 0; byteNumber < asn1.Length - 1; byteNumber++) 45currentByte = asn1[asn1.Length - 1]; 78if (d < 0 && asn1.Length > 0) 125for (int i = 0; i < second.Length || i < first.Count; i++) 132if (i < second.Length)
System\IdentityModel\CanonicalFormWriter.cs (8)
18if ((data.Length / 3) * 4 + 4 > base64WorkBuffer.Length) 24int encodedLength = Convert.ToBase64CharArray(data, 0, data.Length, base64WorkBuffer, 0, Base64FormattingOptions.None); 30if (s.Length > workBuffer.Length) 55EncodeAndWrite(stream, workBuffer, chars, chars.Length); 60if (count > workBuffer.Length) 86stream.Write(buffer, 0, buffer.Length); 92stream.Write(buffer, 0, buffer.Length);
System\IdentityModel\CanonicalizationDriver.cs (1)
104for (int i = 0; i < this.inclusivePrefixes.Length; ++i)
System\IdentityModel\CipherDataElement.cs (7)
21byte[] buffer = new byte[_iv.Length + _cipherText.Length]; 22Buffer.BlockCopy( _iv, 0, buffer, 0, _iv.Length ); 23Buffer.BlockCopy( _cipherText, 0, buffer, _iv.Length, _cipherText.Length ); 76writer.WriteBase64( _iv, 0, _iv.Length ); 78writer.WriteBase64( _cipherText, 0, _cipherText.Length );
System\IdentityModel\Claims\ClaimComparer.cs (13)
189if (bytes1.Length != bytes2.Length) 192for (int i = 0; i < bytes1.Length; ++i) 208for (int i = 0; i < bytes.Length && i < 4; ++i) 213return hashCode ^ bytes.Length; 232if (parm1.Modulus.Length != parm2.Modulus.Length || 233parm1.Exponent.Length != parm2.Exponent.Length) 236for (int i = 0; i < parm1.Modulus.Length; ++i) 241for (int i = 0; i < parm1.Exponent.Length; ++i) 256return parm.Modulus.Length ^ parm.Exponent.Length;
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
305for (int i = 0; i < rawDnsEntries.Length; i++)
System\IdentityModel\CryptoHelper.cs (17)
113byte[] b = new byte[kha.HashSize / 8 + a.Length]; // Buffer for A(i) + seed 127issuerEntropy.CopyTo( b, a.Length ); 131for ( int j = 0; j < result.Length; j++ ) 146Array.Clear( key, 0, key.Length ); 153Array.Clear( result, 0, result.Length ); 156Array.Clear( b, 0, b.Length ); 302if (secret.Length == 0) 1093if (count < 0 || count > buffer.Length) 1095throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.ValueMustBeInRange, 0, buffer.Length))); 1097if (offset < 0 || offset > buffer.Length - count) 1099throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.ValueMustBeInRange, 0, buffer.Length - count))); 1118if (a == null || b == null || a.Length != b.Length) 1123for (int i = 0; i < a.Length; i++) 1151else if (a.Length != b.Length) 1157var length = a.Length;
System\IdentityModel\DeflateCookieTransform.cs (6)
51if ( 0 == encoded.Length ) 66bytesRead = deflateStream.Read( buffer, 0, buffer.Length ); 95if ( 0 == value.Length ) 104deflateStream.Write( value, 0, value.Length ); 115new DeflateCookieTraceRecord( value.Length, encoded.Length ),
System\IdentityModel\Diagnostics\DigestTraceRecordHelper.cs (4)
75writer.WriteElementString(CanonicalOctetsLength, contentBuffer.Length.ToString(CultureInfo.InvariantCulture)); 81writer.WriteElementString(CanonicalOctetsHashLength, _hash.Hash.Length.ToString(CultureInfo.InvariantCulture)); 94writer.WriteElementString(Length, key.Length.ToString(CultureInfo.InvariantCulture)); // key length 96writer.WriteElementString(LastByte, key[key.Length - 1].ToString(CultureInfo.InvariantCulture)); // last byte of the key
System\IdentityModel\Diagnostics\TraceUtility.cs (1)
62if ( null != args && args.Length > 0 )
System\IdentityModel\EncryptedDataElement.cs (8)
57return ExtractIVAndDecrypt( algorithm, cipherText, 0, cipherText.Length ); 75if ( cipherText.Length - offset < iv.Length ) 77throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new InvalidOperationException( SR.GetString( SR.ID6019, cipherText.Length - offset, iv.Length ) ) ); 80Buffer.BlockCopy( cipherText, offset, iv, 0, iv.Length ); 91plainText = decrTransform.TransformFinalBlock( cipherText, offset + iv.Length, count - iv.Length );
System\IdentityModel\ExclusiveCanonicalizationTransform.cs (2)
238for (int i = 0; i < prefixes.Length; i++) 254else if (count == prefixes.Length)
System\IdentityModel\Pool.cs (1)
38if (count < items.Length)
System\IdentityModel\PreDigestedSignedInfo.cs (13)
72if (this.count == this.references.Length) 74ReferenceEntry[] newReferences = new ReferenceEntry[this.references.Length * 2]; 187writer.WriteBase64(digest, 0, digest.Length); 303stream.Write(this.fragment1, 0, this.fragment1.Length); 305stream.Write(signatureMethodBytes, 0, signatureMethodBytes.Length); 306stream.Write(this.fragment2, 0, this.fragment2.Length); 311stream.Write(this.fragment3, 0, this.fragment3.Length); 315stream.Write(this.fragment4StrTransform, 0, this.fragment4StrTransform.Length); 319stream.Write(this.fragment4, 0, this.fragment4.Length); 322stream.Write(digestMethodBytes, 0, digestMethodBytes.Length); 323stream.Write(this.fragment5, 0, this.fragment5.Length); 325stream.Write(this.fragment6, 0, this.fragment6.Length); 328stream.Write(this.fragment7, 0, this.fragment7.Length);
System\IdentityModel\ProtectedDataCookieTransform.cs (2)
46if ( 0 == encoded.Length ) 82if ( 0 == value.Length )
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (1)
2878writer.WriteBase64(keyBytes, 0, keyBytes.Length);
System\IdentityModel\Psha1DerivedKeyGenerator.cs (6)
57this.seed = DiagnosticUtility.Utility.AllocateByteArray(checked(label.Length + seed.Length)); 59seed.CopyTo(this.seed, label.Length); 67this.buffer = DiagnosticUtility.Utility.AllocateByteArray(checked(this.hmac.HashSize / 8 + this.seed.Length)); 97if (index >= chunk.Length) 104this.seed.CopyTo(buffer, this.aValue.Length);
System\IdentityModel\RijndaelCryptoServiceProvider.cs (26)
66if (rgbKey.Length != 16 && rgbKey.Length != 24 && rgbKey.Length != 32) 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.AESKeyLengthNotSupported, rgbKey.Length * 8))); 68if (rgbIV.Length != 16) 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.AESIVLengthNotSupported, rgbIV.Length * 8))); 86int cbData = PLAINTEXTKEYBLOBHEADER.SizeOf + rgbKey.Length; 88Buffer.BlockCopy(rgbKey, 0, pbData, PLAINTEXTKEYBLOBHEADER.SizeOf, rgbKey.Length); 95if (rgbKey.Length == 16) 97else if (rgbKey.Length == 24) 101pbhdr->keyLength = rgbKey.Length; 178if ((inputBuffer.Length - inputCount) < inputOffset) 179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("inputOffset", SR.GetString(SR.ValueMustBeInRange, 0, inputBuffer.Length - inputCount - 1))); 180if (outputBuffer.Length < outputOffset) 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("outputOffset", SR.GetString(SR.ValueMustBeInRange, 0, outputBuffer.Length - 1))); 208int dwCount = DecryptData(this.depadBuffer, 0, this.depadBuffer.Length, outputBuffer, outputOffset, false); 226if ((inputBuffer.Length - inputCount) < inputOffset) 227throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("inputOffset", SR.GetString(SR.ValueMustBeInRange, 0, inputBuffer.Length - inputCount - 1))); 260byte[] outputBuffer = new byte[this.depadBuffer.Length + inputCount]; 262int dwCount = DecryptData(this.depadBuffer, 0, this.depadBuffer.Length, outputBuffer, 0, false); 272if ((outputBuffer.Length - outputOffset) < inputCount) 273throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("outputBuffer", SR.GetString(SR.AESInsufficientOutputBuffer, outputBuffer.Length - outputOffset, inputCount))); 289ThrowIfFalse(SR.AESCryptEncryptFailed, NativeMethods.CryptEncrypt(keyHandle, IntPtr.Zero, final, 0, tempBufferPtr, ref dwCount, tempBuffer.Length - tempOffset)); 344if (tempBuffer.Length >= (tempOffset + requiredSize)) 362if (len == buffer.Length) 369Array.Clear(buffer, 0, buffer.Length);
System\IdentityModel\RsaEncryptionCookieTransform.cs (22)
148if (0 == encoded.Length) 180if (encryptedKeyAndIVSize > encoded.Length) 194if (encryptedDataSize > encoded.Length) 231if (decryptedKeyAndIV.Length < decryptionKey.Length) 233throw DiagnosticUtility.ThrowHelperInvalidOperation(SR.GetString(SR.ID6047, decryptedKeyAndIV.Length, decryptionKey.Length)); 236byte[] decryptionIV = new byte[decryptedKeyAndIV.Length - decryptionKey.Length]; 242Array.Copy(decryptedKeyAndIV, decryptionKey, decryptionKey.Length); 243Array.Copy(decryptedKeyAndIV, decryptionKey.Length, decryptionIV, 0, decryptionIV.Length); 247return decryptor.TransformFinalBlock(encryptedData, 0, encryptedData.Length); 268if (0 == value.Length) 296encryptedData = encryptor.TransformFinalBlock(value, 0, value.Length); 309byte[] keyAndIV = new byte[encryptionAlgorithm.Key.Length + encryptionAlgorithm.IV.Length]; 310Array.Copy(encryptionAlgorithm.Key, keyAndIV, encryptionAlgorithm.Key.Length); 311Array.Copy(encryptionAlgorithm.IV, 0, keyAndIV, encryptionAlgorithm.Key.Length, encryptionAlgorithm.IV.Length); 321bw.Write(encryptedKeyAndIV.Length); 323bw.Write(encryptedData.Length);
System\IdentityModel\RsaSignatureCookieTransform.cs (17)
144if (0 == encoded.Length) 160if (encoded.Length < sizeof(Int32)) 171if (signatureLength >= encoded.Length - sizeof(Int32)) 179Array.Copy(encoded, currentIndex, signature, 0, signature.Length); 180currentIndex += signature.Length; 183byte[] cookieValue = new byte[encoded.Length - currentIndex]; 184Array.Copy(encoded, currentIndex, cookieValue, 0, cookieValue.Length); 239if (0 == value.Length) 287byte[] signatureLength = BitConverter.GetBytes(signature.Length); 291byte[] message = new byte[signatureLength.Length + signature.Length + value.Length]; 294Array.Copy(signatureLength, 0, message, currentIndex, signatureLength.Length); 295currentIndex += signatureLength.Length; 298Array.Copy(signature, 0, message, currentIndex, signature.Length); 299currentIndex += signature.Length; 302Array.Copy(value, 0, message, currentIndex, value.Length);
System\IdentityModel\SecurityTokenService.cs (2)
756if (identifiers == null || identifiers.Length == 0) 952if (identifiers == null || identifiers.Length == 0)
System\IdentityModel\SecurityUtils.cs (13)
81return CloneBuffer(buffer, 0, buffer.Length); 88DiagnosticUtility.DebugAssert(buffer.Length - offset >= len, "Invalid parameters to CloneBuffer."); 137if (src == null || srcOffset >= src.Length) 139if (dst == null || dstOffset >= dst.Length) 141if ((src.Length - srcOffset) != (dst.Length - dstOffset)) 144for (int i = srcOffset, j = dstOffset; i < src.Length; i++, j++) 477while (read < buffer.Length) 479int actual = reader.ReadContentAsBase64(buffer, read, buffer.Length - read); 487if (read < buffer.Length) 495Buffer.BlockCopy(buffers[i], 0, buffer, offset, buffers[i].Length); 496offset += buffers[i].Length; 525certificate = (rawData == null || rawData.Length == 0) ? null : new X509Certificate2(rawData);
System\IdentityModel\Selectors\SecurityTokenSerializer.cs (1)
223for (int i = 0; i < tokenTypes.Length; ++i)
System\IdentityModel\Selectors\WindowsUserNameSecurityTokenAuthenticator.cs (2)
34if (strings.Length != 1) 36if (strings.Length != 2 || string.IsNullOrEmpty(strings[0]))
System\IdentityModel\Selectors\X509CertificateChain.cs (3)
348if (ansiOid.Length != oidStrs[index].Length) { 353Marshal.Copy(ansiOid, 0, pOid, ansiOid.Length); 354pNullTerminator = new IntPtr((long) pOid + ansiOid.Length);
System\IdentityModel\Selectors\X509CertificateStore.cs (6)
146blob.cbData = (uint)bytes.Length; 186int len = bytes.Length; 187for (int i = 0, j = len - 1; i < bytes.Length / 2; ++i, --j) 342if (src.Length != dst.Length) 345for (int i = 0; i < src.Length; ++i)
System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
229for (int i = 0; i < chainStatus.Length; ++i)
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (11)
145pSourceName = SafeHGlobalHandle.AllocHGlobal(NativeMethods.LsaSourceName.Length + 1); 146Marshal.Copy(NativeMethods.LsaSourceName, 0, pSourceName.DangerousGetHandle(), NativeMethods.LsaSourceName.Length); 147UNICODE_INTPTR_STRING sourceName = new UNICODE_INTPTR_STRING(NativeMethods.LsaSourceName.Length, NativeMethods.LsaSourceName.Length + 1, pSourceName.DangerousGetHandle()); 201pPackageName = SafeHGlobalHandle.AllocHGlobal(NativeMethods.LsaKerberosName.Length + 1); 202Marshal.Copy(NativeMethods.LsaKerberosName, 0, pPackageName.DangerousGetHandle(), NativeMethods.LsaKerberosName.Length); 203UNICODE_INTPTR_STRING packageName = new UNICODE_INTPTR_STRING(NativeMethods.LsaKerberosName.Length, NativeMethods.LsaKerberosName.Length + 1, pPackageName.DangerousGetHandle()); 226int logonInfoSize = KERB_CERTIFICATE_S4U_LOGON.Size + certRawData.Length; 235pInfo->CertificateLength = (uint)certRawData.Length; 237Marshal.Copy(certRawData, 0, pInfo->Certificate, certRawData.Length);
System\IdentityModel\SignedXml.cs (8)
398writer.WriteBase64(this.signatureValue, 0, this.signatureValue.Length); 573for (int i = 0; i < inclusivePrefix.Length; ++i) 780this.context = new Dictionary<string, string>(inclusivePrefixes.Length); 781for (int i = 0; i < inclusivePrefixes.Length; i++) 904for (int i = 0; i < inclusivePrefix.Length; ++i) 977Context = new Dictionary<string, string>(inclusivePrefixes.Length); 978for (int i = 0; i < inclusivePrefixes.Length; i++) 1320writer.WriteBase64(this.digestValue, 0, this.digestValue.Length);
System\IdentityModel\SspiHelper.cs (1)
353this.size = (data == null) ? 0 : data.Length;
System\IdentityModel\SspiSafeHandles.cs (10)
192inSecurityBufferDescriptor = new SecurityBufferDescriptor(inSecBuffers.Length); 239else if (securityBuffer.token == null || securityBuffer.token.Length == 0) 258if (outSecBuffer.token == null || outSecBuffer.token.Length == 0) 313for (int index = 0; index < pinnedInBytes.Length; index++) 473inSecurityBufferDescriptor = new SecurityBufferDescriptor(inSecBuffers.Length); 519else if (securityBuffer.token == null || securityBuffer.token.Length == 0) 539if (outSecBuffer.token == null || outSecBuffer.token.Length == 0) 587for (int index = 0; index < pinnedInBytes.Length; index++) 1421SafeHGlobalHandle result = AllocHGlobal(bytes.Length); 1422Marshal.Copy(bytes, 0, result.DangerousGetHandle(), bytes.Length);
System\IdentityModel\SspiWrapper.cs (15)
344for (int i = 0; i < supportedSecurityPackages.Length; i++) 364for (int i = 0; i < supportedSecurityPackages.Length; i++) 700SecurityBufferDescriptor sdcInOut = new SecurityBufferDescriptor(input.Length); 701SecurityBufferStruct[] unmanagedBuffer = new SecurityBufferStruct[input.Length]; 702byte[][] buffers = new byte[input.Length][]; 706GCHandle[] pinnedBuffers = new GCHandle[input.Length]; 709for (int i = 0; i < input.Length; ++i) 714if (iBuffer.token == null || iBuffer.token.Length == 0) 735for (int i = 0; i < input.Length; ++i) 754for (j = 0; j < input.Length; j++) 763(byte*)unmanagedBuffer[i].token + iBuffer.size <= bufferAddress + buffers[j].Length) 771if (j >= input.Length) 777if (!(iBuffer.offset >= 0 && iBuffer.offset <= (iBuffer.token == null ? 0 : iBuffer.token.Length))) 783if (!(iBuffer.size >= 0 && iBuffer.size <= (iBuffer.token == null ? 0 : iBuffer.token.Length - iBuffer.offset))) 794for (int i = 0; i < pinnedBuffers.Length; ++i)
System\IdentityModel\StrTransform.cs (2)
192for (int i = 0; i < prefixes.Length; i++) 208else if (count == prefixes.Length)
System\IdentityModel\Tokens\BinaryKeyIdentifierClause.cs (1)
26if (identificationData.Length == 0)
System\IdentityModel\Tokens\DEREncoding.cs (19)
66if (length > arrayOne.Length - offsetOne) 71if (length > arrayTwo.Length - offsetTwo) 134WriteLength(buffer, ref offset, ref len, 1 + LengthSize(mech.Length) + mech.Length + type.Length + bodySize); 139WriteLength(buffer, ref offset, ref len, mech.Length); 141System.Buffer.BlockCopy(mech, 0, buffer, offset, mech.Length); 142offset += mech.Length; 143len -= mech.Length; 145System.Buffer.BlockCopy(type, 0, buffer, offset, type.Length); 146offset += type.Length; 147len -= type.Length; 212bodySize += 2 + mech.Length + LengthSize(mech.Length) + 1; 260if ((oidLength & 0x7fffffff) != mech.Length) 272if (!BufferIsEqual(mech, 0, buffer, offset, mech.Length)) 280if ((len -= type.Length) < 0) 286if (!BufferIsEqual(type, 0, buffer, offset, type.Length)) 292offset += type.Length;
System\IdentityModel\Tokens\LocalIdKeyIdentifierClause.cs (2)
56get { return (this.ownerTypes == null || this.ownerTypes.Length == 0) ? null : this.ownerTypes[0]; } 77for (int i = 0; i < this.ownerTypes.Length; ++i)
System\IdentityModel\Tokens\RsaKeyIdentifierClause.cs (2)
89writer.WriteBase64(this.rsaParameters.Exponent, 0, this.rsaParameters.Exponent.Length); 98writer.WriteBase64(this.rsaParameters.Modulus, 0, this.rsaParameters.Modulus.Length);
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (2)
237writer.WriteBase64(modulus, 0, modulus.Length); 243writer.WriteBase64(exponent, 0, exponent.Length);
System\IdentityModel\Tokens\SamlAssertion.cs (2)
429for (k = 0; k < key1.Length; ++k) 436skipCrypto = (k == key1.Length);
System\IdentityModel\Tokens\SamlAuthorityBinding.cs (2)
126if (authKindParts.Length > 2) 132if (authKindParts.Length == 2)
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (2)
2996if (authKindParts.Length > 2) 3004if (authKindParts.Length == 2)
System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (2)
29this.clauses = new List<SecurityKeyIdentifierClause>(clauses.Length); 30for (int i = 0; i < clauses.Length; i++)
System\IdentityModel\Tokens\SessionSecurityToken.cs (8)
341if (null == cookie || 0 == cookie.Length) 351using (XmlDictionaryReader reader = XmlDictionaryReader.CreateBinaryReader(cookie, 0, cookie.Length, dictionary, XmlDictionaryReaderQuotas.Max, null, null)) 739dicWriter.WriteBase64(key, 0, key.Length); 1367dictionaryWriter.WriteBase64(bootstrapArray, 0, bootstrapArray.Length); 1540writer.WriteBase64(rawData, 0, rawData.Length); 1549writer.WriteBase64(thumbprint, 0, thumbprint.Length); 1595writer.WriteBase64(hash, 0, hash.Length); 1757writer.WriteBase64(sidBytes, 0, sidBytes.Length);
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (1)
815dicWriter.WriteBase64(cookie, 0, cookie.Length);
System\IdentityModel\Tokens\SymmetricKey.cs (7)
27if (symmetricKey.Length == 0) 29throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(SR.GetString(SR.SymmetricKeyLengthTooShort, symmetricKey.Length))); 31this.keySize = symmetricKey.Length * 8; 35this.symmetricKey = new byte[symmetricKey.Length]; 36Buffer.BlockCopy(symmetricKey, 0, this.symmetricKey, 0, symmetricKey.Length); 91byte[] local = new byte[this.symmetricKey.Length]; 92Buffer.BlockCopy(this.symmetricKey, 0, local, 0, this.symmetricKey.Length);
System\IdentityModel\Tokens\SymmetricProofDescriptor.cs (2)
49_keySizeInBits = key.Length; 155if (sourceEntropy.Length == 0)
System\IdentityModel\Tokens\WindowsUserNameSecurityTokenHandler.cs (2)
77if (strings.Length != 1) 79if (strings.Length != 2 || string.IsNullOrEmpty(strings[0]))
System\IdentityModel\Tokens\WSSecurityJan2004.cs (6)
391writer.WriteBase64(keyIdentifier, 0, keyIdentifier.Length); 395writer.WriteBinHex(keyIdentifier, 0, keyIdentifier.Length); 399writer.WriteString(new UTF8Encoding().GetString(keyIdentifier, 0, keyIdentifier.Length)); 440writer.WriteBase64(keyIdentifier, 0, keyIdentifier.Length); 444writer.WriteBinHex(keyIdentifier, 0, keyIdentifier.Length); 448writer.WriteString(new UTF8Encoding().GetString(keyIdentifier, 0, keyIdentifier.Length));
System\IdentityModel\Tokens\WSTrust.cs (1)
121writer.WriteBase64(secret, 0, secret.Length);
System\IdentityModel\Tokens\X509DataSecurityKeyIdentifierClauseSerializer.cs (4)
142writer.WriteBase64(ski, 0, ski.Length); 170writer.WriteBase64(rawData, 0, rawData.Length); 215if ((ski == null) || (ski.Length == 0)) 258if ((rawData == null) || (rawData.Length == 0))
System\IdentityModel\Tokens\X509NTAuthChainTrustValidator.cs (1)
76for (int i = 0; i < chainStatus.Length; ++i)
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (1)
669writer.WriteBase64(rawData, 0, rawData.Length);
System\IdentityModel\Tokens\X509SubjectKeyIdentifierClause.cs (1)
62byte[] ski = SecurityUtils.CloneBuffer(data, SkiDataOffset, data.Length - SkiDataOffset);
System\IdentityModel\Tokens\XmlDsigSep2000.cs (2)
303writer.WriteBase64( certBytes, 0, certBytes.Length ); 327writer.WriteBase64( ski, 0, ski.Length );
System\IdentityModel\Tokens\XmlEncApr2001.cs (1)
130writer.WriteBase64(encryptedKey, 0, encryptedKey.Length);
System\IdentityModel\UniqueId.cs (1)
125for (int i = 0; i < id.Length; i++)
System\IdentityModel\WrappedReader.cs (2)
394if (this.count == this.entries.Length) 396XmlTokenEntry[] newBuffer = new XmlTokenEntry[this.entries.Length * 2];
System\IdentityModel\XmlAttributeHolder.cs (3)
55for (int i = 0; i < attributes.Length; i++) 71for (int i = 0; i < attributes.Length; i++) 107for (int i = 0; i < attributes.Length; i++)
System\IdentityModel\XmlBuffer.cs (1)
73return buffer.Length;
System\ServiceModel\Security\EncryptedKey.cs (1)
128writer.WriteBase64(this.wrappedKey, 0, this.wrappedKey.Length);
System\ServiceModel\Security\Tokens\BinarySecretSecurityToken.cs (3)
74this.key = new byte[key.Length]; 75Buffer.BlockCopy(key, 0, this.key, 0, key.Length); 104get { return (this.key.Length * 8); }
System.IdentityModel.Selectors (48)
infocard\client\System\IdentityModel\Selectors\CardSpaceSelector.cs (2)
142IDT.TraceDebug("ICARDCLIENT: GetToken called with a policy chain of length {0}", policyChain.Length); 151if (null == policyChain || 0 == policyChain.Length)
infocard\client\System\IdentityModel\Selectors\InfoCardKeyedHashAlgorithm.cs (11)
132if (0 != m_cachedBlock.Length) 134pInData = HGlobalSafeHandle.Construct(m_cachedBlock.Length); 135Marshal.Copy(m_cachedBlock, 0, pInData.DangerousGetHandle(), m_cachedBlock.Length); 139m_cachedBlock.Length, 164Array.Clear(m_cachedBlock, 0, m_cachedBlock.Length); 189if (0 != m_cachedBlock.Length) 191pInData = HGlobalSafeHandle.Construct(m_cachedBlock.Length); 192Marshal.Copy(m_cachedBlock, 0, pInData.DangerousGetHandle(), m_cachedBlock.Length); 196m_cachedBlock.Length, 219Array.Clear(m_cachedBlock, 0, m_cachedBlock.Length); 232Array.Clear(m_cachedBlock, 0, m_cachedBlock.Length);
infocard\client\System\IdentityModel\Selectors\InfoCardRSACryptoProvider.cs (18)
86using (HGlobalSafeHandle pInData = HGlobalSafeHandle.Construct(inData.Length)) 88Marshal.Copy(inData, 0, pInData.DangerousGetHandle(), inData.Length); 91inData.Length, 118using (HGlobalSafeHandle pInData = HGlobalSafeHandle.Construct(inData.Length)) 120Marshal.Copy(inData, 0, pInData.DangerousGetHandle(), inData.Length); 123inData.Length, 144IDT.ThrowInvalidArgumentConditional(null == hash || 0 == hash.Length, "hash"); 149using (HGlobalSafeHandle pHash = HGlobalSafeHandle.Construct(hash.Length)) 154Marshal.Copy(hash, 0, pHash.DangerousGetHandle(), hash.Length); 158hash.Length, 184IDT.ThrowInvalidArgumentConditional(null == hash || 0 == hash.Length, "hash"); 186IDT.ThrowInvalidArgumentConditional(null == sig || 0 == sig.Length, "sig"); 188using (HGlobalSafeHandle pHash = HGlobalSafeHandle.Construct(hash.Length)) 194Marshal.Copy(hash, 0, pHash.DangerousGetHandle(), hash.Length); 196using (HGlobalSafeHandle pSig = HGlobalSafeHandle.Construct(sig.Length)) 198Marshal.Copy(sig, 0, pSig.DangerousGetHandle(), sig.Length); 201hash.Length, 204sig.Length,
infocard\client\System\IdentityModel\Selectors\InfoCardSymmetricAlgorithm.cs (5)
162using (HGlobalSafeHandle pIV = HGlobalSafeHandle.Construct(iv.Length)) 167Marshal.Copy(iv, 0, pIV.DangerousGetHandle(), iv.Length); 177iv.Length, 234IDT.DebugAssert(null != inputBuffer && 0 != inputBuffer.Length, "null input buffer"); 277IDT.DebugAssert(null != inputBuffer && 0 != inputBuffer.Length, "null input buffer");
infocard\client\System\IdentityModel\Selectors\InfoCardSymmetricCrypto.cs (8)
109IDT.DebugAssert(null != label && 0 != label.Length, "null label"); 110IDT.DebugAssert(null != nonce && 0 != nonce.Length, "null nonce"); 117using (HGlobalSafeHandle pLabel = HGlobalSafeHandle.Construct(label.Length)) 119using (HGlobalSafeHandle pNonce = HGlobalSafeHandle.Construct(nonce.Length)) 125Marshal.Copy(label, 0, pLabel.DangerousGetHandle(), label.Length); 126Marshal.Copy(nonce, 0, pNonce.DangerousGetHandle(), nonce.Length); 129label.Length, 131nonce.Length,
infocard\client\System\IdentityModel\Selectors\PolicyChain.cs (3)
31get { return m_chain.Length; } 36int length = elements.Length; 51int chainLength = m_chain.Length;
infocard\Diagnostics\Managed\Microsoft\InfoCards\Diagnostics\InfocardTrace.cs (1)
227if (null != parameters && 0 != parameters.Length)
System.IO.Compression.FileSystem (4)
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (4)
90if (components.Length < 2 || components.Length > 3) 111for (int i = 1; i < components.Length; i++) 116if (keyValuePair.Length != 2)
System.IO.Log (27)
System\IO\Log\AppendHelper.cs (1)
67for (int i = 0; i < handles.Length; i++)
System\IO\Log\FileLogRecordHeader.cs (1)
40if (bits.Length < Size)
System\IO\Log\FileLogRecordStream.cs (1)
151data.Length - FileLogRecordHeader.Size,
System\IO\Log\FileRegion.cs (1)
71this.fixedContent.Length,
System\IO\Log\LogArchiveSnapshot.cs (2)
68readBuffer.Length, 82Array.Copy(readBuffer, baseFileData, baseFileData.Length);
System\IO\Log\LogLogRecord.cs (1)
224this.innerStream.Read(newData, 0, newData.Length);
System\IO\Log\LogLogRecordHeader.cs (1)
31if (bits.Length < Size)
System\IO\Log\LogReserveAndAppendState.cs (7)
389long[] adjustedReservations = new long[this.reservations.Length]; 390for (int i = 0; i < adjustedReservations.Length; i++) 480this.writeEntries[entryIndex].ByteLength = this.headerBits.Length; 496if (entryIndex != this.writeEntries.Length) 513for (int i = 0; i < this.handles.Length; i++) 611reservationCount = this.alignedReservations.Length; 616this.writeEntries.Length,
System\IO\Log\LogWriteRestartAreaState.cs (5)
375header.Bits.Length); 376restartAreaSize += header.Bits.Length; 390if (restartAreaSize != this.restartArea.Length) 497this.restartArea.Length, 509this.restartArea.Length,
System\IO\Log\ReservationCollection.cs (3)
165if (array.Length == 0 && arrayIndex == 0) 170if ((arrayIndex >= array.Length) || 171(this.reservationCount > array.Length - arrayIndex))
System\IO\Log\SequenceNumber.cs (3)
23if ((sequenceNumber.Length != 8) && 24(sequenceNumber.Length != 16)) 30if (sequenceNumber.Length > 8)
System\IO\Log\SimpleFileLog.cs (1)
188data.Length,
System.Management (49)
Instrumentation\Attributes.cs (3)
142if(rg.Length > 0) 369if(rg.Length > 0) 426if(rg.Length > 0)
Instrumentation\Instrumentation.cs (1)
306return (attributes != null && attributes.Length != 0) ? true : false;
Instrumentation\SchemaMapping.cs (2)
212 if(field.GetCustomAttributes(typeof(IgnoreMemberAttribute), false).Length > 0) 236 if(mi.GetParameters().Length > 0)
Instrumentation\SchemaRegistration.cs (3)
333 string[] mofs = new string[types.Length]; 361 for(int i=0;i<types.Length;i++) 374 for(int i=0;i<types.Length;i++)
Instrumentation\WMICapabilities.cs (2)
110string [] newMofs = new string[mofs.Length+1]; 112newMofs[newMofs.Length-1] = path;
InteropClasses\WMIInterop.cs (2)
93hGlobal = Marshal.AllocHGlobal(rg.Length); 94Marshal.Copy(rg, 0, hGlobal, rg.Length);
managementobject.cs (2)
2724if ((null != args) && (0 < args.Length)) 2808if ((null != args) && (0 < args.Length))
managementobjectcollection.cs (1)
225int capacity = array.Length - index;
managementoperationwatcher.cs (1)
245result = ((Progress.GetInvocationList ()).Length > 0);
property.cs (10)
281 int length = wmiValueArray.Length; 396 int length = valArray.Length; 641 int length = arrayValue.Length; 651 int length = arrayValue.Length; 666 int length = arrayValue.Length; 686 int length = arrayValue.Length; 696 int length = arrayValue.Length; 706 int length = arrayValue.Length; 726 int length = arrayValue.Length; 748 int length = valArray.Length;
propertyset.cs (6)
93 return propertyNames.Length; 148 if ((index + nameArray.Length) > array.Length) 283 if ((index == -1) || (index == propertyNames.Length)) 300 if (index == propertyNames.Length) //passed the end of the array 304 return (index == propertyNames.Length) ? false : true;
qualifier.cs (1)
112 int length = valArray.Length;
qualifierset.cs (6)
150 return qualifierNames.Length; 214 if ((index + qualifierNames.Length) > array.Length) 374 if ((index == -1) || (index == qualifierNames.Length)) 392 if (index == qualifierNames.Length) //passed the end of the array 396 return (index == qualifierNames.Length) ? false : true;
WmiGenerator.cs (9)
591if (arrString.Length >= 2 && arrString[0] == '\\' && arrString[1] == '\\') 1167for(i=0;i < strPropTemp.Length;i++) 1174if (i == strPropTemp.Length) 1178strPropName = new char[strPropTemp.Length - i]; 1179for(int j=i;j < strPropTemp.Length;j++) 1695for(int i=0;i < strArray.Length ;i++) 1733for(int i=0;i < strArray.Length;i++) 1765for(int i=0;i < strArray.Length;i++) 1795for(int i=0;i < strArray.Length;i++)
System.Messaging (48)
System\Messaging\ActiveXMessageFormatter.cs (12)
127if (this.internalCharBuffer == null || this.internalCharBuffer.Length < size) 140if (this.internalCharBuffer == null || this.internalCharBuffer.Length < size) 252if (this.internalBuffer == null || this.internalBuffer.Length < size) 268if (this.internalBuffer == null || this.internalBuffer.Length < bytes.Length) 269this.internalBuffer = new byte[bytes.Length]; 271Array.Copy(bytes, this.internalBuffer, bytes.Length); 273message.properties.AdjustSize(NativeMethods.MESSAGE_PROPID_BODY, bytes.Length); 274message.properties.SetUI4(NativeMethods.MESSAGE_PROPID_BODY_SIZE, bytes.Length); 281int size = chars.Length * 2; 282if (this.internalBuffer == null || this.internalBuffer.Length < size) 473if (pcbRead != null && pcbRead.Length > 0)
System\Messaging\DefaultPropertiesToSend.cs (1)
525if (Extension != null && Extension.Length > 0)
System\Messaging\Design\QueuePathDialog.cs (5)
113if (nodeTexts.Length == 2) 129node.SelectedImageIndex = nodeTexts.Length - 1; 307for (int index = 0; index < queues.Length; ++index) 390if (queues == null || queues.Length == 0) 398for (int index = 0; index < queues.Length; ++index)
System\Messaging\Interop\MessagePropertyVariants.cs (2)
316newVectorProperties[usedProperties].caub.cElems = (uint)((byte[])objects[i]).Length; 395for (int i = 0; i < vectorIdentifiers.Length; ++i)
System\Messaging\Message.cs (18)
910Array.Copy(properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY), bytes, bytes.Length); 920if (value.Length == 0) 930properties.SetUI4(NativeMethods.MESSAGE_PROPID_DEST_SYMM_KEY_LEN, value.Length); 959Array.Copy(properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_SIGNATURE), bytes, bytes.Length); 968if (value.Length == 0) 980properties.SetUI4(NativeMethods.MESSAGE_PROPID_SIGNATURE_LEN, value.Length); 1050Array.Copy(properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_EXTENSION), bytes, bytes.Length); 1060if (value.Length == 0) 1070properties.SetUI4(NativeMethods.MESSAGE_PROPID_EXTENSION_LEN, value.Length); 1525Array.Copy(properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_SENDER_CERT), bytes, bytes.Length); 1535if (value.Length == 0) 1545properties.SetUI4(NativeMethods.MESSAGE_PROPID_SENDER_CERT_LEN, value.Length); 1574Array.Copy(properties.GetUI1Vector(NativeMethods.MESSAGE_PROPID_SENDERID), bytes, bytes.Length); 2213this.cachedBodyStream.Read(bytes, 0, bytes.Length); 2215properties.SetUI4(NativeMethods.MESSAGE_PROPID_BODY_SIZE, bytes.Length); 2232Debug.Assert(bodySize <= bodyArray.Length, "Allocated body array size is bigger than BODY_SIZE property"); 2234if (bodySize < bodyArray.Length) 2364if (pieces.Length != 2)
System\Messaging\MessageQueue.cs (5)
2167for (int index = 0; index < queues.Length; ++index) 3298if (queues.Length == 0) 3305else if (queues.Length > 1) 3471SecurityDescriptor.Length, 3482SecurityDescriptor.Length,
System\Messaging\MessageQueuePermission.cs (2)
174for (int index2 = 0; index2 < accessArray.Length; ++index2) 435for (int index = (enumValues.Length - 1); index >= 0; --index)
System\Messaging\MessageQueuePermissionEntryCollection.cs (1)
51for (int i = 0; ((i) < (value.Length)); i = (i + 1))
System\Messaging\XmlMessageFormatter.cs (2)
168for (int index = 0; index < this.targetTypeNames.Length; ++index) 180for (int index = 0; index < this.targetTypes.Length; ++index)
System.Net (47)
net\Logging.cs (4)
107buffer.Length == 0 || 108offset > buffer.Length) 117if ((length < 0) || (length > buffer.Length - offset)) 119length = buffer.Length - offset;
net\PeerToPeer\Collaboration\Peer.cs (11)
299int length = argsArray.Length; 663Logging.DumpData(Logging.P2PTraceSource, TraceEventType.Verbose, Logging.P2PTraceSource.MaxDataSize, invitationData, 0, invitationData.Length); 666Logging.P2PTraceSource.TraceEvent(TraceEventType.Information, 0, "Invitation Data length: ", (invitationData != null ? invitationData.Length : 0)); 676pi.applicationData.cbData = (invitationData != null) ? (UInt32)invitationData.Length : 0; 681if ((invitationData != null) && (invitationData.Length > 0)) 683data = new SafeCollabMemory(invitationData.Length); 685Marshal.Copy(invitationData, 0, pi.applicationData.pbData, invitationData.Length); 1103pi.applicationData.cbData = (m_inviteData != null) ? (UInt32)m_inviteData.Length : 0; 1105if ((m_inviteData != null) && (m_inviteData.Length > 0)){ 1106data = new SafeCollabMemory(m_inviteData.Length); 1108Marshal.Copy(m_inviteData, 0, pi.applicationData.pbData, m_inviteData.Length);
net\PeerToPeer\Collaboration\PeerApplication.cs (4)
56if ((data != null) && (data.Length > c_16K)) 105if ((value != null) && (value.Length > c_16K)) 544Logging.DumpData(Logging.P2PTraceSource, TraceEventType.Verbose, Logging.P2PTraceSource.MaxDataSize, Data, 0, Data.Length); 547Logging.P2PTraceSource.TraceEvent(TraceEventType.Information, 0, "\tApplication data length {0}", Data.Length);
net\PeerToPeer\Collaboration\PeerCollaboration.cs (8)
512(UInt32)application.Data.Length : 0; 520if ((application.Data!=null) && (application.Data.Length > 0)) 522data = new SafeCollabMemory(application.Data.Length); 524Marshal.Copy(application.Data, 0, appRegInfo.application.data.pbData, application.Data.Length); 819if ((peerObject.Data != null) && (peerObject.Data.Length > 0)){ 820data = new SafeCollabMemory(peerObject.Data.Length); 822po.data.cbData = (UInt32)peerObject.Data.Length; 824Marshal.Copy(peerObject.Data, 0, po.data.pbData, peerObject.Data.Length);
net\PeerToPeer\Collaboration\PeerContact.cs (2)
2026Logging.DumpData(Logging.P2PTraceSource, TraceEventType.Verbose, Logging.P2PTraceSource.MaxDataSize, Credentials.RawData, 0, Credentials.RawData.Length); 2029Logging.P2PTraceSource.TraceEvent(TraceEventType.Information, 0, "\tCredentials raw data length {0}", Credentials.RawData.Length);
net\PeerToPeer\Collaboration\PeerObject.cs (4)
55if ((data != null) && (data.Length > c_16K)) 95if ((value != null) && (value.Length > c_16K)) 474Logging.DumpData(Logging.P2PTraceSource, TraceEventType.Verbose, Logging.P2PTraceSource.MaxDataSize, Data, 0, Data.Length); 477Logging.P2PTraceSource.TraceEvent(TraceEventType.Information, 0, "\tObject data length {0}", Data.Length);
net\PeerToPeer\PeerNameRecord.cs (4)
155if (value.Length <= 0) 158if(value.Length > MAX_DATA_SIZE) 186Logging.DumpData(Logging.P2PTraceSource, TraceEventType.Verbose, Logging.P2PTraceSource.MaxDataSize, Data, 0, Data.Length); 190Logging.P2PTraceSource.TraceEvent(TraceEventType.Information, 0, "\tCustom data length {0}", Data.Length);
net\PeerToPeer\PeerNameRegistration.cs (6)
304(Data == null || Data.Length <= 0)) 338regInfo.payLoad.cbPayload = (UInt32)m_PeerNameRecord.Data.Length; 421for (int i = 0; i < GCHandles.Length; i++) 502(Data == null || Data.Length <= 0)) 528regInfo.payLoad.cbPayload = (UInt32)m_PeerNameRecord.Data.Length; 602for (int i = 0; i < GCHandles.Length; i++)
net\PeerToPeer\PeerNameResolver.cs (2)
335Marshal.Copy(pSOCKADDR, buffer, 0, buffer.Length); 703Marshal.Copy(pSOCKADDR, buffer, 0, buffer.Length);
net\PeerToPeer\SystemNetHelpers.cs (2)
41for (int i = 0; i < addressBytes.Length; i++) 51for (int i = 0; i < addressBytes.Length; i++)
System.Numerics (57)
System\Numerics\BigInteger.cs (32)
308byte[] bytes = new byte[checked(4 * dwords.Length)]; 311for (int i = 0; i < dwords.Length; i++) { 321for (msb = bytes.Length - 1; msb > 0; msb--) { 330if (needExtraByte) trimmedBytes[trimmedBytes.Length - 1] = highByte; 359for (msb = dwords.Length - 1; msb > 0; msb--) { 368if (needExtraByte) trimmed[trimmed.Length - 1] = highDWord; 505Contract.Assert(bits.Length == 4 && (bits[3] & DecimalScaleFactorMask) == 0); 542int byteCount = value.Length; 623int len = val.Length; 638else if (len != val.Length) { 684for(len = value.Length; len > 0 && value[len-1] == 0; len--); 717int dwordCount = value.Length; 751if (dwordCount != value.Length) { 770int len = value.Length; 788else if (len != value.Length) { 1340uint[] z = new uint[Math.Max(x.Length, y.Length)]; 1344for (int i = 0; i < z.Length; i++) { 1345uint xu = (i < x.Length) ? x[i] : xExtend; 1346uint yu = (i < y.Length) ? y[i] : yExtend; 1360uint[] z = new uint[Math.Max(x.Length, y.Length)]; 1364for (int i = 0; i < z.Length; i++) { 1365uint xu = (i < x.Length) ? x[i] : xExtend; 1366uint yu = (i < y.Length) ? y[i] : yExtend; 1375uint[] z = new uint[Math.Max(x.Length, y.Length)]; 1379for (int i = 0; i < z.Length; i++) { 1380uint xu = (i < x.Length) ? x[i] : xExtend; 1381uint yu = (i < y.Length) ? y[i] : yExtend; 1795int cu = rgu.Length; 1842xl = (x._bits == null ? 1 : x._bits.Length);
System\Numerics\BigIntegerBuilder.cs (12)
45Contract.Assert(_rgu != null && _rgu.Length > _iuLast); 95_iuLast = _rgu.Length - 1; 116_iuLast = _rgu.Length - 1; 154int cuExtra = _rgu.Length - _iuLast - 1; 256if (!_fWritable || _rgu.Length < cu) { 274if (!_fWritable || _rgu.Length < cu) { 297if (!_fWritable || _rgu.Length < cu) { 322if (_fWritable && _rgu.Length >= cu) 374if (!_fWritable || _rgu.Length <= reg._iuLast) { 941Contract.Assert(_rgu.Length > _iuLast); 988if (!_fWritable || _rgu.Length <= iuLastNew) { 1037if (_iuLast + 1 == _rgu.Length)
System\Numerics\BigNumber.cs (1)
469int cur = bits.Length-1;
System\Numerics\NumericsHelpers.cs (6)
113for (; i < d.Length; i++) { 120for (; i < d.Length; i++) { 125d = resize(d, d.Length + 1); 126d[d.Length - 1] = 1; 132if (v.Length == len) return v; 134int n = System.Math.Min(v.Length, len);
System\Numerics\Vector2_Intrinsics.cs (2)
71if (index < 0 || index >= array.Length) 75if ((array.Length - index) < 2)
System\Numerics\Vector3_Intrinsics.cs (2)
85if (index < 0 || index >= array.Length) 89if ((array.Length - index) < 3)
System\Numerics\Vector4_Intrinsics.cs (2)
113if (index < 0 || index >= array.Length) 117if ((array.Length - index) < 4)
System.Runtime.Caching (4)
System\Caching\SRef.cs (4)
58_srefs = new SRef[targets.Length]; 59_sizes = new long[targets.Length]; 60for (int i = 0; i < targets.Length; i++) { 68for (int i = 0; i < _srefs.Length; i++) {
System.Runtime.DurableInstancing (5)
System\Runtime\DurableInstancing\InstanceStore.cs (1)
307if (this.ownerKeysToScan.Length == this.ownerKeysIndexToScan)
System\Runtime\PersistencePipeline.cs (4)
408this.remainingModules = this.pendingModules.Length; 411if (this.pendingModules.Length == 0) 417for (int i = 0; i < this.pendingModules.Length; i++) 540for (int j = 0; j < this.pendingModules.Length; j++)
System.Runtime.Remoting (113)
channels\core\chunkedmemorystream.cs (15)
67length += chunk.Buffer.Length; 95pos += chunk.Buffer.Length; 125if ((leftUntilAtPos < chunk.Buffer.Length) || 126((leftUntilAtPos == chunk.Buffer.Length) && 135leftUntilAtPos -= chunk.Buffer.Length; 215int chunkSize = chunkBuffer.Length; 232chunkSize = chunkBuffer.Length; 265int chunkSize = chunkBuffer.Length; 278chunkSize = chunkBuffer.Length; 302int chunkSize = chunkBuffer.Length; 313chunkSize = chunkBuffer.Length; 341int chunkSize = chunkBuffer.Length; 350chunkSize = chunkBuffer.Length; 399int chunkSize = chunkBuffer.Length; 417chunkSize = chunkBuffer.Length;
channels\core\corechannel.cs (4)
219for (int i = 0; i < addressList.Length; i++) 280for (int i = 0; i < addressList.Length; i++) 380if (i == ret.Length) 670String base64String = Encoding.ASCII.GetString(byteArray,0, byteArray.Length);
channels\core\socketcache.cs (1)
113if (_addressList.Length == 1)
channels\core\socketmanager.cs (4)
71_dataBufferSize = _dataBuffer.Length; 404InternalRemotingServices.RemotingAssert(buffer.Length == 4, "expecting 4 byte buffer."); 555int oldSize = readBytes.Length; 606if (strBytes.Length == 0)
channels\core\streamhelper.cs (3)
52int bufferSize = buffer.Length; 138streamState.Source.BeginRead(buffer, 0, buffer.Length, _asyncCopyStreamReadCallback, streamState); 143int bytesRead = streamState.Source.Read(buffer, 0, buffer.Length);
channels\http\httpchannelhelper.cs (2)
155if (parts.Length > 0) 223int count = uriBytes.Length;
channels\http\httpremotinghandler.cs (3)
237if (values.Length != 1 || String.Compare(values[0], "wsdl", StringComparison.OrdinalIgnoreCase) != 0) 420String uri = urlComponents[urlComponents.Length - 1] ; 559for (int httpKeyCount=0; httpKeyCount< allKeys.Length; httpKeyCount++)
channels\http\httpsocketmanager.cs (9)
117outputStream.Write(s_endOfLine, 0, s_endOfLine.Length); 125outputStream.Write(nameBytes, 0, nameBytes.Length); 126outputStream.Write(s_headerSeparator, 0, s_headerSeparator.Length); 127outputStream.Write(valueBytes, 0, valueBytes.Length); 128outputStream.Write(s_endOfLine, 0, s_endOfLine.Length); 136outputStream.Write(s_httpVersionAndSpace, 0, s_httpVersionAndSpace.Length); 137outputStream.Write(statusCodeBytes, 0, statusCodeBytes.Length); 139outputStream.Write(reasonPhraseBytes, 0, reasonPhraseBytes.Length); 140outputStream.Write(s_endOfLine, 0, s_endOfLine.Length);
channels\http\httpstreams.cs (5)
111_chunkSize = _chunk.Length - 2; // reserve space for _endChunk directly in buffer 127_outputStream.Write(_trailer, 0, _trailer.Length); 188_outputStream.Write(size, 0, size.Length); 198_outputStream.Write(_endChunk, 0, _endChunk.Length); 746NetStream.Write(_bufferhttpContinue, 0, _bufferhttpContinue.Length);
channels\tcp\tcpsocketmanager.cs (5)
51s_protocolPreamble.Length == 4, 63outputStream.Write(s_protocolPreamble, 0, s_protocolPreamble.Length); 64outputStream.Write(s_protocolVersion1_0, 0, s_protocolVersion1_0.Length); 341WriteInt32(strBytes.Length, outputStream); 344outputStream.Write(strBytes, 0, strBytes.Length);
metadata\metadata.cs (3)
51ServiceType[] serviceTypes = new ServiceType[types.Length]; 52for (int i=0; i<types.Length; i++) 213 if (sourceTexts.Length > 0)
metadata\sdlchannelsink.cs (2)
267typeCount += activatedTypes.Length; 270typeCount += wellKnownTypes.Length;
metadata\wsdlparser.cs (17)
2575for (int i = 0; i < names.Length; i++) 3543for (int i=0; i<_paramNamesOrder.Length; i++) 3693Util.Log("URTMethod.IsSignature param length "+paramInfos.Length+" URTParams length "+_params.Count); 3695if (_params.Count != paramInfos.Length) 3700for (int i=0; i<paramInfos.Length; i++) 4029length = wsdlMethodInfo.inputNames.Length; 4031length = wsdlMethodInfo.outputNames.Length; 4503for (int k=0;k<iFaces.Length;k++) 4516for (int k=0;k<methods.Length;k++) 4528for (int l=0;l<parameters.Length;l++) 4556for (int l=0;l<parameters.Length;l++) 4594if (parameters.Length > 0) 4596int lastParameter = parameters.Length-1; 4597for (int l=0;l<parameters.Length;l++) 5224for (int i=0;i<methods.Length;i++) 7548for (int i=0; i<inputNames.Length; i++) 7554for (int i=0; i<outputNames.Length; i++)
metadata\wsdlwriter.cs (40)
48for (int i=0;i<types.Length;i++) 72for (int i=0;i<types.Length;i++) 114for (int i=0; i<serviceTypes.Length; i++) 308for (int i=0;i<fields.Length;i++) 317if (interfaces.Length > 0) 319for (int i=0;i<interfaces.Length;i++) 333for (int i=0;i<fields.Length;i++) 349if (methods.Length > 0) 368for (int i=0;i<methods.Length;i++) 374for (int j=0;j<parameters.Length;j++) 1150for (int i=0;i<values.Length;i++) 1415get{ return((_iFaces != null && _iFaces.Length > 0) || 1416(_methods != null && _methods.Length > 0) || 1432_methodTypes = new String[2*_methods.Length]; 1511if (_iFaces.Length > 0) 1513_implIFaces = new String[_iFaces.Length]; 1514for (int i=0;i<_iFaces.Length;i++) 1532if (_methods.Length > 0) 1546_phony = new PhonySchemaType[_methods.Length]; 1547for (int i=0;i<_methods.Length;i++) 1637for (int i=0;i<_fields.Length;i++) 1773methodsLength = _methods.Length; 1990if (iFaces.Length > 0) 1992implIFaces = new String[iFaces.Length]; 1993for (int j=0;i<iFaces.Length;i++) 2051if (_methodAttributes != null && (i < _methodAttributes.Length) && _methodAttributes[i] != null) 2196for (int j=0;j<implIFaces.Length;j++) 2212for (int j=0;j<nestedTypes.Length;j++) 2358Util.Log("RealSchemaType.GetIntroducedInterfaces "+type+" typeInterface? "+type.IsInterface+" number of interfaces "+typeA.Length); 2383for(int i=0; i<infos.Length; i++) 2404Type[] types = new Type[paramInfos.Length]; 2405for (int itype=0; itype<types.Length; itype++) 2454methodAttributes = new String[methodInfos.Length]; 2477finalMethodInfos = new MethodInfo[methodInfos.Length + additionalInfos.Count]; 2478for(int i=0; i<methodInfos.Length; i++) 2481finalMethodInfos[methodInfos.Length+i] = (MethodInfo)additionalInfos[i]; 2522Util.Log("RealSchemaType.GetIntroducedFields length "+fields.Length); 2523int actualLength = fields.Length; 2527for (int i=0;i<fields.Length;i++) 2540if (actualLength < fields.Length)
System.Runtime.Serialization (518)
System\Runtime\Serialization\BitFlagsGenerator.cs (4)
25for (int i = 0; i < locals.Length; i++) 57return locals.Length; 74ilg.NewArray(typeof(byte), locals.Length); 76for (int i = 0; i < locals.Length; i++)
System\Runtime\Serialization\ClassDataContract.cs (17)
417int baseChildElementNamespaceCount = (baseChildElementNamespaces != null) ? baseChildElementNamespaces.Length : 0; 420Array.Copy(baseChildElementNamespaces, 0, childElementNamespaces, 0, baseChildElementNamespaces.Length); 757baseMemberCount = BaseContract.MemberNames.Length; 762baseContractCount = BaseContract.ContractNamespaces.Length; 865for (int i = 0; i < memberInfos.Length; i++) 871if (memberAttributes != null && memberAttributes.Length > 0) 873if (memberAttributes.Length > 1) 897if (getMethod.GetParameters().Length > 0) 936if (memberAttributes != null && memberAttributes.Length > 0) 938if (memberAttributes.Length > 1) 947if (getMethod == null || IsMethodOverriding(getMethod) || getMethod.GetParameters().Length > 0) 982if (optionalFields == null || optionalFields.Length == 0) 1111for (int i = 0; i < methods.Length; i++) 1147if (parameters == null || parameters.Length != 1 || parameters[0].ParameterType != Globals.TypeOfExtensionDataObject) 1168if (parameters == null || parameters.Length != 1 || parameters[0].ParameterType != Globals.TypeOfStreamingContext) 1422genericParams = new object[paramTypes.Length]; 1423for (int i = 0; i < paramTypes.Length; i++)
System\Runtime\Serialization\CodeGenerator.cs (8)
204Type[] paramTypes = new Type[parameters.Length]; 205for (int i = 0; i < parameters.Length; i++) 232for (int i = 0; i < argTypes.Length; i++) 558if (methodInfo.GetParameters().Length != expectedCount) 559throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ParameterCountMismatch, methodInfo.Name, methodInfo.GetParameters().Length, expectedCount))); 1836for (int i = 0; i < caseLabels.Length; i++) 1894NewArray(typeof(object), values.Length); 1898for (int i = 0; i < values.Length; i++)
System\Runtime\Serialization\CollectionDataContract.cs (4)
892for (int i = 0; i < mapping.TargetMethods.Length; i++) 947for (int i = 0; i < knownInterfaces.Length; i++) 1024for (int i = 0; i < knownInterfaces.Length; i++) 1163for (int i = 0; i < mapping.TargetMethods.Length; i++)
System\Runtime\Serialization\Configuration\TypeElement.cs (5)
79if (typeArgs == null || index >= typeArgs.Length) 81int typeArgsCount = typeArgs == null ? 0 : typeArgs.Length; 104if (parameters.Count != t.GetGenericArguments().Length) 107t.GetGenericArguments().Length, 111for (int i = 0; i < types.Length; ++i)
System\Runtime\Serialization\DataContract.cs (11)
479if (id < dataContractCache.Length && ContractMatches(classContract, dataContractCache[id])) 546if (value >= dataContractCache.Length) 1538if (dataContractAttributes != null && dataContractAttributes.Length > 0) 1559if (collectionContractAttributes != null && collectionContractAttributes.Length > 0) 1670for (int i = 0; i < genParams.Length; i++) 1796if (typeAttributes != null && typeAttributes.Length > 0) 1919for (int i = 0; i < nsAttributes.Length; i++) 2072for (int i = 0; i < knownTypeAttributes.Length; ++i) 2260for (int i = 0; i < args.Length; ++i) 2470this.genericParams = new object[genericParams.Length]; 2480return genericParams.Length;
System\Runtime\Serialization\EnumDataContract.cs (6)
274List<DataMember> tempMembers = new List<DataMember>(fields.Length); 275List<long> tempValues = new List<long>(fields.Length); 277for (int i = 0; i < fields.Length; i++) 284if (memberAttributes != null && memberAttributes.Length > 0) 286if (memberAttributes.Length > 1) 304if (dataMemberAttributes != null && dataMemberAttributes.Length > 0)
System\Runtime\Serialization\ExtensionDataObject.cs (1)
206for (int i = 0; i < element.attributes.Length; i++)
System\Runtime\Serialization\ExtensionDataReader.cs (7)
774else if (elements.Length == depth) 776ElementData[] newElements = new ElementData[elements.Length * 2]; 777Array.Copy(elements, 0, newElements, 0, elements.Length); 785return (elements == null || elements.Length <= nextDepth || elements[nextDepth] == null) 863else if (attributes.Length == attributeCount) 865AttributeData[] newAttributes = new AttributeData[attributes.Length * 2]; 866Array.Copy(attributes, 0, newAttributes, 0, attributes.Length);
System\Runtime\Serialization\Json\JsonClassDataContract.cs (1)
166int memberCount = traditionalClassDataContract.MemberNames.Length;
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
206if (value >= dataContractCache.Length)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (3)
215byteCount = this.stream.Read(bytes, byteCount, (chars.Length - 1) * 2); 283int size = chars.Length < count ? chars.Length : count;
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (7)
228Type[] paramTypes = new Type[parameters.Length]; 229for (int i = 0; i < parameters.Length; i++) 368int memberCount = classContract.MemberNames.Length; 453for (int i = 0; i < requiredElements.Length; i++) 467ilg.NewArray(typeof(byte), array.Length); 469for (int i = 0; i < array.Length; i++) 1088if (values != null && values.Length > 0)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (2)
156Type[] paramTypes = new Type[parameters.Length]; 157for (int i = 0; i < parameters.Length; i++)
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (1)
272context.IncrementItemCount(array.Length);
System\Runtime\Serialization\Json\JsonReaderWriterFactory.cs (1)
33return CreateJsonReader(buffer, 0, buffer.Length, null, quotas, null);
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (8)
42ByteArrayHelperWithString.Instance.WriteArray(Writer, bytes, 0, bytes.Length); 133for (int i = 0; i < value.Length; i++) 145for (int i = 0; i < value.Length; i++) 157for (int i = 0; i < value.Length; i++) 169for (int i = 0; i < value.Length; i++) 181for (int i = 0; i < value.Length; i++) 263for (int i = 0; i < value.Length; i++) 275for (int i = 0; i < value.Length; i++)
System\Runtime\Serialization\Json\JsonXmlDataContract.cs (1)
65for (int i = 0; i < entries.Length; i++)
System\Runtime\Serialization\Json\XmlJsonReader.cs (18)
747if (offset > buffer.Length) 749throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", System.Runtime.Serialization.SR.GetString(System.Runtime.Serialization.SR.OffsetExceedsBufferSize, buffer.Length))); 755if (count > buffer.Length - offset) 757throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", System.Runtime.Serialization.SR.GetString(System.Runtime.Serialization.SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 778if (offset > chars.Length) 780throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", System.Runtime.Serialization.SR.GetString(System.Runtime.Serialization.SR.OffsetExceedsBufferSize, chars.Length))); 786if (count > chars.Length - offset) 788throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", System.Runtime.Serialization.SR.GetString(System.Runtime.Serialization.SR.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 824if (offset > buffer.Length) 828SR.GetString(SR.JsonOffsetExceedsBufferSize, buffer.Length))); 835if (count > buffer.Length - offset) 840buffer.Length - offset))); 881if (offset > array.Length) 883throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, array.Length))); 889if (count > array.Length - offset) 891throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, array.Length - offset))); 1091else if (scopes.Length == scopeDepth) 1573if ((scopes != null) && (scopes.Length > JsonGlobals.maxScopeSize))
System\Runtime\Serialization\Json\XmlJsonWriter.cs (11)
448if (count > buffer.Length - index) 453buffer.Length - index))); 479if (count > buffer.Length - index) 484buffer.Length - index))); 520if (count > buffer.Length - index) 525buffer.Length - index))); 841if (count > buffer.Length - index) 846buffer.Length - index))); 1327else if (scopes.Length == depth) 1358if ((scopes != null) && (scopes.Length > JsonGlobals.maxScopeSize)) 1690for (int i = 0; i < array.Length; i++)
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (2)
189int length = memberNames.Length; 243for (int i = 0; i < memberNames.Length; i++)
System\Runtime\Serialization\NetDataContractSerializer.cs (5)
562if (sourceToken == null || destinationToken == null || sourceToken.Length == 0 || destinationToken.Length == 0 || sourceToken.Length != destinationToken.Length) 567for (int i = 0; i < sourceToken.Length; i++)
System\Runtime\Serialization\ObjectReferenceStack.cs (5)
30if (count == objectArray.Length) 31Array.Resize<object>(ref objectArray, objectArray.Length * 2); 62isReferenceArray = new bool[objectArray.Length]; 64else if (count >= isReferenceArray.Length) 67Array.Resize<bool>(ref isReferenceArray, objectArray.Length);
System\Runtime\Serialization\ObjectToIdCache.cs (9)
22m_objs = new Object[m_ids.Length]; 23m_isWrapped = new bool[m_ids.Length]; 42if (m_currentCount >= (m_objs.Length - 1)) 97if (i == (m_objs.Length - 1)) 110int cacheSize = m_objs.Length; 149return (RuntimeHelpers.GetHashCode(o) & 0x7FFFFFFF) % m_objs.Length; 154int size = GetPrime(m_objs.Length * 2); 161for (int j = 0; j < oldObjs.Length; j++) 178for (int i = 0; i < primes.Length; i++)
System\Runtime\Serialization\SchemaExporter.cs (5)
553for (int i = 0; i < schemaArray.Length; i++) 558for (int j = 0; j < itemArray.Length; j++) 613if (attrs == null || attrs.Length == 0) 817if (nodes == null || nodes.Length == 0) 820for (int i = 0; i < nodes.Length; i++)
System\Runtime\Serialization\SchemaImporter.cs (1)
1446for (int i = 0; i < markup.Length; i++)
System\Runtime\Serialization\ScopedKnownTypes.cs (2)
19else if (count == dataContractDictionaries.Length) 20Array.Resize<DataContractDictionary>(ref dataContractDictionaries, dataContractDictionaries.Length * 2);
System\Runtime\Serialization\XmlDataContract.cs (1)
212if (xmlRootAttributes == null || xmlRootAttributes.Length == 0)
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (4)
361int memberCount = classContract.MemberNames.Length; 410for (; nextRequiredIndex < requiredMembers.Length; nextRequiredIndex++) 443int memberCount = contract.MemberNames.Length; 934if (values != null && values.Length > 0)
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (2)
259if (classContract.ContractNamespaces.Length > 1) 272for (int i = 0; i < classContract.ChildElementNamespaces.Length; i++)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (8)
257for (int i = memberIndex + 1; i < memberNames.Length; i++) 263return memberNames.Length; 268for (int i = memberIndex + 1; i < memberNames.Length; i++) 278return memberNames.Length; 284if (requiredIndex == memberNames.Length) 479if (array.Length <= index) 490Array.Copy(array, 0, newArray, 0, array.Length); 498if (size != array.Length)
System\Runtime\Serialization\XmlReaderDelegator.cs (8)
110for (int i = 0; i < localNames.Length; i++) 872context.IncrementItemCount(array.Length); 902context.IncrementItemCount(array.Length); 932context.IncrementItemCount(array.Length); 962context.IncrementItemCount(array.Length); 992context.IncrementItemCount(array.Length); 1022context.IncrementItemCount(array.Length); 1052context.IncrementItemCount(array.Length);
System\Runtime\Serialization\XmlSerializableServices.cs (1)
65for (int i = 0; i < nodes.Length; i++)
System\Runtime\Serialization\XmlWriterDelegator.cs (15)
535writer.WriteBase64(bytes, 0, bytes.Length); 680for (int i = 0; i < value.Length; i++) 687dictionaryWriter.WriteArray(null, itemName, itemNamespace, value, 0, value.Length); 695for (int i = 0; i < value.Length; i++) 702dictionaryWriter.WriteArray(null, itemName, itemNamespace, value, 0, value.Length); 710for (int i = 0; i < value.Length; i++) 717dictionaryWriter.WriteArray(null, itemName, itemNamespace, value, 0, value.Length); 725for (int i = 0; i < value.Length; i++) 732dictionaryWriter.WriteArray(null, itemName, itemNamespace, value, 0, value.Length); 740for (int i = 0; i < value.Length; i++) 747dictionaryWriter.WriteArray(null, itemName, itemNamespace, value, 0, value.Length); 755for (int i = 0; i < value.Length; i++) 762dictionaryWriter.WriteArray(null, itemName, itemNamespace, value, 0, value.Length); 770for (int i = 0; i < value.Length; i++) 777dictionaryWriter.WriteArray(null, itemName, itemNamespace, value, 0, value.Length);
System\Runtime\Serialization\XPathQueryGenerator.cs (1)
48for (int pathToMemberIndex = 0; pathToMemberIndex < pathToMember.Length; pathToMemberIndex++)
System\Runtime\Serialization\XsdDataContractExporter.cs (2)
111for (int j = 0; j < types.Length; j++) 291for (int j = 0; j < types.Length; j++)
System\Text\Base64Encoding.cs (32)
65if (index > chars.Length) 66throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", SR.GetString(SR.OffsetExceedsBufferSize, chars.Length))); 69if (count > chars.Length - index) 70throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, chars.Length - index))); 123if (charIndex > chars.Length) 124throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", SR.GetString(SR.OffsetExceedsBufferSize, chars.Length))); 128if (charCount > chars.Length - charIndex) 129throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", SR.GetString(SR.SizeExceedsRemainingBufferSpace, chars.Length - charIndex))); 135if (byteIndex > bytes.Length) 136throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", SR.GetString(SR.OffsetExceedsBufferSize, bytes.Length))); 151byte* pbMax = _bytes + bytes.Length - byteIndex; 204if (charIndex > chars.Length) 205throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", SR.GetString(SR.OffsetExceedsBufferSize, chars.Length))); 209if (charCount > chars.Length - charIndex) 210throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", SR.GetString(SR.SizeExceedsRemainingBufferSpace, chars.Length - charIndex))); 216if (byteIndex > bytes.Length) 217throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", SR.GetString(SR.OffsetExceedsBufferSize, bytes.Length))); 232byte* pbMax = _bytes + bytes.Length - byteIndex; 306if (byteIndex > bytes.Length) 307throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", SR.GetString(SR.OffsetExceedsBufferSize, bytes.Length))); 310if (byteCount > bytes.Length - byteIndex) 311throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", SR.GetString(SR.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex))); 318if (charIndex > chars.Length) 319throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", SR.GetString(SR.OffsetExceedsBufferSize, chars.Length))); 320if (charCount < 0 || charCount > chars.Length - charIndex) 398if (byteIndex > bytes.Length) 399throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", SR.GetString(SR.OffsetExceedsBufferSize, bytes.Length))); 402if (byteCount > bytes.Length - byteIndex) 403throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", SR.GetString(SR.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex))); 410if (charIndex > chars.Length) 411throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", SR.GetString(SR.OffsetExceedsBufferSize, chars.Length))); 413if (charCount < 0 || charCount > chars.Length - charIndex)
System\Text\BinHexEncoding.cs (14)
70if (charIndex > chars.Length) 71throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", SR.GetString(SR.OffsetExceedsBufferSize, chars.Length))); 74if (charCount > chars.Length - charIndex) 75throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", SR.GetString(SR.SizeExceedsRemainingBufferSpace, chars.Length - charIndex))); 80if (byteIndex > bytes.Length) 81throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", SR.GetString(SR.OffsetExceedsBufferSize, bytes.Length))); 83if (byteCount < 0 || byteCount > bytes.Length - byteIndex) 144if (byteIndex > bytes.Length) 145throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", SR.GetString(SR.OffsetExceedsBufferSize, bytes.Length))); 148if (byteCount > bytes.Length - byteIndex) 149throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", SR.GetString(SR.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex))); 155if (charIndex > chars.Length) 156throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", SR.GetString(SR.OffsetExceedsBufferSize, chars.Length))); 157if (charCount < 0 || charCount > chars.Length - charIndex)
System\Xml\ArrayHelper.cs (7)
33while (read < array.Length) 35int actual = ReadArray(reader, localName, namespaceUri, array, read, array.Length - read); 43if (read < array.Length || reader.NodeType == XmlNodeType.EndElement) 50if (totalRead != array.Length || arrayCount > 0) 56Array.Copy(arrays[i], 0, newArray, offset, arrays[i].Length); 57offset += arrays[i].Length; 75int actual = ReadArray(reader, localName, namespaceUri, array, 0, array.Length);
System\Xml\EncodingStreamWrapper.cs (13)
208if (bom.Length > 0) 209this.stream.Write(bom, 0, bom.Length); 388if (!Compare(encodingAttr, buffer, i - encodingAttr.Length + 1)) 414if (encCount == encodingUTF8.Length && CompareCaseInsensitive(encodingUTF8, buffer, encStart)) 418else if (encCount == encodingUnicodeLE.Length && CompareCaseInsensitive(encodingUnicodeLE, buffer, encStart)) 422else if (encCount == encodingUnicodeBE.Length && CompareCaseInsensitive(encodingUnicodeBE, buffer, encStart)) 426else if (encCount == encodingUnicode.Length && CompareCaseInsensitive(encodingUnicode, buffer, encStart)) 429ThrowEncodingMismatch(SafeUTF8.GetString(buffer, encStart, encCount), SafeUTF8.GetString(encodingUTF8, 0, encodingUTF8.Length)); 442for (int i = 0; i < key.Length; i++) 455for (int i = 0; i < key.Length; i++) 628byteCount = this.stream.Read(bytes, byteCount, (chars.Length - 1) * 2); 720int size = chars.Length < count ? chars.Length : count;
System\Xml\StringHandle.cs (3)
144length = buffer.Length; 151length = buffer.Length; 159length = buffer.Length;
System\Xml\UniqueID.cs (13)
65if (offset > guid.Length) 66throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, guid.Length))); 67if (guidLength > guid.Length - offset) 101if (offset > chars.Length) 102throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, chars.Length))); 105if (count > chars.Length - offset) 106throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 232if (offset > chars.Length) 233throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, chars.Length))); 235if (count > chars.Length - offset) 317if (offset > buffer.Length) 318throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, buffer.Length))); 320if (guidLength > buffer.Length - offset)
System\Xml\ValueHandle.cs (5)
456if (actualLength != buffer.Length) 702Fx.Assert(offset + count <= chars.Length, string.Format("offset '{0}' + count '{1}' MUST BE <= chars.Length '{2}'", offset, count, chars.Length)); 785Fx.Assert(byteOffset + actualByteCount < bytes.Length, 786string.Format("byteOffset {0} + actualByteCount {1} MUST BE < bytes.Length {2}", byteOffset, actualByteCount, bytes.Length));
System\Xml\XmlBaseReader.cs (37)
309else if (elementNodes.Length == depth) 343else if (attributeNodes.Length == attributeIndex) 503if (attributeNodes != null && attributeNodes.Length > 16) 505if (elementNodes != null && elementNodes.Length > 16) 1156for (int i = 0; i < localNames.Length; i++) 1171for (int i = 0; i < localNames.Length; i++) 1198for (int i = 0; i < localNames.Length; i++) 1213for (int i = 0; i < localNames.Length; i++) 1234if (offset > chars.Length) 1235throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, chars.Length))); 1238if (count > chars.Length - offset) 1239throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1264if (offset > buffer.Length) 1265throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, buffer.Length))); 1268if (count > buffer.Length - offset) 1269throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1410if (value.Length > quotas.MaxArrayLength) 1418return ReadContentAsBase64(quotas.MaxArrayLength, bufferReader.Buffer.Length); 1454if (offset > buffer.Length) 1455throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, buffer.Length))); 1458if (count > buffer.Length - offset) 1459throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1517if (offset > buffer.Length) 1518throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, buffer.Length))); 1521if (count > buffer.Length - offset) 1522throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 2025if (chars == null || chars.Length < count) 2752if (indeces != null && indeces.Length > 32) 2762if (indeces != null && indeces.Length == attributeCount && IsSorted()) 2766for (int i = 0; i < newIndeces.Length; i++) 2775for (int i = 0; i < indeces.Length - 1; i++) 2852if (namespaces != null && namespaces.Length > 32) 2854if (attributes != null && attributes.Length > 4) 2876nameSpace.Uri.SetValue(3, xmlBuffer.Length - 3); 2913for (int i = 0; i < shortPrefixUri.Length; i++) 3001else if (attributes.Length == attributeCount) 3039else if (namespaces.Length == nsCount)
System\Xml\XmlBaseWriter.cs (16)
530else if (elements.Length == depth) 895if (count > chars.Length - offset) 896throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 952if (count > chars.Length - offset) 953throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1669if (count > buffer.Length - offset) 1670throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1709for (int i = 0; i < array.Length; i++) 1728for (int i = 0; i < array.Length; i++) 1768if (count > buffer.Length - offset) 1769throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1945if (namespaces != null && namespaces.Length > 32) 1947if (attributes != null && attributes.Length > 4) 2027else if (attributes.Length == attributeCount) 2055for (int i = 0; i < prefixes.Length; i++) 2121if (namespaces.Length == nsCount)
System\Xml\XmlBinaryReader.cs (9)
50if (offset > buffer.Length) 51throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, buffer.Length))); 54if (count > buffer.Length - offset) 55throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1036BufferReader.InsertBytes(buffer, 0, buffer.Length); 1241if (offset > array.Length) 1242throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, array.Length))); 1245if (count > array.Length - offset) 1246throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, array.Length - offset)));
System\Xml\XmlBinaryReaderSession.cs (6)
47else if (id >= strings.Length) 49XmlDictionaryString[] newStrings = new XmlDictionaryString[Math.Min(Math.Max(id + 1, strings.Length * 2), MaxArrayEntries)]; 50Array.Copy(strings, newStrings, strings.Length); 60if (strings != null && key >= 0 && key < strings.Length) 81for (int i = 0; i < strings.Length; i++) 124Array.Clear(strings, 0, strings.Length);
System\Xml\XmlBinaryWriter.cs (6)
1162while ((count = reader.ReadValueChunk(chars, 0, chars.Length)) > 0) 1187while ((count = reader.ReadValueAsBase64(bytes, 0, bytes.Length)) > 0) 1272if (offset > array.Length) 1273throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, array.Length))); 1276if (count > array.Length - offset) 1277throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, array.Length - offset)));
System\Xml\XmlBinaryWriterSession.cs (6)
119Array.Clear(list, 0, list.Length); 176if (listCount < list.Length) 241if (index >= array.Length) 248if (index >= array.Length) 250int[] newArray = new int[Math.Max(index + 1, array.Length * 2)]; 251Array.Copy(array, newArray, array.Length);
System\Xml\XmlBufferReader.cs (9)
78this.windowOffsetMax = streamBuffer.Length; 99if (streamBuffer != null && streamBuffer.Length > 4096) 194if (offsetMax >= buffer.Length) 220if (newOffsetMax > buffer.Length) 222byte[] newBuffer = new byte[Math.Max(newOffsetMax, buffer.Length * 2)]; 255if (offsetMax > buffer.Length - count) 597if (chars == null || chars.Length < count) 925int length2 = buffer2.Length; 1167System.Buffer.BlockCopy(buffer, offset, guid, 0, guid.Length);
System\Xml\XmlC14NWriter.cs (50)
101this.inclusivePrefixes = new string[inclusivePrefixes.Length]; 102for (int i = 0; i < inclusivePrefixes.Length; ++i) 128if (scopes != null && scopes.Length > 16) 130if (attributes != null && attributes.Length > 16) 132if (xmlnsBuffer != null && xmlnsBuffer.Length > 1024) 162else if (depth == scopes.Length) 221if (prefixOffset > prefixBuffer.Length) 222throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("prefixOffset", SR.GetString(SR.OffsetExceedsBufferSize, prefixBuffer.Length))); 225if (prefixLength > prefixBuffer.Length - prefixOffset) 226throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("prefixLength", SR.GetString(SR.SizeExceedsRemainingBufferSpace, prefixBuffer.Length - prefixOffset))); 232if (localNameOffset > localNameBuffer.Length) 233throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("localNameOffset", SR.GetString(SR.OffsetExceedsBufferSize, localNameBuffer.Length))); 236if (localNameLength > localNameBuffer.Length - localNameOffset) 237throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("localNameLength", SR.GetString(SR.SizeExceedsRemainingBufferSpace, localNameBuffer.Length - localNameOffset))); 267for (int i = 0; i < this.inclusivePrefixes.Length; ++i) 364else if (xmlnsOffset + byteCount > xmlnsBuffer.Length) 366byte[] newBuffer = new byte[Math.Max(xmlnsOffset + byteCount, xmlnsBuffer.Length * 2)]; 402if (prefixOffset > prefixBuffer.Length) 403throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("prefixOffset", SR.GetString(SR.OffsetExceedsBufferSize, prefixBuffer.Length))); 406if (prefixLength > prefixBuffer.Length - prefixOffset) 407throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("prefixLength", SR.GetString(SR.SizeExceedsRemainingBufferSpace, prefixBuffer.Length - prefixOffset))); 413if (nsOffset > nsBuffer.Length) 414throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("nsOffset", SR.GetString(SR.OffsetExceedsBufferSize, nsBuffer.Length))); 417if (nsLength > nsBuffer.Length - nsOffset) 418throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("nsLength", SR.GetString(SR.SizeExceedsRemainingBufferSpace, nsBuffer.Length - nsOffset))); 460if (prefixOffset > prefixBuffer.Length) 461throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("prefixOffset", SR.GetString(SR.OffsetExceedsBufferSize, prefixBuffer.Length))); 464if (prefixLength > prefixBuffer.Length - prefixOffset) 465throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("prefixLength", SR.GetString(SR.SizeExceedsRemainingBufferSpace, prefixBuffer.Length - prefixOffset))); 471if (localNameOffset > localNameBuffer.Length) 472throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("localNameOffset", SR.GetString(SR.OffsetExceedsBufferSize, localNameBuffer.Length))); 475if (localNameLength > localNameBuffer.Length - localNameOffset) 476throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("localNameLength", SR.GetString(SR.SizeExceedsRemainingBufferSpace, localNameBuffer.Length - localNameOffset))); 536if (offset > chars.Length) 537throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, chars.Length))); 540if (count > chars.Length - offset) 541throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 625if (offset > chars.Length) 626throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, chars.Length))); 629if (count > chars.Length - offset) 630throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 665if (offset > chars.Length) 666throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, chars.Length))); 669if (count > chars.Length - offset) 670throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 735else if (attributeCount == attributes.Length) 755else if (xmlnsAttributes.Length == xmlnsAttributeCount) 957for (int i = 0; i < indeces.Length; i++) 964Attribute[] attributes = new Attribute[writer.attributes.Length]; 965for (int i = 0; i < indeces.Length; i++)
System\Xml\XmlConverter.cs (3)
461if (objects.Length == 0) 464if (objects.Length > 1) 467for (int i = 1; i < objects.Length; i++)
System\Xml\XmlDictionary.cs (1)
55else if (this.nextId == this.strings.Length)
System\Xml\XmlDictionaryReader.cs (20)
42return CreateBinaryReader(buffer, 0, buffer.Length, quotas); 101return CreateTextReader(buffer, 0, buffer.Length, quotas); 323for (int i = 0; i < localNames.Length; i++) 349for (int i = 0; i < localNames.Length; i++) 548while (read < buffer.Length) 552actual = ReadContentAsBase64(buffer, read, buffer.Length - read); 554actual = ReadContentAsBinHex(buffer, read, buffer.Length - read); 562if (read < buffer.Length) 570Buffer.BlockCopy(buffers[i], 0, buffer, offset, buffers[i].Length); 571offset += buffers[i].Length; 624Guid[] guids = new Guid[values.Length]; 625for (int i = 0; i < values.Length; i++) 632UniqueId[] uniqueIds = new UniqueId[values.Length]; 633for (int i = 0; i < values.Length; i++) 646for (int i = 0; i < strings.Length; i++) 666for (int i = 0; i < strings.Length; i++) 1043if (offset > array.Length) 1044throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, array.Length))); 1047if (count > array.Length - offset) 1048throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, array.Length - offset)));
System\Xml\XmlDictionaryWriter.cs (4)
947if (offset > array.Length) 948throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, array.Length))); 951if (count > array.Length - offset) 952throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, array.Length - offset)));
System\Xml\XmlMtomReader.cs (47)
58for (int i = 0; i < encodings.Length; i++) 64this.encodings = new Encoding[encodings.Length]; 184for (int i = 0; i < encodings.Length; i++) 197for (int i = 0; i < encodings.Length; i++) 208for (int i = 0; i < encodings.Length; i++) 221for (int i = 0; i < encodings.Length; i++) 1163if (offset > buffer.Length) 1164throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, buffer.Length))); 1167if (count > buffer.Length - offset) 1168throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1210if (offset > buffer.Length) 1211throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, buffer.Length))); 1214if (count > buffer.Length - offset) 1215throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1255if (offset > buffer.Length) 1256throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, buffer.Length))); 1259if (count > buffer.Length - offset) 1260throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1313if (offset > chars.Length) 1314throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, chars.Length))); 1317if (count > chars.Length - offset) 1318throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1360else if (this.valueBuffer.Length < byteCount) 1909while (0 != Read(caller, this.scratch, 0, this.scratch.Length)); 1946if (this.delimitter.Length > end - start) 1955for (int i = delimitter.Length - 1; i >= 1; i--) 1978ptr += this.delimitter.Length; 2027if (this.matchBuffer == null || this.matchBuffer.Length < this.delimitter.Length - read) 2028this.matchBuffer = new byte[this.delimitter.Length - read]; 2030int matched = this.stream.ReadBlock(this.matchBuffer, 0, this.delimitter.Length - read); 2060if (start + count != this.delimitter.Length) 2146if (offset > buffer.Length) 2147throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, buffer.Length))); 2150if (count > buffer.Length - offset) 2151throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 2625maxOffset = stream.Read(this.buffer, 0, this.buffer.Length); 2898if (offset > buffer.Length) 2899throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, buffer.Length))); 2902if (count > buffer.Length - offset) 2903throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 2945if (this.storedBuffer == null || this.storedBuffer.Length < count) 2956else if (count <= this.storedBuffer.Length - this.storedLength + this.storedOffset) 3087else if (!(data[offset] < s_fqtext.Length && s_fqtext[data[offset]])) 3119if (data[offset] > s_ttext.Length) 3135for (; offset < data.Length && data[offset] < s_digits.Length && s_digits[data[offset]]; offset++); 3148if (!(data[i] < s_boundary.Length && s_boundary[data[i]]))
System\Xml\XmlMtomWriter.cs (16)
268if (count > buffer.Length - index) 269throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, buffer.Length - index))); 312Writer.WriteBase64(data.chunk, 0, data.chunk.Length); 412s.Write(data.chunk, 0, data.chunk.Length); 627while ((count = reader.ReadValueChunk(chars, 0, chars.Length)) > 0) 651while ((count = reader.ReadValueAsBase64(bytes, 0, bytes.Length)) > 0) 907int size = XmlMtomWriter.ValidateSizeOfMessage(maxSizeInBytes, 0, MimeGlobals.CRLF.Length * 3); 1003int size = XmlMtomWriter.ValidateSizeOfMessage(maxSizeInBytes, 0, MimeGlobals.COLONSPACE.Length + MimeGlobals.CRLF.Length); 1011byte[] boundaryBytes = new byte[boundary.Length + MimeGlobals.BoundaryPrefix.Length]; 1012for (int i = 0; i < MimeGlobals.BoundaryPrefix.Length; i++) 1014Encoding.ASCII.GetBytes(boundary, 0, boundary.Length, boundaryBytes, MimeGlobals.BoundaryPrefix.Length); 1028return this.boundaryBytes.Length; 1162int currSize = buffer.Length; 1199Write(value, 0, value.Length); 1296return this.chunk.Length;
System\Xml\XmlSigningNodeWriter.cs (1)
355int byteCount = Math.Min(base64Chars.Length / 4 * 3, count - count % 3);
System\Xml\XmlStreamNodeWriter.cs (1)
654byte* bytesMax = &bytes[buffer.Length - offset];
System\Xml\XmlUTF8TextReader.cs (5)
309if (offset > buffer.Length) 310throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.OffsetExceedsBufferSize, buffer.Length))); 313if (count > buffer.Length - offset) 314throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1190while (j < rowOffsets.Length - 1 && rowOffsets[j + 1] < offset)
System\Xml\XmlUTF8TextWriter.cs (6)
159if (chars == null || chars.Length < charCount) 168WriteUTF8Chars(utf8Decl, 0, utf8Decl.Length); 172WriteUTF8Chars(startDecl, 0, startDecl.Length); 177WriteUTF8Chars(endDecl, 0, endDecl.Length); 453int isEscapedCharLength = isEscapedChar.Length; 471int isEscapedCharLength = isEscapedChar.Length;
System.Security (190)
system\security\cryptography\bigint.cs (2)
277for (int index = 0; index < bytes.Length; index++) { 302for (int index = 0; index < bytes.Length; index++) {
system\security\cryptography\cryptoapi.cs (3)
2309Marshal.Copy(blob.pbData, data, 0, data.Length); 2370(uint) pbEncoded.Length, 2380(uint) pbEncoded.Length,
system\security\cryptography\cryptographicattribute.cs (2)
212if (index < 0 || index >= array.Length) 214if (index + this.Count > array.Length)
system\security\cryptography\dataprotection.cs (12)
54dataIn.cbData = (uint) userData.Length; 59entropy.cbData = (uint) optionalEntropy.Length; 93Marshal.Copy(blob.pbData, encryptedData, 0, encryptedData.Length); 129dataIn.cbData = (uint) encryptedData.Length; 134entropy.cbData = (uint) optionalEntropy.Length; 156Marshal.Copy(userData.pbData, data, 0, data.Length); 192if ((userData.Length == 0) || (userData.Length % CAPI.CRYPTPROTECTMEMORY_BLOCK_SIZE != 0)) 199(uint) userData.Length, 223if ((encryptedData.Length == 0) || (encryptedData.Length % CAPI.CRYPTPROTECTMEMORY_BLOCK_SIZE != 0)) 230(uint) encryptedData.Length,
system\security\cryptography\dataprotector.cs (10)
153byte[] userDataWithHashedPurpose = new byte[userData.Length + hashedPurpose.Length]; 156Array.Copy(hashedPurpose, 0, userDataWithHashedPurpose, 0, hashedPurpose.Length); 159Array.Copy(userData, 0, userDataWithHashedPurpose, hashedPurpose.Length, userData.Length); 190if (!SignedXml.CryptographicEquals(hashedPurpose, plainTextWithHashedPurpose, hashedPurpose.Length)) 199byte[] plainText = new byte[plainTextWithHashedPurpose.Length - hashedPurpose.Length]; 200Array.Copy(plainTextWithHashedPurpose, hashedPurpose.Length, plainText, 0, plainText.Length);
system\security\cryptography\pkcs\envelopedpkcs7.cs (13)
213if (ContentInfo.Content.Length == 0) 468dataBlob.cbData = (uint) content.Length; 477if (encodedContent.Length > 0) { 478if (!CAPI.CAPISafe.CryptMsgUpdate(m_safeCryptMsgHandle, encodedContent, (uint) encodedContent.Length, true)) 507if (!CAPI.CAPISafe.CryptMsgUpdate(safeCryptMsgHandle, encodedMessage, (uint) encodedMessage.Length, true)) 710encryptParam.rgszObjId[index] = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(objId.Length + 1)); 711Marshal.Copy(objId, 0, encryptParam.rgszObjId[index].DangerousGetHandle(), objId.Length); 825encryptParam.rgszObjId[index] = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(objId.Length + 1)); 826Marshal.Copy(objId, 0, encryptParam.rgszObjId[index].DangerousGetHandle(), objId.Length); 845encryptParam.rgszKeyWrapObjId[cKeyAgree] = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(objId.Length + 1)); 846Marshal.Copy(objId, 0, encryptParam.rgszKeyWrapObjId[cKeyAgree].DangerousGetHandle(), objId.Length); 874encryptParam.rgszEphemeralObjId[cKeyAgree] = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(objId.Length + 1)); 875Marshal.Copy(objId, 0, encryptParam.rgszEphemeralObjId[cKeyAgree].DangerousGetHandle(), objId.Length);
system\security\cryptography\pkcs\pkcs7recipient.cs (2)
147if (index < 0 || index >= array.Length) 149if (index + this.Count > array.Length)
system\security\cryptography\pkcs\pkcs9attribute.cs (2)
293if ((RawData.Length < 2) || ((uint) RawData[1] != (uint) (RawData.Length - 2)))
system\security\cryptography\pkcs\pkcsmisc.cs (15)
63Marshal.Copy(issuer.pbData, issuerBytes, 0, issuerBytes.Length); 102Marshal.Copy(certRdnAttr.Value.pbData, ski, 0, ski.Length); 130Marshal.Copy(certId.Value.KeyId.pbData, ski, 0, ski.Length); 199if (m_keyValue.Length > 0) { 200Marshal.Copy(keyInfo.PublicKey.pbData, m_keyValue, 0, m_keyValue.Length); 237Marshal.Copy(certId.Value.KeyId.pbData, ski, 0, ski.Length); 325if (parameters.Length > 0) { 326Marshal.Copy(keyInfo.Algorithm.Parameters.pbData, parameters, 0, parameters.Length); 387Marshal.Copy(blob.pbData, parameters, 0, parameters.Length); 400Marshal.Copy(pbParameters.DangerousGetHandle(), parameters, 0, parameters.Length); 401Array.Clear(parameters, sizeof(uint), (int)(parameters.Length - blob.cbData - sizeof(uint))); 409keyLength = 128 - ((int) parameters.Length * 8); 424Marshal.Copy(algorithmIdentifier.Parameters.pbData, parameters, 0, parameters.Length); 522if (m_content != null && m_content.Length != 0) { 547if (!CAPI.CAPISafe.CryptMsgUpdate(safeCryptMsgHandle, encodedMessage, (uint) encodedMessage.Length, true))
system\security\cryptography\pkcs\pkcsutils.cs (19)
261if (contentType.Length > 0 && contentType[contentType.Length - 1] == 0) { 262byte[] temp = new byte[contentType.Length - 1]; 263Array.Copy(contentType, 0, temp, 0, temp.Length); 385Marshal.Copy(pIssuerAndSerial.SerialNumber.pbData, serial, 0, serial.Length); 445octetsBlob.cbData = (uint) octets.Length; 461if (0 < (encodedObjId.Length - offset)) { 470for (int index = offset + 1; index < encodedObjId.Length; index++) { 641totalLength += AlignedLength((uint) attributeValue.RawData.Length); // Data size 655CAPI.CRYPTOAPI_BLOB * pDataBlob = (CAPI.CRYPTOAPI_BLOB *) (pszObjId + AlignedLength((uint) objId.Length)); 668Marshal.Copy(objId, 0, pCryptAttribute->pszObjId, objId.Length); 677if (encodedData.Length > 0) { 679pDataBlob->cbData = (uint) encodedData.Length; 684Marshal.Copy(encodedData, 0, pbEncodedData, encodedData.Length); 685pbEncodedData = new IntPtr((long) pbEncodedData + AlignedLength((uint) encodedData.Length)); 762cmsSignerEncodeInfo.SignerId.Value.IssuerSerialNumber.Issuer.cbData = (uint)dummyName.RawData.Length; 766Marshal.Copy(dummyName.RawData, 0, pbDataIssuer.DangerousGetHandle(), dummyName.RawData.Length); 928if ((chain.ChainStatus.Length > 0) && 1088SubjectIssuerBlob.cbData = (uint)subjectName.RawData.Length;
system\security\cryptography\pkcs\recipientinfo.cs (6)
176if (m_encryptedKey.Length == 0) { 182Marshal.Copy(keyTrans.EncryptedKey.pbData, m_encryptedKey, 0, m_encryptedKey.Length); 323if (m_encryptedKey.Length == 0) { 326Marshal.Copy(m_encryptedKeyInfo.EncryptedKey.pbData, m_encryptedKey, 0, m_encryptedKey.Length); 494if (index < 0 || index >= array.Length) 496if (index + this.Count > array.Length)
system\security\cryptography\pkcs\signedpkcs7.cs (6)
169if (ContentInfo.Content.Length == 0) 339if (this.ContentInfo.Content.Length > 0) { 340if (!CAPI.CAPISafe.CryptMsgUpdate(safeCryptMsgHandle, this.ContentInfo.pContent, (uint) this.ContentInfo.Content.Length, true)) 423if (!CAPI.CAPISafe.CryptMsgUpdate(safeCryptMsgHandle, encodedMessage, (uint) encodedMessage.Length, true)) 434if (content != null && content.Length > 0) { 435if (!CAPI.CAPISafe.CryptMsgUpdate(safeCryptMsgHandle, content, (uint) content.Length, true))
system\security\cryptography\pkcs\signerinfo.cs (10)
61Debug.Assert(signedCms != null && encodedSignerInfo != null && encodedSignerInfo.Length > 0); 69(uint) encodedSignerInfo.Length, 260Marshal.Copy(m_cmsgSignerInfo.EncryptedHash.pbData, ret, 0, ret.Length); 486(uint)m_encodedSignerInfo.Length, 626addPara.blob.cbData = (uint) encodedNewAttribute.Length; 648addPara.blob.cbData = (uint) encodedAttribute.Length; 792if (index < 0 || index >= m_signerInfos.Length) 802return m_signerInfos.Length; 820if (index < 0 || index >= array.Length) 822if (index + this.Count > array.Length)
system\security\cryptography\x509\x509utils.cs (5)
50return EncodeHexString(sArray, 0, (uint) sArray.Length); 70return EncodeHexStringFromInt(sArray, 0, (uint) sArray.Length); 130SafeLocalAllocHandle pb = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new IntPtr(arr.Length)); 131Marshal.Copy(arr, 0, pb.DangerousGetHandle(), arr.Length); 269Marshal.Copy(ansiOid, 0, pOid, ansiOid.Length);
system\security\cryptography\xml\c14nutil.cs (21)
270hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 278hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 294hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 322hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 324hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 326hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 353hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 381hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 409hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 454hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 456hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 458hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 460hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 463hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 507hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 510hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 512hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 515hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 518hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 521hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0); 574hash.TransformBlock(rgbData, 0, rgbData.Length, rgbData, 0);
system\security\cryptography\xml\encryptedxml.cs (9)
329Buffer.BlockCopy(cipherValue, 0, IV, 0, IV.Length); 666cipher = enc.TransformFinalBlock(plaintext, 0, plaintext.Length); 678output = new byte[cipher.Length + IV.Length]; 679Buffer.BlockCopy(IV, 0, output, 0, IV.Length); 680Buffer.BlockCopy(cipher, 0, output, IV.Length, cipher.Length); 721lengthIV = decryptionIV.Length; 727output = dec.TransformFinalBlock(cipherValue, lengthIV, cipherValue.Length - lengthIV);
system\security\cryptography\xml\keyinfo.cs (2)
539if ((chain.ChainStatus.Length > 0) && 557if ((chain.ChainStatus.Length > 0) &&
system\security\cryptography\xml\signedxml.cs (5)
901if (!CryptographicEquals(calculatedHash, digestedReference.DigestValue, calculatedHash.Length)) { 923if (a.Length < count || b.Length < count) 1014if (m_signature.SignatureValue.Length != signatureLength / 8) 1020for (int i=0; i<m_signature.SignatureValue.Length; i++) {
system\security\cryptography\xml\SignedXmlDebugLog.cs (3)
198StringBuilder builder = new StringBuilder(bytes.Length * 2); 559readBytes = data.Read(buffer, 0, buffer.Length); 561} while (readBytes == buffer.Length);
system\security\cryptography\xml\symmetrickeywrap.cs (35)
46byte[] rgbWKCKS = new byte[rgbWrappedKeyData.Length + 8]; 51Buffer.BlockCopy(rgbWrappedKeyData, 0, rgbWKCKS, 0, rgbWrappedKeyData.Length); 52Buffer.BlockCopy(rgbCKS, 0, rgbWKCKS, rgbWrappedKeyData.Length, 8); 53byte[] temp1 = enc1.TransformFinalBlock(rgbWKCKS, 0, rgbWKCKS.Length); 54byte[] temp2 = new byte[rgbIV.Length + temp1.Length]; 55Buffer.BlockCopy(rgbIV, 0, temp2, 0, rgbIV.Length); 56Buffer.BlockCopy(temp1, 0, temp2, rgbIV.Length, temp1.Length); 61return enc2.TransformFinalBlock(temp2, 0, temp2.Length); 68if (rgbEncryptedWrappedKeyData.Length != 32 && rgbEncryptedWrappedKeyData.Length != 40 69&& rgbEncryptedWrappedKeyData.Length != 48) 76byte[] temp2 = dec1.TransformFinalBlock(rgbEncryptedWrappedKeyData, 0, rgbEncryptedWrappedKeyData.Length); 81byte[] temp1 = new byte[temp2.Length - rgbIV.Length]; 82Buffer.BlockCopy(temp2, 8, temp1, 0, temp1.Length); 85byte[] rgbWKCKS = dec2.TransformFinalBlock(temp1, 0, temp1.Length); 88byte[] rgbWrappedKeyData = new byte[rgbWKCKS.Length - 8]; 89Buffer.BlockCopy(rgbWKCKS, 0, rgbWrappedKeyData, 0, rgbWrappedKeyData.Length); 92for (int index = rgbWrappedKeyData.Length, index1 = 0; index < rgbWKCKS.Length; index++, index1++) 100int N = rgbWrappedKeyData.Length >> 3; 102if ((rgbWrappedKeyData.Length % 8 != 0) || N <= 0) 116byte[] temp = new byte[s_rgbAES_KW_IV.Length + rgbWrappedKeyData.Length]; 117Buffer.BlockCopy(s_rgbAES_KW_IV, 0, temp, 0, s_rgbAES_KW_IV.Length); 118Buffer.BlockCopy(rgbWrappedKeyData, 0, temp, s_rgbAES_KW_IV.Length, rgbWrappedKeyData.Length); 119return enc.TransformFinalBlock(temp, 0, temp.Length); 125Buffer.BlockCopy(rgbWrappedKeyData, 0, rgbOutput, 8, rgbWrappedKeyData.Length); 149int N = (rgbEncryptedWrappedKeyData.Length >> 3) - 1; 151if ((rgbEncryptedWrappedKeyData.Length % 8 != 0) || N <= 0) 166byte[] temp = dec.TransformFinalBlock(rgbEncryptedWrappedKeyData, 0, rgbEncryptedWrappedKeyData.Length); 178Buffer.BlockCopy(rgbEncryptedWrappedKeyData, 8, rgbOutput, 0, rgbOutput.Length);
system\security\cryptography\xml\transform.cs (5)
259for (int i=0; i<InputTypes.Length; i++) { 634while ((j <buffer.Length) && (!Char.IsWhiteSpace((char) buffer[j]))) j++; 636while (j < buffer.Length) { 886_inputStream.Write(buffer, 0, buffer.Length); 894_inputStream.Write(buffer, 0, buffer.Length);
system\security\cryptography\xml\utils.cs (3)
406while (!attrIsAllowed && expectedAttrNames != null && expectedInd < expectedAttrNames.Length) 845int index = hex.Length; 885for (int index=0; index < stores.Length; index++) {
System.ServiceModel (846)
parent\parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (4)
90if (components.Length < 2 || components.Length > 3) 111for (int i = 1; i < components.Length; i++) 116if (keyValuePair.Length != 2)
System\ServiceModel\Activation\Utility.cs (4)
93if (!ListenerUnsafeNativeMethods.GetTokenInformation(token, tic, tokenInformation, tokenInformation.Length, out lengthNeeded)) 218success = ListenerUnsafeNativeMethods.AdjustTokenPrivileges(token, false, pTP, tokenInformation.Length, IntPtr.Zero, IntPtr.Zero); 253success = ListenerUnsafeNativeMethods.GetKernelObjectSecurity(kernelObject, ListenerUnsafeNativeMethods.DACL_SECURITY_INFORMATION, pSecurityDescriptor, pSecurityDescriptor.Length, out lpnLengthNeeded); 423success = ListenerUnsafeNativeMethods.QueryServiceStatusEx(service, ListenerUnsafeNativeMethods.SC_STATUS_PROCESS_INFO, serviceStatusProcess, serviceStatusProcess.Length, out lpnLengthNeeded);
System\ServiceModel\Administration\ContractInstanceProvider.cs (3)
61for (int j = 0; j < operations.Length; ++j) 94string[] parameterTypes = new string[parameterInfo.Length]; 95for (int i = 0; i < parameterInfo.Length; i++)
System\ServiceModel\Administration\EndpointInstanceProvider.cs (1)
76for (int j = 0; j < bindings.Length; ++j)
System\ServiceModel\Administration\WbemProvider.cs (1)
955for (int i = 0; i < insts.Length; ++i)
System\ServiceModel\Channels\BaseUriWithWildcard.cs (2)
47if (urlParameters.Length != segmentCount) 140for (int i = 0; i < tokens.Length; i++)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (11)
504if (buffer.Length < requiredBufferSize) 1246if (size < buffer2.Length) 1251for (int i = 0; i < buffer2.Length; i++, j++) 1258return buffer2.Length; 1488totalBytesMatched = requestFragment1.Length + messageIDSize + requestFragment2.Length; 1530totalBytesMatched = responseFragment1.Length + messageIDSize + responseFragment2.Length; 1533totalBytesMatched += commonFragment.Length + actionSize; 1550int abandonedSize = totalBytesMatched - bodyFragment.Length; 1555Buffer.BlockCopy(bodyFragment, 0, buffer, offset, bodyFragment.Length);
System\ServiceModel\Channels\BindingElementCollection.cs (2)
34for (int i = 0; i < elements.Length; i++) 67for (int i = 0; i < elements.Length; i++)
System\ServiceModel\Channels\BindingParameterCollection.cs (1)
22for (int i = 0; i < parameters.Length; i++)
System\ServiceModel\Channels\BufferedOutputAsyncStream.cs (4)
732return this.bytes.Length - this.position; 804Fx.Assert(this.position + count <= this.bytes.Length, string.Format(CultureInfo.InvariantCulture, "Chunk is too big to fit in this buffer. Chunk size={0}, free space={1}", count, this.bytes.Length - this.position)); 813Fx.Assert(this.position < this.bytes.Length, "Buffer is full");
System\ServiceModel\Channels\ChainedAsyncResult.cs (2)
146for (int index = 0; index < objs.Length; index++) 181for (int index = 0; index < objs.Length; index++)
System\ServiceModel\Channels\ChannelTracker.cs (3)
92for (int i = 0; i < channels.Length; i++) 102for (int i = 0; i < channels.Length; i++) 136for (int i = 0; i < channels.Length; i++)
System\ServiceModel\Channels\Connection.cs (2)
176: this(innerConnection, initialData, 0, initialData.Length) 943ValidateBufferBounds(buffer.Length, offset, size);
System\ServiceModel\Channels\FramingChannels.cs (16)
67Connection.Write(SessionEncoder.EndBytes, 0, SessionEncoder.EndBytes.Length, true, timeout); 96return this.Connection.BeginWrite(SessionEncoder.EndBytes, 0, SessionEncoder.EndBytes.Length, 208int startSize = ClientDuplexEncoder.ModeBytes.Length + SessionEncoder.CalcStartSize(encodedVia, encodedContentType); 213startSize += ClientDuplexEncoder.PreambleEndBytes.Length; 217Buffer.BlockCopy(ClientDuplexEncoder.ModeBytes, 0, startBytes, 0, ClientDuplexEncoder.ModeBytes.Length); 218SessionEncoder.EncodeStart(startBytes, ClientDuplexEncoder.ModeBytes.Length, encodedVia, encodedContentType); 221Buffer.BlockCopy(ClientDuplexEncoder.PreambleEndBytes, 0, startBytes, preambleEndOffset, ClientDuplexEncoder.PreambleEndBytes.Length); 281ClientDuplexEncoder.PreambleEndBytes.Length, true, timeoutHelper.RemainingTime()); 285int ackBytesRead = connection.Read(ackBuffer, 0, ackBuffer.Length, timeoutHelper.RemainingTime()); 585ClientDuplexEncoder.PreambleEndBytes, 0, ClientDuplexEncoder.PreambleEndBytes.Length, true, 958int size = connection.Read(faultBuffer, offset, faultBuffer.Length, timeoutHelper.RemainingTime()); 981size = connection.Read(faultBuffer, offset, faultBuffer.Length, timeoutHelper.RemainingTime()); 1012connection.Write(encodedUpgrade.EncodedBytes, 0, encodedUpgrade.EncodedBytes.Length, true, timeoutHelper.RemainingTime()); 1016int size = connection.Read(buffer, 0, buffer.Length, timeoutHelper.RemainingTime()); 1237encodedUpgrade.EncodedBytes, 0, encodedUpgrade.EncodedBytes.Length, true, timeoutHelper.RemainingTime(), 1259if (connection.BeginRead(0, ServerSessionEncoder.UpgradeResponseBytes.Length, timeoutHelper.RemainingTime(),
System\ServiceModel\Channels\FramingDecoders.cs (2)
134if (encodedBytes == null || encodedBytes.Length < encodedSize) 179for (int i = 0; i < buffer1.Length; i++)
System\ServiceModel\Channels\FramingEncoders.cs (20)
79(encodedBytes[encodedBytes.Length / 2] << 8) | 80encodedBytes[encodedBytes.Length - 1]; 97if (this.encodedBytes.Length != otherBytes.Length) 100for (int i = 0; i < encodedBytes.Length; i++) 208return via.EncodedBytes.Length + contentType.EncodedBytes.Length; 213Buffer.BlockCopy(via.EncodedBytes, 0, buffer, offset, via.EncodedBytes.Length); 214Buffer.BlockCopy(contentType.EncodedBytes, 0, buffer, offset + via.EncodedBytes.Length, contentType.EncodedBytes.Length); 342return via.EncodedBytes.Length + contentType.EncodedBytes.Length; 347Buffer.BlockCopy(via.EncodedBytes, 0, buffer, offset, via.EncodedBytes.Length); 348Buffer.BlockCopy(contentType.EncodedBytes, 0, buffer, offset + via.EncodedBytes.Length, contentType.EncodedBytes.Length); 378return via.EncodedBytes.Length + contentType.EncodedBytes.Length; 383Buffer.BlockCopy(via.EncodedBytes, 0, buffer, offset, via.EncodedBytes.Length); 384Buffer.BlockCopy(contentType.EncodedBytes, 0, buffer, offset + via.EncodedBytes.Length, contentType.EncodedBytes.Length);
System\ServiceModel\Channels\HttpChannelHelpers.cs (6)
1937return new ArraySegment<byte>(byteArray, 0, byteArray.Length); 3341for (int j = 0; j < values.Length; j++) 3422for (int i = 0; i < assemblies.Length; i++) 3573int bytesRead = responseStream.Read(responseBytes, 0, responseBytes.Length); 4052if (offset >= buffer.Length) 4055SR.GetString(SR.OffsetExceedsBufferBound, buffer.Length - 1)));
System\ServiceModel\Channels\HttpChannelListener.cs (2)
607if (registration.ListenUri.Segments.Length >= this.BaseUri.Segments.Length)
System\ServiceModel\Channels\HttpHeadersWebHeaderCollection.cs (5)
82if (values.Length == 0) 275if (values.Length == 1) 452if ((this.position < 0) || (this.position >= this.keys.Length)) 463if (this.position < (this.keys.Length - 1)) 469this.position = this.keys.Length;
System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (6)
53if (handlers.Length == 0) 58this.handlerCtors = new ConstructorInfo[handlers.Length]; 59for (int cnt = 0; cnt < handlers.Length; cnt++) 216for (int i = 0; i < this.httpMessageHandlers.Length; i++) 264DelegatingHandler[] instances = new DelegatingHandler[this.handlerCtors.Length]; 265for (int cnt = 0; cnt < this.handlerCtors.Length; cnt++)
System\ServiceModel\Channels\HttpRequestContext.cs (1)
217if (data != null && data.Length == 16)
System\ServiceModel\Channels\IdlingCommunicationPool.cs (2)
257for (int i = 0; i < connectionsCopy.Length; i++) 269for (int i = 0; i < connectionsCopy.Length; i++)
System\ServiceModel\Channels\InitialServerConnectionReader.cs (2)
247connection.Write(encodedFault.EncodedBytes, 0, encodedFault.EncodedBytes.Length, true, timeoutHelper.RemainingTime()); 274read = connection.Read(drainBuffer, 0, drainBuffer.Length, timeoutHelper.RemainingTime());
System\ServiceModel\Channels\Message.cs (5)
1855for (int i = 0; i < attributes.Length; i++) 1871for (int i = 0; i < attributes.Length; i++) 1909for (int i = 0; i < attributes.Length; i++) 2132if (count < entries.Length) 2138Array.Copy(entries, 1, entries, 0, entries.Length - 1);
System\ServiceModel\Channels\MessageBuffer.cs (3)
96for (int i = 0; i < understoodHeaders.Length; ++i) 125for (int i = 0; i < this.properties.Length; i++) 154for (int i = 0; i < understoodHeaders.Length; ++i)
System\ServiceModel\Channels\MessageEncoder.cs (1)
56int currentBufferSize = Math.Min(buffer.Length, maxBufferSize);
System\ServiceModel\Channels\MessageHeaders.cs (12)
115Init(collection.version, collection.headers.Length); 146get { return headers.Length <= MaxRecycledArrayLength; } 546if (index < 0 || (index + headerCount) > array.Length) 550SR.GetString(SR.ValueMustBeInRange, 0, array.Length - headerCount))); 639for (int j = 0; j < actors.Length; j++) 645if (actors.Length == 1) 672for (int j = 0; j < actors.Length; j++) 678if (actors.Length == 1) 1126for (int actorIndex = 0; actorIndex < actors.Length; ++actorIndex) 1247if (headerCount == headers.Length) 1249if (headers.Length == 0) 1255Header[] newHeaders = new Header[headers.Length * 2];
System\ServiceModel\Channels\MessageProperties.cs (19)
84return properties == null || properties.Length <= MaxRecycledArrayLength; 190for (int i = 0; i < properties.Length; i++) 253for (int i = 0; i < properties.Length; i++) 320for (int i = 0; i < properties.Length; i++) 356for (int i = 0; i < properties.properties.Length; i++) 394for (int i = 0; i < properties.properties.Length; i++) 427for (int i = 0; i < array.Length; i++) 481for (int i = 0; i < properties.Length; i++) 511for (int i = 0; i < properties.Length; i++) 651for (shiftIndex = index + 1; shiftIndex < properties.Length; shiftIndex++) 703for (newIndex = 0; newIndex < properties.Length; newIndex++) 711if (newIndex == properties.Length) 713Property[] newProperties = new Property[properties.Length * 2]; 714Array.Copy(properties, newProperties, properties.Length); 732if (array.Length < propertyCount) 734if (index < 0 || index > array.Length - propertyCount) 736SR.GetString(SR.ValueMustBeInRange, 0, array.Length - propertyCount))); 752for (int i = 0; i < properties.Length; i++) 822for (int i = 0; i < properties.Length; i++)
System\ServiceModel\Channels\MsmqChannelListenerBase.cs (1)
205if (0 == sid.Length)
System\ServiceModel\Channels\MsmqDecodeHelper.cs (2)
330if ((size + offset) > buffer.Length) 382MemoryStream bodyStream = new MemoryStream(bodyBytes, 0, bodyBytes.Length, false);
System\ServiceModel\Channels\MsmqDiagnostics.cs (2)
246if (UnsafeNativeMethods.PROPID_M_MSGID_SIZE != messageId.Buffer.Length) 247Fx.Assert(String.Format("Unexpected messageId size: {0}", messageId.Buffer.Length));
System\ServiceModel\Channels\MsmqOutputChannel.cs (8)
28this.preamble = DiagnosticUtility.Utility.AllocateByteArray(modeBytes.Length + ClientSingletonSizedEncoder.CalcStartSize(encodedVia, encodedContentType)); 30Buffer.BlockCopy(modeBytes, 0, this.preamble, 0, modeBytes.Length); 31ClientSingletonSizedEncoder.EncodeStart(this.preamble, modeBytes.Length, encodedVia, encodedContentType); 144message, int.MaxValue, this.factory.BufferManager, preamble.Length); 145Buffer.BlockCopy(preamble, 0, messageData.Array, messageData.Offset - preamble.Length, preamble.Length); 148int offset = messageData.Offset - preamble.Length; 149int size = messageData.Count + preamble.Length;
System\ServiceModel\Channels\MsmqOutputSessionChannel.cs (7)
230int startSize = ClientSimplexEncoder.ModeBytes.Length 232+ ClientSimplexEncoder.PreambleEndBytes.Length; 234Buffer.BlockCopy(ClientSimplexEncoder.ModeBytes, 0, startBytes, 0, ClientSimplexEncoder.ModeBytes.Length); 235SessionEncoder.EncodeStart(startBytes, ClientSimplexEncoder.ModeBytes.Length, encodedVia, encodedContentType); 236Buffer.BlockCopy(ClientSimplexEncoder.PreambleEndBytes, 0, startBytes, startSize - ClientSimplexEncoder.PreambleEndBytes.Length, ClientSimplexEncoder.PreambleEndBytes.Length); 243return new ArraySegment<byte>(SessionEncoder.EndBytes, 0, SessionEncoder.EndBytes.Length);
System\ServiceModel\Channels\MtomMessageEncoder.cs (2)
63Encoding[] enc = new Encoding[supported.Length]; 64Array.Copy(supported, enc, supported.Length);
System\ServiceModel\Channels\NativeMsmqMessage.cs (7)
318: this(message, id, buffer.Length) 320System.Buffer.BlockCopy(buffer, 0, this.Buffer, 0, buffer.Length); 349SetBufferReference(buffer, buffer.Length); 389if (this.buffer.Length < length) 403if (value > this.buffer.Length) 478if (length > this.buffer.Length) 531if (pieces.Length != 2)
System\ServiceModel\Channels\PeerIPHelper.cs (3)
78if (addresses.Count != this.localAddresses.Length) 113IPAddress[] cloneArray = new IPAddress[sourceArray.Length]; 114for (int i = 0; i < sourceArray.Length; i++)
System\ServiceModel\Channels\PeerNeighborManager.cs (2)
689if (graceful && neighbors.Length > 0) 731if (neighbors.Length > 0)
System\ServiceModel\Channels\PeerNodeImplementation.cs (1)
1456for (int i = 0; match && i < mfr.filters.Length; i++)
System\ServiceModel\Channels\PeerSecurityHelpers.cs (12)
63tempBuffer = DiagnosticUtility.Utility.AllocateByteArray(checked(message.Length + pwdHash.Length)); 64Array.Copy(pwdHash, tempBuffer, pwdHash.Length); 65Array.Copy(message, 0, tempBuffer, pwdHash.Length, message.Length); 83Array.Clear(buffer, 0, buffer.Length); 96if (hash.Length == authenticator.Length) 98for (int i = 0; i < hash.Length; i++) 472if (this.authenticator != null && that.authenticator != null && this.authenticator.Length == that.authenticator.Length) 474for (int i = 0; i < this.authenticator.Length; i++)
System\ServiceModel\Channels\PeerUnsafeNativeCryptMethods.cs (3)
167AllocateBlob(bytes.Length); 168Marshal.Copy(bytes, 0, (IntPtr)data, bytes.Length); 169cbData = bytes.Length;
System\ServiceModel\Channels\PeerUnsafeNativeMethods.cs (1)
275for (int i = 0; i < addresses.Length; i++)
System\ServiceModel\Channels\PipeConnection.cs (3)
1691for (int i = 0; i < hostChoices.Length; i++) 1693for (int iGlobal = 0; iGlobal < globalChoices.Length; iGlobal++) 2810if (canonicalBytes.Length >= 128)
System\ServiceModel\Channels\PnrpPeerResolver.cs (25)
266if (globalEntry.Addresses.Length > 0 && (availableScope & PnrpResolveScope.Global) != 0) 273if (linkEntries.Length > 0) 277if (entry.Addresses.Length > 0) 285if (siteEntries.Length > 0) 289if (entry.Addresses.Length > 0) 392(guids != null) && (guids.Length <= MaxGuids) && 393(guids.Length >= MinGuids) 573if (parts.Length >= MinGuids && parts.Length <= MaxGuids + 1) 575result = new Guid[parts.Length - 1]; 578for (int i = 1; i < parts.Length; i++) 765EncodeByte(Convert.ToByte(guids.Length), ref i, bytes); 773if (i % 2 != 0 && i < bytes.Length) 1089if (addresses == null || addresses.Length == 0) 1092result = new CsAddrInfoSafe[addresses.Length]; 1366result.dwNumberOfCsAddrs = input.CsAddrInfos.Length; 1446structSize += safeQuerySet.addressList.Length * Marshal.SizeOf(typeof(CsAddrInfoNative)); 1546if (safeQuery.addressList != null && safeQuery.addressList.Length > 0) 1892Fx.Assert(registration.Addresses.Length <= 4, "Pnrp supports only 4 addresses"); 1893registerQuery.CsAddrInfos = new CsAddrInfo[registration.Addresses.Length]; 1894for (int i = 0; i < registration.Addresses.Length; i++) 1951if (PnrpPeerResolver.MaxAddressEntriesV1 < registerQuery.CsAddrInfos.Length) 1954infos.RemoveRange(PnrpPeerResolver.MaxAddressEntriesV1, registerQuery.CsAddrInfos.Length - PnrpPeerResolver.MaxAddressEntriesV1); 2100pnrpRegistration.Addresses = new IPEndPoint[querySet.CsAddrInfos.Length]; 2101for (int i = 0; i < querySet.CsAddrInfos.Length; i++)
System\ServiceModel\Channels\RedirectionException.cs (4)
64else if (locations.Length == 0) 70if (type.InternalType == RedirectionType.InternalRedirectionType.Cache && locations != null && locations.Length > 0) 122if (locations != null && locations.Length > 0) 126for (int i = 0; i < locations.Length; i++)
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (3)
59if (this.currentOperation < this.beginOperations.Length) 105if (this.currentOperation < this.beginOperations.Length) 138while (this.currentOperation < this.beginOperations.Length)
System\ServiceModel\Channels\SequenceRangeCollection.cs (19)
36if (sortedRanges.Length == 0) 40else if (sortedRanges.Length == 1) 52if (sortedRanges.Length == 0) 59if (sortedRanges.Length == 1) 89if (lowerBound == sortedRanges.Length) 91SequenceRange[] returnedRanges = new SequenceRange[sortedRanges.Length + 1]; 92Array.Copy(sortedRanges, returnedRanges, sortedRanges.Length); 93returnedRanges[sortedRanges.Length] = range; 100if (sortedRanges.Length == 1) 127if ((upperBound == sortedRanges.Length) || (sortedRanges[upperBound].Lower != range.Upper + 1)) 134SequenceRange[] returnedRanges = new SequenceRange[sortedRanges.Length + 1]; 135Array.Copy(sortedRanges, 0, returnedRanges, 1, sortedRanges.Length); 145int rangesRemaining = sortedRanges.Length - rangesRemoved + 1; 155Array.Copy(sortedRanges, upperBound + 1, returnedRanges, lowerBound + 1, sortedRanges.Length - upperBound - 1); 224if (index < 0 || index >= ranges.Length) 226SR.GetString(SR.ValueMustBeInRange, 0, ranges.Length - 1))); 235return this.ranges.Length; 241if (this.ranges.Length == 0) 245else if (this.ranges.Length == 1)
System\ServiceModel\Channels\ServiceChannelProxy.cs (7)
67return CreateReturnMessage(ret, returnArgs, returnArgs.Length, SetActivityIdInLogicalCallContext(methodCall.LogicalCallContext), methodCall); 382args.Length, 433for (int i = 0; i < methodDatas.Length; i++) 455for (int i = 0; i < this.methodDatas.Length; i++) 463MethodData[] newMethodDatas = new MethodData[methodDatas.Length * 2]; 464Array.Copy(methodDatas, newMethodDatas, methodDatas.Length); 465newMethodDatas[methodDatas.Length] = methodData;
System\ServiceModel\Channels\SessionConnectionReader.cs (12)
158if (Connection.BeginRead(0, connectionBuffer.Length, GetRemainingTimeout(), readCallback, this) 429size = Connection.Read(connectionBuffer, 0, connectionBuffer.Length, timeoutHelper.RemainingTime()); 445Connection.Write(ServerSessionEncoder.UpgradeResponseBytes, 0, ServerSessionEncoder.UpgradeResponseBytes.Length, true, timeoutHelper.RemainingTime()); 481ServerSessionEncoder.AckResponseBytes.Length, true, timeoutHelper.RemainingTime()); 721if (channel.Connection.BeginRead(0, channel.connectionBuffer.Length, timeoutHelper.RemainingTime(), 745ServerSessionEncoder.UpgradeResponseBytes, 0, ServerSessionEncoder.UpgradeResponseBytes.Length, 770ServerSessionEncoder.AckResponseBytes.Length, true, timeoutHelper.RemainingTime(), 1251connection.BeginRead(0, buffer.Length, readTimeoutHelper.RemainingTime(), onAsyncReadComplete, null); 1323(EnvelopeSize - EnvelopeOffset) >= buffer.Length) 1325bytesRead = connection.Read(EnvelopeBuffer, EnvelopeOffset, buffer.Length, timeoutHelper.RemainingTime()); 1330bytesRead = connection.Read(buffer, 0, buffer.Length, timeoutHelper.RemainingTime()); 1461if (connection.BeginRead(0, buffer.Length, this.readTimeoutHelper.RemainingTime(),
System\ServiceModel\Channels\SingletonConnectionReader.cs (23)
129if (Connection.BeginRead(0, connectionBuffer.Length, GetRemainingTimeout(), 418return this.currentConnection.BeginRead(0, this.ConnectionBuffer.Length, timeoutHelper.RemainingTime(), onReadCompleted, this) == AsyncCompletionResult.Completed; 489if (this.currentConnection.BeginWrite(ServerSingletonEncoder.UpgradeResponseBytes, 0, ServerSingletonEncoder.UpgradeResponseBytes.Length, 561if (this.currentConnection.BeginWrite(ServerSessionEncoder.AckResponseBytes, 0, ServerSessionEncoder.AckResponseBytes.Length, 1011this.Connection.Write(SingletonEncoder.EndBytes, 0, SingletonEncoder.EndBytes.Length, true, timeoutHelper.RemainingTime()); 1134int bytesRead = this.inputStream.Read(dummy, 0, dummy.Length); 1214size = connection.Read(buffer, 0, buffer.Length, timeoutHelper.RemainingTime()); 1433Fx.Assert(size <= this.chunkBuffer.Length, ""); 1545this.chunkBufferSize = ReadCore(this.chunkBuffer, 0, this.chunkBuffer.Length); 1633connection.Write(envelopeStartBytes, 0, envelopeStartBytes.Length, false, timeoutHelper.RemainingTime()); 1641int.MaxValue, settings.BufferManager, envelopeStartBytes.Length + IntEncoder.MaxEncodedSize); 1643Buffer.BlockCopy(envelopeStartBytes, 0, messageData.Array, messageData.Offset - envelopeStartBytes.Length, 1644envelopeStartBytes.Length); 1645connection.Write(messageData.Array, messageData.Offset - envelopeStartBytes.Length, 1646messageData.Count + envelopeStartBytes.Length, true, timeoutHelper.RemainingTime(), settings.BufferManager); 1656connection.Write(endBytes, 0, endBytes.Length, 1773AsyncCompletionResult writeStartBytesResult = connection.BeginWrite(envelopeStartBytes, 0, envelopeStartBytes.Length, true, 1788int.MaxValue, this.bufferManager, envelopeStartBytes.Length + IntEncoder.MaxEncodedSize); 1791Buffer.BlockCopy(envelopeStartBytes, 0, messageData.Array, messageData.Offset - envelopeStartBytes.Length, 1792envelopeStartBytes.Length); 1799connection.BeginWrite(messageData.Array, messageData.Offset - envelopeStartBytes.Length, 1800messageData.Count + envelopeStartBytes.Length, true, timeoutHelper.RemainingTime(), 1862endBytes.Length, true, timeoutHelper.RemainingTime(), onWriteEndBytes, this);
System\ServiceModel\Channels\SocketConnection.cs (6)
91this.asyncReadBufferSize = this.readBuffer.Length; 1529this.asyncReadEventArgs.SetBuffer(this.readBuffer, 0, this.readBuffer.Length); 1649if (hostEntry.AddressList.Length == 0) 1678invalidAddressCount, addresses.Length, addressStringBuilder.ToString()), innerException)); 1702for (int i = 0; i < addresses.Length; i++) 1857while (currentIndex < addresses.Length)
System\ServiceModel\Channels\StreamedFramingRequestChannel.cs (10)
59int startSize = ClientSingletonEncoder.ModeBytes.Length + ClientSingletonEncoder.CalcStartSize(encodedVia, encodedContentType); 64startSize += ClientDuplexEncoder.PreambleEndBytes.Length; 67Buffer.BlockCopy(ClientSingletonEncoder.ModeBytes, 0, startBytes, 0, ClientSingletonEncoder.ModeBytes.Length); 68ClientSingletonEncoder.EncodeStart(this.startBytes, ClientSingletonEncoder.ModeBytes.Length, encodedVia, encodedContentType); 71Buffer.BlockCopy(ClientSingletonEncoder.PreambleEndBytes, 0, startBytes, preambleEndOffset, ClientSingletonEncoder.PreambleEndBytes.Length); 91connection.Write(Preamble, 0, Preamble.Length, true, timeoutHelper.RemainingTime()); 113ClientSingletonEncoder.PreambleEndBytes.Length, true, timeoutHelper.RemainingTime()); 122int ackBytesRead = connection.Read(ackBuffer, 0, ackBuffer.Length, timeoutHelper.RemainingTime()); 223AsyncCompletionResult writePreambleResult = connection.BeginWrite(channel.Preamble, 0, channel.Preamble.Length, 290ClientSingletonEncoder.PreambleEndBytes, 0, ClientSingletonEncoder.PreambleEndBytes.Length, true,
System\ServiceModel\Channels\TextMessageEncoder.cs (5)
54Encoding[] enc = new Encoding[supported.Length]; 55Array.Copy(supported, enc, supported.Length); 99ContentEncoding[] map = new ContentEncoding[readEncodings.Length]; 100for (int i = 0; i < readEncodings.Length; i++) 118for (int i = 0; i < contentMap.Length; i++)
System\ServiceModel\Channels\TransportDefaults.cs (4)
73for (int i = 0; i < supportedEncodings.Length; i++) 85for (int i = 0; i < charSetEncodings.Length; i++) 102for (int i = 0; i < charSetEncodings.Length; i++) 112for (int i = 0; i < charSetEncodings.Length; i++)
System\ServiceModel\Channels\UriPrefixTable.cs (5)
177if (path.Length == 0) 196for (int i = 0; i < path.Length; ++i) 206exactMatch = (i == path.Length - 1); 219for (int i = 0; i < path.Length; ++i) 505if (seg == path.Length)
System\ServiceModel\Channels\WebSocketHelper.cs (2)
142for (int i = 0; i < parsedTokens.Length; i++) 172for (int i = 0; i < chars.Length; i++)
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (4)
664new ArraySegment<byte>(internalBuffer, receivedByteCount, internalBuffer.Length - receivedByteCount), 674if (receivedByteCount >= internalBuffer.Length && !result.EndOfMessage) 676if (internalBuffer.Length >= this.maxBufferSize) 682int newSize = (int)Math.Min(((double)internalBuffer.Length) * 2, this.maxBufferSize);
System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
128if (value.Split(WebSocketHelper.ProtocolSeparators).Length > 1)
System\ServiceModel\ClientBase.cs (11)
1130object[] inArgs = new object[args.Length + 2]; 1131Array.Copy(args, inArgs, args.Length); 1132inArgs[inArgs.Length - 2] = callback; 1133inArgs[inArgs.Length - 1] = state; 1146object[] inArgs = new object[args.Length + 1]; 1147Array.Copy(args, inArgs, args.Length); 1148inArgs[inArgs.Length - 1] = result; 1158Fx.Assert(retArgs.Length == inArgs.Length, "retArgs.Length should be equal to inArgs.Length"); 1159Array.Copy(retArgs, args, args.Length); 1444get { return this.args.Length; }
System\ServiceModel\ComIntegration\ComIntegrationManifestGenerator.cs (2)
42for (int i = 0; i < manifests.Length; i++) 175s.Write(bytes, 0, bytes.Length);
System\ServiceModel\ComIntegration\ComPlusInstanceContextInitializer.cs (1)
191if (types.Length > 0)
System\ServiceModel\ComIntegration\ComPlusTypeLoader.cs (1)
301for (int index = 0; index < parameters.Length; index++)
System\ServiceModel\ComIntegration\DispatchProxy.cs (9)
265if (inCount != ins.Length) 297bool[] filled = new bool[outs.Length]; 298for (UInt32 index = 0; index < filled.Length; index++) 327Array arrDest = Array.CreateInstance(typeof(object), arr.Length); 432Array arr = Array.CreateInstance(type.GetElementType(), objects.Length); 434if (objects.Length == 0) 455for (int i = 0; i < objects.Length; i++) 467for (int i = 0; i < objects.Length; i++) 516Array arrDest = Array.CreateInstance(typeof(object), arr.Length);
System\ServiceModel\ComIntegration\DllHostInitializer.cs (1)
119if (serviceParams.Length != 2)
System\ServiceModel\ComIntegration\EmitterCache.cs (2)
56Type[] typeArray = new Type[parameters.Length]; 58for (; index < parameters.Length; index++)
System\ServiceModel\ComIntegration\PersistStreamTypeWrapper.cs (2)
99SafeHGlobalHandle hGlobal = SafeHGlobalHandle.AllocHGlobal(byteStream.Length); 106Marshal.Copy(byteStream, 0, pBuff, byteStream.Length);
System\ServiceModel\ComIntegration\TypeCacheManager.cs (1)
244if (attrs.Length == 0)
System\ServiceModel\ComIntegration\WebHostedComPlusServiceHost.cs (2)
23if (parameters.Length != 2) 99if (serviceParams.Length != 2)
System\ServiceModel\Configuration\ServiceModelConfigurationElementCollection.cs (2)
137if (start < 0 || start >= array.Length) 140array.Length - 1,
System\ServiceModel\Configuration\ServiceModelExtensionCollectionElement.cs (3)
280if (start < 0 || start >= elements.Length) 284elements.Length - 1, 295if ((copiedElement != null) && (start < elements.Length))
System\ServiceModel\Configuration\StandardRuntimeFlagEnumValidator.cs (1)
35if (!StandardRuntimeFlagEnumValidatorAttribute.IsCombinedValue(combinedValue, values, values.Length - 1))
System\ServiceModel\Configuration\StandardRuntimeFlagEnumValidatorAttribute.cs (3)
45bool hasFlags = value.GetCustomAttributes(typeof(FlagsAttribute), true).Length > 0; 54values.Length > 0) 56for (int i = 0; i < values.Length; i++)
System\ServiceModel\Description\ClientClassGenerator.cs (7)
174if (!(ClientCtorParamNames.Length == ClientCtorParamTypes.Length)) 180for (int i = 0; i < ClientCtorParamNames.Length; i++) 182if (!(ClientCtorParamNames[i].Length == ClientCtorParamTypes[i].Length)) 195for (int j = 0; j < ClientCtorParamNames[i].Length; j++) 532for (int i = 0; i < EventArgsCtorParamTypes.Length; i++)
System\ServiceModel\Description\DispatcherBuilder.cs (3)
401for (int i = 0; i < supportedChannels.Length; i++) 474for (int i = 0; i < supportedChannels.Length; i++) 1142for (int i = 0; i < supportedChannels.Length; i++)
System\ServiceModel\Description\ImportedPolicyConversionContext.cs (2)
285for (currentDigit = 0; currentDigit < digits.Length && !digits[currentDigit].Value.MoveNext(); currentDigit++) 295if (currentDigit == digits.Length)
System\ServiceModel\Description\MessageContractExporter.cs (1)
610if (wsdlOperation.ParameterOrder.Length == 0)
System\ServiceModel\Description\MessageContractImporter.cs (3)
740if (parts.Length > 0) 748for (; partIndex < parts.Length; partIndex++) 1328for (int i = 0; i < messageParts.Length; i++)
System\ServiceModel\Description\MetadataExchangeClient.cs (1)
1359for (int i = 0; i < supportedEncodings.Length; i++)
System\ServiceModel\Description\ServiceContractGenerator.cs (1)
704for (int i = 0; i < xHeaders.Length; i++)
System\ServiceModel\Description\ServiceReflector.cs (15)
56for (int i = 0; i < args.Length; ++i) 501if (attrs.Length == 0) 517if (attrs.Length == 0) 521else if (attrs.Length > 1) 585if (attrs != null && attrs.Length > 0) 749int len = parameters.Length; 785int len = parameters.Length; 819int len = parameters.Length; 842if (endMethods.Length == 0) 846if (endMethods.Length > 1) 876parameters.Length < 2 || 877parameters[parameters.Length - 2].ParameterType != asyncCallbackType || 878parameters[parameters.Length - 1].ParameterType != objectType || 936parameters.Length < 1 || 937parameters[parameters.Length - 1].ParameterType != asyncResultType)
System\ServiceModel\Description\TypeLoader.cs (23)
320for (int i = 0; i < ifaceAttributes.Length; i++) 377if (knownTypeAttributes.Length == 1) 401for (int i = 0; i < knownTypeAttributes.Length; ++i) 477for (int k = 0; k < methodAttributes.Length; k++) 634if (attrs.Length != 0) 926if (opAttr.IsOneWay && methodAttributes.Length > 0) 931for (int i = 0; i < methodAttributes.Length; i++) 1083if (parameters.Length == 1 && parameters[0].ParameterType.IsDefined(typeof(MessageContractAttribute), false)) 1110if (responseType.IsDefined(typeof(MessageContractAttribute), false) && parameters.Length == 0) 1178for (int index = 0; index < parameters.Length; index++) 1507if (partDescriptions.Length > 1) 1554if (this.syncInputs.Length != this.asyncInputs.Length || this.syncOutputs.Length != this.asyncOutputs.Length) 1568for (int i = 0; i < this.syncInputs.Length; i++) 1585for (int i = 0; i < this.syncOutputs.Length; i++) 1696if (this.syncInputs.Length != this.taskInputs.Length) 1709for (int i = 0; i < this.syncInputs.Length; i++) 1814if (this.taskInputs.Length != this.asyncInputs.Length) 1828for (int i = 0; i < this.taskInputs.Length; i++)
System\ServiceModel\Description\WsdlExporter.cs (4)
972if (!(scopes.Length > 0)) 986for (int j = 0; j < scopes.Length; j++) 1154originalAttributeCount = originalAttributes.Length; 1161attributes[attributes.Length - 1] = newAttribute;
System\ServiceModel\Description\WsdlImporter.cs (6)
823if (xfeAttributes.Length > 0) 1038if (attributes != null && attributes.Length > 0) 1383if (attributes != null && attributes.Length > 0) 1392i = attributes.Length; 1421if (attributes != null && attributes.Length > 0) 2159if (attributes != null && attributes.Length > 0)
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
595Array.Copy(members, newMembers, newMembers.Length);
System\ServiceModel\Dispatcher\ActionMessageFilter.cs (2)
46if (actions.Length == 0) 52for (int i = 0; i < actions.Length; ++i)
System\ServiceModel\Dispatcher\ActionMessageFilterTable.cs (1)
76for (int i = 0; i < value.Length; ++i)
System\ServiceModel\Dispatcher\AsyncMethodInvoker.cs (2)
99else if (inputs.Length != this.InputParameterCount) 100throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxInputParametersToServiceInvalid, this.InputParameterCount, inputs.Length)));
System\ServiceModel\Dispatcher\CodeGenerator.cs (3)
123Type[] paramTypes = new Type[parameters.Length]; 124for (int i = 0; i < parameters.Length; i++) 149for (int i = 0; i < argTypes.Length; i++)
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (6)
173if (headerParts == null || headerParts.Length == 0) 176for (int i = 0; i < headerParts.Length; i++) 236for (int i = 0; i < parts.Length; i++) 309multipleHeaderValues = new KeyValuePair<Type, ArrayList>[parameters.Length]; 339for (int i = 0; i < parameters.Length; i++) 409for (int i = nextPartIndex; i < parts.Length; i++)
System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (8)
329if (this.CallContextInitializers.Length > 0) 342for (int i = 0; i < rpc.Operation.CallContextInitializers.Length; i++) 364if (this.CallContextInitializers.Length > 0) 377for (int i = this.CallContextInitializers.Length - 1; i >= 0; i--) 392if (this.ParameterInspectors.Length > 0) 408for (int i = 0; i < this.ParameterInspectors.Length; i++) 431if (this.ParameterInspectors.Length > 0) 447for (int i = this.ParameterInspectors.Length - 1; i >= 0; i--)
System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (2)
222bool hadRequests = array != null && array.Length > 0; 611if (array != null && array.Length > 0)
System\ServiceModel\Dispatcher\EndpointAddressMessageFilter.cs (2)
230Array.Resize(ref bits, bits.Length + 1); 231bits[bits.Length - 1] = new HeaderBit(nextBit++);
System\ServiceModel\Dispatcher\EndpointAddressMessageFilterTable.cs (8)
214if (bits.Length < item.Value.Length) 216int old = bits.Length; 217Array.Resize(ref bits, item.Value.Length); 218for (int i = old; i < item.Value.Length; ++i) 227bits = new HeaderBit[item.Value.Length]; 228for (int i = 0; i < item.Value.Length; ++i) 235for (int i = 0; i < item.Value.Length; ++i)
System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (9)
178if (this.resultData.Length == length) 180Array.Clear(this.resultData, 0, this.resultData.Length); 220if (bits.Length == 1) 227for (int i = 0; i < bits.Length; ++i) 240Fx.Assert(this.resultData.Length == exact.Length, ""); 243for (int i = 0; i < exact.Length; ++i) 262for (int i = 0; i < mask.Length; ++i) 326else if (mask.Length <= this.index)
System\ServiceModel\Dispatcher\ErrorBehavior.cs (2)
127for (int i = 0; i < this.handlers.Length; i++) 199for (int i = 0; i < this.handlers.Length; i++)
System\ServiceModel\Dispatcher\FaultFormatter.cs (3)
24for (int i = 0; i < detailTypes.Length; i++) 76for (int i = 0; i < faultContractInfos.Length; i++) 101for (int i = 0; i < faultContractInfos.Length; i++)
System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (6)
55this.correlationCount = this.messageInspectors.Length + behavior.MaxParameterInspectors; 65get { return this.messageInspectors.Length; } 106for (int i = 0; i < this.messageInspectors.Length; i++) 151for (int i = 0; i < this.messageInspectors.Length; i++) 216for (int i = 0; i < this.channelInitializers.Length; ++i) 328while (++this.index < initializers.Length)
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (9)
149get { return this.messageInspectors.Length; } 238if (this.messageInspectors.Length > 0) 255for (int i = 0; i < this.messageInspectors.Length; i++) 290if (this.messageInspectors.Length > 0) 306for (int i = 0; i < this.messageInspectors.Length; i++) 628if (this.inputSessionShutdownHandlers.Length > 0) 643for (int i = 0; i < handlers.Length; i++) 669if (this.inputSessionShutdownHandlers.Length > 0) 684for (int i = 0; i < handlers.Length; i++)
System\ServiceModel\Dispatcher\InstanceBehavior.cs (1)
269for (int i = 0; i < this.initializers.Length; i++)
System\ServiceModel\Dispatcher\InstanceContextManager.cs (9)
80for (int index = 0; index < instances.Length; index++) 124for (int index = 0; index < instances.Length; index++) 169this.InitItems(existingItems.Length * 2); 170for (int i = 1; i < existingItems.Length; i++) 192for (int index = 0; index < instances.Length; index++) 249for (int i = 1; i < this.items.Length; i++) 258for (int i = 1; i < this.items.Length; i++) 292count = instances.Length; 299for (int index = 0; index < instances.Length; index++)
System\ServiceModel\Dispatcher\InvokerUtil.cs (8)
150LocalBuilder[] parameterLocals = new LocalBuilder[parameters.Length]; 196LocalBuilder[] parameterLocals = new LocalBuilder[parameters.Length - 2]; 242LocalBuilder[] parameterLocals = new LocalBuilder[parameters.Length - 1]; 258for (int i = 0; i < parameterLocals.Length; i++) 267for (int i = 0; i < parameterLocals.Length; i++) 296for (int i = 0; i < parameterLocals.Length; i++) 319for (int i = 0; i < parameterLocals.Length; i++) 341for (int i = 0; i < parameterLocals.Length; i++)
System\ServiceModel\Dispatcher\ListenerHandler.cs (3)
280for (int index = 0; index < channels.Length; index++) 494for (int index = 0; index < channels.Length; index++) 542for (int index = 0; index < channels.Length; index++)
System\ServiceModel\Dispatcher\MessageFilterTable.cs (1)
106for (int i = 0; i < value.Length; ++i)
System\ServiceModel\Dispatcher\MessageOperationFormatter.cs (4)
31if (parameters != null && parameters.Length > 0) 43if (parameters.Length != 1) 64if (parameters != null && parameters.Length > 0) 74if (parameters.Length != 1 || !(parameters[0] is Message))
System\ServiceModel\Dispatcher\OperationFormatter.cs (3)
616for (int i = 0; i < this.members.Length; i++) 624for (int i = 0; i < this.members.Length; i++) 632get { return this.members.Length; }
System\ServiceModel\Dispatcher\PartialTrustValidationBehavior.cs (2)
146for (int i = 0; i < unsupportedBindings.Length; i++) 156for (int i = 0; i < unsupportedBindingElements.Length; i++)
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (18)
561if (parts.Length != parameters.Length) 563new ArgumentException(SR.GetString(SR.SFxParameterCountMismatch, "parts", parts.Length, "parameters", parameters.Length), "parameters")); 568for (int i = nextPartIndex; i < parts.Length; i++) 627if (parts.Length != parameters.Length) 629new ArgumentException(SR.GetString(SR.SFxParameterCountMismatch, "parts", parts.Length, "parameters", parameters.Length), "parameters")); 632for (int i = 0; i < parts.Length; i++) 856writer.WriteBase64(arrayValue, 0, arrayValue.Length); 862writer.WriteArray(null, itemName, itemNamespace, arrayValue, 0, arrayValue.Length); 868writer.WriteArray(null, itemName, itemNamespace, arrayValue, 0, arrayValue.Length); 874writer.WriteArray(null, itemName, itemNamespace, arrayValue, 0, arrayValue.Length); 880writer.WriteArray(null, itemName, itemNamespace, arrayValue, 0, arrayValue.Length); 886writer.WriteArray(null, itemName, itemNamespace, arrayValue, 0, arrayValue.Length); 892writer.WriteArray(null, itemName, itemNamespace, arrayValue, 0, arrayValue.Length); 898writer.WriteArray(null, itemName, itemNamespace, arrayValue, 0, arrayValue.Length);
System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (11)
208for (int i = parameterInspectors.Length - 1; i >= 0; i--) 266for (int i = 0; i < parameterInspectors.Length; i++) 378if (this.outParams.Length == 0) 384outs = new object[this.outParams.Length]; 386if (this.inParams.Length == 0) 395if (this.inParams.Length == 0) 401ins = new object[this.inParams.Length]; 405for (int i = 0; i < ins.Length; i++) 418outs = new object[this.endOutParams.Length]; 442if (parameters.Length == 0) 448for (int i = 0; i < parameters.Length; i++)
System\ServiceModel\Dispatcher\QueryBranchOp.cs (5)
546QueryBranch[] branches = new QueryBranch[this.branches.Length + 1]; 547Array.Copy(this.branches, branches, this.branches.Length); 590if (this.count == this.branches.Length) 631if (this.count < this.branches.Length) 638for (int i = 0; i < this.branches.Length; ++i)
System\ServiceModel\Dispatcher\QueryFunctions.cs (3)
293|| this.paramTypes.Length != args.Count 299return (this.paramTypes.Length == args.Count); 450for (int i = 0; i < XPathFunctionLibrary.functionTable.Length; ++i)
System\ServiceModel\Dispatcher\QueryNode.cs (16)
648Fx.Assert(this.items.Length > 0, ""); 649if (this.count == this.items.Length) 651this.Grow(this.items.Length * 2); 659Fx.Assert(this.items.Length > 0, ""); 660if (this.count == this.items.Length) 662this.Grow(this.items.Length * 2); 671Fx.Assert(this.items.Length > 0, ""); 672if (this.count == this.items.Length) 674this.Grow(this.items.Length * 2); 683Fx.Assert(this.items.Length > 0, ""); 684if (this.count == this.items.Length) 686this.Grow(this.items.Length * 2); 695Fx.Assert(this.items.Length > 0, ""); 696if (this.count == this.items.Length) 698this.Grow(this.items.Length * 2); 842Array.Copy(this.items, newItems, this.items.Length);
System\ServiceModel\Dispatcher\QueryProcessor.cs (2)
749int varCount = vars.Length; 777Array.Clear(vars, 0, vars.Length);
System\ServiceModel\Dispatcher\QueryUtil.cs (11)
228if (this.count == this.buffer.Length) 262if (newCount >= this.buffer.Length) 323if (addCount > this.buffer.Length) 337if (this.buffer.Length == 0) 373int newCapacity = this.buffer.Length * 2; 430if (newCount >= this.buffer.Length) 451if (newCount >= this.buffer.Length) 461if (newCount >= this.buffer.Length) 521if (this.count < this.buffer.Length) 578if (value != this.buffer.Length) 705else if (this.buffer.Length == this.size)
System\ServiceModel\Dispatcher\QuotaThrottle.cs (2)
133this.limit -= released.Length; 173for (int i = 0; i < released.Length; i++)
System\ServiceModel\Dispatcher\SecurityValidationBehavior.cs (1)
772for (int i = 0; i < allowedInclusionModes.Length; ++i)
System\ServiceModel\Dispatcher\SeekableMessageNavigator.cs (5)
1159if (this.nodes == null || this.nodes.Length < minSize) 1862if (this.nextFreeIndex == this.nodes.Length) 1866if (this.nodes.Length <= StretchMax) 1868size = this.nodes.Length * GrowFactor; 1872size = this.nodes.Length + GrowInc;
System\ServiceModel\Dispatcher\StreamFormatter.cs (1)
247if (buffer.Length - offset < count)
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (2)
91else if (inputs.Length != this.inputParameterCount) 92throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxInputParametersToServiceInvalid, this.inputParameterCount, inputs.Length)));
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (2)
190else if (inputs.Length != this.inputParameterCount) 192throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxInputParametersToServiceInvalid, this.inputParameterCount, inputs.Length)));
System\ServiceModel\Dispatcher\XmlSerializerObjectSerializer.cs (1)
100if (deserializedObjects != null && deserializedObjects.Length > 0)
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (7)
79messageHeaderOfTHelper = new MessageHeaderOfTHelper(parameters.Length); 193messageHeaderOfTHelper = new MessageHeaderOfTHelper(parameters.Length); 446MessageHeader<object>[] messageHeaderOfTAttributes = new MessageHeader<object>[messageHeaderOfTArray.Length]; 447Array tArray = Array.CreateInstance(headerDescription.Type, messageHeaderOfTArray.Length); 448for (int i = 0; i < tArray.Length; i++) 471for (int i = 0; i < messageHeaderOfTAttributes.Length; i++) 509for (int i = 0; i < messageHeaderOfTArray.Length; i++)
System\ServiceModel\Dispatcher\XPathMessageContext.cs (3)
167for (int i = 0; i < functions.Length; ++i) 172if (argTypes.Length <= fun.Maxargs && argTypes.Length >= fun.Minargs)
System\ServiceModel\Dispatcher\XPathMessageFilterTable.cs (2)
103Init(value.Length); 105for (int i = 0; i < value.Length; ++i)
System\ServiceModel\Dispatcher\XPathParser.cs (1)
416for (int i = 0; i < this.functionLibraries.Length; ++i)
System\ServiceModel\EndpointAddress.cs (1)
171if (headers == null || headers.Length == 0)
System\ServiceModel\FaultException.cs (4)
302for (int i = nodes.Length - 1; i >= 0; i--) 314for (int i = 0; i < array.Length; i++) 351FaultReasonText[] reasons = new FaultReasonText[nodes.Length]; 353for (int i = 0; i < nodes.Length; i++)
System\ServiceModel\MsmqIntegration\ActiveXSerializer.cs (8)
28if (null == this.byteBuffer || size > this.byteBuffer.Length) 34if (null == this.charBuffer || size > this.charBuffer.Length) 64size = bytes.Length; 83size = bytes.Length / 2; 101newBytes = new byte[bytes.Length]; 102Array.Copy(bytes, newBytes, bytes.Length); 266stream.Write(bytes, 0, bytes.Length); 272int size = chars.Length * 2;
System\ServiceModel\MsmqIntegration\MsmqIntegrationChannelFactory.cs (1)
158stream.Write(byteArray, 0, byteArray.Length);
System\ServiceModel\OperationContractAttribute.cs (1)
133|| methodInfo.GetParameters().Length > 0)
System\ServiceModel\Pool.cs (1)
38if (count < items.Length)
System\ServiceModel\Security\BinaryNegotiation.cs (1)
71writer.WriteBase64(this.negotiationData, 0, this.negotiationData.Length);
System\ServiceModel\Security\CryptoHelper.cs (19)
140if (count < 0 || count > cipherText.Length) 142throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.ValueMustBeInRange, 0, cipherText.Length))); 145if (offset < 0 || offset > cipherText.Length - count) 147throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.ValueMustBeInRange, 0, cipherText.Length - count))); 152Buffer.BlockCopy(cipherText, offset, iv, 0, iv.Length); 159return decrTransform.TransformFinalBlock(cipherText, offset + iv.Length, count - iv.Length); 234byte[] output = DiagnosticUtility.Utility.AllocateByteArray(checked(iv.Length + cipherText.Length)); 235Buffer.BlockCopy(iv, 0, output, 0, iv.Length); 236Buffer.BlockCopy(cipherText, 0, output, iv.Length, cipherText.Length); 255if (a == null || b == null || a.Length != b.Length) 260for (int i = 0; i < a.Length; i++) 335if (count < 0 || count > buffer.Length) 337throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", SR.GetString(SR.ValueMustBeInRange, 0, buffer.Length))); 339if (offset < 0 || offset > buffer.Length - count) 341throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", SR.GetString(SR.ValueMustBeInRange, 0, buffer.Length - count)));
System\ServiceModel\Security\DataProtectionSecurityStateEncoder.cs (5)
34this.entropy = DiagnosticUtility.Utility.AllocateByteArray(entropy.Length); 35Buffer.BlockCopy(entropy, 0, this.entropy, 0, entropy.Length); 52result = DiagnosticUtility.Utility.AllocateByteArray(this.entropy.Length); 53Buffer.BlockCopy(this.entropy, 0, result, 0, this.entropy.Length); 63result.AppendFormat("{0} Entropy Length={1}", Environment.NewLine, (this.entropy == null) ? 0 : this.entropy.Length);
System\ServiceModel\Security\DerivedKeyCachingSecurityTokenSerializer.cs (2)
100this.indexToCache = (++this.indexToCache) % this.cachedTokens.Length; 179for (int i = 0; i < this.cachedTokens.Length; ++i)
System\ServiceModel\Security\EncryptedData.cs (3)
64this.decryptedBuffer = CryptoHelper.ExtractIVAndDecrypt(this.algorithm, this.cipherText, 0, this.cipherText.Length); 99writer.WriteBase64(this.iv, 0, this.iv.Length); 100writer.WriteBase64(this.cipherText, 0, this.cipherText.Length);
System\ServiceModel\Security\InfoCardHelper.cs (5)
143infocardChain = new CardSpacePolicyElement[policyChain.Length]; 144for (int i = 0; i < policyChain.Length; i++) 255if (0 == chain.Length) 261int n = chain.Length - 1; 268if (1 == chain.Length)
System\ServiceModel\Security\InMemoryNonceCache.cs (4)
69if (nonce.Length < minimumNonceLength) 79if (nonce.Length < minimumNonceLength) 121int length1 = nonce1.Length; 123int length2 = nonce2.Length;
System\ServiceModel\Security\IssuedTokensHeader.cs (1)
209for (int j = 0; j < actors.Length; ++j)
System\ServiceModel\Security\MessagePartSpecification.cs (3)
173if (headerTypes != null && headerTypes.Length > 0) 175this.headerTypes = new List<XmlQualifiedName>(headerTypes.Length); 176for (int i = 0; i < headerTypes.Length; i++)
System\ServiceModel\Security\MessageSecurityProtocol.cs (6)
259for (int i = 0; i < correlationStates.Length; ++i) 362if (correlationState == null || correlationState.Length == 0) 366else if (correlationState.Length == 1 && correlationState[0] == null) 463for (int i = 0; i < correlationStates.Length; ++i) 506for (k = 0; k < matchingSigIndexes.Length; ++k) 513if (k == matchingSigIndexes.Length)
System\ServiceModel\Security\ReceiveSecurityHeader.cs (1)
597for (int i = 0; i < attributes.Length; ++i)
System\ServiceModel\Security\ReceiveSecurityHeaderElementManager.cs (5)
149if (this.count == this.elements.Length) 151ReceiveSecurityHeaderEntry[] newElements = new ReceiveSecurityHeaderEntry[this.elements.Length * 2]; 366VerifyIdUniquenessInMessageHeadersAndBody(id, this.headerIds.Length); 376VerifyIdUniquenessInMessageHeadersAndBody(id, this.headerIds.Length); 389this.predecryptionHeaderIds = new string[headerIds.Length];
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (4)
569this.authenticator = DiagnosticUtility.Utility.AllocateByteArray(authenticator.Length); 570Buffer.BlockCopy(authenticator, 0, this.authenticator, 0, authenticator.Length); 583byte[] result = DiagnosticUtility.Utility.AllocateByteArray(this.authenticator.Length); 584Buffer.BlockCopy(this.authenticator, 0, result, 0, this.authenticator.Length);
System\ServiceModel\Security\SctClaimSerializer.cs (5)
28writer.WriteBase64(sidBytes, 0, sidBytes.Length); 86writer.WriteBase64(rawData, 0, rawData.Length); 95writer.WriteBase64(thumbprint, 0, thumbprint.Length); 141writer.WriteBase64(hash, 0, hash.Length); 183writer.WriteBase64(rawData, 0, rawData.Length);
System\ServiceModel\Security\SecurityHeaderTokenResolver.cs (2)
70if (this.tokenCount == this.tokens.Length) 72SecurityTokenEntry[] newTokens = new SecurityTokenEntry[this.tokens.Length * 2];
System\ServiceModel\Security\SecuritySessionFilter.cs (2)
54for (int i = 0; i < excludedActions.Length; ++i) 152this.excludedActions = new string[excludedActions.Length];
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (1)
1342for (int i = 0; i < this.actions.Length; ++i)
System\ServiceModel\Security\SecurityUtils.cs (13)
198for (int i = 0; i < TokenImpersonationLevelOrder.Length; i++) 691while (read < buffer.Length) 693int actual = reader.ReadContentAsBase64(buffer, read, buffer.Length - read); 701if (read < buffer.Length) 709Buffer.BlockCopy(buffers[i], 0, buffer, offset, buffers[i].Length); 710offset += buffers[i].Length; 1458if (partsWithSlashDelimiter.Length == 2 && partsWithAtDelimiter.Length == 1) 1465else if (partsWithSlashDelimiter.Length == 1 && partsWithAtDelimiter.Length == 2) 2134byte[] copy = DiagnosticUtility.Utility.AllocateByteArray(buffer.Length); 2135Buffer.BlockCopy(buffer, 0, copy, 0, buffer.Length); 2365certificate = (rawData == null || rawData.Length == 0) ? null : new X509Certificate2(rawData);
System\ServiceModel\Security\SecurityVerifiedMessage.cs (4)
154XmlDictionaryReader reader = XmlDictionaryReader.CreateTextReader(this.decryptedBuffer, 0, this.decryptedBuffer.Length, this.securityHeader.ReaderQuotas); 550byte[] splicedBuffer = DiagnosticUtility.Utility.AllocateByteArray(checked(middle.Length + wrapperLength - 1)); 555count = middle.Length; 568for (int i = 0; i < attributes.Length; i++)
System\ServiceModel\Security\SecurityVersion.cs (1)
286writer.WriteBase64(signature, 0, signature.Length);
System\ServiceModel\Security\SendSecurityHeader.cs (12)
553if (id < ids.Length) 652for (int i = 0; i < signedTokens.Length; ++i) 661for (int i = 0; i < basicTokensXml.Length; ++i) 673for (int i = 0; i < endorsingTokens.Length; ++i) 684for (int i = 0; i < endorsingDerivedTokens.Length; ++i) 692for (int i = 0; i < signedEndorsingTokens.Length; ++i) 701for (int i = 0; i < signedEndorsingDerivedTokens.Length; ++i) 709for (int i = 0; i < signatureConfirmations.Length; ++i) 721for (int i = 0; i < endorsingSignatures.Length; ++i) 823for (int i = 0; i < signatureConfirmationElements.Length; ++i) 919for (int i = 0; i < endorsingTokens.Length; ++i) 950for (int i = 0; i < signedEndorsingSupportingTokens.Length; ++i)
System\ServiceModel\Security\SignatureConfirmations.cs (1)
38if (confirmations.Length == length)
System\ServiceModel\Security\SspiNegotiationTokenAuthenticator.cs (1)
120negotiationDigest.TransformBlock(canonicalizedData, 0, canonicalizedData.Length, canonicalizedData, 0);
System\ServiceModel\Security\SspiNegotiationTokenProvider.cs (4)
90negotiationDigest.TransformBlock(canonicalizedData, 0, canonicalizedData.Length, canonicalizedData, 0); 154if (clientAuthenticator.Length != serverAuthenticator.Length) 158for (int i = 0; i < clientAuthenticator.Length; ++i)
System\ServiceModel\Security\TlsSspiNegotiation.cs (10)
334byte[] dataBuffer = DiagnosticUtility.Utility.AllocateByteArray(encryptedContent.Length); 336Buffer.BlockCopy(encryptedContent, 0, dataBuffer, 0, encryptedContent.Length); 356byte[] buffer = DiagnosticUtility.Utility.AllocateByteArray(checked(input.Length + StreamSizes.header + StreamSizes.trailer)); 358Buffer.BlockCopy(input, 0, buffer, StreamSizes.header, input.Length); 362this.EncryptInPlace(buffer, 0, input.Length, out encryptedSize); 363if (encryptedSize == buffer.Length) 477securityBuffer[0] = new SecurityBuffer(encryptedContent, 0, encryptedContent.Length, BufferType.Data); 488for (int i = 0; i < securityBuffer.Length; ++i) 507if (bufferStartOffset + dataLen + StreamSizes.header + StreamSizes.trailer > buffer.Length) 528for (int i = 0; i < securityBuffer.Length; ++i)
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
263if ((this.key == null) || (this.key.Length == 0))
System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (3)
38XmlDictionaryReader reader = XmlDictionaryReader.CreateBinaryReader(serializedContext, 0, serializedContext.Length, dictionary, quotas, null, null); 128if (key == null || key.Length == 0) 177writer.WriteBase64(key, 0, key.Length);
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (5)
228byte[] retval = new byte[this.key.Length]; 229Buffer.BlockCopy(this.key, 0, retval, 0, this.key.Length); 246if (key == null || key.Length == 0) 271this.key = new byte[key.Length]; 272Buffer.BlockCopy(key, 0, this.key, 0, key.Length);
System\ServiceModel\Security\WindowsSspiNegotiation.cs (11)
257securityBuffer[0] = new SecurityBuffer(encryptedContent, 0, encryptedContent.Length, BufferType.Stream); 265for (int i = 0; i < securityBuffer.Length; ++i) 290securityBuffer[0] = new SecurityBuffer(tokenBuffer, 0, tokenBuffer.Length, BufferType.Token); 291byte[] dataBuffer = DiagnosticUtility.Utility.AllocateByteArray(input.Length); 292Buffer.BlockCopy(input, 0, dataBuffer, 0, input.Length); 293securityBuffer[1] = new SecurityBuffer(dataBuffer, 0, dataBuffer.Length, BufferType.Data); 295securityBuffer[2] = new SecurityBuffer(paddingBuffer, 0, paddingBuffer.Length, BufferType.Padding); 305for (int i = 0; i < securityBuffer.Length; ++i) 312byte[] encryptedData = DiagnosticUtility.Utility.AllocateByteArray(checked(tokenLen + dataBuffer.Length + paddingLen)); 315Buffer.BlockCopy(dataBuffer, 0, encryptedData, tokenLen, dataBuffer.Length); 316Buffer.BlockCopy(paddingBuffer, 0, encryptedData, tokenLen + dataBuffer.Length, paddingLen);
System\ServiceModel\Security\WSSecureConversation.cs (4)
214if (nonce != null && nonce.Length > this.maxKeyDerivationNonceLength) 216throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(SR.GetString(SR.DerivedKeyTokenNonceTooLong, nonce.Length, this.maxKeyDerivationNonceLength))); 308writer.WriteBase64(derivedKeyToken.Nonce, 0, derivedKeyToken.Nonce.Length); 517writer.WriteBase64(sct.CookieBlob, 0, sct.CookieBlob.Length);
System\ServiceModel\Security\WSSecurityJan2004.cs (2)
193writer.WriteBase64(rawData, 0, rawData.Length); 264tokenHash = hasher.ComputeHash(rawData, 0, rawData.Length);
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (5)
158for (int i = 0; i < elements.Length; ++i) 207for (int i = 0; i < tokens.Length; ++i) 448for (int i = 0; i < basicTokens.Length; ++i) 457for (int i = 0; i < signatureConfirmations.Length; ++i) 466for (int i = 0; i < endorsingSignatures.Length; ++i)
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (1)
508for (int i = 0; i < tokenTypes.Length; ++i)
System\ServiceModel\Security\WSTrust.cs (3)
172writer.WriteBase64(secret, 0, secret.Length); 1216writer.WriteBase64(authenticator, 0, authenticator.Length); 1612ValidateRequestedKeySize(requestorEntropy.Length * 8, algorithmSuite);
System\ServiceModel\Security\WSTrustServiceContract.cs (1)
1943for (int i = 0; i < namespaces.Length; ++i)
System\ServiceModel\Security\WSUtilitySpecificationVersion.cs (6)
138writer.WriteChars(creationTime, 0, creationTime.Length); 143writer.WriteChars(expiryTime, 0, expiryTime.Length); 194stream.Write(this.fragment1, 0, this.fragment1.Length); 196stream.Write(this.fragment2, 0, this.fragment2.Length); 198stream.Write(this.fragment3, 0, this.fragment3.Length); 200stream.Write(this.fragment4, 0, this.fragment4.Length);
System\ServiceModel\Security\X509ClientCertificateAuthentication.cs (1)
289for (int i = 0; i < chainStatus.Length; ++i)
System\ServiceModel\Security\XmlHelper.cs (3)
258if (value == null || value.Length == 0) 284if (parts.Length > 2) 289if (parts.Length == 2)
System\ServiceModel\ServiceAuthenticationManager.cs (4)
71if ((actionUriFilter != null) && (actionUriFilter.Length > 0)) 73this.filteredActionUriCollection = new string[actionUriFilter.Length]; 74for (int i = 0; i < actionUriFilter.Length; ++i) 92for (int i = 0; i < this.filteredActionUriCollection.Length; ++i)
System\ServiceModel\ServiceChannelManager.cs (1)
287for (int index = 0; index < channels.Length; index++)
System\ServiceModel\ServiceHost.cs (1)
1177for (int i = 0; i < array.Length; i++)
System\ServiceModel\SynchronizedCollection.cs (2)
50this.items = new List<T>(list.Length); 51for (int i = 0; i < list.Length; i++)
System\ServiceModel\SynchronizedDisposablePool.cs (1)
52for (int i = 0; i < items.Length; i++)
System\ServiceModel\SynchronizedReadOnlyCollection.cs (2)
50this.items = new List<T>(list.Length); 51for (int i = 0; i < list.Length; i++)
System\ServiceModel\Transactions\OletxTransactionHeader.cs (2)
182writer.WriteBase64(propagationToken, 0, propagationToken.Length); 198if (propagationToken.Length == 0)
System\ServiceModel\Transactions\WhereaboutsReader.cs (1)
38whereabouts.Length,
System\ServiceModel\Transactions\WsatProxy.cs (6)
382byte[] tokenCopy = new byte[fixedPropagationToken.Length]; 383Array.Copy(fixedPropagationToken, tokenCopy, fixedPropagationToken.Length); 418Array.Copy(transactionIdBytes, 0, token, offsetof_guidTx, transactionIdBytes.Length); 422Array.Copy(isoLevelBytes, 0, token, offsetof_isoLevel, isoLevelBytes.Length); 426Array.Copy(isoFlagsBytes, 0, token, offsetof_isoFlags, isoFlagsBytes.Length); 432int copyDescriptionBytes = Math.Min(descriptionBytes.Length, MaxDescriptionLength);
System\ServiceModel\UriSchemeKeyedCollection.cs (1)
23for (int i = 0; i < addresses.Length; i++)
System\ServiceModel\XmlBuffer.cs (1)
74return buffer.Length;
System\UriTemplate.cs (12)
394if (values.Length > 0) 397SR.UTBindByPositionNoVariables, this.originalTemplate, values.Length))); 478int numSegmentsInBaseAddress = baseAddress.Segments.Length; 766int numRelativeSegments = candidateSegments.Length - numSegmentsInBaseAddress; 1342if ((parameters.Length < this.pathSegmentVariableNames.Count) || 1343(parameters.Length > this.pathSegmentVariableNames.Count + this.queryValueVariableNames.Count)) 1348parameters.Length))); 1352if (parameters.Length == this.pathSegmentVariableNames.Count + this.queryValueVariableNames.Count) 1360for (int i = parameters.Length; i < normalizedParameters.Length; i++) 1578for (int i = 0; i < normalizedParameters.Length; i++) 1698Fx.Assert(valueIndex < values.Length, "Not enough values to bind");
System\UriTemplateCompoundPathSegment.cs (1)
126Fx.Assert(valueIndex + this.varLitPairs.Count <= values.Length, "Not enough values to bind");
System\UriTemplateHelpers.cs (5)
38for (int i = 0; i < queryKeys.Length; ++i) 240for (int i = 0; i < nullKeyValues.Length; i++) 353Fx.Assert(a.Length == b.Length, "arrays not same length"); 354for (int i = 0; i < a.Length; ++i)
System\UriTemplateTable.cs (2)
354int numRelativeSegments = uriSegments.Length - this.numSegmentsInBaseAddress; 486this.numSegmentsInBaseAddress = this.baseAddress.Segments.Length;
System\UriTemplateTrieNode.cs (4)
196if (wireUriSegments.Length <= currentLocation.node.depth) 198Fx.Assert(wireUriSegments.Length == 0 || wireUriSegments[wireUriSegments.Length - 1].EndsWithSlash, 469Fx.Assert(arrayIndex < a.Length, "We made enough room for all the items");
System\UriTemplateVariablePathSegment.cs (1)
31Fx.Assert(valueIndex < values.Length, "Not enough values to bind");
System\UriTemplateVariableQueryValue.cs (1)
24Fx.Assert(valueIndex < values.Length, "Not enough values to bind");
System.ServiceModel.Activation (25)
System\ServiceModel\Activation\CollectibleLRUCache.cs (3)
174int collectTargetCount = (int)(array.Length * collectPercentageInOneBatch); 175for (int i = 0; i < array.Length; i++) 257for (int i = 0; i < array.Length; i++)
System\ServiceModel\Activation\Interop\SafeHGlobalHandleCritical.cs (2)
53SafeHGlobalHandleCritical result = AllocHGlobal(bytes.Length); 54Marshal.Copy(bytes, 0, result.DangerousGetHandle(), bytes.Length);
System\ServiceModel\Activation\MetabaseSettings.cs (6)
127if (parts.Length > 1) 259for (int i = 0; i < providers.Length; i++) 465if (providers != null && providers.Length > 0) 544if (serverBindings.Length > 0) 555if (secureBindings.Length > 0) 626if (appTransportSettings.AuthProviders == null || appTransportSettings.AuthProviders.Length == 0)
System\ServiceModel\Activation\MsmqHostedTransportConfiguration.cs (1)
31for (int i = 0; i < bindings.Length; i++)
System\ServiceModel\Activation\NamedPipeHostedTransportConfiguration.cs (1)
20for (int i = 0; i < bindings.Length; i++)
System\ServiceModel\Activation\ServiceHostFactory.cs (1)
85for (int i = 0; i < assemblies.Length; i++)
System\ServiceModel\Activation\TcpHostedTransportConfiguration.cs (1)
21for (int i = 0; i < bindings.Length; i++)
System\ServiceModel\Activities\Activation\WorkflowServiceHostFactory.cs (3)
47if (baseAddresses.Length == 0) 397if (components.Length < 3) 402for (int i = 3; i < components.Length; i++)
System\ServiceModel\Channels\MsmqHostedTransportManager.cs (1)
51List<Uri> baseAddresses = new List<Uri>(this.hosts.Length);
System\ServiceModel\ServiceHostingEnvironment.cs (6)
1238if (compiledStrings.Length < 3) 1269if (!this.multipleSiteBindingsEnabled && prefixFilters != null && prefixFilters.Length > 0) 1325for (int i = 0; i < assemblies.Length; i++) 1362for (int index = 3; index < compiledStrings.Length; ++index) 1867for (int i = 0; i < assemblies.Length; i++) 1880if (attributes.Length > 0)
System.ServiceModel.Activities (15)
System\ServiceModel\Activities\ContractValidationHelper.cs (4)
80int count = receiveParameters1.ArgumentNames.Length; 81if (count != receiveParameters2.ArgumentNames.Length) 124int count = sendReplyParameters1.ArgumentNames.Length; 125if (count != sendReplyParameters2.ArgumentNames.Length)
System\ServiceModel\Activities\Description\WorkflowOperationBehavior.cs (1)
178Fx.Assert(this.isHostingEndpoint || outputs == null || outputs.Length == 0, "Workflow returned a non-empty out-arg");
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (2)
817Fx.Assert(args != null && args.Length > 0, "Cannot get argument"); 832Fx.Assert(args != null && args.Length > 1, "Cannot get argument");
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (1)
2250for (int i = 0; i < requestsToFault.Length; i++)
System\ServiceModel\Activities\MessageBuilder.cs (5)
78if (argumentTypes.Length == 1 && argumentTypes[0] == MessageDescription.TypeOfUntypedMessage) 83else if (argumentTypes.Length == 1 && IsMessageContract(argumentTypes[0])) 191Fx.Assert(argumentNames.Length == argumentTypes.Length, "Name and Type do not match!"); 196for (int index = 0; index < argumentNames.Length; index++)
System\ServiceModel\Activities\SendParametersContent.cs (2)
74if (this.ArgumentTypes.Length == 1) 212Fx.Assert(this.argumentTypes != null && this.argumentTypes.Length == 1, "Exception should be the only parameter in SendFault!");
System.ServiceModel.Channels (34)
System\ServiceModel\Channels\ByteStreamMessageUtility.cs (5)
30if (index > buffer.Length || (isRead && index == buffer.Length)) 32throw FxTrace.Exception.ArgumentOutOfRange("index", index, SR.OffsetExceedsBufferSize(buffer.Length)); 38if (count > buffer.Length - index) 40throw FxTrace.Exception.ArgumentOutOfRange("count", count, SR.SizeExceedsRemainingBufferSpace(buffer.Length - index));
System\ServiceModel\Channels\ClientUdpOutputChannel.cs (1)
52Fx.Assert(this.SendSockets.Length == 1, "Unicast Send socket list on client should always be 1 item long");
System\ServiceModel\Channels\ServerUdpOutputChannel.cs (5)
39for (int i = 0; i < this.SendSockets.Length; i++) 74for (int i = 0; i < this.SendSockets.Length; i++) 166for (int i = 0; i < remoteAddresses.Length; i++) 189for (int i = 0; i < remoteAddresses.Length; i++) 256if (this.SendSockets.Length > 1)
System\ServiceModel\Channels\UdpChannelBase.cs (2)
45Fx.Assert(sockets.Length > 0, "sendSockets can't be empty"); 164continueReceiving = this.EnqueueMessage(message, data.Array.Length, onMessageDequeuedCallback);
System\ServiceModel\Channels\UdpChannelFactory.cs (2)
176if (remoteAddressList.Length < 1) 205for (int i = 0; i < adapters.Length; i++)
System\ServiceModel\Channels\UdpChannelListener.cs (2)
188continueReceiving = Dispatch(message, data.Array.Length, onMessageDequeuedCallback); 549for (int i = 0; i < adapters.Length; i++)
System\ServiceModel\Channels\UdpOutputChannel.cs (6)
41Fx.Assert(sendSockets.Length > 0, "sendSockets can't be empty"); 331for (int i = 0; i < this.SendSockets.Length; i++) 418Fx.Assert(sockets.Length > 0, "sockets must contain at least one item"); 421for (int i = 0; i < sockets.Length; i++) 505for (int i = 0; i < this.SendSockets.Length; i++) 788while (this.currentSocket < this.sendSockets.Length)
System\ServiceModel\Channels\UdpSocketReceiveManager.cs (6)
32Fx.Assert(receiveSockets.Length > 0, "receiveSockets parameter is empty"); 45int maxPendingReceives = maxPendingReceivesPerSocket * receiveSockets.Length; 82for (int i = 0; i < this.receiveSockets.Length; i++) 100for (int i = 0; i < this.receiveSockets.Length; i++) 256result = socket.BeginReceiveFrom(receiveBuffer, 0, receiveBuffer.Length, ref remoteEndpoint, onReceiveFrom, state); 297for (int i = 0; i < this.receiveSockets.Length; i++)
System\ServiceModel\Channels\UdpUtility.cs (4)
270for (int i = 0; i < adapters.Length; i++) 286for (int i = 0; i < adapters.Length; i++) 310if (results == null || results.Length == 0) 363ValidateBufferBounds(buffer.Length, offset, size);
System\ServiceModel\Channels\XmlByteStreamWriter.cs (1)
278WriteBase64(buffer, 0, buffer.Length);
System.ServiceModel.Discovery (18)
System\ServiceModel\Discovery\AnnouncementDispatcherAsyncResult.cs (5)
53for (int i = 0; i < this.innerResults.Length; i++) 90for (int i = 0; i < this.innerResults.Length; i++) 96complete = (Interlocked.Increment(ref this.completions) == innerResults.Length); 146if (Interlocked.Increment(ref this.completions) == innerResults.Length) 169for (int i = 0; i < this.innerResults.Length; i++)
System\ServiceModel\Discovery\DiscoveryClient.cs (1)
1178for (int i = 0; i < activeOperations.Length; i++)
System\ServiceModel\Discovery\FindCriteria.cs (1)
273for (int i = 0; i < compiledScopeMatchCriterias.Length; i++)
System\ServiceModel\Discovery\IteratorAsyncResult.cs (1)
245for (int i = 0; i < step.Catches.Length; i++)
System\ServiceModel\Discovery\RandomDelayQueuedSendsAsyncResult.cs (4)
136for (int i = 0; i < this.preCalculatedDelays.Length; i++) 148if ((this.preCalculatedDelays == null) || (this.preCalculatedDelays.Length == 0)) 154if (this.preCalculatedDelays.Length == 1 || this.currentDelayIndex == 0) 161if (currentDelayIndex == this.preCalculatedDelays.Length)
System\ServiceModel\Discovery\ScopeCompiler.cs (2)
66for (int i = 0; i < compiledScopes.Length; i++) 76for (int i = 0; i < compiledScopes.Length; i++)
System\ServiceModel\Discovery\SerializationUtility.cs (4)
57if (prefixedQNames.Length > 0) 59for (int i = 0; i < prefixedQNames.Length; i++) 72if (uriStrings.Length > 0) 74for (int i = 0; i < uriStrings.Length; i++)
System.ServiceModel.Internals (88)
System\Runtime\BufferedOutputStream.cs (10)
114if (this.currentChunk.Length > (int.MaxValue / 2)) 120newChunkSize = this.currentChunk.Length * 2; 127if (this.chunkCount == this.chunks.Length) 129byte[][] newChunks = new byte[this.chunks.Length * 2][]; 130Array.Copy(this.chunks, newChunks, this.chunks.Length); 232Buffer.BlockCopy(chunk, 0, buffer, offset, chunk.Length); 233offset += chunk.Length; 279int remainingSizeInChunk = this.currentChunk.Length - this.currentChunkSize; 288this.currentChunkSize = this.currentChunk.Length; 312if (this.currentChunkSize == this.currentChunk.Length)
System\Runtime\Collections\OrderedDictionary.cs (2)
173if (array.Rank > 1 || arrayIndex >= array.Length || array.Length - arrayIndex < this.privateDictionary.Count)
System\Runtime\Diagnostics\DiagnosticEventProvider.cs (8)
469|| (eventPayload.Length == 0) 470|| (eventPayload.Length == 1)) 478if ((eventPayload != null) && (eventPayload.Length != 0)) 520argCount = eventPayload.Length; 547for (index = 0; index < eventPayload.Length; index++) 746if ((eventPayload != null) && (eventPayload.Length != 0)) 748int argCount = eventPayload.Length; 774for (index = 0; index < eventPayload.Length; index++)
System\Runtime\Diagnostics\EventLogger.cs (12)
87string[] logValues = new string[values.Length + 2]; 88for (int i = 0; i < values.Length; ++i) 105logValues[logValues.Length - 2] = normalizedProcessName; 109logValues[logValues.Length - 1] = invariantProcessId; 123int truncationLength = (MaxEventLogEntryLength / logValues.Length) - 1; 125for (int i = 0; i < logValues.Length; i++) 137IntPtr[] stringRoots = new IntPtr[logValues.Length]; 144stringHandles = new GCHandle[logValues.Length]; 145for (int strIndex = 0; strIndex < logValues.Length; strIndex++) 173Dictionary<string, string> eventValues = new Dictionary<string, string>(logValues.Length + RequiredValueCount); 178for (int i = 0; i < values.Length; ++i) 314(ushort)logValues.Length,
System\Runtime\HashHelper.cs (9)
27int blocks = (buffer.Length + 8) / 64 + 1; 39if (offset + 64 > buffer.Length) 43for (int j = offset; j < buffer.Length; j++) 47if (offset <= buffer.Length) 49block[buffer.Length - offset] = 0x80; 53block[56] = (byte)(buffer.Length << 3); 54block[57] = (byte)(buffer.Length >> 5); 55block[58] = (byte)(buffer.Length >> 13); 56block[59] = (byte)(buffer.Length >> 21);
System\Runtime\InputQueue.cs (8)
384for (int i = 0; i < outstandingReaders.Length; i++) 498for (int i = 0; i < outstandingReaders.Length; i++) 506for (int i = 0; i < waiters.Length; i++) 981this.head = (this.head + 1) % this.items.Length; 987if (this.totalCount == this.items.Length) 989Item[] newItems = new Item[this.items.Length * 2]; 992newItems[i] = this.items[(head + i) % this.items.Length]; 997int tail = (this.head + this.totalCount) % this.items.Length;
System\Runtime\InternalBufferManager.cs (9)
98this.bufferSizes = new int[bufferPools.Length]; 99for (int i = 0; i < bufferPools.Length; i++) 111for (int i = 0; i < this.bufferPools.Length; i++) 153for (int i = 0; i < this.bufferPools.Length; i++) 177for (int i = 0; i < this.bufferPools.Length; i++) 198for (int i = 0; i < this.bufferSizes.Length; i++) 239BufferPool bufferPool = FindPool(buffer.Length); 242if (buffer.Length != bufferPool.BufferSize) 367for (int i = 0; i < this.bufferPools.Length; i++)
System\Runtime\IOThreadScheduler.cs (8)
98Fx.Assert((this.slots.Length & SlotMask) == 0, "Capacity must be a power of two."); 101Fx.Assert((this.slotsLowPri.Length & SlotMaskLowPri) == 0, "Low-priority capacity must be a power of two."); 179new IOThreadScheduler(Math.Min(this.slots.Length * 2, MaximumCapacity), this.slotsLowPri.Length); 237new IOThreadScheduler(this.slots.Length, Math.Min(this.slotsLowPri.Length * 2, MaximumCapacity)); 368return this.slots.Length - 1; 378return this.slotsLowPri.Length - 1;
System\Runtime\IOThreadTimer.cs (3)
451if (index == timers.Length) 453timers = new IOThreadTimer[timers.Length * 2]; 454Array.Copy(this.timers, timers, this.timers.Length);
System\Runtime\PartialTrustHelpers.cs (2)
97return assembly.GetCustomAttributes(aptca, false).Length > 0; 106return publicKeyToken != null & publicKeyToken.Length > 0;
System\Runtime\SynchronizedPool.cs (11)
87for (int i = 0; i < entries.Length; i++) 103this.entries = new Entry[this.entries.Length]; 120for (int i = 0; i < this.entries.Length; i++) 144for (int i = 0; i < localPending.Length; i++) 178for (int i = 0; i < localPending.Length; i++) 199if (localPending.Length >= maxPendingEntries) 201this.pending = new PendingEntry[localPending.Length]; 205PendingEntry[] newPending = new PendingEntry[localPending.Length * 2]; 206Array.Copy(localPending, newPending, localPending.Length); 232for (int i = 0; i < entries.Length; i++) 287for (int i = 0; i < entries.Length; i++)
System\Runtime\TypeHelper.cs (4)
146for (int i = 0; i < interfaces.Length; ++i) 568if (enumValues.Length > 0) 599if (attributes == null || attributes.Length == 0) 604for (int i = 0; i < attributes.Length; i++)
System\Runtime\UrlUtility.cs (2)
137bytes = UrlEncodeBytesToBytesInternalNonAscii(bytes, 0, bytes.Length, false); 158return UrlEncodeBytesToBytesInternal(bytes, 0, bytes.Length, false);
System.ServiceModel.Routing (1)
System\ServiceModel\Routing\SoapProcessingBehavior.cs (1)
94if (inputs == null || inputs.Length == 0)
System.ServiceModel.Web (34)
SR.cs (1)
91if (args != null && args.Length > 0)
System\ServiceModel\Channels\JavascriptXmlWriterWrapper.cs (3)
97this.stream.Write(buffer, 0, buffer.Length); 99this.stream.Write(this.encodedClosingFunctionCall, 0, this.encodedClosingFunctionCall.Length); 156this.stream.Write(buffer, 0, buffer.Length);
System\ServiceModel\Channels\JsonMessageEncoderFactory.cs (5)
55TextMessageEncoderFactory.ContentEncoding[] map = new TextMessageEncoderFactory.ContentEncoding[readEncodings.Length]; 56for (int i = 0; i < readEncodings.Length; i++) 330stream.Write(buffer, 0, buffer.Length); 343stream.Write(buffer, 0, buffer.Length); 345stream.Write(this.encodedClosingFunctionCall, 0, this.encodedClosingFunctionCall.Length);
System\ServiceModel\Description\WebHttpBehavior.cs (1)
413if (attributes != null && attributes.Length > 0)
System\ServiceModel\Dispatcher\DataContractJsonSerializerOperationFormatter.cs (5)
501bool[] setParameters = new bool[parameters.Length]; 509for (int i = 0, index = currentIndex; i < parts.Length; i++, index = (index + 1) % parts.Length) 535for (int i = 0; i < parameters.Length; i++) 719for (int i = 0; i < parts.Length; i++)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (1)
497for (int i = 0; i < base64stream.Length; i++)
System\ServiceModel\Dispatcher\JsonQueryStringConverter.cs (1)
182(byteArray, 0, byteArray.Length, Encoding.UTF8, XmlDictionaryReaderQuotas.Max, null);
System\ServiceModel\Dispatcher\NameValueCache.cs (1)
55nextAvailableCacheIndex = ++nextAvailableCacheIndex % currentKeys.Length;
System\ServiceModel\Dispatcher\SingleBodyParameterMessageFormatter.cs (1)
296for (int i = 0; i < inputSerializers.Length; ++i)
System\ServiceModel\Dispatcher\SingleBodyParameterXmlSerializerMessageFormatter.cs (3)
90for (int i = 0; i < this.typeSerializerPairs.Length; ++i) 116this.serializers = new XmlObjectSerializer[this.typeSerializerPairs.Length]; 117for (int i = 0; i < this.typeSerializerPairs.Length; ++i)
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (2)
57object[] innerParameters = new object[parameters.Length - this.totalNumUTVars]; 60for (int i = 0; i < parameters.Length; ++i)
System\ServiceModel\Dispatcher\UriTemplateDispatchFormatter.cs (3)
50object[] innerParameters = new object[parameters.Length - this.totalNumUTVars]; 51if (innerParameters.Length != 0) 70for (int i = 0; i < parameters.Length; ++i)
System\ServiceModel\Web\CachingParameterInspector.cs (1)
250if (this.cacheDependencyInfoArray.Length == 1)
System\ServiceModel\Web\IncomingWebRequestContext.cs (2)
372Fx.Assert(xTypeSubType.Length == 2, "The creation of the ContentType would have failed if there wasn't a type and subtype."); 373Fx.Assert(yTypeSubType.Length == 2, "The creation of the ContentType would have failed if there wasn't a type and subtype.");
System\ServiceModel\Web\Utility.cs (1)
174Fx.Assert(typeAndSubType.Length == 2, "The creation of the ContentType would have failed if there wasn't a type and subtype.");
System\ServiceModel\Web\WebOperationContext.cs (3)
240if (preamble.Length > 0) 242stream.Write(preamble, 0, preamble.Length); 245stream.Write(bytes, 0, bytes.Length);
System.Transactions (28)
System\Transactions\Oletx\OletxEnlistment.cs (7)
142int prepareInfoLength = prepareInfoByteArray.Length; 359long arrayLength = prepareInfo.Length; 740byte[] temp = new byte[txGuidArray.Length + rmGuidArray.Length]; 744for ( index = 0; index < txGuidArray.Length; index++ ) 750for ( index = 0; index < rmGuidArray.Length; index++ ) 752proxyPrepareInfoByteArray[txGuidArray.Length + index] =
System\Transactions\Oletx\OletxResourceManager.cs (2)
499Convert.ToUInt32( oletxRecoveryInformation.proxyRecoveryInformation.Length, CultureInfo.InvariantCulture ), 777(UInt32) localEnlistment.ProxyPrepareInfoByteArray.Length,
System\Transactions\Oletx\OleTxTransaction.cs (1)
154if ( propagationTokenForDeserialize.Length < 24 )
System\Transactions\Oletx\OletxTransactionManager.cs (1)
710recoveryInformation.Length,
System\Transactions\Transaction.cs (2)
683byte[] toReturn = new byte[internalPromotedToken.Length]; 684Array.Copy(internalPromotedToken, toReturn, toReturn.Length);
System\Transactions\TransactionInterop.cs (14)
111byte[] whereaboutsCopy = new byte[whereabouts.Length]; 112Array.Copy(whereabouts, whereaboutsCopy, whereabouts.Length); 125Convert.ToUInt32(whereabouts.Length), 177if ( cookie.Length < 32 ) 189byte[] cookieCopy = new byte[cookie.Length]; 190Array.Copy(cookie, cookieCopy, cookie.Length); 203for (int i = 0; i < guidByteArray.Length; i++ ) 239Convert.ToUInt32(cookie.Length), 382if ( propagationToken.Length < 24 ) 397for (int i = 0; i < guidByteArray.Length; i++ ) 450if ( propagationToken.Length < 24 ) 455byte[] propagationTokenCopy = new byte[propagationToken.Length]; 456Array.Copy(propagationToken, propagationTokenCopy, propagationToken.Length); 472Convert.ToUInt32(propagationToken.Length),
System\Transactions\TransactionManager.cs (1)
228resourceManagerRecoveryInformation = reader.ReadBytes( recoveryInformation.Length - checked((int)stream.Position) );
System.Web (851)
Administration\WebAdminConfigurationHelper.cs (4)
65object[] newValues = new object[parameters.Length + 1]; 68for (int i = 0; i < (parameters.Length); i++) { 113object[] newValues = new object[parameters.Length + 1]; 116for (int i = 0; i < (parameters.Length); i++) {
BufferAllocator.cs (2)
288if (buffer != null && buffer.Length == BufferSize) { 336if (buffer != null && buffer.Length == BufferSize) {
Cache\CacheDependency.cs (10)
447int lenMyDepFileInfos = depFileInfos.Length + filenames.Length; 495if (myDepFileInfos.Length == 1) { 504int lenMyEntries = depEntries.Length + cachekeys.Length; 542if (myEntries.Length == 1) { 882if (entries != null && entries.Length > 0) { 896if (depFileInfos != null && depFileInfos.Length > 0) { 935string[] names = new string[depFileInfos.Length]; 936for (int i = 0; i < depFileInfos.Length; i++) {
Cache\MemoryResponseElement.cs (1)
21if (length < 0 || length > buffer.Length)
Cache\OutputCache.cs (1)
210long length = (b != null) ? b.Length : 0;
Compilation\BaseCodeDomTreeGenerator.cs (1)
362Parser.BaseType.GetConstructors(BindingFlags.Instance | BindingFlags.Public).Any(c => c.GetParameters().Length > 0)) {
Compilation\BuildManager.cs (4)
302for (int i = 0; i < assemblies.Length; i++) { 341for (int i = 0; i < assemblies.Length; i++) { 2321for (i = 0; i < _caches.Length; i++) { 2423for (int i = 0; i < _caches.Length; i++) {
Compilation\BuildManagerHost.cs (1)
344for (int i = 0; i < assemblies.Length; i++) {
Compilation\BuildProvider.cs (1)
533if ((attrs != null) && (attrs.Length > 0)) {
Compilation\BuildResultCache.cs (1)
726if ((hashTokens.Length == 2) &&
Compilation\CodeDOMUtility.cs (3)
122CodeExpression[] expressions = new CodeExpression[args.Length]; 128for(int i = 0; i < args.Length; i++) { 144for(int i = 0; i < args.Length; i++) {
Compilation\IImplicitResourceProvider.cs (1)
184if (parts.Length > 2)
Compilation\ResourceExpressionBuilder.cs (1)
226int numOfParts = parts.Length;
Compilation\RouteUrlExpressionBuilder.cs (1)
53if (subs.Length != 2) {
Compilation\TemplateControlCodeDomTreeGenerator.cs (2)
279if (c.GetParameters().Length > 0) { 288Debug.Assert(ctor.GetParameters().Length > 0);
Compilation\WebReferencesBuildProvider.cs (1)
78for (int i=0; i<chunks.Length; i++) {
Configuration\BrowserCapabilitiesCodeGenerator.cs (5)
180if (browserFiles == null || browserFiles.Length == 0) { 535int length = allBrowserSubDirectories.Length; 545for (int i = 0; i < browserSubDirectories.Length; i++) { 549if (browserFiles == null || browserFiles.Length == 0) { 652for (int i = 0; i < subDirectories.Length; i++) {
Configuration\CapabilitiesPattern.cs (1)
105for (int i = 0; i < _rules.Length; i++) {
Configuration\CapabilitiesSection.cs (1)
53for (int i = 0; i < _rules.Length; i++) {
Configuration\CompilationSection.cs (5)
733if ((publicKeyToken == null || publicKeyToken.Length == 0) && asmName.Version == null) { 743for (int i = 0; i < a.Length; i++) { 851if (binDlls.Length > 0) { 852list = new ArrayList(binDlls.Length); 854for (int i = 0; i < binDlls.Length; i++) {
Configuration\CustomErrorCollection.cs (2)
42String[] stringKeys = new String[objAllKeys.Length]; 43for(int x = 0; x < objAllKeys.Length; x++)
Configuration\ExpressServerConfig.cs (1)
181for (int i = 0; i < subdirs.Length; i++) {
Configuration\FolderLevelBuildProvider.cs (1)
114if ((attrs != null) && (attrs.Length > 0)) {
Configuration\HttpCapabilitiesBase.cs (1)
395return clrVersions[clrVersions.Length - 1];
Configuration\HttpRuntimeSection.cs (4)
843char[] charsDecoded = new char[stringsDecoded.Length]; 845for (int iter = 0; iter < stringsDecoded.Length; iter++) { 863char[] charsDecoded = new char[stringsToDecode.Length]; 865for (int iter = 0; iter < stringsToDecode.Length; iter++) {
Configuration\IdentitySection.cs (4)
238byte[] bIn = new byte[bIn1.Length + 2]; 239Buffer.BlockCopy(bIn1, 0, bIn, 0, bIn1.Length); 244bIn.Length, 246bOut.Length) == 1) {
Configuration\MachineKeySection.cs (69)
515if (start != 0 || length != buf.Length) { 535length = buf.Length; 569cs.Write(iv, 0, iv.Length); 575cs.Write(modifier, 0, modifier.Length); 597int bDataLength = paddedData.Length - ivLength; 614if (!fEncrypt && modifier != null && modifier.Length > 0) 617if (!CryptoUtil.BuffersAreEqual(bData, bData.Length - modifier.Length, modifier.Length, modifier, 0, modifier.Length)) { 621byte[] bData2 = new byte[bData.Length - modifier.Length]; 622Buffer.BlockCopy(bData, 0, bData2, 0, bData2.Length); 631byte[] hmac = HashData(bData, null, 0, bData.Length); 632byte[] bData2 = new byte[bData.Length + hmac.Length]; 634Buffer.BlockCopy(bData, 0, bData2, 0, bData.Length); 635Buffer.BlockCopy(hmac, 0, bData2, bData.Length, hmac.Length); 666int hr = UnsafeNativeMethods.GetSHA1Hash(hash, hash.Length, newHash, newHash.Length); 691if (validationKey.Length > _AutoGenValidationKeySize) 694int hr = UnsafeNativeMethods.GetSHA1Hash(validationKey, validationKey.Length, key, key.Length); 708for (i=0; i < validationKey.Length; i++) { 715if (start < 0 || start > buf.Length) 717if (length < 0 || buf == null || (start + length) > buf.Length) 721modifier, (modifier == null) ? 0 : modifier.Length, 722s_inner, s_inner.Length, s_outer, s_outer.Length, 723hash, hash.Length); 738hash = HashData(ab, null, 0, ab.Length); 746if (buf == null || buf.Length < 1) 748for (int iter = 0; iter < buf.Length; iter++) 798if (buf.Length - start - length >= bHash.Length) 801Buffer.BlockCopy(bHash, 0, buf, start + length, bHash.Length); 806returnBuffer = new byte[length + bHash.Length]; 808Buffer.BlockCopy(bHash, 0, returnBuffer, length, bHash.Length); 811length += bHash.Length; 815length = returnBuffer.Length; 830if (buf == null || buf.Length < _HashSize) 832length = buf.Length; 839for (int iter = 0; iter < bHash.Length; iter++) 894if (dKey.Length == 8) { 908if (dKey.Length == 8) { 937if (dKey.Length > 8 && symAlgo is DESCryptoServiceProvider) { 946symAlgo.IV = new byte[symAlgo.IV.Length]; 981for (int i = ahexval.Length; --i >= 0; ) 1002int n = result.Length; 1127_AutoGenValidationKeySize = ((KeyedHashAlgorithm) alg).Key.Length; 1142_HashSize = bHash.Length; 1146_AutoGenValidationKeySize = ((KeyedHashAlgorithm) alg).Key.Length; 1214int totalLength = length + validationKey.Length + ((modifier != null) ? modifier.Length : 0); 1219Buffer.BlockCopy(modifier, 0, bAll, length, modifier.Length); 1221Buffer.BlockCopy(validationKey, 0, bAll, length, validationKey.Length); 1226int hr = UnsafeNativeMethods.GetSHA1Hash(bAll, bAll.Length, newHash, newHash.Length); 1237int totalLength = length + ((modifier != null) ? modifier.Length : 0); 1242Buffer.BlockCopy(modifier, 0, bAll, length, modifier.Length); 1256byte[] buf2 = new byte[bufHashed.Length - _HashSize]; 1257Buffer.BlockCopy(bufHashed, 0, buf2, 0, buf2.Length); 1270if (bufHashed.Length <= _HashSize) 1273byte[] bMac = HashData(bufHashed, null, 0, bufHashed.Length - _HashSize); 1277if (bMac == null || bMac.Length != _HashSize) 1279int lastPos = bufHashed.Length - _HashSize; 1300if (dKey.Length <= 24) 1303Buffer.BlockCopy(dKey, 0, buf, 0, buf.Length);
Configuration\ProcessHostServerConfig.cs (1)
171for (int i = 0; i < subdirs.Length; i++) {
Configuration\RegexWorker.cs (2)
100if (groups.Length > 0) { 105for (int i = 0; i < groups.Length; i++) {
Configuration\RemoteWebConfigurationHost.cs (8)
117if (parts.Length < 7 || (parts.Length - 5) % 2 != 0) { 122for (int i = 0; i < parts.Length; i++) { 143for (int i = 5; i < parts.Length; i += 2) { 347paramValues = new string[paramKeys.Length]; 348for(int iter = 0; iter<paramKeys.Length; iter++) 391if (splitted.Length == 1) 402if (splitted.Length == 1)
Configuration\RemoteWebConfigurationHostServer.cs (4)
108tempFileStream = new FileStream(tempFile, FileMode.CreateNew, FileAccess.Write, FileShare.ReadWrite, data.Length, FileOptions.WriteThrough); 109tempFileStream.Write(data, 0, data.Length); 228NameValueCollection cloneParams = new NameValueCollection(paramKeys.Length); 231for(int iter=0; iter<paramKeys.Length; iter++)
Configuration\RemoteWebConfigurationHostStream.cs (3)
96if (buf == null || buf.Length < 1) 102_MemoryStream = new MemoryStream(buf.Length); 103_MemoryStream.Write(buf, 0, buf.Length);
Configuration\RuntimeConfig.cs (1)
564for (int i = 0; i < _results.Length; i++) {
Configuration\VirtualDirectoryMappingCollection.cs (1)
69if (array.Length < c + index) {
Configuration\WebConfigurationHost.cs (1)
210if (hostInitParams.Length > 6) {
DataAccess\SqlConnectionHelper.cs (1)
218for (int iter = 0; iter < strippedFileNameChars.Length; iter++)
ErrorFormatter.cs (1)
1091for (int k = 0; k < arrParams.Length; k++) {
FileChangesMonitor.cs (9)
107int result = a.Length - b.Length; 108for (int i = 0; result == 0 && i < a.Length ; i++) { 164int fOK = UnsafeNativeMethods.GetFileSecurity(filename, DACL_INFORMATION, dacl, dacl.Length, ref lengthNeeded); 187fOK = UnsafeNativeMethods.GetFileSecurity(filename, DACL_INFORMATION, dacl, dacl.Length, ref lengthNeeded); 203Debug.Trace("GetDacl", "Interning new dacl, length " + dacl.Length); 210Debug.Trace("GetDacl", "Returning dacl, length " + dacl.Length); 946for (int i = 0; i < FileChangesMonitor.s_dirsToMonitor.Length; i++) { 1936for (int i=0; i<s_dirsToMonitor.Length; i++) {
Handlers\AssemblyResourceLoader.cs (4)
243for (int i = 0; i < attrs.Length; i++) { 440for (int i = 0; i < token.Length; i++) { 546if (parts.Length != 4) { 566for (int i = 0; i < tokenBytes.Length; i++) {
Handlers\TraceHandler.cs (1)
540for (int i=0; i<cells.Length; i++) {
Hosting\ApplicationManager.cs (1)
1165partialTrustVisibleAssemblies = new string[partialTrustVisibleAssembliesCollection.Count + defaultPartialTrustVisibleAssemblies.Length];
Hosting\HostingEnvironment.cs (1)
312if (_hostingParameters != null && _hostingParameters.ClrQuirksSwitches != null && _hostingParameters.ClrQuirksSwitches.Length > 0) {
Hosting\IIS7WorkerRequest.cs (10)
504if ( size > buffer.Length ) { 512if ( buffer.Length - offset < size ) { 604if (buffer.Length - offset < count) 694if (binaryBlob != null && binaryBlob.Length == 16) { 749int n = _unknownRequestHeaders.Length; 1455if (offset >= buffer.Length) { 1459if (length + offset > buffer.Length) { 1775for (int j = 0; j < substElemAry.Length; j++) { 2393entity == null ? 0 : (uint) entity.Length, 2423for(int i = 0; i < rawBytes.Length; i++) {
Hosting\IPipelineRuntime.cs (1)
283for (int i = 0; i < strings.Length; i++) {
Hosting\ISAPIWorkerRequest.cs (47)
55if (array != null && array.Length == ARRAY_SIZE) 60if (array != null && array.Length == ARRAY_SIZE) 98_size = _charBuffer.Length; 249int l = _byteBuffer.Length; 268int l = _byteBuffer.Length; 292len = _charBuffer.Length; 573return _charBuffer.Length; 692int r = GetBasicsCore(buf.Buffer, buf.Buffer.Length, contentInfo); 696r = GetBasicsCore(buf.Buffer, buf.Buffer.Length, contentInfo); 1024if (basicStrings == null || basicStrings.Length != 6) 1220if (buffer.Length - offset < size) { 1264int n = _unknownRequestHeaders.Length; 1571if (pInts[1] < buf.Length && pInts[1] > 0) { 1575if (pInts[2] + pInts[1] < buf.Length && pInts[2] > 0) { 1580if (pInts[2] + pInts[1] + pInts[3] < buf.Length && pInts[3] > 0) { 1758return UnsafeNativeMethods.EcbGetClientCertificate(_ecb, buffer, buffer.Length, pInts, pDates); 1844int retVal = UnsafeNativeMethods.EcbGetServerVariable(_ecb, name, buf.Buffer, buf.Buffer.Length); 1848retVal = UnsafeNativeMethods.EcbGetServerVariable(_ecb, name, buf.Buffer, buf.Buffer.Length); 1871for(int i = 0; i < _additionalServerVars.Length; i++) { 1876int retVal = UnsafeNativeMethods.EcbGetServerVariableByIndex(_ecb, nameIndex, buf.Buffer, buf.Buffer.Length); 1880retVal = UnsafeNativeMethods.EcbGetServerVariableByIndex(_ecb, nameIndex, buf.Buffer, buf.Buffer.Length); 2008return UnsafeNativeMethods.EcbCallISAPI(_ecb, iFunction, bufIn, bufIn.Length, bufOut, bufOut.Length); 2168serverVarLengths, serverVarLengths.Length, 0, ref r); 2173serverVarLengths, serverVarLengths.Length, 0, ref r); 2180for(int i = 0; i < _basicServerVars.Length; i++) { 2214serverVarLengths, serverVarLengths.Length, NUM_BASIC_SERVER_VARIABLES, ref r); 2218serverVarLengths, serverVarLengths.Length, NUM_BASIC_SERVER_VARIABLES, ref r); 2224for(int i = 0; i < _additionalServerVars.Length; i++) { 2603if (buffer.Length - offset < count) 2702if (entity != null && entity.Length > 0) { 2703int ret = UnsafeNativeMethods.EcbGetExecUrlEntityInfo(entity.Length, entity, out _entity); 2838int r = UnsafeNativeMethods.PMGetAllServerVariables(_ecb, buf.Buffer, buf.Buffer.Length); 2842r = UnsafeNativeMethods.PMGetAllServerVariables(_ecb, buf.Buffer, buf.Buffer.Length); 2929byte[] buffer = new byte[4 + offsetBytes.Length + lengthBytes.Length + nameBytes.Length + 2]; 2939Buffer.BlockCopy(offsetBytes, 0, buffer, 4, offsetBytes.Length); 2941Buffer.BlockCopy(lengthBytes, 0, buffer, 4 + offsetBytes.Length, lengthBytes.Length); 2943Buffer.BlockCopy(nameBytes, 0, buffer, 4 + offsetBytes.Length + lengthBytes.Length, nameBytes.Length); 2945return new MemoryBytes(buffer, buffer.Length, true, length); 3062return UnsafeNativeMethods.PMGetClientCertificate(_ecb, buffer, buffer.Length, pInts, pDates); 3080return UnsafeNativeMethods.PMCallISAPI(_ecb, iFunction, bufIn, bufIn.Length, bufOut, bufOut.Length);
Hosting\ProcessHost.cs (2)
162return _appDomainInfos.Length; 174if (_curPos >= _appDomainInfos.Length)
HttpApplication.cs (7)
246for (int i = 0; i < _moduleContainers.Length; i++) { 1736for (int i = 0; i < handlers.Length; i++) { 1876for (int i = 0; i < handlers.Length; i++) { 1920if (addMethodParams.Length != 1) 1929if (appMethodParams.Length == 0) { 2616if( handlers.Length > 0 ) { 3931if (_currentStepIndex >= _execSteps.Length) {
HttpApplicationFactory.cs (5)
252switch (parameters.Length) { 281_onStartParamCount = parameters.Length; 286_onEndParamCount = parameters.Length; 291_sessionOnEndParamCount = parameters.Length; 322for (int i = 0; i < _eventHandlerMethods.Length; i++)
HttpBufferlessInputStream.cs (3)
142if (buffer.Length - offset < count) 224if (offset < 0 || offset + count > buffer.Length) 276preloadedRemaining = preloadedContent.Length - (int) _position;
HttpCacheParams.cs (3)
53Debug.Assert(parameters.Length == 1, "parameters.Length == 1"); 58Debug.Assert(parameters.Length == 1, "parameters.Length == 1"); 64for (i = 0, n = parameters.Length; i < n; i++) {
HttpCachePolicy.cs (7)
311String[] callbackInfos = new String[_validationCallbackInfo.Length * 2]; 312for (int i = 0; i < _validationCallbackInfo.Length; i++) { 331ValidationCallbackInfo[] callbackInfos = new ValidationCallbackInfo[_validationCallbackInfoForSerialization.Length / 2]; 332for (int i = 0; i < _validationCallbackInfoForSerialization.Length; i += 2) { 625for (i = 0, n = fields.Length; i < n; i++) { 633for (i = 0, n = fields.Length; i < n; i++) { 640for (i = 0, n = settings.ValidationCallbackInfo.Length; i < n; i++) {
HttpCacheVary.cs (2)
56Debug.Assert(headers.Length == 1, "headers.Length == 1"); 64for (i = 0, n = headers.Length; i < n; i++) {
HttpCacheVaryByContentEncodings.cs (8)
45_contentEncodings = new String[contentEncodings.Length]; 46for (int i = 0; i < contentEncodings.Length; i++) { 67for (int i = 0; i < _contentEncodings.Length; i++) { 87string[] contentEncodings = new string[_contentEncodings.Length]; 113for(int i = 0; i < _contentEncodings.Length; i++) { 133string[] contentEncodings = new String[_contentEncodings.Length + 1]; 134for (int i = 0; i < _contentEncodings.Length; i++) { 137contentEncodings[contentEncodings.Length - 1] = contentEncoding;
HttpContext.cs (2)
944if (handlers == null || handlers.Length == 0) { 947return (IHttpHandler)handlers[handlers.Length - 1];
HttpDebugHandler.cs (1)
215for (int i = 0; i < validClsIds.Length; i++) {
HttpException.cs (1)
665for (int i = 0; i < value.Length; i++) {
HttpInputStream.cs (5)
67if (_length + length <= _data.Length) { 128_chunkLength = _file.GetBytes(index, _data.Length, _data, 0); 144if (length <= _data.Length) { 146_chunkLength = _file.GetBytes(offset, _data.Length, _data, 0); 193if (_file == null && _length == _data.Length) {
HttpRequest.cs (18)
356if (rawQueryString.Length != 0) 408for (int i = 0; i < elements.Length; i++) { 442for (int i = 0; i < hh.Length; i++) 487for (int i = 0; i < hh.Length; i++) { 638for (int i = 0; i < hh.Length; i++) 779for (int iCookie = 0; iCookie < responseCookieArray.Length; iCookie++) 816for (int i = 0; i < elements.Length; i++) { 993_wr.UpdateRequestCounters(preloadedContent.Length); 994rawContent.AddBytes(preloadedContent, 0, preloadedContent.Length); 1007int bytesToRead = buf.Length; 1060int bytesRead = _installedFilter.Read(buf, 0, buf.Length); 1299_contentLength = preloadedContent.Length; 2075if (rawQueryString.Length > 0) 2164return (rawQueryString.Length > 0); 2630if (invalidChars != null && invalidChars.Length > 0) { 2667if (invalidChars != null && invalidChars.Length > 0) { 3205if (buffer.Length - offset < count) 3224wr.InsertEntityBody(buffer, 0, buffer.Length);
HttpResponse.cs (11)
678_wr.SendResponseFromMemory(chunkPrefix, chunkPrefix.Length); 682_wr.SendResponseFromMemory(s_chunkSuffix, s_chunkSuffix.Length); 686_wr.SendResponseFromMemory(s_chunkEnd, s_chunkEnd.Length); 985if (dependencies.Length == 0) { 996CacheDependency[] deps = new CacheDependency[_userAddedDependencies.Length + dependencies.Length]; 998for (i = 0; i < _userAddedDependencies.Length; i++) { 1001for (int j = 0; j < dependencies.Length; j++) { 1943OutputStream.Write(buffer, 0, buffer.Length); 3638size += info.items.Length; 3645int length = info.items.Length;
HttpRuntime.cs (9)
1353byte[] bKeysRandom = new byte[s_autogenKeys.Length]; 1354byte[] bKeysStored = new byte[s_autogenKeys.Length]; 1364bKeysRandom, bKeysRandom.Length, bKeysStored, bKeysStored.Length) == 1); 1368Buffer.BlockCopy(bKeysStored, 0, s_autogenKeys, 0, s_autogenKeys.Length); 1370Buffer.BlockCopy(bKeysRandom, 0, s_autogenKeys, 0, s_autogenKeys.Length); 1631wr.SendResponseFromMemory(body, body.Length); 1654wr.SendResponseFromMemory(body, body.Length); 1741response.OutputStream.Write(appOfflineMessage, 0, appOfflineMessage.Length);
httpserverutility.cs (4)
1391return HttpEncoder.Current.UrlEncode(bytes, 0, bytes.Length, false /* alwaysCreateNewReturnValue */); 1401return UrlEncodeToBytes(bytes, 0, bytes.Length); 1457return UrlDecode(bytes, 0, bytes.Length, e); 1495return UrlDecodeToBytes(bytes, 0, (bytes != null) ? bytes.Length : 0);
HttpValueCollection.cs (4)
217int l = (bytes != null) ? bytes.Length : 0; 323if (values == null || values.Length == 0) { 326else if (values.Length == 1) { 334for (int j = 0; j < values.Length; j++) {
HttpWriter.cs (6)
592return new HttpResponseBufferElement(data, data.Length); 727if (buffer.Length - offset < count) 999_charBufferLength = _charBuffer.Length; 1227_buffers.CopyTo(dstIndex, temp, 0, temp.Length); 1235for (int i = 0; i < temp.Length; i++) { 1631if (buffer.Length - index < count)
IisTraceListener.cs (1)
103for (int i=0; i< data.Length; i++) {
ImplicitAsyncPreloadModule.cs (2)
82IAsyncResult readAsyncResult = _inputStream.BeginRead(buffer, 0, buffer.Length, _callback, httpAsyncResult); 116readAsyncResult = _inputStream.BeginRead(buffer, 0, buffer.Length, _callback, httpAsyncResult);
Management\EventlogProvider.cs (1)
292newChars[newChars.Length-1] = s[maxIndex];
Management\MailWebEventProvider.cs (1)
202if (eventsChunk == null || eventsChunk.Length != chunkSize) {
Management\SqlServices.cs (4)
187for (int i=0; i < s_featureInfos.Length; i++) { 276for (int i=0; i < s_featureInfos.Length; i++) { 290for(int j = 0; j < sqlFiles.Length; j++) { 606for (int i=0; i < s_featureInfos.Length; i++)
ModelBinding\CollectionModelBinderUtil.cs (3)
57if (indexes != null && indexes.Length > 0) { 84if (modelTypeArguments.Length != supportedInterfaceType.GetGenericArguments().Length) {
ModelBinding\Error.cs (2)
28modelType, modelType.GetGenericArguments().Length, modelBinderType, modelBinderType.GetGenericArguments().Length);
ModelBinding\GenericModelBinderProvider.cs (2)
103if (modelType.GetGenericArguments().Length != modelBinderType.GetGenericArguments().Length) {
ModelBinding\PrefixContainer.cs (1)
30return _sortedValues.Length > 0; // only match empty string when we have some value
ModelBinding\ValueProviderResult.cs (3)
115IList converted = Array.CreateInstance(destinationElementType, valueAsArray.Length); 116for (int i = 0; i < valueAsArray.Length; i++) { 131if (valueAsArray.Length > 0) {
MultipartContentParser.cs (1)
215int len = _boundary.Length;
OutputCacheModule.cs (13)
207for (i = a.Length - 1; i >= 0; i--) { 216for (i = 0, n = a.Length; i < n; i++) { 293for (int k = 0; k < contentEncodings.Length; k++) { 354for (int i = startIndex; i < contentEncodings.Length; i++) { 365for (int i = startIndex; i < contentEncodings.Length; i++) { 652if (startIndex < contentEncodings.Length) { 745for (i = 0; i < cacheDirectives.Length; i++) { 802for (i = 0; i < pragmaDirectives.Length; i++) { 820for (i = 0, n = settings.ValidationCallbackInfo.Length; i < n; i++) { 931for (i = 0, n = etags.Length; i < n; i++) { 1203for (i = 0, n = varyByHeaders.Length; i < n; i++) { 1211varyByAllParams = (varyByParams.Length == 1 && varyByParams[0] == ASTERISK); 1216for (i = 0, n = varyByParams.Length; i < n; i++) {
Profile\HttpProfileBase.cs (1)
404NameValueCollection baseProperties = new NameValueCollection(baseProps.Length);
Profile\ProfileModule.cs (5)
159for (int iter = 0; iter < names.Length / 4; iter++) { 179if (names[iter * 4 + 1] == "B" && startPos >= 0 && length > 0 && buf.Length >= startPos + length) { 252ms.Write(b2, 0, b2.Length); 253ms.Position = startPos + b2.Length; 254len = b2.Length;
Profile\SqlProfileProvider.cs (4)
318int numUsersRemaing = usernames.Length; 321string allUsers = usernames[usernames.Length - numUsersRemaing]; 323for (int iter = usernames.Length - numUsersRemaing; iter < usernames.Length; iter++)
RequestTimeoutManager.cs (3)
29for (int i = 0; i < _lists.Length; i++) 82for (int i = 0; i < _lists.Length; i++) { 118if (i >= _lists.Length) {
Security\ADMembershipProvider.cs (6)
3405byte[] bAll = new byte[bSalt.Length + bIn.Length]; 3406Buffer.BlockCopy(bSalt, 0, bAll, 0, bSalt.Length); 3407Buffer.BlockCopy(bIn, 0, bAll, bSalt.Length, bIn.Length); 3421return Encoding.Unicode.GetString(bAll, AD_SALT_SIZE_IN_BYTES, bAll.Length - AD_SALT_SIZE_IN_BYTES);
Security\AnonymousIdentificationModule.cs (5)
344byte [] bufIdLen = BitConverter.GetBytes(bufId.Length); 346byte [] buffer = new byte[12 + bufId.Length]; 350Buffer.BlockCopy(bufId, 0, buffer, 12, bufId.Length); 362if (bBlob == null || bBlob.Length < 13) 368if (len < 0 || len > bBlob.Length - 12)
Security\AntiXss\CssEncoder.cs (1)
46if (currentCodePoint >= characterValues.Length) {
Security\AntiXss\HtmlParameterEncoder.cs (4)
104char[] encodedInput = new char[utf8Bytes.Length * 3]; // Each byte can potentially be encoded as %xx 107for (int characterPosition = 0; characterPosition < utf8Bytes.Length; characterPosition++) { 110if (currentCharacter == 0x00 || currentCharacter == 0x20 || currentCharacter > characterValues.Length || characterValues[currentCharacter] != null) { 133for (int j = 0; j < encodedCharacter.Length; j++) {
Security\AuthStoreRoleProvider.cs (4)
209if (users.Length != 0) 276object[] roles = new object[ roleNames.Length ]; 331object[] roles = new object[ roleNames.Length ]; 706if (names.Length > 1) {
Security\CookieProtection.cs (10)
32int count = buf.Length; 39if (buf.Length >= count + bMac.Length) 41Buffer.BlockCopy (bMac, 0, buf, count, bMac.Length); 46buf = new byte[count + bMac.Length]; 48Buffer.BlockCopy (bMac, 0, buf, count, bMac.Length); 50count += bMac.Length; 56count = buf.Length; 58if (count < buf.Length) 84buf = MachineKeySection.EncryptOrDecryptData (false, buf, null, 0, buf.Length);
Security\Cryptography\CryptographicKey.cs (1)
24return checked(_keyMaterial.Length * 8);
Security\Cryptography\CryptoUtil.cs (6)
34char[] hex = new char[checked(data.Length * 2)]; 36for (int i = 0; i < data.Length; i++) { 77return ComputeSHA256Hash(input, 0, input.Length); 112int bytesRemaining = output.Length; 118int bytesToCopy = Math.Min(bytesRemaining, hashed.Length); 145for (int i = 0; i < binary.Length; i++) {
Security\Cryptography\MachineKeyMasterKeyProvider.cs (1)
91if (keyMaterial != null && keyMaterial.Length > 0) {
Security\Cryptography\NetFXCryptoService.cs (6)
70memStream.Write(iv, 0, iv.Length); 78cryptoStream.Write(clearData, 0, clearData.Length); 97memStream.Write(signature, 0, signature.Length); 137int encryptedPayloadByteCount = protectedData.Length - ivByteCount - signatureByteCount; 151buffer2: computedSignature, buffer2Offset: 0, buffer2Count: computedSignature.Length)) { 162Buffer.BlockCopy(protectedData, 0, iv, 0, iv.Length);
Security\Cryptography\Purpose.cs (7)
68SaveDerivedKeys = (SpecificPurposes.Length == 0); 87string[] newSpecificPurposes = new string[SpecificPurposes.Length + 1]; 88Array.Copy(SpecificPurposes, newSpecificPurposes, SpecificPurposes.Length); 89newSpecificPurposes[newSpecificPurposes.Length - 1] = specificPurpose; 102string[] newSpecificPurposes = new string[SpecificPurposes.Length + specificPurposes.Count]; 103Array.Copy(SpecificPurposes, newSpecificPurposes, SpecificPurposes.Length); 104specificPurposes.CopyTo(newSpecificPurposes, SpecificPurposes.Length);
Security\Cryptography\SP800_108.cs (3)
75int labelLength = (label != null) ? label.Length : 0; 76int contextLength = (context != null) ? context.Length : 0; 100int numBytesToCopy = Math.Min(numBytesRemaining, K_i.Length);
Security\FormsAuthentication.cs (12)
148if (bBlob == null || bBlob.Length < 1) 157ticketLength = unprotectedData.Length; 167bBlob = MachineKeySection.EncryptOrDecryptData(false, bBlob, null, 0, bBlob.Length, false, false, IVType.Random); 172ticketLength = bBlob.Length; 267byte[] bMac = MachineKeySection.HashData(bBlob, null, 0, bBlob.Length); 270byte[] bAll = new byte[bMac.Length + bBlob.Length]; 271Buffer.BlockCopy(bBlob, 0, bAll, 0, bBlob.Length); 272Buffer.BlockCopy(bMac, 0, bAll, bBlob.Length, bMac.Length); 281bBlob = MachineKeySection.EncryptOrDecryptData(true, bBlob, null, 0, bBlob.Length, false, false, IVType.Random); 852bData, bData.Length,
Security\FormsAuthenticationTicketSerializer.cs (1)
237for (int i = 0; i < chars.Length; i++) {
Security\MachineKey.cs (16)
41byte[] bHash = MachineKeySection.HashData(data, null, 0, data.Length); 42byte[] bAll = new byte[bHash.Length + data.Length]; 43Buffer.BlockCopy(data, 0, bAll, 0, data.Length); 44Buffer.BlockCopy(bHash, 0, bAll, data.Length, bHash.Length); 51data = MachineKeySection.EncryptOrDecryptData(true, data, null, 0, data.Length, false, false, IVType.Random, !AppSettings.UseLegacyMachineKeyEncryption); 79if (data == null || data.Length < 1) 85data = MachineKeySection.EncryptOrDecryptData(false, data, null, 0, data.Length, false, false, IVType.Random, !AppSettings.UseLegacyMachineKeyEncryption); 93if (data.Length < MachineKeySection.HashSize) 96data = new byte[originalData.Length - MachineKeySection.HashSize]; 97Buffer.BlockCopy(originalData, 0, data, 0, data.Length); 101byte[] bHash = MachineKeySection.HashData(data, null, 0, data.Length); 102if (bHash == null || bHash.Length != MachineKeySection.HashSize) 104for (int iter = 0; iter < bHash.Length; iter++) { 105if (bHash[iter] != originalData[data.Length + iter])
Security\Membership.cs (1)
356cBuf[k] = punctuations[rand.Next(0, punctuations.Length)];
Security\MembershipAdapter.cs (1)
44return MachineKeySection.EncryptOrDecryptData(encrypt, buffer, (byte[])null, 0, buffer.Length, false /* useValidationSymAlgo */, useLegacyMode, IVType.None, false /*Sign*/);
Security\Roles.cs (2)
156if (roles != null && roles.Length > 0) 158for (int i = 1; i < roles.Length; i++)
Security\SQLMembershipProvider.cs (21)
1914if (kha.Key.Length == bSalt.Length) { 1916} else if (kha.Key.Length < bSalt.Length) { 1917byte[] bKey = new byte[kha.Key.Length]; 1918Buffer.BlockCopy(bSalt, 0, bKey, 0, bKey.Length); 1921byte[] bKey = new byte[kha.Key.Length]; 1922for (int iter = 0; iter < bKey.Length; ) { 1923int len = Math.Min(bSalt.Length, bKey.Length - iter); 1932byte[] bAll = new byte[bSalt.Length + bIn.Length]; 1933Buffer.BlockCopy(bSalt, 0, bAll, 0, bSalt.Length); 1934Buffer.BlockCopy(bIn, 0, bAll, bSalt.Length, bIn.Length); 1938byte[] bAll = new byte[bSalt.Length + bIn.Length]; 1939Buffer.BlockCopy(bSalt, 0, bAll, 0, bSalt.Length); 1940Buffer.BlockCopy(bIn, 0, bAll, bSalt.Length, bIn.Length); 1962return Encoding.Unicode.GetString(bRet, SALT_SIZE, bRet.Length - SALT_SIZE);
Security\SQLRoleProvider.cs (16)
401int numUsersRemaing = usernames.Length; 405string allUsers = usernames[usernames.Length - numUsersRemaing]; 407for (iter = usernames.Length - numUsersRemaing; iter < usernames.Length; iter++) 415int numRolesRemaining = roleNames.Length; 418string allRoles = roleNames[roleNames.Length - numRolesRemaining]; 420for (iter = roleNames.Length - numRolesRemaining; iter < roleNames.Length; iter++) 519int numUsersRemaing = usernames.Length; 522string allUsers = usernames[usernames.Length - numUsersRemaing]; 524for (iter = usernames.Length - numUsersRemaing; iter < usernames.Length; iter++) { 531int numRolesRemaining = roleNames.Length; 533string allRoles = roleNames[roleNames.Length - numRolesRemaining]; 535for (iter = roleNames.Length - numRolesRemaining; iter < roleNames.Length; iter++) {
Security\WindowsTokenRoleProvider.cs (1)
132for (int iter = 0; iter < roles.Length; iter++) {
SiteMapNode.cs (1)
478if (keys != null && keys.Length > 1) {
SiteMapNodeCollection.cs (1)
50_initialSize = value.Length;
SiteMapProvider.cs (1)
375int len = ds.Length;
State\OutOfProcStateClientManager.cs (1)
218if (parts.Length != 2) {
State\SessionIDManager.cs (2)
426for (i = s_encoding.Length - 1; i >= 0; i--) { 458Debug.Assert(buffer.Length == ID_LENGTH_BYTES);
State\SessionStateItemCollection.cs (1)
525if (buffer == null || buffer.Length < position.DataLength) {
State\StateRuntime.cs (2)
491responseStream.Write(buf, 0, buf.Length); 530requestStream.Read(buf, 0 , buf.Length);
StaticFileHandler.cs (3)
399if (byteRangesCount >= byteRanges.Length) { 401ByteRange[] buffer = new ByteRange[byteRanges.Length * 2]; 402int byteCount = byteRanges.Length * Marshal.SizeOf(byteRanges[0]);
UI\Control.cs (1)
304if (dataKeysContainer != null && (((IDataKeysControl)dataKeysContainer).ClientIDRowSuffix != null) && (((IDataKeysControl)dataKeysContainer).ClientIDRowSuffix.Length > 0)) {
UI\ControlBuilder.cs (4)
1034if (attrs.Length > 0) { 1717if ((attrs != null) && (attrs.Length > 0)) { 1753if ((containerAttrs != null) && (containerAttrs.Length > 0)) { 1987if ((attrs != null) && (attrs.Length > 0)) {
UI\ControlCollection.cs (5)
79else if (_size >= _controls.Length) { 80Control[] newArray = new Control[_controls.Length * _growthFactor ]; 81Array.Copy(_controls, newArray, _controls.Length); 127else if (_size >= _controls.Length) { 129Control[] newArray = new Control[_controls.Length * _growthFactor ];
UI\CssTextWriter.cs (3)
134if ((int)styleKey >= 0 && (int)styleKey < attrNameLookupArray.Length) { 147if ((int)styleKey >= 0 && (int)styleKey < attrNameLookupArray.Length) { 186if ((int)key < attrNameLookupArray.Length) {
UI\DataBinder.cs (2)
89Debug.Assert((expressionParts != null) && (expressionParts.Length != 0), 95for (prop = container, i = 0; (i < expressionParts.Length) && (prop != null); i++) {
UI\DataBoundLiteralControl.cs (4)
107int dataBoundLiteralCount = _dataBoundLiteral.Length; 110for (int i=0; i<_staticLiterals.Length; i++) { 162int dataBoundLiteralCount = _dataBoundLiteral.Length; 165for (int i=0; i<_staticLiterals.Length; i++) {
UI\DesignTimeTemplateParser.cs (1)
27if (parsedControls.Length > 0) {
UI\EventValidationStore.cs (4)
87if (entry.Length != HASH_SIZE_IN_BYTES) { 110Debug.Assert(currentOffset == bufferToBeHashed.Length, "Should have populated the entire buffer."); 144Debug.Assert(x.Length == HASH_SIZE_IN_BYTES); 145Debug.Assert(y.Length == HASH_SIZE_IN_BYTES);
UI\Html32TextWriter.cs (1)
180for (int i = 0; i < attribs.Length; i++) {
UI\HtmlControls\HtmlSelect.cs (4)
399if (n == temp.Length) { 894for (int i=0; i < selectedIndices.Length; i++) { 943int count = selectedItems.Length; 951if (oldSelectedIndices.Length == count) {
UI\HTMLTextWriter.cs (18)
623if ((int)key < _tagNameLookupArray.Length) { 641if ((int)key < _attrNameLookupArray.Length) { 676if (_tagIndex < 0 || _tagIndex >= _tagNameLookupArray.Length) { 696Debug.Assert(_tagIndex >= 0 && _tagIndex < _tagNameLookupArray.Length); 717if (attributeIndex >= 0 && attributeIndex < _attrNameLookupArray.Length) { 725if (attributeIndex >= 0 && attributeIndex < _attrNameLookupArray.Length) { 740else if (_attrCount >= _attrList.Length) { 741RenderAttribute[] newArray = new RenderAttribute[_attrList.Length * 2]; 742Array.Copy(_attrList, newArray, _attrList.Length); 767else if (_styleCount > _styleList.Length) { 768RenderStyle[] newArray = new RenderStyle[_styleList.Length * 2]; 769Array.Copy(_styleList, newArray, _styleList.Length); 805if (0 <= (int)attrKey && (int)attrKey < _attrNameLookupArray.Length) { 833if ((int)attrKey >= 0 && (int)attrKey < _attrNameLookupArray.Length) 859if (tagIndex >= 0 && tagIndex < _tagNameLookupArray.Length) 930else if (_endTagCount >= _endTags.Length) { 931TagStackEntry[] newArray = new TagStackEntry[_endTags.Length * 2]; 932Array.Copy(_endTags, newArray, _endTags.Length);
UI\ListSourceHelper.cs (1)
52for (int i = 0; i < viewNamesArray.Length; i++) {
UI\LOSFormatter.cs (3)
86if (current > data.Length - blockSize) { 87char[] bigger = new char[data.Length * 2]; 88Array.Copy(data, bigger, data.Length);
UI\ObjectConverter.cs (1)
85if (tokens.Length != 2) {
UI\ObjectStateFormatter.cs (17)
371int length = inputBytes.Length; 383length = clearData.Length; 391length = inputBytes.Length; 726for (int i = 0; i < KnownTypes.Length; i++) { 740for (int i = 0; i < KnownTypes.Length; i++) { 788length = protectedData.Length; 796length = buffer.Length; 1054for (int i = 0; i < strings.Length; i++) { 1067writer.WriteEncoded(strings.Length); 1068for (int i = 0; i < strings.Length; i++) { 1078if (values.Length > 3) { 1079int sparseThreshold = (values.Length / 4) + 1; 1082for (int i = 0; i < values.Length; ++i) { 1097writer.WriteEncoded(values.Length); 1113writer.WriteEncoded(values.Length); 1114for (int i = values.Length - 1; i >= 0; i--) { 1185if (buffer.Length != 0) {
UI\Page.cs (4)
1856clearData = MachineKeySection.EncryptOrDecryptData(fEncrypt: false, buf: protectedData, modifier: null, start: 0, length: protectedData.Length, useValidationSymAlgo: false, useLegacyMode: false, ivType: IVType.Hash); 1890if ((queryString == null) || (queryString.Length < 28)) { 1955int numNull = nullValues.Length; 2021protectedData = MachineKeySection.EncryptOrDecryptData(fEncrypt: true, buf: clearData, modifier: null, start: 0, length: clearData.Length, useValidationSymAlgo: false, useLegacyMode: false, ivType: IVType.Hash);
UI\PageTheme.cs (1)
114if (LinkedStyleSheets != null && LinkedStyleSheets.Length > 0) {
UI\PartialCachingControl.cs (1)
492if (cachedVary._varyByParams.Length == 1 && cachedVary._varyByParams[0] == "*")
UI\StateManagedCollection.cs (3)
111return types.Length; 169for (int i = 0; i < states.Length; i++) { 207for (int i = 0; i < states.Length; i++) {
UI\SupportsEventValidationAttribute.cs (1)
42bool supportsEventValidation = ((attribs != null) && (attribs.Length > 0));
UI\TemplateParser.cs (1)
630if ((attrs != null) && (attrs.Length > 0)) {
UI\TraceContext.cs (3)
545for (i = 0; i<cookies.Length; i++) { 575for (i = 0; i<cookies.Length; i++) { 846for (int i = 0; i < keys.Length; i++) {
UI\Util.cs (9)
243return entries.Length > 0; 278for (int i = 0; i < invalidFileNameChars.Length; ++i) { 613if (instanceAttrs == null || instanceAttrs.Length == 0) { 724if (tmp.Length > 2) { 826if (parts.Length > 1) 827ns = String.Join(".", parts, 0, parts.Length-1); 830return parts[parts.Length-1]; 1082int chunkCount = chunks.Length - chunksToIgnore; 1552for (int i=0; i<cultures.Length; i++) {
UI\WebControls\AdRotator.cs (4)
868if (_adRecs == null || _adRecs.Length == 0) { 881for (int i = 0; i < _adRecs.Length; i++) { 895for (int i = 0; i < _adRecs.Length; i++) { 905Debug.Assert(selectedIndex >= 0 && selectedIndex < _adRecs.Length, "Index not found");
UI\WebControls\AutoFieldsGenerator.cs (1)
72int fieldCount = autoGenFieldStateArray.Length;
UI\WebControls\basecomparevalidator.cs (1)
161if (groupSizes != null && groupSizes.Length == 1) {
UI\WebControls\Calendar.cs (1)
1822for (int i = 0; i<myState.Length; i++) {
UI\WebControls\ChangePassword.cs (1)
1852if (myState.Length != _viewStateArrayLength) {
UI\WebControls\ColumnCollection.cs (2)
229if (columnsState.Length == columns.Count) { 230for (int i = 0; i < columnsState.Length; i++) {
UI\WebControls\CreateUserWizard.cs (2)
2538if (myState.Length != _viewStateArrayLength) { 3404for (int i = 0; i < _innerCells.Length; i++) {
UI\WebControls\DataBoundControlHelper.cs (3)
66if (stringA.Length != stringB.Length) { 70for (int i = 0; i < stringA.Length; i++) {
UI\WebControls\DataGrid.cs (6)
987for (i = 0; i < definedColumns.Length; i++) 1103for (int c = 0; c < displayColumns.Length; c++) { 1246InitializePager(item, columns.Length, pagedDataSource); 1281for (int i = 0; i < columns.Length; i++) { 1459int columnCount = autoGenColumnState.Length; 1850for (int i = 0; i < autoGenColumnState.Length; i++) {
UI\WebControls\DataKey.cs (2)
102for (int i = 0; i < myState.Length && i < _keyNames.Length; i++) {
UI\WebControls\DataKeyArray.cs (1)
120for (int i = 0; i < keysState.Length; i++) {
UI\WebControls\DetailsView.cs (9)
1020_keyTable = new OrderedDictionary(DataKeyNamesInternal.Length); 1696if (dataBinding && (keyFields.Length != 0)) { 2209for (int i = 0; i < fields.Length && i < rows.Count; i++) { 2969if (DataKeyNames.Length > 0 && !AutoGenerateRows) { 3203if (arguments.Length == 2) { 3346Debug.Assert((arguments != null && (arguments.Length == 4)), "An unexpected number of params came through"); 3434(_dataKeyNames != null && _dataKeyNames.Length > 0) || 3458if (_dataKeyNames != null && _dataKeyNames.Length > 0) { 3574string dataKeyName = DataKeyNamesInternal.Length > 0 ? DataKeyNamesInternal[0] : "";
UI\WebControls\DetailsViewRowsGenerator.cs (1)
67int keyNamesLength = dataKeyNames.Length;
UI\WebControls\FileUpload.cs (1)
91if (completeImage.Length != fileStreamIntLength) {
UI\WebControls\FontInfo.cs (3)
98if (names.Length > 0) 251if (Names.Length == 0) { 466return names.Length > 0;
UI\WebControls\FontNamesConverter.cs (1)
45for (int i = 0; i < names.Length; i++) {
UI\WebControls\FormView.cs (7)
857_keyTable = new OrderedDictionary(DataKeyNamesInternal.Length); 1460if (dataBinding && (keyFields.Length != 0)) { 2543(Font.Names.Length != 0) || 2605if (DataKeyNames.Length > 0) { 2896(_dataKeyNames != null && _dataKeyNames.Length > 0) || 2919if (_dataKeyNames != null && _dataKeyNames.Length > 0) { 3020string dataKeyName = DataKeyNamesInternal.Length > 0 ? DataKeyNamesInternal[0] : "";
UI\WebControls\GridView.cs (27)
1198if (DataKeyNamesInternal == null || DataKeyNamesInternal.Length == 0) { 1230if ((DataKeyNamesInternal.Length > 0) && EnablePersistedSelection) { 2060for (int c = 0; c < displayFields.Length; c++) { 2082bool storeKeys = (dataBinding && (dataKeyNames.Length != 0)); 2083bool storeSuffix = (dataBinding && ClientIDRowSuffixInternal.Length != 0); 2113if (ShowHeader && ShowHeaderWhenEmpty && displayFields.Length > 0) { 2153OrderedDictionary keyTable = new OrderedDictionary(dataKeyNames.Length); 2167OrderedDictionary suffixTable = new OrderedDictionary(ClientIDRowSuffixInternal.Length); 2213OrderedDictionary keyTable = new OrderedDictionary(dataKeyNames.Length); 2227OrderedDictionary suffixTable = new OrderedDictionary(ClientIDRowSuffixInternal.Length); 2654InitializePager(row, fields.Length, pagedDataSource); 3319InitializeTemplateRow(row, fields.Length); 3329for (int i = 0; i < fields.Length; i++) { 3457if ((_dataKeyNames != null) && (_dataKeyNames.Length > 0)) { 3458_persistedDataKey = new DataKey(new OrderedDictionary(_dataKeyNames.Length), _dataKeyNames); 3482int dataKeyNamesLength = dataKeyNames.Length; 3485for (int i = 0; i < dataKeysState.Length; i++) { 3496int ClientIDRowSuffixLength = ClientIDRowSuffix.Length; 3500for (int i = 0; i < ClientIDRowSuffixDataKeysState.Length; i++) { 3639if (DataKeyNames.Length > 0 && !AutoGenerateColumns) { 3911if (arguments.Length == 4) { 3929if ((keyNames == null) || (keyNames.Length == 0)) { 4126Debug.Assert((arguments != null && (arguments.Length == 8)), "An unexpected number of params came through on " + eventArgument); 4232(_dataKeyNames != null && _dataKeyNames.Length != 0) || 4244state[6] = (_dataKeyNames == null || _dataKeyNames.Length == 0) ? null : (object)_dataKeyNames; 4248state[10] = (_clientIDRowSuffix == null || _clientIDRowSuffix.Length == 0) ? null : (object)_clientIDRowSuffix; 4421string dataKeyName = DataKeyNamesInternal.Length > 0 ? DataKeyNamesInternal[0] : "";
UI\WebControls\GridViewColumnsGenerator.cs (1)
113int keyNamesLength = dataKeyNames.Length;
UI\WebControls\HyperLinkField.cs (9)
243if (dataUrlValues.Length > 0 && !DataBinder.IsNull(dataUrlValues[0])) { 301if ((DataNavigateUrlFields.Length != 0) || 315Debug.Assert((DataTextField.Length != 0) || (DataNavigateUrlFields.Length != 0), 348int dataNavigateUrlFieldsLength = dataNavigateUrlFields.Length; 375int urlFieldDescsLength = urlFieldDescs.Length; 390if (DesignMode && (DataNavigateUrlFields.Length != 0) && dataNavValue.Length == 0) { 406if (arr1.Length != arr2.Length) { 409for (int i = 0; i < arr1.Length; i++) {
UI\WebControls\HyperLinkStyle.cs (1)
98if (names.Length > 0) {
UI\WebControls\ImageMap.cs (1)
148if (myState.Length != 2) {
UI\WebControls\Listbox.cs (1)
207int count = selectedItems.Length;
UI\WebControls\ListItemCollection.cs (1)
366for (int i=0; i < texts.Length; i++) {
UI\WebControls\login.cs (1)
1213if (myState.Length != _viewStateArrayLength) {
UI\WebControls\Menu.cs (1)
2340for (int i = 0; i < _imageUrls.Length; i++) {
UI\WebControls\MenuItemCollection.cs (3)
147if (pos == path.Length) { 233for (int i = 0; i < items.Length; i++) { 250for (int i = 0; i < nodeState.Length - 1; i++) {
UI\WebControls\MethodParametersDictionary.cs (1)
56for (int i = 0; i < names.Length; i++) {
UI\WebControls\ModelDataSourceView.cs (5)
435if (typeArguments.Length == 1) { 994if (methodParameters.Length > 0) { 995lastParameter = methodParameters[methodParameters.Length - 1]; 1149if (actionMethods.Length != 1) { 1179for (int i = 0; i < parameters.Length; i++) {
UI\WebControls\ObjectDataSourceView.cs (5)
1332for (int i = 0; i < parameters.Length; i++) { 1379int methodParametersCount = methodParameters.Length; 1494int methodParametersCount = methodParameters.Length; 1574int methodParameterCount = matchedMethodParameters.Length; 1578for (int i = 0; i < matchedMethodParameters.Length; i++) {
UI\WebControls\PagedDataSource.cs (2)
503if (indexBounds > array.Length) { 504indexBounds = array.Length;
UI\WebControls\PasswordRecovery.cs (1)
1398if (myState.Length != _viewStateArrayLength) {
UI\WebControls\SiteMapPath.cs (2)
623Debug.Assert(myState.Length == 5); 724for (int i = 0; i < myState.Length; i++) {
UI\WebControls\StringArrayConverter.cs (1)
48for (int i=0; i<names.Length; i++) {
UI\WebControls\Style.cs (2)
577if (names.Length > 0) { 647int n = array.Length;
UI\WebControls\TableCell.cs (1)
253if (arr.Length > 0) {
UI\WebControls\TableHeaderCell.cs (1)
123if (arr.Length > 0) {
UI\WebControls\TreeNode.cs (4)
210_depth = InternalValuePath.Split(TreeView.InternalPathSeparator).Length - 1; 659for (int i = 0; i < splitValuePath.Length; i++) { 1508if (isLast.Length < depth + 2) { 1510Array.Copy(isLast, 0, newIsLast, 0, isLast.Length);
UI\WebControls\TreeNodeCollection.cs (3)
150if (pos == path.Length) { 277for (int i = 0; i < items.Length; i++) { 299for (int i = 0; i < nodeState.Length - 1; i++) {
UI\WebControls\TreeView.cs (2)
2886for (int i = 0; i < _imageUrls.Length; i++) { 3365logLength = logParts.Length;
UI\WebControls\ValidationSummary.cs (1)
459for (int i = 0; i < errorDescriptions.Length; i++) {
UI\WebControls\Wizard.cs (1)
1663if (myState.Length != _viewStateArrayLength) {
UI\WebParts\BlobPersonalizationState.cs (2)
448if ((data != null) && (data.Length > 0)) { 473if (items != null && items.Length != 0) {
UI\WebParts\CatalogZoneBase.cs (4)
333for (int i = 0; i < _selectedCheckBoxValues.Length; i++) { 411if (myState.Length != controlStateArrayLength) { 445if (myState.Length != viewStateArrayLength) { 489if ((eventArguments.Length == 2) && (eventArguments[0] == selectEventArgument)) {
UI\WebParts\ConnectionsZone.cs (5)
1164if (state.Length != controlStateArrayLength) { 1203if (myState.Length != viewStateArrayLength) { 1301if (eventArguments.Length == 2 && 1312else if (eventArguments.Length == 3 && 1325else if (eventArguments.Length == 2 &&
UI\WebParts\EditorPart.cs (8)
154Debug.Assert(propertyDisplayNames.Length == propertyEditors.Length); 155Debug.Assert(propertyDisplayNames.Length == errorMessages.Length); 156Debug.Assert(propertyDescriptions == null || (propertyDescriptions.Length == propertyDisplayNames.Length)); 158if (propertyDisplayNames.Length == 0) { 166for (int i = 0; i < propertyDisplayNames.Length; i++) {
UI\WebParts\EditorZoneBase.cs (1)
295if (myState.Length != viewStateArrayLength) {
UI\WebParts\ImportCatalogPart.cs (1)
353if (myState.Length != controlStateArrayLength) {
UI\WebParts\PersonalizableTypeEntry.cs (3)
69if ((props != null) && (props.Length != 0)) { 70for (int i = 0; i < props.Length; i++) { 87if ((paramList != null && paramList.Length > 0) || pi.GetGetMethod() == null || pi.GetSetMethod() == null) {
UI\WebParts\PersonalizationProvider.cs (1)
300reset = (dataBlob == null) || (dataBlob.Length == 0);
UI\WebParts\PersonalizationProviderHelper.cs (5)
24if (array.Length == 0) { 30for (int i = 0; i < array.Length; i++) { 46result = new string[array.Length]; 68if (usernames != null && usernames.Length > 0 && 69paths != null && paths.Length > 1) {
UI\WebParts\PropertyGridEditorPart.cs (4)
314Debug.Assert(propertyDisplayNames.Length == editorControls.Length && propertyDisplayNames.Length == _errorMessages.Length);
UI\WebParts\RowToFieldTransformer.cs (1)
126for (int i=0; i < OldProviderNames.Length / 2; i++) {
UI\WebParts\RowToParametersTransformer.cs (13)
71if (providerSchema != null && _providerFieldNames != null && _providerFieldNames.Length > 0) { 90int consumerFieldNamesLength = (_consumerFieldNames != null) ? _consumerFieldNames.Length : 0; 91int providerFieldNamesLength = (_providerFieldNames != null) ? _providerFieldNames.Length : 0; 128int fieldNamesLength = fieldNames.Length; 147int consumerFieldNamesLength = (_consumerFieldNames != null) ? _consumerFieldNames.Length : 0; 188if (_consumerSchema != null && _consumerFieldNames != null && _consumerFieldNames.Length > 0) { 237int oldProviderNamesLength = (OldProviderNames != null) ? OldProviderNames.Length : 0; 242int oldConsumerNamesLength = (OldConsumerNames != null) ? OldConsumerNames.Length : 0; 278for (int j=0; j < providerFieldNames.Length; j++) { 283consumerFieldNames != null && consumerFieldNames.Length > j) { 332int oldProviderNamesLength = (OldProviderNames != null) ? OldProviderNames.Length : 0; 335Debug.Assert(oldProviderNamesLength == 2 * _consumerFieldNames.Length); 336for (int i=0; i < _consumerFieldNames.Length; i++) {
UI\WebParts\SqlPersonalizationProvider.cs (7)
707if (!beginTranCalled && paths.Length > 1) { 771bool hasPaths = !(paths == null || paths.Length == 0); 772bool hasUsernames = !(usernames == null || usernames.Length == 0); 818string firstPath = (paths != null && paths.Length > 0) ? paths[0] : null; 842if (!beginTranCalled && paths.Length > 1) { 863if (!beginTranCalled && usernames.Length > 1) { 908Debug.Assert((state != null) && (state.Length != 0));
UI\WebParts\ToolZone.cs (1)
231if (myState.Length != viewStateArrayLength) {
UI\WebParts\TransformerConfigurationWizardBase.cs (3)
76if (myState.Length != controlStateArrayLength) { 186int lengthA = (arrA == null) ? 0 : arrA.Length; 187int lengthB = (arrB == null) ? 0 : arrB.Length;
UI\WebParts\WebPartManager.cs (17)
1778Debug.Assert(consumerAttributes.Length == 0 || consumerAttributes.Length == 1); 1779if (consumerAttributes.Length == 1) { 1783if (parameters.Length == 1) { 1813Debug.Assert(providerAttributes.Length == 0 || providerAttributes.Length == 1); 1814if (providerAttributes.Length == 1) { 1817if (method.IsPublic && returnType != typeof(void) && method.GetParameters().Length == 0) { 1877if (count < displayTitleSuffix.Length) { 3257if (myState.Length != controlStateArrayLength) { 3308Debug.Assert(dynamicConnectionState.Length % 7 == 0); 3309for (int i = 0; i < dynamicConnectionState.Length; i += 7) { 3451Debug.Assert(dynamicWebPartState.Length % 4 == 0); 3455for (int i = 0; i < dynamicWebPartState.Length; i += 4) { 3471for (int i=0; i < deletedConnections.Length; i++) { 3518Debug.Assert(webPartState.Length % 4 == 0); 3519for (int i=0; i < webPartState.Length; i += 4) {
UI\WebParts\WebPartTransformerAttribute.cs (3)
85Debug.Assert(attributes.Length == 0 || attributes.Length == 1); 86if (attributes.Length == 1) {
UI\WebParts\WebPartUtil.cs (2)
30Type[] types = new Type[parameters.Length]; 31for (int i = 0; i < parameters.Length; i++) {
UI\WebParts\WebPartZoneBase.cs (5)
921if (myState.Length != viewStateArrayLength) { 990return (eventArguments.Length == 2); 994return (eventArguments.Length == 3 && 999return (eventArguments.Length == 3 && 1004return (eventArguments.Length == 3 &&
UI\WebParts\WebZone.cs (1)
499if (myState.Length != viewStateArrayLength) {
Util\AppVerifier.cs (1)
757for (int i = 0; i < fullStackTrace.FrameCount && i < traceLines.Length; i++) {
Util\ArglessEventHandlerProxy.cs (1)
22Debug.Assert(arglessMethod.GetParameters().Length == 0);
Util\AspCompat.cs (3)
486int len = (vv != null) ? vv.Length : 0; 490if (j < vv.Length-1) 558for (int i = 0; i < ss.Length; i++) {
Util\AssemblyUtil.cs (1)
19if (attributes.Length > 0) {
Util\CultureUtil.cs (2)
35int lastIndex = Math.Min(cultureNames.Length, maxCount) - 1; 37for (int i = 0; i < cultureNames.Length; i++) {
Util\HashCodeCombiner.cs (2)
61int n = a.Length; 144for (int index = 0; index < fileContentHashBytes.Length; index++) {
Util\HttpEncoder.cs (8)
489if (decodedBytesCount < decodedBytes.Length) { 638if (0 == offset && bytes.Length == count) { 679byte[] encodedBytes = UrlEncodeNonAscii(bytes, 0, bytes.Length, false /* alwaysCreateNewReturnValue */); 848for (int iter = len - 1; iter < base64Chars.Length; iter++) { 853return Convert.FromBase64CharArray(base64Chars, 0, base64Chars.Length); 859if (input.Length < 1) 920if (offset < 0 || offset > bytes.Length) { 923if (count < 0 || offset + count > bytes.Length) {
Util\Misc.cs (1)
72for (int i = 0; i < strings.Length; i++) {
Util\ResourcePool.cs (2)
146Debug.Trace("ResourcePool", "Timer disposing " + a.Length + "; remaining=" + _resources.Count); 152for (int i = 0; i < a.Length; i++) {
Util\SecUtil.cs (3)
155if (param.Length < 1) { 159Hashtable values = new Hashtable(param.Length); 160for (int i = param.Length - 1; i >= 0; i--) {
Util\StringUtil.cs (4)
220Debug.Assert(destIndex + len <= dest.Length, "dest"); 240int n = a.Length; 241if (n != b.Length) { 477String[] stringKeys = new String[objectArray.Length];
Util\TlsTokenBindingHandle.cs (1)
47int length = retVal.Length; // checks for overflow
Util\Utf16StringValidator.cs (2)
45for (int i = idxOfFirstSurrogate; i < chars.Length; i++) { 58if (i + 1 < chars.Length && Char.IsLowSurrogate(chars[i + 1])) {
Util\Wildcard.cs (6)
288Regex[][] dirs = new Regex[alts.Length][]; 290for (int i = 0; i < alts.Length; i++) { 293Regex[] dirregex = new Regex[dirpats.Length]; 295if (alts.Length == 1 && dirpats.Length == 1) { 302for (int j = 0; j < dirpats.Length; j++) {
WorkerRequest.cs (3)
698return (bytes != null) ? bytes.Length : 0; 706l = bytes.Length; 1222if (j < s_HTTPStatusDescriptions[i].Length)
System.Web.DataVisualization (690)
Common\Annotation\PolygonAnnotation.cs (4)
525for (int index = 0; index < points.Length; index++) 603 for(int pointIndex = 0; pointIndex < pathPoints.Length; pointIndex++) 891 for(int pointIndex = 0; pointIndex < pathPoints.Length; pointIndex++) 896 currentPathPointIndex >= pathPoints.Length )
Common\ChartTypes\AreaChart.cs (3)
569for (int i = 0; i < mapAreaPathPoints.Length; i++) 799 for(int pIndex = 1; pIndex < splinePoints.Length; pIndex++) 836 else if(pIndex == splinePoints.Length - 1)
Common\ChartTypes\BarChart.cs (3)
471 if(point.YValues.Length < this.YValuesPerPoint) 1160if (point.YValues.Length <= yValueIndex) 1389 if(point.YValues.Length < this.YValuesPerPoint)
Common\ChartTypes\BoxPlotChart.cs (5)
324 if(point.YValues.Length < this.YValuesPerPoint) 628 for(int valueIndex = 0; valueIndex < point.YValues.Length; valueIndex++) 717 for(int valueIndex = 6; valueIndex < point.YValues.Length; valueIndex++) 1105 if(point.YValues.Length < this.YValuesPerPoint) 1505 for(int valueIndex = 6; valueIndex < point.YValues.Length; valueIndex++)
Common\ChartTypes\BubbleChart.cs (2)
176 if(point.YValues.Length < this.YValuesPerPoint) 281if (point.YValues.Length < this.YValuesPerPoint)
Common\ChartTypes\ColumnChart.cs (1)
1313 if(point.YValues.Length < this.YValuesPerPoint)
Common\ChartTypes\ErrorBarChart.cs (2)
452 if(point.YValues.Length < this.YValuesPerPoint) 1206 if(point.YValues.Length < this.YValuesPerPoint)
Common\ChartTypes\FunnelChart.cs (2)
2635 for(int loop = 0; loop < percentages.Length; loop++) 2756 this._valuePercentages.Length > pointIndex )
Common\ChartTypes\LineChart.cs (4)
432 for(int pointIndex = 1; pointIndex < dataPointPos.Length; pointIndex++) 462 if(dataPointPos.Length > 1) 688 else if(dataPointPos.Length == 1 && 895if (pointIndex + 1 < points.Length)
Common\ChartTypes\PieChart.cs (37)
2079 for( int firstIndex = 0; firstIndex < startOfIntervals.Length; firstIndex++ ) 2081 for( int secondIndex = firstIndex; secondIndex < startOfIntervals.Length; secondIndex++ ) 2145 if( startOfIntervals.Length != endOfIntervals.Length ) 2154 for( int intervalIndex = 0; intervalIndex < startOfIntervals.Length - 1; intervalIndex++ ) 2166 double outOfArea = ( endOfIntervals[ endOfIntervals.Length - 1 ] - endArea ) + ( startArea - startOfIntervals[ 0 ] ); 2201 for( int intervalIndex = 0; intervalIndex < startOfIntervals.Length - 1; intervalIndex++ ) 2211 for( int reductionIndex = intervalIndex + 1; reductionIndex < startOfIntervals.Length; reductionIndex++ ) 2237 else if( endOfIntervals[ endOfIntervals.Length - 1 ] > endArea ) 2239 shift = endArea - endOfIntervals[ endOfIntervals.Length - 1 ]; 2242 for( int index = 0; index < startOfIntervals.Length; index++ ) 2258 if( startOfIntervals.Length != endOfIntervals.Length ) 2264 for( int index = 0; index < startOfIntervals.Length - 1; index++ ) 2313 if( splitIndex + 2 < startOfIntervals.Length - 1 ) 2315 for( int index = splitIndex + 2; index < startOfIntervals.Length; index++ ) 4422 if( startAngle <= 90 && endAngle > 90 || startAngle <= 450 && endAngle > 450 && frontPoint == -1 && ( points[points.Length-1] == null || points.Length == 1 ) ) 4429 points[points.Length-1] = point; 4430 newStartAngleList[points.Length-1] = startAngleList[pointIndx]; 4431 newSweepAngleList[points.Length-1] = sweepAngleList[pointIndx]; 4432 newPointIndexList[points.Length-1] = pointIndexList[pointIndx]; 4446 if( frontPoint == backPoint && points.Length != 1 ) 4448 points[points.Length-1] = null; 4449 newStartAngleList[points.Length-1] = 0; 4450 newSweepAngleList[points.Length-1] = 0; 4451 newPointIndexList[points.Length-1] = 0; 4622 listIndx = points.Length - 2; 4692 listIndx = points.Length - 2; 4887 for( int indexA = 0; indexA < _points.Length; indexA++ ) 5123 if( _numOfInsertedLabels < _points.Length / 2 ) 5127 for( int point = 0; point < _points.Length && _points[point] == null; point++ ) 5133 for( int point = _points.Length - 1; point >= 0 && _points[point] == null; point-- ) 5153 for( int point = numMove; point < _points.Length; point++ ) 5155 if(numEmptyUp+indexPoint > _points.Length - 1) 5166 int indexPoint = _points.Length - 1; 5167 for( int point = _points.Length - 1 - numMove; point >= 0; point-- )
Common\ChartTypes\PointAndFigureChart.cs (2)
334 if(dp.YValues.Length < 2) 439 for(int index = 1; index < availableBoxSizes.Length; index ++)
Common\ChartTypes\PointChart.cs (1)
1496if (point.YValues.Length <= yValueIndex)
Common\ChartTypes\RadarChart.cs (4)
317 float sectorSize = 360f / ((float)axesLocation.Length); 318 for(int index = 0; index < axesLocation.Length; index++) 875 if(area.CircularSectorsNumber == dataPointPos.Length - 1) 877 leftSidePoint = GetMiddlePoint(dataPointPos[firstPointIndex], dataPointPos[dataPointPos.Length - 2]);
Common\ChartTypes\RangeChart.cs (4)
353 if(point.YValues.Length < 2) 455PointF[] pointF = new PointF[pointsReversed.Length]; 456int pntIndex = pointsReversed.Length - 1; 464if (pointF.Length == 2)
Common\ChartTypes\RenkoChart.cs (1)
376 for(int index = 1; index < availableBoxSizes.Length; index ++)
Common\Converters\CustomAttributesConverters.cs (4)
296 if(array != null && array.Length > 0) 340 if(obj is Array && ((Array)obj).Length > 0) 344 seriesArray = new Series[((Array)obj).Length]; 376 SeriesChartType[] chartTypes = new SeriesChartType[seriesArray.Length];
Common\Converters\DataManagerConverters.cs (3)
518 double[] array = new double[values.Length]; 519 for(int index = 0; index < values.Length; index ++) 829 array = new Color[colorValues.Length];
Common\Converters\ElementPositionConverter.cs (1)
120 if(array.Length == 4)
Common\Converters\LegendConverters.cs (5)
133if (((Array)context.Instance).Length > 0 && ((Array)context.Instance).GetValue(0) is Legend) 141else if (((Array)context.Instance).Length > 0 && ((Array)context.Instance).GetValue(0) is ChartArea) 149else if (((Array)context.Instance).Length > 0 && ((Array)context.Instance).GetValue(0) is Title) 158else if (((Array)context.Instance).Length > 0 && ((Array)context.Instance).GetValue(0) is Annotation) 389 if(values.Length == 4)
Common\DataManager\DataManager.cs (8)
215if (palette == ChartColorPalette.None && this.PaletteCustomColors.Length == 0) 242 if(colorIndex >= paletteColors.Length) 357if (seriesPoint.YValues.Length > 1) 392if (seriesPoint.YValues.Length > 1) 427if (seriesPoint.YValues.Length > 1) 775if (seriesPoint.YValues.Length > 1) 973 Series[] seriesArray = new Series[series.Length]; 1033 Series[] seriesArray = new Series[series.Length];
Common\DataManager\DataPoint.cs (46)
355 otherFieldNames = new string[otherAttributeNames.Length]; 356 otherValueFormat = new string[otherAttributeNames.Length]; 359 for(int index = 0; index < otherAttributeNames.Length; index++) 413 for(int index = 0; index < yFieldNames.Length; index++) 456 object[] yValuesObj = new object[yFieldNames.Length]; 496if (yFieldNames.Length == 0) 507for (int i = 0; i < yFieldNames.Length; i++) 520otherAttributeNames.Length > 0) 522for (int i = 0; i < otherFieldNames.Length; i++) 599yValues.Length==1 && yValues[0]==null) 605 for(int i = 0; i < yValues.Length; i++) 640 for(int i = 0; i < yValues.Length; i++) 664for (int i = 0; i < yValues.Length; i++) 705for (int i = 0; i < yValues.Length; i++) 792 for(int index = 0; index < yFieldNames.Length; index++) 830 object[] yValuesObj = new object[yFieldNames.Length]; 885if (yFieldNames.Length == 0) 896for (int i = 0; i < yFieldNames.Length; i++) 997yValue.Length==1 && yValue[0]==null) 1002 yValue.Length > 0 && 1074 yValue.Length > 0 && 1896_yValue = new double[values.Length]; 1898for (int index = 0; index < values.Length; index++) 2167 for(int valueIndex = 0; valueIndex < this._yValue.Length; valueIndex++) 2187 if(yValue.Length == 0 || (base.series != null && yValue.Length > base.series.YValuesPerPoint)) 2191 for( int i = 0 ; i < yValue.Length ; i++ ) 2211if (this._yValue.Length < yValue.Length) 2213this._yValue = new double[yValue.Length]; 2221for (int i = 0; i < yValue.Length; i++) 2232for (int i = 0; i < yValue.Length; i++) 2246 for( int i = 0 ; i < yValue.Length ; i++ ) 2261 for( int i = 0 ; i < yValue.Length ; i++ ) 2270 for( int i = 0 ; i < yValue.Length ; i++ ) 2349 clonePoint._yValue = new double[this._yValue.Length]; 2375 for(int i = 0; i < ((_yValue.Length < newSize) ? _yValue.Length : newSize); i++) 2424 if(yIndex >= this.YValues.Length) 2505for (int index = this.YValues.Length; index <= 7; index++) 2510 for(int index = 1; index <= this.YValues.Length; index++) 2658if (YValues.Length == 1) 2665for (int i = 0; i < YValues.Length; i++) 2740 for(int i=0; i < _yValue.Length; i++) 4749 if(values.Length != 2) 6990 if(values.Length != 2)
Common\DataManager\DataSeries.cs (4)
962dataManager.PaletteCustomColors.Length == 0 980 if(colorIndex >= paletteColors.Length) 1597 if(this.Points.Count > 0 && this.Points[0].YValues.Length < this.YValuesPerPoint) 1701 for(int yValueIndex = 0; yValueIndex < point.YValues.Length; yValueIndex++)
Common\Formulas\FormulaHelpers.cs (10)
335for (int i = 0; i < _parameters.Length; i++) 354for (int i = 0; i < _parameters.Length && paramStringIndex < paramStringList.Length; i++) 399for (int i = 0; i < _parameters.Length && paramStringIndex < paramStringList.Length; i++) 1098for (int i = 2; i < Parameters.Length && paramStringIndex < paramStringList.Length; i++) 1415if (seriesFieldParts.Length > 2) 1425switch (seriesFieldParts.Length) 1437switch (seriesFieldParts.Length)
Common\Formulas\GeneralFormulas.cs (9)
63 if( inputValues.Length != 2 ) 73 outputValues[0] = new double [inputValues[0].Length]; 74 outputValues[1] = new double [inputValues[1].Length]; 77 for( int index = 0; index < inputValues[0].Length; index++ ) 105 if( inputValues.Length != 2 ) 113 outputValues[0] = new double [inputValues[0].Length]; 114 outputValues[1] = new double [inputValues[1].Length]; 118 for( int index = 0; index < inputValues[0].Length; index++ ) 124 for( int index = 0; index < inputValues[0].Length; index++ )
Common\Formulas\Oscillator.cs (40)
73 if( inputValues.Length != 5 ) 83if (parameterList.Length < 1 || 91if (parameterList.Length < 2 || 124 int period = Math.Min(ExpAvg.Length,ExpAvgDistribution.Length); 131 for( int index = inputValues[1].Length - period; index < inputValues[1].Length; index++ ) 142 else if( (expIndex + longPeriod - shortPeriod) < ExpAvg.Length) 176 if( inputValues.Length != 2 ) 206 outputValues[0] = new double [inputValues[0].Length - period*3/2]; 207 outputValues[1] = new double [inputValues[1].Length - period*3/2]; 210 for( int index = 0; index < outputValues[1].Length; index++ ) 255 if( inputValues.Length != 3 ) 265if (parameterList.Length < 1 || 276if (parameterList.Length < 2 || 287 double [] hiLowInput = new double[inputValues[1].Length]; 290 for( int index = 0; index < inputValues[1].Length; index++ ) 300 outputValues[0] = new double [outputAverage.Length - period]; 301 outputValues[1] = new double [outputAverage.Length - period]; 304 for( int index = 0; index < outputValues[1].Length; index++ ) 346 if( inputValues.Length != 2 ) 356if (parameterList.Length < 1 || 364if (parameterList.Length < 2 || 375if (parameterList.Length < 3 || 392 outputValues[0] = new double [longAverage.Length]; 393 outputValues[1] = new double [longAverage.Length]; 396 for( int index = 0; index < longAverage.Length; index++ ) 454 if( inputValues.Length != 4 ) 464if (parameterList.Length < 2 || 475if (parameterList.Length < 1 || 488 outputValues[0] = new double [inputValues[0].Length - periodK - periodD + 2]; 491 outputValues[1] = new double [inputValues[0].Length - periodK - periodD + 2]; 494 outputValues[2] = new double [inputValues[0].Length - periodK - periodD + 2]; 496 double [] K = new double [inputValues[0].Length - periodK + 1]; 499 for( int index = periodK - 1; index < inputValues[0].Length; index++ ) 567 if( inputValues.Length != 4 ) 575if (parameterList.Length < 1 || 588 outputValues[0] = new double [inputValues[0].Length - period + 1]; 591 outputValues[1] = new double [inputValues[0].Length - period + 1]; 594 for( int index = period - 1; index < inputValues[0].Length; index++ )
Common\Formulas\PriceIndicators.cs (80)
99 tempInput[0] = new double[inputValues.Length]; 137 int length = inputValues.Length; 162 if( inputValues[0].Length != inputValues[1].Length ) 166 if( inputValues[0].Length < period ) 174 outputValues[0] = new double [inputValues[0].Length]; 177 outputValues[1] = new double [inputValues[1].Length]; 179 for( int point = 0; point < inputValues[0].Length; point++ ) 213 outputValues[0] = new double [inputValues[0].Length - period + 1]; 216 outputValues[1] = new double [inputValues[1].Length - period + 1]; 225 for( int point = 0; point < outputValues[0].Length; point++ ) 233 if( point < outputValues[0].Length - 1 ) 277 tempInput[0] = new double[inputValues.Length]; 312 int length = inputValues.Length; 340 if( inputValues[0].Length != inputValues[1].Length ) 344 if( inputValues[0].Length < period ) 352 outputValues[0] = new double [inputValues[0].Length]; 355 outputValues[1] = new double [inputValues[1].Length]; 357 for( int point = 0; point < inputValues[0].Length; point++ ) 399 outputValues[0] = new double [inputValues[0].Length - period + 1]; 402 outputValues[1] = new double [inputValues[1].Length - period + 1]; 404 for( int point = 0; point < outputValues[0].Length; point++ ) 456 int length = inputValues.Length; 481 if( inputValues[0].Length != inputValues[1].Length ) 485 if( inputValues[0].Length < period ) 504 outputValues[0] = new double [outputValues[1].Length]; 511 for( int index = 0; index < outputValues[1].Length; index++ ) 539 int length = inputValues.Length; 564 if( inputValues[0].Length != inputValues[1].Length ) 568 if( inputValues[0].Length < period ) 576 outputValues[0] = new double [inputValues[0].Length]; 579 outputValues[1] = new double [inputValues[1].Length]; 581 for( int point = 0; point < inputValues[0].Length; point++ ) 620 outputValues[0] = new double [inputValues[0].Length - period + 1]; 623 outputValues[1] = new double [inputValues[1].Length - period + 1]; 625 for( int point = 0; point < outputValues[0].Length; point++ ) 682 int length = inputValues.Length; 714 if( inputValues[0].Length != inputValues[1].Length ) 718 if( inputValues[0].Length < period ) 726 outputValues[0] = new double [inputValues[0].Length]; 729 outputValues[1] = new double [inputValues[1].Length]; 730 outputValues[2] = new double [inputValues[1].Length]; 733 double [] average = new double [inputValues[1].Length]; 737 for( int point = 0; point < outputValues[0].Length; point++ ) 764 outputValues[0] = new double [inputValues[0].Length - period + 1]; 767 outputValues[1] = new double [inputValues[1].Length - period + 1]; 768 outputValues[2] = new double [inputValues[1].Length - period + 1]; 771 double [] average = new double [inputValues[1].Length - period + 1]; 775 for( int point = 0; point < outputValues[0].Length; point++ ) 812 int length = inputValues.Length; 823 outputValues[0] = new double [inputValues[0].Length]; 824 outputValues[1] = new double [inputValues[1].Length]; 826 for( int index = 0; index < inputValues[1].Length; index++ ) 854 int length = inputValues.Length; 865 outputValues[0] = new double [inputValues[0].Length]; 866 outputValues[1] = new double [inputValues[1].Length]; 868 for( int index = 0; index < inputValues[1].Length; index++ ) 901 int length = inputValues.Length; 912 outputValues[0] = new double [inputValues[0].Length]; 913 outputValues[1] = new double [inputValues[1].Length]; 915 for( int index = 0; index < inputValues[1].Length; index++ ) 958 int length = inputValues.Length; 987 if( inputValues[0].Length != inputValues[1].Length ) 995 outputValues[0] = new double[movingAverage[0].Length]; 996 outputValues[1] = new double[movingAverage[0].Length]; 997 outputValues[2] = new double[movingAverage[0].Length]; 999 for( int index = 0; index < movingAverage[0].Length; index++ ) 1030 outputValues = new double[inputValues.Length]; 1034 for( int index = 0; index < inputValues.Length; index++ ) 1055 outputValues = new double[inputValues.Length - period + 1]; 1059 for( int index = period - 1; index < inputValues.Length; index++ ) 1092 if( inputValues[0].Length != inputValues[1].Length ) 1100 if( inputValues[index].Length != inputValues[index+1].Length )
Common\Formulas\StatisticalAnalysis.cs (60)
171 if( inputValues.Length < 3 ) 176 for( int index = 0; index < inputValues.Length - 1; index++ ) 178 if( inputValues[index].Length != inputValues[index+1].Length ) 213 int m = inputValues.Length - 1; 214 int n = inputValues[0].Length; 348 if( inputValues.Length != 3 ) 396 if( inputValues.Length != 3 ) 440 if( inputValues.Length != 3 ) 521 fDistInv = FDistributionInverse( 1 - alpha, inputValues[1].Length - 1, inputValues[2].Length - 1 ); 522 fDist = 1 - FDistribution( valueF, inputValues[1].Length - 1, inputValues[2].Length - 1 ); 526 fDistInv = FDistributionInverse( alpha, inputValues[1].Length - 1, inputValues[2].Length - 1 ); 527 fDist = FDistribution( valueF, inputValues[1].Length - 1, inputValues[2].Length - 1 ); 575 if( inputValues.Length != 3 ) 659 double dev = Math.Sqrt( variance1 / inputValues[1].Length + variance2 / inputValues[2].Length ); 733 if( inputValues.Length != 3 ) 806 freedom = inputValues[1].Length + inputValues[2].Length - 2; 809 s = ( ( inputValues[1].Length - 1 ) * variance1 + ( inputValues[2].Length - 1 ) * variance2 ) / ( inputValues[1].Length + inputValues[2].Length - 2 ); 812 T = ( mean1 - mean2 - HypothesizedMeanDifference ) / ( Math.Sqrt( s * ( 1.0 / inputValues[1].Length + 1.0 / inputValues[2].Length ) ) ); 817 double m = inputValues[1].Length; 818 double n = inputValues[2].Length; 824 s = Math.Sqrt( variance1 / inputValues[1].Length + variance2 / inputValues[2].Length ); 906 if( inputValues.Length != 3 ) 909 if( inputValues[1].Length != inputValues[2].Length ) 967 double [] difference = new double[inputValues[1].Length]; 969 for( int item = 0; item < inputValues[1].Length; item++ ) 979 double T = ( Math.Sqrt( inputValues[1].Length ) * ( mean - HypothesizedMeanDifference ) ) / variance; 981 freedom = inputValues[1].Length - 1; 1388 if( inputValues[1].Length < 2 ) 1393 if( inputValues.Length > 2 ) 1395 if( inputValues[2].Length < 2 ) 1415 if( arrayX.Length != arrayY.Length ) 1420 double [] arrayXY = new double[arrayX.Length]; 1423 for( int index = 0; index < arrayX.Length; index++ ) 1613 if( inputValues.Length != 2 ) 1661 if( inputValues.Length != 2 ) 1699 if( inputValues.Length != 2 ) 1832 for( int outLoop = 0; outLoop < values.Length; outLoop++ ) 1834 for( int inLoop = outLoop + 1; inLoop < values.Length; inLoop++ ) 1854 if( values.Length == 0 ) 1862 int position = values.Length / 2; 1865 if( values.Length % 2 == 0 ) 1883 if( values.Length == 0 ) 1896 return sum / values.Length; 1909 if( values.Length < 1 ) 1925 return sum / ( values.Length - 1 ); 1929 return sum / values.Length;
Common\Formulas\TechGeneralIndicators.cs (63)
77 int length = inputValues.Length; 102 if( inputValues[0].Length != inputValues[1].Length ) 106 if( inputValues[0].Length < period ) 114 outputValues[0] = new double [outputValues[1].Length]; 115 for( int index = 0; index < outputValues[1].Length; index++ ) 147 if( inputValues.Length != 4 ) 155if (parameterList.Length < 1 || 173 double [] trueRange = new double [inputValues[0].Length - 1]; 176 for( int index = 1; index < inputValues[0].Length; index++ ) 193 outputValues[0] = new double [inputValues[0].Length-period]; 199 for( int index = period; index < inputValues[0].Length; index++ ) 224 if( inputValues.Length != 4 ) 235 outputValues[0] = new double [inputValues[0].Length - 1]; 236 outputValues[1] = new double [inputValues[0].Length - 1]; 239 for( int index = 1; index < inputValues[0].Length; index++ ) 279 if( inputValues.Length != 3 ) 287if (parameterList.Length < 1 || 298if (parameterList.Length < 2 || 307 double [] highLow = new double [inputValues[0].Length]; 311 for( int index = 0; index < inputValues[0].Length; index++ ) 324 outputValues[0] = new double [secondAverage.Length - period + 1]; 325 outputValues[1] = new double [secondAverage.Length - period + 1]; 330 for( int index = 2 * averagePeriod - 3 + period; index < inputValues[0].Length; index++ ) 369 if( inputValues.Length != 2 ) 377 outputValues[0] = new double [inputValues[0].Length]; 378 outputValues[1] = new double [inputValues[0].Length]; 381 for( int index = 0; index < inputValues[0].Length; index++ ) 418 if( inputValues.Length != 2 ) 426if (parameterList.Length < 1 || 437 outputValues[0] = new double [inputValues[0].Length - period]; 438 outputValues[1] = new double [inputValues[0].Length - period]; 441 for( int index = period; index < inputValues[0].Length; index++ ) 474 if( inputValues.Length != 2 ) 482if (parameterList.Length < 1 || 491 double [] upward = new double[inputValues[0].Length-1]; 492 double [] downward = new double[inputValues[0].Length-1]; 494 for( int index = 1; index < inputValues[0].Length; index++ ) 510 double [] averageUpward = new double[inputValues[0].Length]; 511 double [] averageDownward = new double[inputValues[0].Length]; 518 outputValues[0] = new double [averageDownward.Length]; 519 outputValues[1] = new double [averageDownward.Length]; 522 for( int index = 0; index < averageDownward.Length; index++ ) 558 if( inputValues.Length != 2 ) 566if (parameterList.Length < 1 || 590 outputValues[0] = new double [inputValues[0].Length - period * 3 + 2]; 591 outputValues[1] = new double [inputValues[0].Length - period * 3 + 2]; 595 for( int index = period * 3 - 2; index < inputValues[0].Length; index++ ) 636 if( inputValues.Length != 2 ) 644if (parameterList.Length < 1 || 655if (parameterList.Length < 2 || 678 outputValues[0] = new double [inputValues[0].Length - longPeriod + 1]; 679 outputValues[1] = new double [inputValues[0].Length - longPeriod + 1]; 683 for( int index = longPeriod - 1; index < inputValues[0].Length; index++ ) 726 if( inputValues.Length != 4 ) 734if (parameterList.Length < 1 || 744 double [] typicalPrice = new double[inputValues[0].Length]; 747 for( int index = 0; index < inputValues[0].Length; index++ ) 764 double [] meanDeviation = new double[movingAverage.Length]; 767 for( int index = 0; index < movingAverage.Length; index++ ) 779 outputValues[0] = new double [meanDeviation.Length]; 780 outputValues[1] = new double [meanDeviation.Length]; 783 for( int index = 0; index < meanDeviation.Length; index++ )
Common\Formulas\TimeSeriesAndForecasting.cs (42)
187if (parameterList.Length < 1 || 198if (degree > inputValues[0].Length) 203if (parameterList.Length < 2 || 206period = inputValues[0].Length / 2; 211if (parameterList.Length < 3 || 219if (parameterList.Length < 4 || 238inputErrorEst[0] = new double[inputValues[0].Length / 2]; 239inputErrorEst[1] = new double[inputValues[0].Length / 2]; 241for (int index = 0; index < inputValues[0].Length / 2; index++) 247Regression(regressionType, inputErrorEst, out outputErrorEst, degree, inputValues[0].Length / 2); 251for (int index = inputValues[0].Length / 2; index < outputErrorEst[1].Length; index++) 255error /= inputValues[0].Length - inputValues[0].Length / 2; 257error /= (inputValues[0].Length / 4); 261for (int index = 0; index < inputValues[0].Length; index++) 265dev /= inputValues[0].Length; 271outputValues[2] = new double[tempOut[0].Length]; 272outputValues[3] = new double[tempOut[0].Length]; 280for (int index = 0; index < inputValues[0].Length; index++) 286for (int index = inputValues[0].Length; index < tempOut[0].Length; index++) 310 double [] oldYValues = new double[ inputValues[1].Length ]; 311 for( int index = 0; index < inputValues[1].Length; index++ ) 333 interval = Math.Abs( inputValues[0][0] - inputValues[0][inputValues[0].Length - 1] ) / ( inputValues[0].Length - 1 ); 338 for( int index = 0; index < inputValues[0].Length; index++ ) 346 for( int i = 0; i < outputValues[0].Length; i++ ) 354 double [] oldYValues = new double[ inputValues[1].Length ]; 358 for( int index = 0; index < inputValues[1].Length; index++ ) 368 interval = Math.Abs( inputValues[0][0] - inputValues[0][inputValues[0].Length - 1] ) / ( inputValues[0].Length - 1 ); 378 for( int i = 0; i < outputValues[0].Length; i++ ) 406 int size = inputValues[0].Length; 411 interval = Math.Abs( inputValues[0][0] - inputValues[0][inputValues[0].Length - 1] ) / ( inputValues[0].Length - 1 ); 420 for( int xIndex = 0; xIndex < inputValues[0].Length; xIndex++ ) 427 for( int xIndex = 0; xIndex < inputValues[0].Length; xIndex++ ) 435 for( int index = 0; index < inputValues[0].Length; index++ ) 454 for( int j = 0; j < inputValues[0].Length; j++ ) 469 for( int j = 0; j < inputValues[0].Length; j++ ) 553 if( inputDeterminant.Length == 2 )
Common\Formulas\VolumeIndicator.cs (33)
136 int length = inputValues.Length; 161 if( inputValues[0].Length < period ) 166 outputValues[0] = new double [inputValues[0].Length - period + 1]; 167 outputValues[1] = new double [inputValues[0].Length - period + 1]; 168 double [] TypicalPrice = new double [inputValues[1].Length]; 169 double [] MoneyFlow = new double [inputValues[1].Length]; 170 double [] PositiveMoneyFlow = new double [inputValues[1].Length]; 171 double [] NegativeMoneyFlow = new double [inputValues[1].Length]; 174 for( int index = 0; index < inputValues[1].Length; index++ ) 183 for( int index = 1; index < inputValues[1].Length; index++ ) 201 for( int index = period - 1; index < inputValues[1].Length; index++ ) 245 if( inputValues.Length != 3 ) 253 outputValues[0] = new double [inputValues[0].Length]; 254 outputValues[1] = new double [inputValues[0].Length]; 264 for( int index = 1; index < inputValues[1].Length; index++ ) 302 if( inputValues.Length != 3 ) 310 outputValues[0] = new double [inputValues[0].Length]; 311 outputValues[1] = new double [inputValues[0].Length]; 317 for( int index = 1; index < inputValues[1].Length; index++ ) 354 if( inputValues.Length != 3 ) 369 outputValues[0] = new double [inputValues[0].Length]; 370 outputValues[1] = new double [inputValues[0].Length]; 376 for( int index = 1; index < inputValues[1].Length; index++ ) 424 if( inputValues.Length != 3 ) 439 outputValues[0] = new double [inputValues[0].Length]; 440 outputValues[1] = new double [inputValues[0].Length]; 446 for( int index = 1; index < inputValues[1].Length; index++ ) 488 if( inputValues.Length != 5 ) 496 outputValues[0] = new double [inputValues[0].Length]; 497 outputValues[1] = new double [inputValues[0].Length]; 499 double [] distribution = new double [inputValues[0].Length]; 507 for( int index = 0; index < inputValues[1].Length; index++ ) 518 for( int index = 0; index < inputValues[1].Length; index++ )
Common\General\Axis.cs (7)
2693Point3D[] points3D = new Point3D[points.Length]; 2694for (int i = 0; i < points.Length; i++) 2703for (int i = 0; i < points3D.Length; i++) 2710for (int i = 0; i < points.Length; i++) 4671for (int rowIndex = 0; rowIndex < textRows.Length; rowIndex++) 4720for (int rowIndex = 0; rowIndex < ((string[])labelTextRows[longestLabelIndex]).Length; rowIndex++) 5869if (this.groupingLabelSizes != null && this.groupingLabelSizes.Length > 0)
Common\General\AxisScaleBreaks.cs (5)
815 if(startSegment > 0 && (startSegment + numberOfSegments) <= segmentMaxValue.Length - 1) 855 for(int index = 0; index < segmentPointNumber.Length; index++) 882 (excludedSegment || index == (segmentPointNumber.Length - 1) )) 1060 for(int index = 0; index < segmentPointNumber.Length; index++) 1078 (segmentPointNumber[index] != 0 || index == segmentPointNumber.Length - 1))
Common\General\AxisScaleSegments.cs (4)
572 points[points.Length - 1] = new PointF(endX, y); 594 points[points.Length - 1] = new PointF(x, endY); 624 points[points.Length - 1] = new PointF(endX, y); 647 points[points.Length - 1] = new PointF(x, endY);
Common\General\Chart.cs (12)
444if (m.GetParameters().Length == 1) 789 for(int index = 0; index < yFieldNames.Length; index++) 820 while(yField.Length == 0 && fieldIndex < yFieldNames.Length) 837 object[] yValuesObj = new object[yFieldNames.Length]; 852 if(yFieldNames.Length == 0) 863 for(int i = 0; i < yFieldNames.Length; i++) 1127 for(int index = 0; index < yFieldNames.Length; index++) 1167 object[] yValuesObj = new object[yFieldNames.Length]; 1251 if(yFieldNames.Length == 0) 1262 for(int i = 0; i < yFieldNames.Length; i++) 1275 otherAttributeNames.Length > 0) 1277 for(int i = 0; i < otherFieldNames.Length; i++)
Common\General\ChartAreaAxes.cs (2)
1896 if( checkSameInterval && !sameInterval && seriesXValues.Length > 1) 1910 for(int index = listIndex + 1; index < seriesXValues.Length && !sameXValue; index++)
Common\General\ChartGraphics3D.cs (20)
1110 for( int point = 0; point < path.PathPoints.Length - 1; point++ ) 1610 for(int pIndex = 1; pIndex < splinePathPoints.Length; pIndex++) 1653 else if(pIndex == splinePathPoints.Length - 1) 3004 for(int pointIndex = 0; pointIndex < pointsSurface.Length; pointIndex++) 3123 for(int index = 0; index < gradientPoints.Length; index++) 3270 for(int index = 0; index < gradientPoints.Length; index++) 3326 for(int index = 0; index < gradientPoints.Length; index++) 3384 for(int index = 0; index < gradientPoints.Length; index++) 3414 for(int index = 0; index < gradientPoints.Length; index++) 3761 if(cubePoints.Length != 8) 4008 for(int pointIndex = 0; pointIndex < cubePoints.Length; pointIndex++) 4367 for(int pointIndex = 1; pointIndex < ellipsePoints.Length; pointIndex++) 4395 for(int pointIndex = 0; !doneFlag && pointIndex < ellipsePoints.Length; pointIndex++) 4398 for(int pointOppositeIndex = 0; !doneFlag && pointOppositeIndex < oppositeEllipsePoints.Length; pointOppositeIndex++) 4421 for(int innerPointIndex = 0; innerPointIndex < ellipsePoints.Length; innerPointIndex++) 4449 for(int innerPointIndex = 0; innerPointIndex < oppositeEllipsePoints.Length; innerPointIndex++) 4487 for(int innerPointIndex = 0; innerPointIndex < ellipsePoints.Length; innerPointIndex++) 4515 for(int innerPointIndex = 0; innerPointIndex < oppositeEllipsePoints.Length; innerPointIndex++) 4593 if(pointIndex > ellipsePoints.Length - 1) 4595 resultPath.AddLine(ellipsePoints[ellipsePoints.Length - 1], ellipsePoints[0]);
Common\General\ChartRenderingEngine.cs (4)
233if (offset == 0 && numberOfSegments == points.Length - 1) 241if (offset == 0 && numberOfSegments < points.Length - 1) 250else if (offset > 0 && (offset + numberOfSegments) == points.Length - 1) 260else if (offset > 0 && (offset + numberOfSegments) < points.Length - 1)
Common\General\DataManipulator.cs (53)
329 array = new Series[seriesNames.Length]; 390 if(series.Length == 0) 416 if(series.Length == 0) 424 if(series.Length > 1) 446 if(series.Length > 1) 457 for(int seriesIndex = 1; seriesIndex < series.Length; seriesIndex++) 467 for(int seriesIndex = 1; seriesIndex < series.Length; seriesIndex++) 1205 Series[] output = new Series[inputSeries.Length]; 1206 for(int seriesIndex = 0; seriesIndex < inputSeries.Length; seriesIndex++) 1209 if(outputSeries != null && outputSeries.Length > seriesIndex) 1261 for(int seriesIndex = 0; seriesIndex < inputSeries.Length; seriesIndex++) 1307 Series[] output = new Series[inputSeries.Length]; 1308 for(int seriesIndex = 0; seriesIndex < inputSeries.Length; seriesIndex++) 1311 if(outputSeries != null && outputSeries.Length > seriesIndex) 1363 for(int seriesIndex = 0; seriesIndex < inputSeries.Length; seriesIndex++) 1388 for(int valueIndex = 0; valueIndex < output[seriesIndex].Points[pointIndex].YValues.Length; valueIndex++) 1544 if(indexes.Length == 0) 1550 int[] result = new int[indexes.Length * 2]; 1560 if(rangeIndex.Length == 2) 1620 for(int index = 0; index < rangeElements.Length; index += 2) 2234 for(int seriesIndex = 0; seriesIndex < inputSeries.Length; seriesIndex++) 2239 if(outputSeries != null && seriesIndex < outputSeries.Length) 2388 for(int i = 1; i < pointTempValues.Length; i++) 2483 for(int seriesIndex = 0; seriesIndex < inputSeries.Length; seriesIndex++) 2488 if(outputSeries != null && seriesIndex < outputSeries.Length) 2669 for(int i = 1; i < pointTempValues.Length; i++) 2770 if(funcIndex > point.YValues.Length) 2843 if(funcIndex > point.YValues.Length) 2929 if(funcIndex > point.YValues.Length) 3025 for(int index = 0 ; index < result.Length; index++) 3034 if(valueFormulas.Length == 0) 3058 if(valueIndex >= result.Length) 3080 for(int funcIndex = 1; funcIndex < result.Length; funcIndex++) 3090 for(int funcIndex = 0; funcIndex < result.Length; funcIndex++) 3133 if(formulaParts.Length < 1 && formulaParts.Length > 2) 3139 if(formulaParts.Length == 2) 3173 if(formulaParts[formulaParts.Length - 1] == "MIN") 3175 else if(formulaParts[formulaParts.Length - 1] == "MAX") 3177 else if(formulaParts[formulaParts.Length - 1] == "AVE") 3179 else if(formulaParts[formulaParts.Length - 1] == "SUM") 3181 else if(formulaParts[formulaParts.Length - 1] == "FIRST") 3183 else if(formulaParts[formulaParts.Length - 1] == "LAST") 3185 else if(formulaParts[formulaParts.Length - 1] == "HILOOPCL") 3187 else if(formulaParts[formulaParts.Length - 1] == "HILO") 3189 else if(formulaParts[formulaParts.Length - 1] == "COUNT") 3191 else if(formulaParts[formulaParts.Length - 1] == "DISTINCTCOUNT") 3193 else if(formulaParts[formulaParts.Length - 1] == "VARIANCE") 3195 else if(formulaParts[formulaParts.Length - 1] == "DEVIATION") 3197 else if(formulaParts[formulaParts.Length - 1] == "CENTER") 3213 if(inputSeries == null || inputSeries.Length == 0) 3219 if(outputSeries != null && outputSeries.Length != inputSeries.Length)
Common\General\FormulaData.cs (41)
442while (seriesIndex < inSeries.Length && seriesIndex < outSeries.Length) 501if (outputSeries.Length != valueIndex.Length) 507if (outputSeries.Length < outputValues.Length - 1) 515if (seriesIndex + 1 > outputValues.Length - 1) 521if (series.Points.Count != outputValues[seriesIndex].Length) 533for (int pointIndex = 0; pointIndex < outputValues[0].Length; pointIndex++) 536if (series.Points.Count != outputValues[seriesIndex].Length) 597seiesArray = new Series[subStrings.Length]; 600valueArray = new int[subStrings.Length]; 610if (parts.Length < 1 && parts.Length > 2) 619if (parts.Length == 2) 700output = new double[inputSeries.Length + 1][]; 703if (inputSeries.Length != valueIndex.Length) 824if (inSeries.Length != outSeries.Length) 831for (int indexSeries = 0; indexSeries < inSeries.Length; indexSeries++) 848for (int indexSeries = 0; indexSeries < inSeries.Length; indexSeries++) 859outValues = new double[inValues.Length][]; 862for (int seriesIndex = 0; seriesIndex < inValues.Length; seriesIndex++) 864outValues[seriesIndex] = new double[inValues[seriesIndex].Length]; 865for (int pointIndex = 0; pointIndex < inValues[seriesIndex].Length; pointIndex++) 872for (int seriesIndx = 0; seriesIndx < inSeries.Length; seriesIndx++) 908output = new double[input.Length][]; 915for (int pointIndex = 0; pointIndex < input[0].Length; pointIndex++) 920for (seriesIndex = 0; seriesIndex < input.Length; seriesIndex++) 922if (seriesIndex >= input[seriesIndex].Length) 937for (seriesIndex = 1; seriesIndex < input.Length; seriesIndex++) 945for (seriesIndex = 0; seriesIndex < input.Length; seriesIndex++) 949for (int pointIndex = 0; pointIndex < input[0].Length; pointIndex++) 951if (pointIndex >= input[seriesIndex].Length) 1086for (Int32 i = 0; i < parameterList.Length; i++) 1100for (int index = 0; index < input.Length - 1; index++) 1102if (input[index].Length != input[index + 1].Length) 1118if (series.Length > 1) 1121for (int seriesIndex = 0; seriesIndex < series.Length - 1; seriesIndex++)
Common\General\ImageMap.cs (9)
245 float[] coord = new float[pathPoints.Length * 2]; 302if (shape == MapAreaShape.Circle && coordinates.Length != 3) 306if (shape == MapAreaShape.Rectangle && coordinates.Length != 4) 310if (shape == MapAreaShape.Polygon && (coordinates.Length % 2f) != 0f) 320this._coordinates = new float[coordinates.Length]; 362float[] transformedCoord = new float[this.Coordinates.Length]; 394for (int index = 0; index < this.Coordinates.Length - 1; index += 2) 845 float[] coord = new float[pathPoints.Length * 2]; 850 for(int pointIndex = 0; pointIndex < pathPoints.Length; pointIndex++)
Common\General\Label.cs (5)
1693for (int index = _axis.groupingLabelSizes.Length; index > label.RowIndex; index--) 1711for (int index = _axis.groupingLabelSizes.Length; index > label.RowIndex; index--) 2212for (int index = _axis.groupingLabelSizes.Length; index > label.RowIndex; index--) 2230for (int index = _axis.groupingLabelSizes.Length; index > label.RowIndex; index--) 2456_axis.groupingLabelSizes.Length > 0 &&
Common\General\Legend.cs (4)
1344 for(int index = 0; index < tempArray.Length; index++) 1474 for(int index = 0; index < tempArray.Length; index++) 1578 for(int index = smallestColumnIndex + 1; index < tempArray.Length - 1; index++) 1678 for(int columnIndex = 0; columnIndex < rowsPerColumn.Length; columnIndex++)
Common\General\Selection.cs (7)
2019if (requestedElementTypes.Length > 0) 2527if (points.Length > 3) 2531for (int i = 0; i < points.Length; i += 4) 2540if (points.Length == 4) 2542Point[] pointsAlligned = new Point[points.Length]; 2543for (int i = 0; i < points.Length; i++) 2804for (int i = 0; i < points.Length - 3; i = i + 4)
Common\General\SmartLabels.cs (1)
819 for(positionIndex = 0; positionIndex < positions.Length; positionIndex++)
Common\Utilities\ColorPalette.cs (1)
339 for(int i = 0; i < grayScale.Length; i++)
Common\Utilities\ImageLoader.cs (1)
198string pageFile = pageUri.Segments[pageUri.Segments.Length-1];
Common\Utilities\KeywordsRegistry.cs (1)
481 string[] keywordNames = new string[keywordAliases.Length + 1];
Common\Utilities\XmlSerializer.cs (7)
679 textWriter.WriteBase64(imageByteData, 0, imageByteData.Length); 1614if (dataPoint.YValues.Length > 0 && IsSerializableContent("YValues", objectToSerialize)) 2488if (dataPoint.YValues.Length > 0 && IsSerializableContent("YValues", objectToSerialize)) 2733 writer.Write(arr.Length); 2747 writer.Write(arr.Length); 3159 for(int arrayIndex = 0; arrayIndex < array.Length; arrayIndex++) 3173 for(int arrayIndex = 0; arrayIndex < array.Length; arrayIndex++)
WebForm\ChartWebControl.cs (3)
767 if(values == null || values.Length != 2) 1292 for(j = 0; j < encoders.Length; ++j) 1982 this.PaletteCustomColors.Length == 0)
WebForm\Converters\MapAreaCoordinatesConverter.cs (2)
63float[] array = new float[values.Length]; 64for (int index = 0; index < values.Length; index++)
WebForm\General\ChartHttpHandler.cs (18)
214_controllerFileStream.Lock(0, data.Length); 215_controllerFileStream.Write(data, 0, data.Length); 266if (data != null && data.Length > 0) 1068for (int index = 0; index < pairs.Length; index++) 1480if (a.Length != b.Length) return false; 1481for (int i = 0; i < a.Length; i++) 1531stream.Write(data, 0, data.Length); 1535stream.Write(privacyData, 0, privacyData.Length); 1537stream.Write(_privacyMarker, 0, _privacyMarker.Length); 1606fileStream.Read(fileData, 0, fileData.Length); 1613byte[] privacyMarkerStream = new Byte[_privacyMarker.Length]; 1615streamCut += _privacyMarker.Length; 1617stream.Read(privacyMarkerStream, 0, privacyMarkerStream.Length); 1622streamCut += privacyData.Length; 1623byte[] privacyDataFromStream = new Byte[privacyData.Length]; 1625stream.Read(privacyDataFromStream, 0, privacyDataFromStream.Length); 1650stream.Read(data, 0, (int)data.Length);
System.Web.DynamicData (8)
DynamicData\FilterUserControlBase.cs (4)
76Debug.Assert(keyStrings.Length == keyNames.Length); 78var keyTable = new OrderedDictionary(keyNames.Length); 79for (int i = 0; i < keyNames.Length; i++) {
DynamicData\MetaForeignKeyColumn.cs (2)
84Debug.Assert(fkValues.Length == ForeignKeyNames.Count); 85for (int i = 0; i < fkValues.Length; i++) {
DynamicData\MetaTable.cs (2)
559var queryStringKeys = new OrderedDictionary(PrimaryKeyNames.Length); 743for (int i = 0; i < PrimaryKeyNames.Length; i++) {
System.Web.Entity (7)
System\Data\WebControls\EntityDataSourceUtil.cs (2)
556Debug.Assert(types != null && types.Length == 1, "Nullable did not have a single generic type."); 655if (components.Length == 2)
System\Data\WebControls\EntityDataSourceViewSchema.cs (3)
106Debug.Assert(typeArguments.Length == 1, "should only have one type argument from Nullable<> condition."); 135for (int idx = 0; idx < props.Length; idx++) 137if (props[idx].GetIndexParameters().Length > 0 && props[idx].PropertyType != typeof(object))
System\Data\WebControls\OrderByBuilder.cs (2)
181for (int idx = 0; idx < statements.Length; idx++) 217if (statements.Length > 0)
System.Web.Entity.Design (3)
parent\parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (1)
96if (attr.Length > 0) {
System\Data\WebControls\Design\Util\WizardForm.cs (2)
356if ((panels != null) && (panels.Length > 0)) 361for (int i = 0; i < panels.Length - 1; i++)
System.Web.Extensions (155)
ApplicationServices\ApplicationServiceHelper.cs (2)
132if (enabledForRead != null && enabledForRead.Length > 0) { 139if (enabledForWriting != null && enabledForWriting.Length > 0) {
ClientServices\ClientFormsIdentity.cs (1)
73for (int iter = 0; iter < passwordChars.Length; iter++)
ClientServices\Providers\ClientData.cs (9)
123if (arrToWrite.Length == 0) 125for (int iter = 0; iter < arrToWrite.Length; iter++) { 170if (f.GetDirectoryNames(_IsolatedDir).Length == 0) 278for(int iter=0; iter<cd.CookieNames.Length; iter++) 292for(int iter=0; iter<cd.CookieNames.Length; iter++) { 304string [] names = new string[cd.CookieNames.Length+1]; 305string [] vals = new string[cd.CookieNames.Length+1]; 308names[cd.CookieNames.Length] = name; 309vals[cd.CookieNames.Length] = cookieName + "=" + cookieValue;
ClientServices\Providers\ClientFormsAuthenticationMembershipProvider.cs (3)
552byte [] bufAll = new byte[salt.Length + bufPass.Length]; 554bufPass.CopyTo(bufAll, salt.Length);
ClientServices\Providers\ClientRoleProvider.cs (1)
135if (!_HonorCookieExpiry && _Roles.Length < 1 && (p.Identity is ClientFormsIdentity))
ClientServices\Providers\ClientSettingsProvider.cs (10)
390for(int iter=0; iter<_KnownTypesArray.Length; iter++) 410Type [] temp = new Type[_KnownTypesArray.Length + al.Count]; 412al.CopyTo(temp, _KnownTypesArray.Length); 433Type [] temp = new Type[_KnownTypesArray.Length + al.Count]; 435al.CopyTo(temp, _KnownTypesArray.Length); 672int len = cd.SettingsNames.Length; 673if (cd.SettingsNames.Length != cd.SettingsStoredAs.Length || cd.SettingsValues.Length != cd.SettingsStoredAs.Length)
ClientServices\Providers\ProxyHelper.cs (15)
59if (paramNames != null && paramNames.Length > 0) { 61request.ContentLength = postedBody.Length; 63s.Write(postedBody, 0, postedBody.Length); 120int len = paramNames.Length; 121if (len != paramValues.Length) 279if (allCookies == null || allCookies.Length < 1) 282CookieContainer cc = new CookieContainer(allCookies.Length + 10, allCookies.Length + 10, 4096); 284for (int iter = 0; iter < allCookies.Length; iter++) { 313if (allCookies == null || allCookies.Length < 1) 332for(int iter=0; iter<cookieHeaderSplits.Length; ) 335while (iter < cookieHeaderSplits.Length) 378for (int iter = 0; iter < cookies.Length; iter++) { 407if (cookieProps.Length < 1) 415for(int iter=1; iter<cookieProps.Length; iter++) {
ClientServices\Providers\SqlHelper.cs (1)
308for (int iter = 0; iter < usernameChars.Length; iter++)
Compilation\WCFBuildProvider.cs (1)
456for (int i = 0; i < chunks.Length; i++)
Compilation\WCFModel\AsmxEndpointPickerExtension.cs (2)
142if (segments.Length > 0) 146string fileName = segments[segments.Length - 1];
Compilation\WCFModel\SchemaMerger.cs (3)
84Dictionary<XmlQualifiedName, XmlSchemaObject>[] knownItemTables = new Dictionary<XmlQualifiedName, XmlSchemaObject>[schemaTopLevelItemTypes.Length]; 85for (int i = 0; i < schemaTopLevelItemTypes.Length; i++) 96for (int i = 0; i < schemaTopLevelItemTypes.Length; i++)
Globalization\ClientCultureInfo.cs (1)
44eras = new object[calendar.Eras.Length * 4];
Handlers\ScriptResourceHandler.cs (13)
131if ((parts.Length != 1) && (parts.Length != 4)) { 137if (parts.Length == 4) { 183if ((nrlas != null) && (nrlas.Length != 0)) { 377if (decryptedData.Length != 3 && decryptedData.Length != 5) { 384if (decryptedData.Length % 2 != 0) { 425for (int i = 0; i < decryptedData.Length; i += 2) { 435if (resourcesAndCultures.Length == 0) { 446for (int j = 0; j < resourcesAndCultures.Length; j++) { 467Debug.Assert(resourcesAndCultures.Length % 2 == 0, "The list of resource names and cultures must have an even number of parts separated by commas."); 469for (int j = 0; j < resourcesAndCultures.Length; j += 2) { 525response.OutputStream.Write(zippedBytes, 0, zippedBytes.Length);
Script\Serialization\JavaScriptSerializer.cs (1)
279if (getMethodInfo.GetParameters().Length > 0) continue;
Script\Serialization\ObjectConverter.cs (2)
454type.GetGenericArguments().Length == 1) { 564type.GetGenericArguments().Length == 2;
Script\Services\ClientProxyGenerator.cs (3)
349Debug.Assert(enumNames.Length == enumValues.Length); 357for (int i = 0; i < enumNames.Length; i++) {
Script\Services\ProxyGenerator.cs (2)
73return (attribs.Length != 0); 78return (attribs.Length != 0);
Script\Services\WebServiceData.cs (5)
177if (attribs.Length == 0) { 193if (wmAttribs.Length == 0) 198if (responseAttribs.Length > 0) { 348(t.IsGenericType && t.GetGenericArguments().Length > 1) || 394if (genericArgs.Length > 1) {
Script\Services\WebServiceEnumData.cs (6)
58System.Diagnostics.Debug.Assert(names.Length == values.Length); 67System.Diagnostics.Debug.Assert(names.Length == values.Length); 69this.values = new long[values.Length]; 70for (int i = 0; i < values.Length; i++) {
Script\Services\WebServiceTypeData.cs (1)
279for (int i = 0; i < markup.Length; i++) {
UI\AsyncPostBackTrigger.cs (1)
110(parameters.Length != 2) ||
UI\CompositeScriptReference.cs (1)
57(ResourceUICultures != null) && (ResourceUICultures.Length != 0)) {
UI\PageRequestManager.cs (2)
326for (int i = 0; i < headerValues.Length; i++) { 328for (int j = 0; j < headerContents.Length; j++) {
UI\ProfileServiceManager.cs (1)
237return _loadProperties != null && _loadProperties.Length > 0;
UI\RoleServiceManager.cs (1)
118if(roles != null && roles.Length > 0) {
UI\ScriptControlManager.cs (1)
298if (types.Length == 0) {
UI\ScriptReference.cs (1)
193if ((ResourceUICultures == null) || (ResourceUICultures.Length == 0)) {
UI\TargetControlTypeCache.cs (2)
27Type[] types = new Type[attrs.Length]; 28for (int i = 0; i < attrs.Length; i++) {
UI\WebControls\ContextDataSourceView.cs (2)
145for (int i = 0; i < members.Length; i++) { 164if (genericTypes.Length == 1) {
UI\WebControls\Dynamic.cs (30)
130for (int i = 0; i < props.Length; i++) { 199int paramCount = parameters == null ? 0 : parameters.Length; 208if (typeArgs == null || typeArgs.Length < 1 || typeArgs.Length > 5) throw new ArgumentException(); 209return funcTypes[typeArgs.Length - 1].MakeGenericType(typeArgs); 243if (properties.Length != other.properties.Length) return false; 244for (int i = 0; i < properties.Length; i++) { 336FieldInfo[] fields = new FieldBuilder[properties.Length]; 337for (int i = 0; i < properties.Length; i++) { 659if (parameters.Length == 1 && String.IsNullOrEmpty(parameters[0].Name)) 664for (int i = 0; i < values.Length; i++) { 666if (i == values.Length - 1 && value is IDictionary<string, object>) { 1053if (args.Length != 3) 1110for (int i = 0; i < bindings.Length; i++) 1139if (args.Length == 1) 1244if (args.Length == 0) { 1280if (expr.Type.GetArrayRank() != 1 || args.Length != 1) 1393if (members.Length != 0) return members[0]; 1414if (members.Length != 0) { 1462if (applicable.Length > 1) { 1467if (applicable.Length == 1) { 1469for (int i = 0; i < args.Length; i++) args[i] = md.Args[i]; 1475return applicable.Length; 1479if (method.Parameters.Length != args.Length) return false; 1480Expression[] promotedArgs = new Expression[args.Length]; 1481for (int i = 0; i < args.Length; i++) { 1586if (memberInfos.Length != 0) return ((FieldInfo)memberInfos[0]).GetValue(null); 1706for (int i = 0; i < args.Length; i++) {
UI\WebControls\Expressions\MethodExpression.cs (3)
131if (parameterArray.Length == 0 || !parameterArray[0].ParameterType.IsAssignableFrom(source.GetType())) { 136object[] arguments = new object[parameterArray.Length]; 139for (int i = 1; i < parameterArray.Length; ++i) {
UI\WebControls\LinqDataSourceView.cs (2)
618for (int i = 0; i < members.Length; i++) { 960if (!(tableType.IsGenericType && tableType.GetGenericArguments().Length == 1 && typeof(ITable).IsAssignableFrom(tableType))) {
UI\WebControls\ListView.cs (19)
784if (DataKeyNamesInternal == null || DataKeyNamesInternal.Length == 0) { 816if (EnablePersistedSelection && (DataKeyNamesInternal.Length > 0)) { 1524if (dataBinding && ClientIDRowSuffixInternal != null && ClientIDRowSuffixInternal.Length != 0) { 1534if(dataBinding && ClientIDRowSuffixInternal != null && ClientIDRowSuffixInternal.Length != 0) { 1681OrderedDictionary keyTable = new OrderedDictionary(DataKeyNamesInternal.Length); 1825OrderedDictionary keyTable = new OrderedDictionary(DataKeyNamesInternal.Length); 1930OrderedDictionary suffixTable = new OrderedDictionary(ClientIDRowSuffixInternal.Length); 2713if ((_dataKeyNames != null) && (_dataKeyNames.Length > 0)) { 2714_persistedDataKey = new DataKey(new OrderedDictionary(_dataKeyNames.Length), _dataKeyNames); 2750int dataKeyNamesLength = dataKeyNames.Length; 2753for (int i = 0; i < dataKeysState.Length; i++) { 2778int ClientIDRowSuffixLength = ClientIDRowSuffix.Length; 2782for (int i = 0; i < ClientIDRowSuffixDataKeysState.Length; i++) { 2818if (DataKeyNames.Length > 0) { 3122if ((keyNames == null) || (keyNames.Length == 0)) { 3214(_dataKeyNames != null && _dataKeyNames.Length != 0) || 3225state[6] = (_dataKeyNames == null || _dataKeyNames.Length == 0) ? null : (object)_dataKeyNames; 3230state[10] = (_clientIDRowSuffix == null || _clientIDRowSuffix.Length == 0) ? null : (object)_clientIDRowSuffix; 3301string dataKeyName = DataKeyNamesInternal.Length > 0 ? DataKeyNamesInternal[0] : "";
UI\WebControls\ListViewPagedDataSource.cs (2)
401if (indexBounds > array.Length) { 402indexBounds = array.Length;
UI\WebResourceUtil.cs (2)
137if (s.Length >= _table.Length) { 146for (int i = 0; i < strings.Length; i++) {
Util\HexParser.cs (3)
15for (int i = 0; i < tokenBytes.Length; i++) { 22StringBuilder tokenBuilder = new StringBuilder(tokenBytes.Length * 2); 23for (int i = 0; i < tokenBytes.Length; i++) {
System.Web.Mobile (93)
UI\MobileControls\Adapters\ChtmlCalendarAdapter.cs (4)
289if (ints.Length > 1) 292_eraCount = ints.Length; 308for (int i = 0; i < ints.Length; i++) 611eraIndex < currentInfo.Calendar.Eras.Length)
UI\MobileControls\Adapters\ControlAdapter.cs (2)
269if ((labelID < 0) || (labelID >= LabelIDs.Length)) 281pageAdapter._defaultLabels = new String[LabelIDs.Length];
UI\MobileControls\Adapters\EmptyTextWriter.cs (1)
360return IsWhiteSpace(buffer, 0, buffer.Length);
UI\MobileControls\Adapters\HtmlControlAdapter.cs (1)
221for (int i = 0; i < _multiMediaAttributes.Length; i++)
UI\MobileControls\Adapters\HtmlObjectListAdapter.cs (3)
169fieldCount = fieldIndices.Length; 607if (ShouldRenderAsTable() && tableFieldIndices.Length != 0) 694for (int i = 0; i < tableFieldIndices.Length; i++)
UI\MobileControls\Adapters\HtmlSelectionListAdapter.cs (8)
255(selectedItems.Length == 1 && (selectedItems[0] != null && selectedItems[0].Length == 0))) 260int[] selectedItemIndices = new int[selectedItems.Length]; 269originalSelectedIndices.Length == 0 && 276for(int i = 0; i < selectedItems.Length; i++) 286if(selectedItemIndices.Length != originalSelectedIndices.Length) 292for(int i = 0; i < selectedItems.Length; i++) 306for(int i = 0; i < selectedItemIndices.Length; i++)
UI\MobileControls\Adapters\WmlCalendarAdapter.cs (4)
272if (ints.Length > 1) 275_eraCount = ints.Length; 291for (int i = 0; i < ints.Length; i++) 588eraIndex < currentInfo.Calendar.Eras.Length)
UI\MobileControls\Adapters\WmlObjectListAdapter.cs (5)
151if (ShouldRenderAsTable() && (tableFieldIndices = Control.TableFieldIndices).Length != 0) 154int fieldCount = tableFieldIndices.Length; 403if (ShouldRenderAsTable() && (tableFieldIndices = Control.TableFieldIndices).Length != 0) 406for (int i = 0; i < tableFieldIndices.Length; i++) 496for (int i = 0; i < tableFieldIndices.Length; i++)
UI\MobileControls\Adapters\WmlPageAdapter.cs (2)
434for (int i = 0; i < viewstate.Length; i++) 439if (currentChar < _specialEncodingChars.Length)
UI\MobileControls\Adapters\WmlSelectionListAdapter.cs (10)
197originalSelectedIndices.Length == 0 && 207(selectedItems.Length == 1 && 209(selectedItems.Length == 1 && 216if(selectedItems.Length == 1 && selectedItems[0].IndexOf(';') > -1) 224selectedItemIndices = new int[selectedItems.Length]; 225for(int i = 0; i < selectedItems.Length; i++) 236if(selectedItemIndices.Length != originalSelectedIndices.Length) 242for(int i = 0; i < selectedItemIndices.Length; i++) 256for(int i = 0; i < selectedItemIndices.Length; i++)
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicCalendarAdapter.cs (4)
248if (ints.Length > 1) { 250_eraCount = ints.Length; 264for (int i = 0; i < ints.Length; i++) { 544eraIndex < currentInfo.Calendar.Eras.Length) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicObjectListAdapter.cs (3)
51for (int i = 0; i < tableFieldIndices.Length; i++) { 80fieldCount = fieldIndices.Length; 152if (tableFieldIndices.Length != 0) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicSelectionListAdapter.cs (9)
104(selectedItems.Length == 1 && (selectedItems[0] == null || selectedItems[0].Length == 0))) { 109if(selectedItems.Length == 1 && selectedItems[0].IndexOf(';') > -1) { 116int[] selectedItemIndices = new int[selectedItems.Length]; 125originalSelectedIndices.Length == 0 && 131for(int i = 0; i < selectedItems.Length; i++) { 140if(selectedItemIndices.Length != originalSelectedIndices.Length) { 144for(int i = 0; i < selectedItems.Length; i++) { 155for(int i = 0; i < selectedItemIndices.Length; i++) {
UI\MobileControls\Design\Converters\FontNameConverter.cs (1)
83for (int i = 0; i < fonts.Length; i++)
UI\MobileControls\Design\Converters\FormConverter.cs (1)
60Debug.Assert(list.Length > 0);
UI\MobileControls\Design\Converters\StyleReferenceConverter.cs (1)
77Debug.Assert(array.Length > 0);
UI\MobileControls\Design\Converters\ValidatedMobileControlConverter.cs (2)
52Debug.Assert(controlList.Length > 0); 57for (int i = 1; i < controlList.Length; i++)
UI\MobileControls\Design\DeviceFilterEditorDialog.cs (3)
353Debug.Assert(row1.Length == row2.Length); 354for(int i = 0; i < row1.Length; i++)
UI\MobileControls\Design\ListDesigner.cs (1)
443Debug.Assert(index >= 0 & index <= _templateFrameNames.Length);
UI\MobileControls\Design\MobileTemplatedControlDesigner.cs (1)
477for (int i = 0; i < _templateVerbs.Length; i++)
UI\MobileControls\Design\ObjectListDesigner.cs (1)
86Debug.Assert(index >= 0 & index <= _templateFrameNames.Length);
UI\MobileControls\Design\StyleSheetDesigner.cs (1)
292Debug.Assert(index >= 0 & index <= _templateFrameNames.Length);
UI\MobileControls\FactoryGenerator.cs (1)
93_methodToOverride.GetParameters().Length != 0) {
UI\MobileControls\List.cs (1)
579if (state.Length > 1)
UI\MobileControls\MobileListItemCollection.cs (6)
235int length = changes.Length; 248for (int i = 0; i < changeIndices.Length; i++) 262EnsureCount (itemChanges.Length); 274for (int i = selection.Length - 1; i >= 0; i--) 388changes[changes.Length - 2] = selection; 391changes[changes.Length - 1] = BaseIndex;
UI\MobileControls\MobilePage.cs (2)
1354if (state.Length > 0) 1357if (state.Length > 1)
UI\MobileControls\ObjectList.cs (2)
932int count = fieldStates.Length; 1336if (state.Length > 1)
UI\MobileControls\ObjectListCommandCollection.cs (1)
204int count = commandStates.Length;
UI\MobileControls\ObjectListFieldCollection.cs (2)
237EnsureCount(fieldStates.Length); 238for (int i = 0; i < fieldStates.Length; i++)
UI\MobileControls\ObjectListItem.cs (6)
109if (_fields.Length != other._fields.Length) 114for (int i = 0; i < _fields.Length; i++) 133if (_fields.Length > 0) 153int fieldCount = _fields.Length; 177int fieldCount = itemState.Length;
UI\MobileControls\ObjectListItemCollection.cs (2)
136Debug.Assert (changes.Length == 2); 144EnsureCount (itemChanges.Length);
UI\MobileControls\SessionViewState.cs (1)
267n = _history.Length - 1;
UI\MobileControls\StyleSheet.cs (1)
417for (int i = 0; i < stylesState.Length; i++)
System.Web.Services (355)
System\Web\Services\Configuration\WebServicesSection.cs (13)
96if (xmlElementAttribs.Length == 0) { 140Type[] formatTypes = new Type[defaultFormatTypes.Length + this.ServiceDescriptionFormatExtensionTypes.Count]; 141Array.Copy(defaultFormatTypes, formatTypes, defaultFormatTypes.Length); 144formatTypes[index + defaultFormatTypes.Length] = this.ServiceDescriptionFormatExtensionTypes[index].Type; 152if (attrs.Length == 0) 201if (attrs.Length == 0) { 216string[] prefixes = new string[attrs.Length]; 218for (int i = 0; i < attrs.Length; i++) { 224for (int i = 0; i < prefixes.Length; i++) { 256if (this.protocolImporterTypes.Length == 0) { 258if (this.protocolImporterTypes.Length == 0) { 287if (this.protocolReflectorTypes.Length == 0) { 289if (this.protocolReflectorTypes.Length == 0) {
System\Web\Services\Description\HttpProtocolImporter.cs (19)
42importers = new MimeImporter[importerTypes.Length]; 43importedParameters = new ArrayList[importerTypes.Length]; 44importedReturns = new ArrayList[importerTypes.Length]; 45for (int i = 0; i < importers.Length; i++) { 57for (int i = 0; i < importers.Length; i++) { 74for (int i = 0; i < importers.Length; i++) { 158CodeMemberMethod mainCodeMethod = WebCodeGenerator.AddMethod(this.CodeTypeDeclaration, method.Name, new CodeFlags[parameterTypeNames.Length], parameterTypeNames, parameterNames, 188string[] asyncParameterTypeNames = new string[parameterTypeNames.Length + 2]; 190asyncParameterTypeNames[parameterTypeNames.Length] = typeof(AsyncCallback).FullName; 191asyncParameterTypeNames[parameterTypeNames.Length + 1] = typeof(object).FullName; 193string[] asyncParameterNames = new string[parameterNames.Length + 2]; 195asyncParameterNames[parameterNames.Length] = "callback"; 196asyncParameterNames[parameterNames.Length + 1] = "asyncState"; 199CodeMemberMethod beginCodeMethod = WebCodeGenerator.AddMethod(this.CodeTypeDeclaration, "Begin" + method.Name, new CodeFlags[asyncParameterTypeNames.Length], 231string methodKey = MethodSignature(uniqueMethodName, method.MimeReturn.TypeName, new CodeFlags[parameterTypeNames.Length], parameterTypeNames); 288CodeExpression[] values = new CodeExpression[parameterNames.Length]; 289for (int i = 0; i < parameterNames.Length; i++) { 374for (int i = 0; i < importers.Length; i++) { 383for (int i = 0; i < importers.Length; i++) {
System\Web\Services\Description\HttpProtocolReflector.cs (4)
24reflectors = new MimeReflector[reflectorTypes.Length]; 25for (int i = 0; i < reflectors.Length; i++) { 34for (int i = 0; i < reflectors.Length; i++) { 47for (int i = 0; i < reflectors.Length; i++) {
System\Web\Services\Description\MimeTextImporter.cs (3)
45for (int i = 0; i < importedReturns.Length; i++) { 79string[] propertyNames = new string[propertyValues.Length]; 122for (int i = 0; i < fieldTypeNames.Length; i++) {
System\Web\Services\Description\MimeXmlImporter.cs (1)
96for (int i = 0; i < importedReturns.Length; i++) {
System\Web\Services\Description\ProtocolImporter.cs (5)
481if (attrs.Length > 0) { 615for (int i = 0; i < scope.Length; i++) { 621Debug.Assert(parameterFlags.Length == parameterTypes.Length, "parameterFlags.Length != parameterTypes.Length"); 627for (int i = 0; i < parameterTypes.Length; i++) {
System\Web\Services\Description\ProtocolReflector.cs (3)
272for (int i = 0; i < reflector.Methods.Length; i++) { 308for (int i = 0; i < attrs.Length; i++) { 325for (int i = 0; i < attrs.Length; i++) {
System\Web\Services\Description\ServiceDescription.cs (3)
1097for (int i = 0; i < parameters.Length; i++) { 1282MessagePart[] partArray = new MessagePart[partNames.Length]; 1283for (int i = 0; i < partNames.Length; i++) {
System\Web\Services\Description\ServiceDescriptionImporter.cs (4)
127importers = new ProtocolImporter[importerTypes.Length]; 128for (int i = 0; i < importers.Length; i++) { 208for (int i = 0; i < importers.Length; i++) { 525for (int i = 0; i < importers.Length; i++) {
System\Web\Services\Description\ServiceDescriptionReflector.cs (6)
117reflectors = new ProtocolReflector[reflectorTypes.Length]; 118for (int i = 0; i < reflectors.Length; i++) { 125reflectorsWithPost = new ProtocolReflector[reflectors.Length + 1]; 126for (int i = 0; i < reflectorsWithPost.Length - 1; i++) { 133reflectorsWithPost[reflectorsWithPost.Length - 1] = reflectorWithPost; 163for (int i = 0; i < reflectors.Length; i++) {
System\Web\Services\Description\ServiceDescriptionSerializer.cs (65)
33for (int i = 0; i < a.Length; i++) { 122for (int i = 0; i < a.Length; i++) { 177for (int i = 0; i < a.Length; i++) { 311for (int i = 0; i < a.Length; i++) { 387for (int i = 0; i < a.Length; i++) { 464for (int i = 0; i < a.Length; i++) { 606for (int i = 0; i < a.Length; i++) { 1082for (int i = 0; i < a.Length; i++) { 1379for (int i = 0; i < a.Length; i++) { 1434for (int i = 0; i < a.Length; i++) { 1513for (int i = 0; i < a.Length; i++) { 1561for (int i = 0; i < a.Length; i++) { 1609for (int i = 0; i < a.Length; i++) { 1657for (int i = 0; i < a.Length; i++) { 1712for (int i = 0; i < a.Length; i++) { 1761for (int i = 0; i < a.Length; i++) { 1831for (int i = 0; i < a.Length; i++) { 1923for (int i = 0; i < a.Length; i++) { 1974for (int ia = 0; ia < a.Length; ia++) { 2021for (int ia = 0; ia < a.Length; ia++) { 2068for (int i = 0; i < a.Length; i++) { 2115for (int i = 0; i < a.Length; i++) { 2177for (int i = 0; i < a.Length; i++) { 2224for (int i = 0; i < a.Length; i++) { 2316for (int i = 0; i < a.Length; i++) { 2356for (int i = 0; i < a.Length; i++) { 2389for (int i = 0; i < a.Length; i++) { 2429for (int i = 0; i < a.Length; i++) { 2470for (int i = 0; i < a.Length; i++) { 2520for (int i = 0; i < a.Length; i++) { 2552for (int i = 0; i < a.Length; i++) { 2635for (int i = 0; i < a.Length; i++) { 2669for (int i = 0; i < a.Length; i++) { 2703for (int i = 0; i < a.Length; i++) { 2737for (int i = 0; i < a.Length; i++) { 2771for (int i = 0; i < a.Length; i++) { 2805for (int i = 0; i < a.Length; i++) { 2839for (int i = 0; i < a.Length; i++) { 2873for (int i = 0; i < a.Length; i++) { 2907for (int i = 0; i < a.Length; i++) { 2941for (int i = 0; i < a.Length; i++) { 2975for (int i = 0; i < a.Length; i++) { 3009for (int i = 0; i < a.Length; i++) { 3043for (int i = 0; i < a.Length; i++) { 3053for (int i = 0; i < a.Length; i++) { 3122for (int i = 0; i < a.Length; i++) { 3219for (int i = 0; i < a.Length; i++) { 3253for (int i = 0; i < a.Length; i++) { 3316for (int i = 0; i < a.Length; i++) { 3347for (int i = 0; i < a.Length; i++) { 3380for (int i = 0; i < a.Length; i++) { 3420for (int i = 0; i < a.Length; i++) { 3482for (int i = 0; i < a.Length; i++) { 3526for (int i = 0; i < a.Length; i++) { 3598for (int i = 0; i < a.Length; i++) { 3670for (int i = 0; i < a.Length; i++) { 3713for (int i = 0; i < a.Length; i++) { 3818for (int i = 0; i < a.Length; i++) { 3871for (int i = 0; i < a.Length; i++) { 3904for (int i = 0; i < a.Length; i++) { 3958for (int i = 0; i < a.Length; i++) { 3989for (int i = 0; i < a.Length; i++) { 4021for (int i = 0; i < a.Length; i++) { 4078for (int i = 0; i < a.Length; i++) { 7555for (int i = 0; i < vals.Length; i++) {
System\Web\Services\Description\SoapFormatExtensions.cs (1)
126for (int i = 0; i < parts.Length; i++) {
System\Web\Services\Description\SoapProtocolImporter.cs (11)
46for (int i = 0; i < parameterOrder.Length; i++) { 518for (int i = 0; i < extensions.Length; i++) { 1032if (parts.Length == 1 && !parts[0].Type.IsEmpty) { 1082hasWrapper = (parts.Length == 1 && string.Compare(parts[0].Name, "parameters", StringComparison.Ordinal) == 0); 1133SoapSchemaMember[] schemaMembers = new SoapSchemaMember[parts.Length]; 1134for (int i = 0; i < schemaMembers.Length; i++) { 1150SoapSchemaMember[] schemaMembers = new SoapSchemaMember[parts.Length]; 1151for (int i = 0; i < schemaMembers.Length; i++) { 1164if (parts.Length == 1 && !parts[0].Type.IsEmpty) { 1171XmlQualifiedName[] names = new XmlQualifiedName[parts.Length]; 1172for (int i = 0; i < parts.Length; i++)
System\Web\Services\Description\SoapProtocolReflector.cs (6)
76if (soapMethod.rpc && soapMethod.use == SoapBindingUse.Encoded && soapMethod.methodInfo.OutParameters.Length > 0) 103for (int i = 0; i < headers.Length; i++) { 216string[] parameterOrder = new string[parameters.Length]; 217for (int i = 0; i < parameters.Length; i++) { 245for (int i = 0; i < extensions.Length; i++) { 260for (int i = 0; i < extensions.Length; i++) {
System\Web\Services\Description\WebCodeGenerator.cs (23)
61for ( int i = 0; i < attributes.Length; i++ ) { 72for (int i = 0; i < types.Length; i++) { 146Debug.Assert(parameterTypeNames.Length == parameterNames.Length, "invalid set of parameters"); 147for (int i = 0; i < parameterTypeNames.Length; i++) { 181Debug.Assert(parameterFlags.Length == parameterTypeNames.Length && parameterTypeNames.Length == parameterNames.Length, "invalid set of parameters"); 182for (int i = 0; i < parameterNames.Length; i++) { 190if (i < parameterAttributes.Length) { 244Debug.Assert(propNames.Length == propValues.Length, "propNames.Length != propValues.Length"); 245int count = (parameters == null ? 0 : parameters.Length) + (propNames == null ? 0 : propNames.Length); 248for (int i = 0; i < parameters.Length; i++) 251for (int i = 0; i < propNames.Length; i++) 252arguments[parameters.Length + i] = new CodeAttributeArgument(propNames[i], propValues[i]); 318new CodeFlags[parameterNames.Length], parameterTypeNames, parameterNames, typeof(void).FullName, null, CodeFlags.IsPublic); 323for (int i = 0; i < parameterNames.Length; i++) { 330new CodeFlags[parameterNames.Length], parameterTypeNames, parameterNames, typeof(void).FullName, null, CodeFlags.IsPublic); 366for (int i = 0; i < paramNames.Length; i++) { 393for (int i = 0; i < paramNames.Length; i++) {
System\Web\Services\Description\WebServicesInteroperability.cs (6)
173multipleParts = multipleParts || (soapBodyBinding.Parts != null && soapBodyBinding.Parts.Length > 1); 174int bodyParts = soapBodyBinding.Parts == null ? 0 : soapBodyBinding.Parts.Length; 193multipleParts = multipleParts || (soapBodyBinding.Parts != null && soapBodyBinding.Parts.Length > 1); 194int bodyParts = soapBodyBinding.Parts == null ? 0 : soapBodyBinding.Parts.Length; 398if (parts == null || parts.Length == 0) { 404for (int i = 0; i < parts.Length; i++) {
System\Web\Services\Diagnostics\TraceUtility.cs (3)
318for (int i = 0; i < args.Length; i++) { 325if (i + 1 < args.Length) { 379sb.Append(((Array)o).Length);
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (2)
390for (int i = 0; i < refs.Length; i++) { 434for (int i = 0; i < refs.Length; i++) {
System\Web\Services\Discovery\DiscoveryReference.cs (1)
94for (int i = 0; i < chars.Length; i++) {
System\Web\Services\Discovery\DiscoveryRequestHandler.cs (3)
71string[] excludeList = new string[dynDisco.ExcludePaths.Length]; 75for (int i = 0; i < excludeList.Length; i++) { 107int bytesRead = memStream.Read(data, 0, data.Length);
System\Web\Services\Discovery\DynamicDiscoSearcher.cs (1)
145for (int i = 0; i < patterns.Length; i++) {
System\Web\Services\Discovery\DynamicVirtualDiscoSearcher.cs (1)
263for (int i = 0; i < Bindings.Length; ++i) {
System\Web\Services\Discovery\LinkGrep.cs (4)
25delta = input.Read(buffer, bufferpos, buffer.Length - bufferpos); 32if (bufferpos == buffer.Length) { 33char[] newbuf = new char[buffer.Length * 2]; 34System.Array.Copy(buffer, 0, newbuf, 0, buffer.Length);
System\Web\Services\Protocols\BufferedResponseStream.cs (3)
73int numBytes = buffer.Length - position; // space left in buffer 86if (count >= buffer.Length) { 105if (position == buffer.Length)
System\Web\Services\Protocols\ClientProtocol.cs (3)
349else if (contentLength != -1 && contentLength > buffer.Length) 351asyncResult = client.ResponseStream.BeginRead(buffer, 0, buffer.Length, readResponseAsyncCallback, client); 369int capacity = (int)((contentLength == -1) ? client.Buffer.Length : contentLength);
System\Web\Services\Protocols\HtmlFormParameterWriter.cs (1)
41if (values.Length == 0) return;
System\Web\Services\Protocols\HttpClientProtocol.cs (5)
36for (int i = 0; i < methodInfos.Length; i++) { 40if (attributes.Length == 0) continue; 150if (parameters.Length == 0) 205if (invokeState.ParamWriter.UsesWriteRequest && invokeState.Parameters.Length == 0) 213if (invokeState.ParamWriter.UsesWriteRequest && invokeState.Parameters.Length > 0)
System\Web\Services\Protocols\HttpServerProtocol.cs (15)
29HttpServerMethod[] methods = new HttpServerMethod[methodInfos.Length]; 31object[] initializersByType = new object[returnWriterTypes.Length]; 32for (int i = 0; i < initializersByType.Length; i++) { 36for (int i = 0; i < methodInfos.Length; i++) { 43for (int j = 0; j < returnWriterTypes.Length; j++) { 59initializersByType = new object[parameterReaderTypes.Length]; 60for (int i = 0; i < initializersByType.Length; i++) { 64for (int i = 0; i < methodInfos.Length; i++) { 68if (methodInfo.InParameters.Length > 0) { 71for (int j = 0; j < parameterReaderTypes.Length; j++) { 84for (int j = 0; j < parameterReaderTypes.Length; j++) { 96for (int i = 0; i < methods.Length; i++) { 191for (int i = 0; i < serverMethod.readerTypes.Length; i++) { 237if (methodInfo.OutParameters.Length > 0) return false; 239for (int i = 0; i < parameters.Length; i++) {
System\Web\Services\Protocols\LogicalMethodInfo.cs (31)
77inParams = GetInParameters(methodDefinition, parameters, 0, parameters.Length, false); 78outParams = GetOutParameters(methodDefinition, parameters, 0, parameters.Length, false); 95if (beginParamInfos.Length < 2 || 96beginParamInfos[beginParamInfos.Length - 1].ParameterType != typeof(object) || 97beginParamInfos[beginParamInfos.Length - 2].ParameterType != typeof(AsyncCallback)) { 102stateParam = beginParamInfos[beginParamInfos.Length - 1]; 103callbackParam = beginParamInfos[beginParamInfos.Length - 2]; 105inParams = GetInParameters(beginMethodInfo, beginParamInfos, 0, beginParamInfos.Length - 2, true); 109outParams = GetOutParameters(endMethodInfo, endParamInfos, 1, endParamInfos.Length - 1, true); 111parameters = new ParameterInfo[inParams.Length + outParams.Length]; 113outParams.CopyTo(parameters, inParams.Length); 135if (outParams.Length > 0) { 136object[] newValues = new object[parameters.Length]; 137for (int i = 0; i < inParams.Length; i++) { 143if (outParams.Length > 0) { 144int count = outParams.Length; 149for (int i = 0; i < outParams.Length; i++) { 168object[] asyncValues = new object[values.Length + 2]; 170asyncValues[values.Length] = callback; 171asyncValues[values.Length + 1] = asyncState; 181object[] values = new object[outParams.Length + 1]; 188else if (outParams.Length > 0) { 189object[] newValues = new object[outParams.Length]; 190Array.Copy(values, 1, newValues, 0, newValues.Length); 309if (implAttributes.Length > 0) { 312for (int i = 0; i < declAttributes.Length; i++) { 315for (int i = 0; i < implAttributes.Length; i++) { 344if (attrs.Length == 0) return null; 477return paramInfos.Length > 0 && 504for (int i = 0; i < methodInfos.Length; i++) {
System\Web\Services\Protocols\MimeFormatter.cs (2)
37object[] initializers = new object[methodInfos.Length]; 38for (int i = 0; i < initializers.Length; i++)
System\Web\Services\Protocols\PatternMatcher.cs (4)
47for (int i = 0; i < memberInfos.Length; i++) { 57for (int i = 0; i < fields.Length; i++) 169if (parameters.Length > 0) 184if (attrs.Length == 0) return null;
System\Web\Services\Protocols\RemoteDebugger.cs (3)
233UnsafeNativeMethods.OnSyncCallReturn(NotifySink, callId, buffer, buffer.Length); 258for (int i = 0; i < parameterInfos.Length; ++i) { 272UnsafeNativeMethods.OnSyncCallEnter(NotifySink, callId, buffer, buffer.Length);
System\Web\Services\Protocols\RequestResponse.cs (1)
113while ((count = stream.Read(buffer, 0, buffer.Length)) != 0)
System\Web\Services\Protocols\Scalars.cs (3)
95StringBuilder sb = new StringBuilder(bytes.Length); 96for (int i = 0; i < bytes.Length; i++) { 233for (int i = 1; i < paramDecls.Length; i++) {
System\Web\Services\Protocols\SoapClientProtocol.cs (10)
93for (int j = 0; j < soapMethod.headers.Length; j++) { 122for (int i = 0; i < methodInfos.Length; i++) { 464int length = array1.Length + array2.Length + array3.Length; 476Array.Copy(array1, 0, result, pos, array1.Length); 477pos += array1.Length; 478Array.Copy(array2, 0, result, pos, array2.Length); 479pos += array2.Length; 480Array.Copy(array3, 0, result, pos, array3.Length);
System\Web\Services\Protocols\SoapHeader.cs (13)
230if (checkRequiredHeaders && mappings != null && mappings.Length > 0) 254for (int i = 0; i < headerValues.Length; i++) { 307SoapHeader[] headerArray = new SoapHeader[mappings.Length]; 308bool[] headerSet = new bool[headerArray.Length]; 328SoapHeader[] newHeaderArray = new SoapHeader[mappings.Length + otherHeaderCount]; 332int count = mappings.Length; 393for (int i = 0; i < mappings.Length; i++) { 426for (int i = 0; i < headerHandled.Length; i++) { 438if (mappings == null || mappings.Length == 0) return; 439for (int i = 0; i < mappings.Length; i++) { 446for (int j = 0; j < values.Length; j++) { 467if (mappings == null || mappings.Length == 0) return -1; 469for (int i = 0; i < mappings.Length; i++) {
System\Web\Services\Protocols\SoapMessage.cs (10)
60if (index < 0 || index >= parameterValues.Length) throw new IndexOutOfRangeException(Res.GetString(Res.indexMustBeBetweenAnd0Inclusive, parameterValues.Length)); 73throw new IndexOutOfRangeException(Res.GetString(Res.indexMustBeBetweenAnd0Inclusive, parameterValues.Length)); 76if (index < 0 || index >= parameterValues.Length) throw new IndexOutOfRangeException(Res.GetString(Res.indexMustBeBetweenAnd0Inclusive, parameterValues.Length)); 227SoapExtension[] extensions = new SoapExtension[reflectedExtensions.Length]; 228for (int i = 0; i < extensions.Length; i++) { 237for (int i = 0; i < extensions.Length; i++) { 251for (int i = 0; i < extensions.Length; i++) { 263for (int i = extensions.Length - 1; i >= 0; i--) {
System\Web\Services\Protocols\SoapReflector.cs (25)
57object[] initializers = new object[extensions.Length]; 58for (int i = 0; i < initializers.Length; i++) 64object[] initializers = new object[extensions.Length]; 65for (int i = 0; i < initializers.Length; i++) 161for (int i = 0; i < methods.Length; i++) { 179if (rpcMethodAttributes.Length > 0) { 180if (docMethodAttributes.Length > 0) throw new ArgumentException(Res.GetString(Res.WebBothMethodAttrs), "methodInfo"); 183else if (docMethodAttributes.Length > 0) 192if (rpcServiceAttributes.Length > 0) { 193if (docServiceAttributes.Length > 0) throw new ArgumentException(Res.GetString(Res.WebBothServiceAttrs), "methodInfo"); 196else if (docServiceAttributes.Length > 0) 214if (attrs.Length == 0) { 216if (attrs.Length == 0) 356if (outParameters.Length > 0) throw new ArgumentException(Res.GetString(Res.WebOneWayOutParameters), "methodInfo"); 360XmlReflectionMember[] members = new XmlReflectionMember[inParameters.Length]; 361for (int i = 0; i < members.Length; i++) { 396int numOutParams = outParameters.Length; 406for (int i = 0; i < outParameters.Length; i++) { 436soapMethod.extensions = new SoapReflectedExtension[extensionAttributes.Length]; 437for (int i = 0; i < extensionAttributes.Length; i++) 444soapMethod.headers = new SoapReflectedHeader[headerAttributes.Length]; 446int back = soapMethod.headers.Length; 449for (int i = 0; i < soapMethod.headers.Length; i++) { 551SoapParameterInfo[] soapParamInfos = new SoapParameterInfo[paramInfos.Length]; 552for (int i = 0; i < paramInfos.Length; i++) {
System\Web\Services\Protocols\SoapServerMethod.cs (1)
218for (int j = 0; j < soapMethod.headers.Length; j++) {
System\Web\Services\Protocols\SoapServerProtocol.cs (9)
79SoapReflectedMethod[] soapMethods = new SoapReflectedMethod[methodInfos.Length]; 102for (int i = 0; i < methodInfos.Length; i++) { 127for (int i = 0; i < soapMethods.Length; i++) { 145for (int j = 0; j < soapMethod.headers.Length; j++) { 519int length = array1.Length + array2.Length; 532Array.Copy(array1, 0, result, 0, array1.Length); 533Array.Copy(array2, 0, result, array1.Length, array2.Length);
System\Web\Services\Protocols\UrlEncodedParameterWriter.cs (2)
54for (int i = 0; i < paramInfos.Length; i++) { 58for (int j = 0; j < array.Length; j++) {
System\Web\Services\Protocols\UrlParameterWriter.cs (1)
28if (parameters.Length == 0) return url;
System\Web\Services\Protocols\ValueCollectionParameterReader.cs (6)
48object[] parameters = new object[paramInfos.Length]; 49for (int i = 0; i < paramInfos.Length; i++) { 54Array array = Array.CreateInstance(arrayType, arrayValues.Length); 55for (int j = 0; j < arrayValues.Length; j++) { 75if (methodInfo.OutParameters.Length > 0) 78for (int i = 0; i < paramInfos.Length; i++)
System\Web\Services\Protocols\WebServiceHandlerFactory.cs (1)
95for (int i = 0; i < protocolFactories.Length; i++) {
System\Web\Services\Protocols\XmlReturnReader.cs (5)
24if (methodInfos.Length == 0) return new object[0]; 30bool[] supported = new bool[methodInfos.Length]; 31for (int i = 0; i < methodInfos.Length; i++) { 64object[] initializers = new object[methodInfos.Length]; 66for (int i = 0; i < initializers.Length; i++) {
System\Web\Services\WebMethodAttribute.cs (7)
222if (attrs.Length > 0) { 227if (attrs.Length > 0) { 257for (int j = 0; j < targetMethods.Length; j++) { 274for (int i = 0; i < methods.Length; i++) { 286if (attrs.Length > 0) { 287if (attrs.Length > 1) 323for (int i = 0; i < methods.Length; i++) {
System\Web\Services\WebServiceAttribute.cs (4)
84if (attrs.Length == 0) return new WebServiceAttribute(); 89if (methodInfos.Length == 0) return new WebServiceAttribute(); 95if (methodInfos.Length == 0) return null; 97for (int i = 1; i < methodInfos.Length; i++) {
System\Web\Services\WebServiceBindingAttribute.cs (2)
111if (attrs.Length == 0) continue; 112if (attrs.Length > 1) throw new ArgumentException(Res.GetString(Res.OnlyOneWebServiceBindingAttributeMayBeSpecified1, type.FullName), "type");
System.Windows.Forms (933)
misc\ClientUtils.cs (3)
134System.Diagnostics.Debug.Assert(Enum.GetValues(enumValue.GetType()).Length == enumValues.Length, "Not all the enum members were passed in."); 135for (int i = 0; i < enumValues.Length; i++){
misc\DebugHandleTracker.cs (2)
67for (int i = 0; i < types.Length; i++) { 93for (int i = 0; i < types.Length; i++) {
misc\GDI\UnsafeNativeMethods.cs (3)
389IntUnsafeNativeMethods.WideCharToMultiByte( IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero ); 428IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero); 463IntUnsafeNativeMethods.WideCharToMultiByte(IntNativeMethods.CP_ACP, 0, text, text.Length, textBytes, textBytes.Length, IntPtr.Zero, IntPtr.Zero);
misc\GDI\WindowsGraphics.cs (1)
177if( data != null && data.Length == 2 )
misc\HandleCollector.cs (1)
83if (handleTypeCount == 0 || handleTypeCount == handleTypes.Length) {
misc\ImageListUtils.cs (2)
28for(int i=0;i<pathInfo.Length;i++) { 38if(i==pathInfo.Length-1) {
parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (4)
90if (components.Length < 2 || components.Length > 3) 111for (int i = 1; i < components.Length; i++) 116if (keyValuePair.Length != 2)
parent\parent\parent\InternalApis\NDP_FX\inc\BitmapSelector.cs (1)
96if (attr.Length > 0) {
parent\parent\parent\public\Internal\NDP\Inc\IsolationInterop.cs (13)
887_id.SetAppPath((uint)Ids.Length, Ids); 1567cPropertiesToSet = new IntPtr(SetProperties.Length); 1578cPropertiesToTest = new IntPtr(TestProperties.Length); 1635if ((Props == null) || (Props.Length == 0)) 1639IntPtr retval = Marshal.AllocCoTaskMem(iSlotSize * Props.Length); 1641for (int i = 0; i != Props.Length; i++) 1783if ((operations == null) || (operations.Length == 0)) 1786uint[] rgDispositions = new uint[operations.Length]; 1787int[] rgResults = new int[operations.Length]; 1789_pStore.Transact(new IntPtr(operations.Length), operations, rgDispositions, rgResults); 1797if ((operations == null) || (operations.Length == 0)) 1800_pStore.Transact(new IntPtr(operations.Length), operations, rgDispositions, rgResults); 2456for (int i = 0; i != opList.Length; i++)
parent\parent\parent\public\Internal\NDP\Inc\mansign.cs (25)
529licenseBlob.cbData = (uint) licenseXml.Length; 664if (hashBytes.Length == 0 || hashBytes.Length != computedHashBytes.Length) { 669if (hashBytes.Length == 0 || hashBytes.Length != computedOldHashBytes.Length) { 673for (int i = 0; i < hashBytes.Length; i++) { 683for (int i = 0; i < hashBytes.Length; i++) { 689if (hashBytes.Length == 0 || hashBytes.Length != computedOldHashBytes.Length) { 693for (i = 0; i < hashBytes.Length; i++) { 732modulusBlob.cbData = (uint) modulus.Length; 734exponentBlob.cbData = (uint) exponent.Length; 750if (publicKeyToken.Length == 0 || publicKeyToken.Length != computedPublicKeyToken.Length) { 754for (int i = 0; i < publicKeyToken.Length; i++) { 834if (cspPublicKeyBlob == null || cspPublicKeyBlob.Length == 0) { 842publicKeyBlob.cbData = (uint) cspPublicKeyBlob.Length; 956manifestInformationNode.SetAttribute("Hash", hash.Length == 0 ? "" : BytesToHexString(hash, 0, hash.Length)); 1034licenseBlob.cbData = (uint) licenseXml.Length; 1045Marshal.Copy(timestampBlob.pbData, timestampSignature, 0, timestampSignature.Length);
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (31)
275licenseBlob.cbData = (uint)licenseXml.Length; 942if ((sigHash != null) && (sigHash.Length == messageDigest.Length)) 1020base64DecodedMessage.Length, 1022base64DecodedSignatureValue.Length, 1280if (hashBytes.Length == 0 || hashBytes.Length != computedHashBytes.Length) 1286if (hashBytes.Length == 0 || hashBytes.Length != computedOldHashBytes.Length) 1291for (int i = 0; i < hashBytes.Length; i++) 1303for (int i = 0; i < hashBytes.Length; i++) 1311if (hashBytes.Length == 0 || hashBytes.Length != computedOldHashBytes.Length) 1316for (i = 0; i < hashBytes.Length; i++) 1361modulusBlob.cbData = (uint)modulus.Length; 1363exponentBlob.cbData = (uint)exponent.Length; 1380if (publicKeyToken.Length == 0 || publicKeyToken.Length != computedPublicKeyToken.Length) 1385for (int i = 0; i < publicKeyToken.Length; i++) 1512if (cspPublicKeyBlob == null || cspPublicKeyBlob.Length == 0) 1532publicKeyBlob.cbData = (uint)cspPublicKeyBlob.Length; 1692manifestInformationNode.SetAttribute("Hash", hash.Length == 0 ? "" : BytesToHexString(hash, 0, hash.Length)); 1795para.Nonce.cbData = (uint)nonce.Length; 1805sigValueBytes.Length, 1864licenseBlob.cbData = (uint)licenseXml.Length; 1876Marshal.Copy(timestampBlob.pbData, timestampSignature, 0, timestampSignature.Length);
winforms\Managed\System\Resources\ResXDataNode.cs (11)
186if(fileRefDetails != null && fileRefDetails.Length > 1) { 193if(fileRefDetails.Length > 2) { 452if (serializedData != null && serializedData.Length > 0) { 466if (serializedData != null && serializedData.Length > 0) { 750if (typeParts != null && typeParts.Length >= 2) { 843if (typeParts != null && typeParts.Length > 2) { 846for (int i = 1; i < typeParts.Length; ++i) { 945for(int i=0;i<names.Length; i++) { 1017List<AssemblyName> assemblyList = new List<AssemblyName>(names.Length); 1018for (int i = 0; i < names.Length; i++) { 1031for(int i = 0; i < names.Length; i++) {
winforms\Managed\System\Resources\ResXFileRef.cs (3)
264if(parts.Length > 1) { 266} else if(parts.Length > 0) { 295if(parts.Length > 2) {
winforms\Managed\System\WinForms\AccessibleObject.cs (10)
2609if (args.Length == 0) { 2611if (member != null && member.Length > 0 && member[0] is PropertyInfo) { 2613if (getMethod != null && getMethod.GetParameters().Length > 0) { 2614args = new object[getMethod.GetParameters().Length]; 2615for (int i = 0; i < args.Length; i++) { 2788int result = UnsafeNativeMethods.UiaRaiseStructureChangedEvent(this, structureChangeType, runtimeId, runtimeId == null ? 0 : runtimeId.Length); 2942for (i = 0; i < n && currentChild < newOrder.Length; ++i) { 2946Debug.WriteLineIf(CompModSwitches.MSAA.TraceInfo, "AccessibleObject.IEV.Next: adding sys child " + currentChild + " of " + newOrder.Length); 3116if (accObjectArray != null && accObjectArray.Length > 0) { 3117for (int i = 0; i < accObjectArray.Length; i++) {
winforms\Managed\System\WinForms\Application.cs (13)
271if (attrs != null && attrs.Length > 0) { 500if (attrs != null && attrs.Length > 0) { 564if (attrs != null && attrs.Length > 0) { 1449Debug.Assert(arguments != null && arguments.Length > 0); 1450StringBuilder sb = new StringBuilder((arguments.Length - 1) * 16); 1451for (int argumentIndex = 1; argumentIndex < arguments.Length - 1; argumentIndex++) 1457if (arguments.Length > 1) 1460sb.Append(arguments[arguments.Length - 1]); 1639int length = bytes.Length; 1640if ((length == 0) || ((bytes.Length % 2) != 0) || 2972for (int i = 0; i < ctxs.Length; ++i) { 3603int count = messageFilterSnapshot.Length; 4260if (windowCount == windows.Length) {
winforms\Managed\System\WinForms\AxHost.cs (24)
2632if (cat > 0 && cat < categoryNames.Length && categoryNames[cat] != null) { 2852else if (attributes != null && attribsStash != null && attributes.Length == attribsStash.Length) { 2863Debug.WriteLineIf(AxHTraceSwitch.TraceVerbose, "Returning stashed values for : " + attributes.Length); 2970Debug.WriteLineIf(AxHTraceSwitch.TraceVerbose, "Updating stashed values for : " + ((attributes != null) ? attributes.Length.ToString(CultureInfo.InvariantCulture) : "<null>")); 5195size = (arr == null) ? 0 : arr.Length; 5523if (last == -1 && ctls != null) last = ctls.Length; 5532for (int i = 0, j = rval.Length - 1; i < j; i++, j--) { 5588if (ctls.Length > 0 && components == null) { 5592for (int i = 0; i < ctls.Length; i ++) { 5867for (int i = 0; i < ctls.Length; i++) { 5905for (int i = 0; i < axControls.Length; i++) { 6409PropertyInfo[] props = new PropertyInfo[extenderProps.Length + ctlProps.Length]; 6442MemberInfo[] membs = new MemberInfo[extenderMembs.Length + ctlMembs.Length]; 6444Array.Copy(extenderMembs, 0, membs, 0, extenderMembs.Length); 6445Array.Copy(ctlMembs, 0, membs, extenderMembs.Length, ctlMembs.Length); 7434if (nameItems.Length > 0) { 7435object[] valueItems = new object[cookieItems.Length]; 7439Debug.Assert(cookieItems.Length == nameItems.Length, "Got uneven names and cookies"); 7443for (int i = 0; i < nameItems.Length; i++) {
winforms\Managed\System\WinForms\BindingMAnagerBase.cs (3)
154for (int i = 0; i < itemProps.Length; i ++) { 172for (int i = 0; i < props.Length; i++) { 203for (int i = 0; i < props.Length; i++) {
winforms\Managed\System\WinForms\BindingSource.cs (1)
1126for (int i = 0; i < split.Length; i++) {
winforms\Managed\System\WinForms\CheckedListBox.cs (1)
779for (int i = 1; i < tabStops.Length; i++)
winforms\Managed\System\WinForms\Clipboard.cs (4)
48if (formats.Length <= 4) { 49for (int i = 0; i < formats.Length; i++) { 71if (formats.Length <= 4) { 72for (int i = 0; i < formats.Length; i++) {
winforms\Managed\System\WinForms\ColorDialog.cs (1)
145int length = value == null? 0: Math.Min(value.Length, 16);
winforms\Managed\System\WinForms\ColumnHeader.cs (1)
475 UnsafeNativeMethods.SendMessage(new HandleRef(this.listview, this.listview.Handle), NativeMethods.LVM_SETCOLUMNORDERARRAY, cols.Length, cols);
winforms\Managed\System\WinForms\ComboBox.cs (2)
1543int count = value == null ? 0 : value.Length; 3032for (int i = 0; i < newItems.Length; i++) {
winforms\Managed\System\WinForms\Command.cs (4)
54Debug.Assert(cmds.Length > 0, "why is cmds.Length zero?"); 57int icmdLim = cmds.Length; 74icmd = cmds.Length; 133if (i < 0 || i >= cmds.Length)
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Enum.cs (9)
69names.Length != values.Length) { 113for (int i = 0; i < stringValues.Length; i++) { 134this.names = new string[names.Length]; 135this.stringValues = new string[names.Length]; 136this.values = new object[names.Length]; 137for (int i = 0; i < names.Length; i++) { 156if (values.Length > 0 && v.GetType() != values[0].GetType()) { 168for (int i = 0; i < values.Length; i++) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ICategorizePropertiesHandler.cs (1)
78for (int i = 0; i < propDesc.Length; i++) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (10)
30for (int i = 0; i < propDesc.Length; i++) { 46for (int i = 0; i < attrs.Length; i++) { 69Debug.Assert(attrTypeNames.Length == varParams.Length, "Mismatched parameter and attribute name length"); 70if (attrTypeNames.Length != varParams.Length) { 75Type[] types = new Type[attrTypeNames.Length]; 76for (int i = 0; i < attrTypeNames.Length; i++) { 162for (int c=0; c < ctors.Length; c++) { 164if (pis.Length == 1 && pis[0].ParameterType.IsAssignableFrom(varParams[i].GetType())) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (6)
30for (int i = 0; i < propDesc.Length; i++) { 272if (nameItems.Length > 0){ 274object[] valueItems = new object[cookieItems.Length]; 278Debug.Assert(cookieItems.Length == nameItems.Length, "Got uneven names and cookies"); 283for (int i = nameItems.Length - 1; i >= 0; i--) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IProvidePropertyBuilderHandler.cs (1)
54for (int i = 0; i < propDesc.Length; i++) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (1)
59for (int i = 0; i < propDesc.Length; i++){
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2Properties.cs (10)
166if (props.Length > 0) { 173Debug.Assert(defaultIndex < props.Length, "Whoops! default index is > props.Length"); 221for (int i = 0; i < props.Length; i++) { 263for (int i = 0; i < extendedInterfaces.Length; i++) { 344long[] versions = new long[pTypeInfos.Length]; 345for (int i = 0; i < pTypeInfos.Length; i++) { 476if (newTypeInfoVersions.Length != typeInfoVersions.Length) { 481for (int i = 0; i < newTypeInfoVersions.Length; i++) { 519for (int i = 0; i < props.Length; i++) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
206for (int i = 0; i < attrs.Length; i++) { 225int baseCount = baseAttrs == null ? 0 : baseAttrs.Length;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (1)
92int nObjs = objs.Length;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (7)
140if (typeInfos == null || typeInfos.Length == 0){ 214if (typeInfos == null || typeInfos.Length == 0) { 223Guid[] typeGuids = new Guid[typeInfos.Length]; 225for (int i = 0; i < typeInfos.Length; i++) { 519props[props.Length-1] = new Com2AboutBoxPropertyDescriptor(); 1062PropertyDescriptor[] retProps = new PropertyDescriptor[props.Length]; 1063for (int i = 0; i < props.Length; i++) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
332for (int i = 0; i < temp.Length; ++i) {
winforms\Managed\System\WinForms\Control.cs (33)
7441if (tme.args == null || tme.args.Length < 1) { 7444else if (tme.args.Length < 2) { 7456Debug.Assert(tme.args.Length == 1, 7888Marshal.Copy(bytes, 0, m.LParam, bytes.Length); 7889Marshal.Copy(nullBytes, 0, unchecked((IntPtr)((long)m.LParam + (long)bytes.Length)), nullBytes.Length); 7891m.Result = (IntPtr)((bytes.Length + nullBytes.Length)/Marshal.SystemDefaultCharSize); 10546int stringLength = UnsafeNativeMethods.MultiByteToWideChar(0 /*CP_ACP*/, UnsafeNativeMethods.MB_PRECOMPOSED, b, b.Length, unicodeCharArray, 0); 10549UnsafeNativeMethods.MultiByteToWideChar(0 /*CP_ACP*/, UnsafeNativeMethods.MB_PRECOMPOSED, b, b.Length, unicodeCharArray, unicodeCharArray.Length); 10565else if (unicodeCharArray[0] == 0 && unicodeCharArray.Length >= 2) { 10610UnsafeNativeMethods.WideCharToMultiByte(0 /*CP_ACP*/, 0, keyChar, keyChar.Length, mbcsBytes, mbcsBytes.Length, IntPtr.Zero, IntPtr.Zero); 10631mbcsBytes.Length, 11016for (int i = 0; i < controlSnapshot.Length; i++) { 14851if (controls.Length > 0) { 14857for(int i=0;i < controls.Length; ++i) { 17420for (int i = 0; i < ambientProperties.Length; i++) { 17519for (int i = 0; i < ambientProperties.Length; i++) { 17550for (int i = 0; i < ambientProperties.Length; i++) { 17968if (custom.Length > 0) { 18045stream.Read(bytes, 0, bytes.Length); 18779byte[] newChunk = new byte[streamData.Length + PAGE_SIZE]; 18780Array.Copy(streamData, newChunk, streamData.Length); 19039while (celt > 0 && current < verbs.Length) { 19067if (current + celt < verbs.Length) { 19072current = verbs.Length; 19544index = ctrls.Length - 1; 19569if (ctrls == null || ctrls.Length == 0) 19574if (index >= 0 && index < ctrls.Length) 20149if (attrs != null && attrs.Length > 0) { 20191if (attrs != null && attrs.Length > 0) { 20234if (attrs != null && attrs.Length > 0) {
winforms\Managed\System\WinForms\Cursor.cs (1)
675stream.Write(cursorData, 0, cursorData.Length);
winforms\Managed\System\WinForms\CursorConverter.cs (3)
65for (int i = 0; i < props.Length; i++) { 99for (int i = 0; i < props.Length; i++) { 168for (int i = 0; i < props.Length; i++) {
winforms\Managed\System\WinForms\DataFormats.cs (2)
289if (null == formatList || formatList.Length <= formatCount + size) { 346formatCount = formatList.Length;
winforms\Managed\System\WinForms\DataGrid.cs (16)
1141currentCellAccIndex += this.DataGridRows.Length; // DataGridRowAccessibleObject 2297for (int r = 0; r < rects.Length; r++) { 2768int rowCount = Math.Min(currentDataGridRows.Length, dataGridRows.Length); 3123Debug.Assert(DataGridRowsLength == DataGridRows.Length, "how can this fail?"); 6914if (localGridRows != null && localGridRows.Length != 0) { 6917for (int i = 0; i < localGridRows.Length; i ++) 8309if (localRows.Length == 0) { 8916for (int r = 0; r < expandableRows.Length; ++r) { 8976for (int i = 0; i < tables.Length; i++) { 8983for (int j = 0; j < columns.Length; j++) { 9062return ((DataGrid)Owner).dataGridRows.Length; 9140int rowCount = dataGrid.dataGridRows.Length; 9144if (currentRow < dataGrid.dataGridRows.Length && currentCol < dataGrid.myGridTable.GridColumnStyles.Count) { 9162n += this.DataGrid.DataGridRows.Length * this.DataGrid.myGridTable.GridColumnStyles.Count; 9175if (this.DataGrid.DataGridRows.Length == 0 || this.DataGrid.myGridTable.GridColumnStyles.Count == 0) {
winforms\Managed\System\WinForms\DataGridColumnCollection.cs (1)
304for (int i = 0; i < columns.Length; i++) {
winforms\Managed\System\WinForms\DataGridParentRows.cs (4)
647Debug.Assert(colsNameWidths.Length == colsDataWidths.Length, "both arrays are as long as the largest column count in dgs"); 648for (int i = 0; i < colsNameWidths.Length; i ++) { 655totalWidth += 3 * (colsNameWidths.Length - 1);
winforms\Managed\System\WinForms\DataGridViewCellCollection.cs (1)
323int cellCount = dataGridViewCells.Length;
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (2)
327ArrayList initialColumns = new ArrayList(dataGridViewColumns.Length); 328ArrayList sortedColumns = new ArrayList(dataGridViewColumns.Length);
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
1299for (int i = 0; i < newItems.Length; i++)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (17)
1560if (clonedColumns.Length == clonedColumnsCount) 1576for (int j = 0; j < boundColumns.Length; j ++) 1623for (int k = 0; k < finalClonedColumns.Length; k++) 5270for (int arrayIndex = 0; arrayIndex < dataGridViewRows.Length; arrayIndex++) 5278if (arrayIndex == dataGridViewRows.Length - 1 && 8221int bytecountEndOfFragment = 135 + destinationBytes.Length; 11064int columnCount = dataGridViewColumns.Length; 11202int rowCount = dataGridViewRows.Length; 11426if (previousModes.Length != this.Columns.Count) 15825Debug.Assert(dataGridViewRows.Length > 0); 15828this.displayedBandsInfo.CorrectRowIndexAfterInsertion(rowIndex, dataGridViewRows.Length); 15831CorrectRowIndexesAfterInsertion(rowIndex, dataGridViewRows.Length); 15840Debug.Assert(dataGridViewRows.Length > 0); 16082newCurrentCell = new Point(this.ptCurrentCell.X, this.ptCurrentCell.Y + dataGridViewRows.Length); 16109this.selectedBandIndexes[rowEntry] = rowIndex + dataGridViewRows.Length; 16122this.selectedBandSnapshotIndexes[rowEntry] = rowIndex + dataGridViewRows.Length; 26357for (int r = 0; r < rects.Length; r++)
winforms\Managed\System\WinForms\DataGridViewRow.cs (2)
1879if (columnIndex == values.Length) 1888return setResult && values.Length <= cellCount;
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (3)
926OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null), indexStart, dataGridViewRows.Length); 1882if (dataGridViewRows.Length == 1) 1959OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null), rowIndex, dataGridViewRows.Length, false, true, false, newCurrentCell);
winforms\Managed\System\WinForms\DataObject.cs (33)
482for (int i=0; i<formats.Length; i++) { 580for (int i=0; i<ALLOWED_TYMEDS.Length; i++) { 983else if (files.Length < 1) { 1000for (int i=0; i<files.Length; i++) { 1006for (int i=0; i<files.Length; i++) { 1033Marshal.Copy(structData, 0, currentPtr, structData.Length); 1038for (int i=0; i<files.Length; i++) { 1096UnsafeNativeMethods.CopyMemoryW(ptr, chars, chars.Length*2); 1106UnsafeNativeMethods.WideCharToMultiByte(0 /*CP_ACP*/, 0, str, str.Length, strBytes, strBytes.Length, IntPtr.Zero, IntPtr.Zero); 1140bytes.Length +1, 1152UnsafeNativeMethods.CopyMemory(ptr, bytes, bytes.Length); 1153Marshal.Copy(new byte[] { 0 }, 0, (IntPtr)((long)ptr + bytes.Length), 1); 1225Debug.WriteLineIf(CompModSwitches.DataObject.TraceVerbose, "FormatEnumerator: Constructed: " + parent.ToString() + ", FORMATETC[]" + formats.Length.ToString(CultureInfo.InvariantCulture)); 1237for (int i=0; i<formats.Length; i++) { 1252Debug.WriteLineIf(CompModSwitches.DataObject.TraceVerbose, "FormatEnumerator: Constructed: " + parent.ToString() + ", string[]" + formats.Length.ToString(CultureInfo.InvariantCulture)); 1273for (int i=0; i<formats.Length; i++) { 1708if (size > serializedObjectID.Length) { 1710for(int i = 0; i < serializedObjectID.Length; i++) { 1720index = serializedObjectID.Length; 1727return new MemoryStream(bytes, index, bytes.Length - index); 1805(tokenToBind.Length == s_allowedToken.Length)) { 1807for (int i = 0; i < s_allowedToken.Length; i++) { 1920for (int i=0; ((!done) && (i<mappedFormats.Length)); i++) { 1991for (int i=0; i<ALLOWED_TYMEDS.Length; i++) { 2014for (int i=0; i<mappedFormats.Length; i++) { 2066for (int i=0; i<mappedFormats.Length; i++) { 2129for (int i=0; i<mappedFormats.Length; i++) { 2216Debug.WriteLineIf(CompModSwitches.DataObject.TraceVerbose, "DataStore: got " + formats.Length.ToString(CultureInfo.InvariantCulture) + " formats from get formats"); 2218for (int i=0; i<formats.Length; i++) { 2247for (int i=0; i<baseVar.Length; i++) { 2253for (int j=0; j<cur.Length; j++) { 2266Debug.WriteLineIf(CompModSwitches.DataObject.TraceVerbose, "DataStore: returing " + baseVar.Length.ToString(CultureInfo.InvariantCulture) + " formats from GetFormats");
winforms\Managed\System\WinForms\DataStreamFromComStream.cs (2)
84if (count > 0 && index >= 0 && (count + index) <= buffer.Length) { 102if (count > 0 && index >= 0 && (count + index) <= buffer.Length) {
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (9)
114for (int n = 0; n < pageSites.Length; n++) { 130for (int n = 0; n < pageSites.Length; n++) { 241for (int n = 0; n < pageSites.Length; n++) { 276for (int n = 0; n < pageSites.Length; n++) { 383maxSize = new Size(3 * (BUTTON_WIDTH + BUTTON_PAD), 24 * pageTypes.Length); 385pageSites = new ComponentEditorPageSite[pageTypes.Length]; 389for (int n = 0; n < pageTypes.Length; n++) { 402for (int n = 0; n < pageSites.Length; n++) { 420Debug.Assert((newPage >= 0) && (newPage < pageSites.Length),
winforms\Managed\System\WinForms\Design\EventsTab.cs (5)
150Attribute[] attributesPlusNamespace = new Attribute[attributes.Length + 1]; 151Array.Copy(attributes, 0, attributesPlusNamespace, 0, attributes.Length); 152attributesPlusNamespace[attributes.Length] = DesignerSerializationVisibilityAttribute.Content; 186PropertyDescriptor[] finalEvents = new PropertyDescriptor[realEvents.Count + realNamespaceProperties.Length]; 188Array.Copy(realNamespaceProperties, 0, finalEvents, realEvents.Count, realNamespaceProperties.Length);
winforms\Managed\System\WinForms\Design\WinFormsComponentEditor.cs (1)
54if ((pageControlTypes != null) && (pageControlTypes.Length != 0)) {
winforms\Managed\System\WinForms\ErrorProvider.cs (3)
614for (int i = 0; i < array.Length; i++) 692for (int i = 0; i < w.Length; i++) { 1710SafeNativeMethods.GetBitmapBits(new HandleRef(null, mask), bits.Length, bits);
winforms\Managed\System\WinForms\FileDialog.cs (4)
343if (formats == null || formats.Length % 2 != 0) { 374if ((filterIndex * 2) - 1 >= tokens.Length) { 871for (int i = 0; i < fileNames.Length; i++) { 876for (int j = 0; j < extensions.Length; j++) {
winforms\Managed\System\WinForms\FileDialog_Vista.cs (4)
264dialog.SetFileTypes((uint)filterItems.Length, filterItems); 265if (filterItems.Length > 0) 288if (0 == tokens.Length % 2) 292for (int i = 1; i < tokens.Length; i += 2)
winforms\Managed\System\WinForms\FlatButtonAppearance.cs (2)
190Attribute[] attributes2 = new Attribute[attributes.Length + 1]; 192attributes2[attributes.Length] = new ApplicableToButtonAttribute();
winforms\Managed\System\WinForms\Form.cs (2)
3173else if (ownedForms.Length == ownedFormsCount) { 5961for (int i=0; i<screens.Length; i++) {
winforms\Managed\System\WinForms\GridItemCollection.cs (3)
41return entries.Length; 89if (entries.Length > 0) { 90System.Array.Copy(entries, 0, dest, index, entries.Length);
winforms\Managed\System\WinForms\HtmlDocument.cs (3)
570dp.cArgs = (args == null) ? 0 : args.Length; 597HtmlDocument.FreeVARIANTVector(dp.rgvarg, args.Length); 815int len = args.Length;
winforms\Managed\System\WinForms\HtmlElement.cs (3)
620dp.cArgs = (parameter == null) ? 0 : parameter.Length; 647HtmlDocument.FreeVARIANTVector(dp.rgvarg, parameter.Length); 1471for (int i = 0; i < dispInterfaceTypes.Length && this.cookie == null; i++)
winforms\Managed\System\WinForms\HtmlElementCollection.cs (2)
93int count = this.elementsArray.Length; 147return this.elementsArray.Length;
winforms\Managed\System\WinForms\ImageList.cs (1)
1547for (int i = 0; i < images.Length; ++i)
winforms\Managed\System\WinForms\ImageListStreamer.cs (15)
105while(idx < input.Length) { 110while(idx < input.Length && input[idx] == current && runLength < 0xFF) { 118byte[] output = new byte[finalLength + HEADER_MAGIC.Length]; 120Buffer.BlockCopy(HEADER_MAGIC, 0, output, 0, HEADER_MAGIC.Length); 121int idxOffset = HEADER_MAGIC.Length; 124while(idx < input.Length) { 129while(idx < input.Length && input[idx] == current && runLength < 0xFF) { 138Debug.Assert(idxOffset + compressedIdx == output.Length, "RLE Compression failure in ImageListStreamer -- didn't fill array"); 170if (input.Length < HEADER_MAGIC.Length) { 174for(idx = 0; idx < HEADER_MAGIC.Length; idx++) { 182for (idx = HEADER_MAGIC.Length; idx < input.Length; idx+=2) { 188idx = HEADER_MAGIC.Length; 190while(idx < input.Length) {
winforms\Managed\System\WinForms\KeysConverter.cs (2)
164for (int i = 0; i < tokens.Length; i++) { 173for (int i = 0; i < tokens.Length; i++) {
winforms\Managed\System\WinForms\Layout\TableLayout.cs (39)
118if (array.Length > 1) { 120sorter.QuickSort(0, array.Length - 1); 208CommonProperties.SetLayoutBounds(containerInfo.Container, new Size(SumStrips(containerInfo.Columns, 0, containerInfo.Columns.Length), 209SumStrips(containerInfo.Rows, 0, containerInfo.Rows.Length))); 270if (tempInfo.Columns != null && containerInfo.Columns != null && (tempInfo.Columns.Length != containerInfo.Columns.Length)) 274if (tempInfo.Rows != null && containerInfo.Rows != null && (tempInfo.Rows.Length != containerInfo.Rows.Length)) 312if (cols.Length != 0 && totalSpace.Width > usedSpace.Width) { 313cols[cols.Length - 1].MinSize += totalSpace.Width - usedSpace.Width; 315if (rows.Length != 0 && totalSpace.Height > usedSpace.Height) { 316rows[rows.Length - 1].MinSize += totalSpace.Height - usedSpace.Height; 530if (containerInfo.Rows == null || containerInfo.Rows.Length != numRows) { 533if (containerInfo.Columns == null || containerInfo.Columns.Length != numColumns) { 548for (int i = ++index; i < layoutInfo.Length; i++) { 554index = layoutInfo.Length; 673for (int i = 0; i < strips.Length; i++) { 745int colStop = Math.Min(layoutInfo.ColumnStart + layoutInfo.ColumnSpan, containerInfo.Columns.Length); 765for(int i = 0; i < strips.Length; i++) { 782for (int i = 0; i < strips.Length; i++) { 848int rowStop = Math.Min(layoutInfo.RowStart + layoutInfo.RowSpan, containerInfo.Rows.Length); 867for(int i = start; i < Math.Min(start + span, strips.Length); i++) { 928if (!(i == strips.Length - 1) //this is not the last strip 1002 for(int i = 0; i < strips.Length; i++) { 1063totalPercentAllocatedSpace = maxSize - totalAbsoluteAndAutoSizeAllocatedSpace - (strips.Length * cellBorderWidth); 1069for (int i = 0; i < strips.Length; i++) { 1091for (int i = 0; i < strips.Length; i++) { 1131for(int i = 0; i < strips.Length; i++) { 1145Debug.Assert((dontHonorConstraint || (usedSpace == SumStrips(strips, 0, strips.Length))), "Error computing usedSpace."); 1169for (int i = 0; i < childrenInfo.Length; i++) { 1199for(;currentCol < colStop && currentCol < containerInfo.Columns.Length; currentCol++) { 1211for(int rowIndex = currentRow; rowIndex < rowStop && rowIndex < containerInfo.Rows.Length; rowIndex++) { 1531Debug.Assert(_cols.Length != value.Length, "PERF: should not allocate strips, we've already got an array"); 1543Debug.Assert(_rows.Length != value.Length, "PERF: should not allocate strips, we've already got an array"); 1702LayoutInfo[] trimmedChildInfo = new LayoutInfo[childInfo.Length - nonParticipatingElements]; 1703Array.Copy(childInfo, trimmedChildInfo, trimmedChildInfo.Length); 1725for (int i = 0; i < _childInfo.Length; i++) {
winforms\Managed\System\WinForms\LinkArea.cs (3)
151int[] values = new int[tokens.Length]; 153for (int i = 0; i < values.Length; i++) { 157if (values.Length == 2) {
winforms\Managed\System\WinForms\LinkConverter.cs (3)
76int[] values = new int[tokens.Length]; 78for (int i = 0; i < values.Length; i++) { 82if (values.Length == 2) {
winforms\Managed\System\WinForms\LinkLabel.cs (5)
673Debug.Assert(regionIndex == (textRegions.Length - 1), "Failed to consume all link label visual regions"); 674this.textRegion = textRegions[textRegions.Length - 1]; 772regions[regions.Length - 1] = new CharacterRange(0, text.Length); 1171if (rects != null && rects.Length > 0) { 1453if( rects != null && rects.Length > 0 ){
winforms\Managed\System\WinForms\LinkUtilities.cs (2)
54int nMax = Math.Min(rgb.Length, rgbs.Length);
winforms\Managed\System\WinForms\ListBindingConverter.cs (4)
130int lastItem = ConstructorParameterProperties.Length - 1; 151Array.Copy(ConstructorParamaterTypes, 0, ctorParams, 0, ctorParams.Length); 167object[] values = new object[ctorParams.Length]; 169for (int i = 0; i < values.Length; i++) {
winforms\Managed\System\WinForms\ListBindingHelper.cs (12)
112if ((null == listAccessors) || (listAccessors.Length == 0)) { 169if ((null == listAccessors) || (listAccessors.Length == 0)) { 212int len = (listAccessors == null) ? 1 : (listAccessors.Length + 1); 352if ((null == listAccessors) || (listAccessors.Length == 0)) { 376if (startIndex >= listAccessors.Length) { 421if (startIndex == listAccessors.Length) { 442if ((null == listAccessors) || (listAccessors.Length == 0)) { 471if (listAccessors != null && listAccessors.Length > startIndex) { 482if (listAccessors.Length > startIndex + 1) { 483int accessorsCount = listAccessors.Length - (startIndex + 1); 556for (int idx = 0; idx < props.Length; idx++) { 557if (props[idx].GetIndexParameters().Length > 0 && props[idx].PropertyType != typeof(object)) {
winforms\Managed\System\WinForms\ListBox.cs (8)
1206int count = value == null? 0: value.Length; 1995for(int i = 0; i < newItems.Length; i++) { 2595else if (count + elements >= entries.Length) { 2596int newLength = Math.Max(entries.Length * 2, entries.Length + elements); 3623else if (count + elements >= innerArray.Length) { 3624int newLength = Math.Max(innerArray.Length * 2, innerArray.Length + elements);
winforms\Managed\System\WinForms\ListItemConverter.cs (1)
91for(int i=0; i < subItems.Length; ++i) {
winforms\Managed\System\WinForms\ListView.cs (52)
510for (int i = 0; i < items.Length; i ++) { 546for (int i = 0; i < items.Length; i ++) { 2221if (items.Length > 0) { 2418ColumnHeader col = (this.columnHeaders != null && this.columnHeaders.Length > 0) ? this.columnHeaders[0] : null; 2964for (int colIdx = columnHeaders.Length-1; colIdx >= 0; colIdx--) { 3320for (int i = 0; i < columnHeaders.Length; i++) { 3627int columnCount = (columnHeaders == null ? 0 : columnHeaders.Length); 3760if (items == null || items.Length == 0) { 3775for (int i = 0; i < items.Length; i ++) { 3790for (int i = 0; i < items.Length; i ++) { 3801for (int i = 0; i < items.Length; i++) { 3855if (items == null || items.Length == 0) { 3881for (int i = 0; i < items.Length; i++) { 3905lvItem.cColumns = this.columnHeaders != null ? Math.Min(MAXTILECOLUMNS, this.columnHeaders.Length) : 0; 4322int columnCount = (columnHeaders == null ? 0 : columnHeaders.Length); 4324int[] indices = new int [columnHeaders.Length]; 4392savedSelectedItems = new List<ListViewItem>(lviArr.Length); 4393for (int i = 0; i < lviArr.Length; i ++) { 4407listItemsArray = new ArrayList(items.Length); 4917(columnIndex >= this.columnHeaders.Length)) { 4974int[] orderedColumns = new int[ indices.Length ]; 4975for (int i=0; i<indices.Length; i++) { 4981UnsafeNativeMethods.SendMessage(new HandleRef(this, this.Handle), NativeMethods.LVM_SETCOLUMNORDERARRAY, orderedColumns.Length, orderedColumns); 5248for (int i = 0; i < this.columnHeaders.Length; i ++) { 5345tileViewInfo.cLines = this.columnHeaders != null ? this.columnHeaders.Length : 0; 5533if (this.columnHeaders != null && this.columnHeaders.Length > nmheader.iItem) { 5546if (columnHeaders != null && nmheader.iItem < columnHeaders.Length && 5581if (columnHeaders != null && nmheader.iItem < columnHeaders.Length) { 5634if (this.columnHeaders != null && this.columnHeaders.Length > nmheader.iItem) { 5744if (this.columnHeaders != null && this.columnHeaders.Length > nmheader.iItem) { 6156Marshal.Copy(byteBuf, 0, infoTip.lpszText, Math.Min(byteBuf.Length, infoTip.cchTextMax)); 6161Marshal.Copy(charBuf, 0, infoTip.lpszText, Math.Min(charBuf.Length, infoTip.cchTextMax)); 6453for(int i=0; i < owner.Items.Count && index < indices.Length; ++i) { 6568for(int index=0; index < indices.Length; ++index) { 6681for(int i=0; i < owner.Items.Count && index < items.Length; ++i) { 6836for(int index=0; index < items.Length; ++index) { 7131for(int index=0; index < indices.Length; ++index) { 7527for (int i=0; i < items.Length; i++) { 7613for(int index=0; index < items.Length; ++index) { 7696if (owner.columnHeaders == null || index < 0 || index >= owner.columnHeaders.Length) 7743return owner.columnHeaders == null ? 0 : owner.columnHeaders.Length; 7951int [] indices = new int[values.Length]; 7953for (int i=0; i<values.Length; i++) { 7959if (!usedIndices.ContainsKey(values[i].DisplayIndex) && values[i].DisplayIndex >= 0 && values[i].DisplayIndex < values.Length) { 7967if (usedIndices.Count == values.Length) { 7992for (int colIdx = owner.columnHeaders.Length-1; colIdx >= 0; colIdx--) { 8001for (int colIdx = owner.columnHeaders.Length-1; colIdx >= 0; colIdx--) { 8179if (index < 0 || index >= owner.columnHeaders.Length) 8211int columnCount = owner.columnHeaders.Length; 8944checkedValues = new bool[values.Length]; 8945for (int i = 0; i < values.Length; i ++) { 8955for (int i = 0; i < values.Length; i ++) {
winforms\Managed\System\WinForms\ListViewGroup.cs (1)
496for(int i=0; i < groups.Length; i++) {
winforms\Managed\System\WinForms\ListViewGroupItemCollection.cs (2)
86for (int i = 0; i < items.Length; i ++) { 92for(int i=0; i < items.Length; i++) {
winforms\Managed\System\WinForms\ListViewItem.cs (17)
154if (items != null && items.Length > 0) { 155this.subItems = new ListViewSubItem[items.Length]; 156for (int i = 0; i < items.Length; i++) { 159this.SubItemCount = items.Length; 181this.SubItemCount = this.subItems.Length; 185for(int i=0; i < subItems.Length; ++i) { 263if (items != null && items.Length > 0) { 264this.subItems = new ListViewSubItem[items.Length]; 265for (int i = 0; i < items.Length; i++) { 268this.SubItemCount = items.Length; 290this.SubItemCount = this.subItems.Length; 294for(int i=0; i < subItems.Length; ++i) { 1861EnsureSubItemSpace(items.Length, -1); 1877EnsureSubItemSpace(items.Length, -1); 1893EnsureSubItemSpace(items.Length, -1); 1970if (owner.SubItemCount + size > owner.subItems.Length) { 1980int newSize = owner.subItems.Length * 2;
winforms\Managed\System\WinForms\MDIClient.cs (1)
367if (childForm == null && MdiChildren.Length > 0 && MdiChildren[0].IsMdiChildFocusable) {
winforms\Managed\System\WinForms\MDIWindowDialog.cs (1)
64for (int i=0; i<all.Length; i++) {
winforms\Managed\System\WinForms\MdiWindowListStrip.cs (2)
77if(forms != null && forms.Length != 0){ 94for (int i = 0; i < forms.Length; i++) {
winforms\Managed\System\WinForms\Menu.cs (5)
472for (int i = 0; i < items.Length && !multipleMatches; ++i) { 473int itemIndex = (startItem + i) % items.Length; 601for (int i = 0; i < items.Length; ++i) { 648int startItem = (SelectedMenuItemIndex + 1) % items.Length; 871if (owner.items == null || owner.items.Length == owner.ItemCount) {
winforms\Managed\System\WinForms\MenuItem.cs (5)
379if (FindMdiForms().Length > 0) { 1151if (forms != null && forms.Length > 0) { 1177for (int i = 0; i < forms.Length; i++) { 1801if (forms != null && forms.Length > boundIndex) { 1829if (forms != null && forms.Length > 0 && active != null) {
winforms\Managed\System\WinForms\MessageBox.cs (5)
83if (helpInfoTable != null && helpInfoTable.Length > 0) { 85return helpInfoTable[helpInfoTable.Length - 1]; 104if (helpInfoTable.Length == 1) { 108int newCount = helpInfoTable.Length -1; 132lastCount = helpInfoTable.Length;
winforms\Managed\System\WinForms\MonthCalendar.cs (8)
286if (value != null && value.Length > 0) { 289for (int i = 0; i < value.Length; i++) { 293for (int i = 0; i < value.Length; ++i) { 397if (value != null && value.Length > 0) { 400for (int i = 0; i < value.Length; i++) { 680if (value != null && value.Length > 0) { 683for (int i = 0; i < value.Length; i++) { 687for (int i = 0; i < value.Length; ++i) {
winforms\Managed\System\WinForms\NativeWindow.cs (15)
360uint hashcode = InitHash(handle, hashBuckets.Length, out seed, out incr); 369int bucketNumber = (int)(seed % (uint)hashBuckets.Length); 427} while (++ntry < hashBuckets.Length); 554if (attr.Length > 0) { 889int oldhashsize = hashBuckets.Length; 908uint incr = (uint)(1 + (((seed >> 5) + 1) % ((uint)newBuckets.Length - 1))); 911int bucketNumber = (int)(seed % (uint)newBuckets.Length); 958for (int i = 0; i < primes.Length; i++) { 999uint hashcode = InitHash(handle, buckets.Length, out seed, out incr); 1003int bucketNumber = (int)(seed % (uint)buckets.Length); 1015while (b.hash_coll < 0 && ++ntry < buckets.Length); 1082for (int i = 0; i < hashBuckets.Length; i++) { 1195uint hashcode = InitHash(handle, hashBuckets.Length, out seed, out incr); 1202bn = (int)(seed % (uint)hashBuckets.Length); // bucketNumber 1251} while (hashBuckets[bn].hash_coll < 0 && ++ntry < hashBuckets.Length);
winforms\Managed\System\WinForms\OpenFileDialog.cs (3)
291if (null == fullPaths || 0 == fullPaths.Length) 293string[] safePaths = new string[fullPaths.Length]; 294for (int i = 0; i < safePaths.Length; ++i)
winforms\Managed\System\WinForms\Padding.cs (3)
321int[] values = new int[tokens.Length]; 323for (int i = 0; i < values.Length; i++) { 327if (values.Length == 4) {
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (8)
286value = Math.Min(value, pageInfo.Length - (rows * columns)); 420if (pageInfo.Length == 0) { 541if (pageInfo == null || pageInfo.Length == 0) { 601if (imageIndex < pageInfo.Length) { 633for (int i=0; i<pageRenderArea.Length; i++) { 634if (i + StartPage < pageInfo.Length) { 849else if (StartPage < pageInfo.Length) 860StartPage=pageInfo.Length;
winforms\Managed\System\WinForms\PropertyGrid.cs (115)
452if (currentObjects != null && currentObjects.Length > 0) { 1143if (currentObjects == null || currentObjects.Length == 0) { 1183if (value != null && value.Length > 0) { 1184for (int count = 0; count < value.Length; count++) { 1186throw new ArgumentException(SR.GetString(SR.PropertyGridSetNull, count.ToString(CultureInfo.CurrentCulture), value.Length.ToString(CultureInfo.CurrentCulture))); 1199currentObjects.Length == value.Length) { 1202for (int i = 0; i < value.Length && (isSame || classesSame); i++) { 1269if (!classesSame && !GetFlag(TabsChanging) && selectedViewTab < viewTabButtons.Length) { 1276for (int i = 0; i < viewTabs.Length;i++) { 1287if (showEvents && viewTabs != null && viewTabs.Length > EVENTS && (viewTabs[EVENTS] is EventsTab)) { 1296if (currentObjects.Length > 10) { 1300for (int i = 0; i < currentObjects.Length && showEvents; i++) { 1325ShowEventsButton(showEvents && currentObjects.Length > 0); 1328if (currentObjects.Length == 1) { 1353if (currentObjects.Length > 0 && GetFlag(ReInitTab)) { 1363if (nButton < viewTabs.Length && (nButton == PROPERTIES || viewTabButtons[nButton].Visible)) { 1376if (currentObjects.Length > 0) { 1409Debug.Assert(selectedViewTab < viewTabs.Length && selectedViewTab >= 0, "Invalid tab selection!"); 1845for (int i = 0; i < viewTabs.Length; i++) { 1877tabIndex = viewTabs.Length; 1889for (int i = 1; i < viewTabs.Length; i++) { 1905PropertyTab[] newTabs = new PropertyTab[viewTabs.Length + 1]; 1907Array.Copy(viewTabs, tabIndex, newTabs, tabIndex + 1, viewTabs.Length - tabIndex); 1913PropertyTabScope[] newTabScopes = new PropertyTabScope[viewTabScopes.Length + 1]; 1915Array.Copy(viewTabScopes, tabIndex, newTabScopes, tabIndex + 1, viewTabScopes.Length - tabIndex); 1925int oldArraySize = tabComps == null ? 0 : tabComps.Length; 2133if (currentObjects != null && currentObjects.Length > 0) { 2134for (int i = 0; i < currentObjects.Length; i++) { 2162if (currentObjects.Length == 1 && GetUnwrappedObject(0) is IComponent) { 2183if (verbs != null && verbs.Length > 0) { 2216for (int i = 0; i < viewTabs.Length; i++) { 2223for (int i = 0; i < imageList.Length; i++) { 2394Debug.Assert(viewTabs.Length == viewTabScopes.Length && viewTabScopes.Length == viewTabButtons.Length,"Uh oh, tab arrays aren't all the same length! tabs=" + viewTabs.Length.ToString(CultureInfo.InvariantCulture) + ", scopes=" + viewTabScopes.Length.ToString(CultureInfo.InvariantCulture) + ", buttons=" + viewTabButtons.Length.ToString(CultureInfo.InvariantCulture)); 2399for (int i = 1; i < viewTabs.Length; i++) { 2404for (int j = 0; j < currentObjects.Length; j++) { 2526if (objs == null || objs.Length == 0) { 2540for (i = 0; i < tabAttr.TabScopes.Length; i++) { 2544if (types == tabTypes.Length) { 2559for (i = 1; i < objs.Length && types > 0; i++) { 2573for (k = 0; k < tabAttr.TabClasses.Length; k++) { 2633if (currentObjects == null || index < 0 || index > currentObjects.Length) { 2819for (int i=0; i < attribute.TabClasses.Length; i++) { 2829(currentObjects == null) || (currentObjects.Length == 0)) { 2837int objectCount = currentObjects.Length; 2855for (int i=0; i < attribute.TabClasses.Length; i++) { 2861for (int i = 0; i < currentObjects.Length; i++) { 2864object[] newObjects = new object[currentObjects.Length - 1]; 2866if (i < newObjects.Length) { 2869Array.Copy(currentObjects, i + 1, newObjects, i, newObjects.Length - i); 2921if (currentObjects != null && currentObjects.Length > 0) { 3460for (int i = 0; i < currentObjects.Length; i++) { 3488for (index = 0; index < viewSortButtons.Length; index++) { 3540currentObjects.Length > 0) { 3940if (currentObjects != null && currentObjects.Length > 0) { 3944for (int i = 0; i < tabTypes.Length; i++) { 3945for (int j = 0; j < currentObjects.Length; j++) { 3962for (int j = 0; j < attribute.TabClasses.Length; j++) { 3979for (int i = 0; i < viewTabs.Length; i++) { 4001object[] newComponents = new object[components.Length - 1]; 4003Array.Copy(components, index + 1, newComponents, index, components.Length - index - 1); 4007killTab = (components.Length == 0); 4040ToolStripButton selectedButton = (selectedViewTab >=0 && selectedViewTab < viewTabButtons.Length ? viewTabButtons[selectedViewTab] : null); 4042for (int i = viewTabs.Length-1; i >= 0; i--) { 4053PropertyTab[] newTabs = new PropertyTab[viewTabs.Length - 1]; 4055Array.Copy(viewTabs, i + 1, newTabs, i, viewTabs.Length - i - 1); 4058PropertyTabScope[] newTabScopes = new PropertyTabScope[viewTabScopes.Length - 1]; 4060Array.Copy(viewTabScopes, i + 1, newTabScopes, i, viewTabScopes.Length - i - 1); 4070Debug.Assert(viewTabs != null && viewTabs.Length > 0, "Holy Moly! We don't have any tabs left!"); 4076for (int i = 0; i < viewTabs.Length; i++) { 4085if (tabIndex >= viewTabs.Length || tabIndex < 0) { 4109PropertyTab[] newTabs = new PropertyTab[viewTabs.Length - 1]; 4111Array.Copy(viewTabs, tabIndex + 1, newTabs, tabIndex, viewTabs.Length - tabIndex - 1); 4114PropertyTabScope[] newTabScopes = new PropertyTabScope[viewTabScopes.Length - 1]; 4116Array.Copy(viewTabScopes, tabIndex + 1, newTabScopes, tabIndex, viewTabScopes.Length - tabIndex - 1); 4131for (int i = 0; i < viewTabs.Length; i++) { 4144PropertyTab[] newTabs = new PropertyTab[viewTabs.Length - 1]; 4146Array.Copy(viewTabs, tabIndex + 1, newTabs, tabIndex, viewTabs.Length - tabIndex - 1); 4149PropertyTabScope[] newTabScopes = new PropertyTabScope[viewTabScopes.Length - 1]; 4151Array.Copy(viewTabScopes, tabIndex + 1, newTabScopes, tabIndex, viewTabScopes.Length - tabIndex - 1); 4193for (int i = 0; i < currentObjects.Length; ++i) { 4264if (selectedViewTab >= 0 && selectedViewTab >= viewTabButtons.Length) { 4269if (selectedViewTab >=0 && selectedViewTab < viewTabButtons.Length && 4284for (int i = 0; i < viewTabButtons.Length; i++) { 4311if (state >= (viewTabs.Length * viewSortButtons.Length)) { 4315state = (viewTabs.Length * viewSortButtons.Length) - 1; 4328int viewTypes = viewSortButtons.Length; 4335Debug.Assert(tab < viewTabs.Length, "Trying to select invalid tab!"); 4336Debug.Assert(view < viewSortButtons.Length, "Can't select view type > 1"); 4435for (i = 0; i < viewSortButtons.Length; i++) { 4457viewTabButtons = new ToolStripButton[viewTabs.Length]; 4458bool doAdd = viewTabs.Length > 1; 4463for (i = 0; i < viewTabs.Length; i++) { 4538if (viewTabs != null && viewTabs.Length > EVENTS && (viewTabs[EVENTS] is EventsTab)) { 4540Debug.Assert(viewTabButtons != null && viewTabButtons.Length > EVENTS && viewTabButtons[EVENTS] != null, "Events button is not at EVENTS position"); 4623for (int i = 0;connectionPointCookies != null && i < connectionPointCookies.Length; i++) { 4630if (currentObjects == null || currentObjects.Length == 0) { 4636if (connectionPointCookies == null || (currentObjects.Length > connectionPointCookies.Length)) { 4637connectionPointCookies = new AxHost.ConnectionPointCookie[currentObjects.Length]; 4640for (int i = 0; i < currentObjects.Length; i++) { 4680for(int i=1; i < viewTabButtons.Length; i++) { // Starts at index 1, since index 0 is properties-view 4715if (currentObjects != null && currentObjects.Length > 0) { 5005for (int i = 0; i < viewTabs.Length;i++) { 5103return owner.viewTabs.Length; 5177if (owner.viewTabs.Length > 0) { 5178System.Array.Copy(owner.viewTabs, 0, dest, index, owner.viewTabs.Length);
winforms\Managed\System\WinForms\PropertyGridInternal\CategoryGridEntry.cs (1)
56for (int i = 0; i < childGridEntries.Length; i++) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (10)
1143if (rgobjs == null || rgobjs.Length == 0) { 1149if (rgobjs.Length == 1) 1204bool fExpandable = (childProps != null && childProps.Length > 0); 1208if (childProps.Length == childCollection.Count) { 1209for (int i = 0; i < childProps.Length; i++) { 1599entries = new GridEntry[objArray.Length]; 1601for (int i = 0; i < entries.Length; i++) 2482for (int i = 0; i < props.Length; i++) { 2485newProps = new PropertyDescriptor[props.Length]; 2495for (int i = 0; i < props.Length; i++) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntryCollection.cs (4)
39GridEntry[] newArray = new GridEntry[entries.Length + value.Length]; 41value.CopyTo(newArray, entries.Length); 73for (int i = 0; i < entries.Length; i++) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (5)
40this.toolInfos = new NativeMethods.TOOLINFO_T[controls.Length]; 42for (int i = 0; i < controls.Length; i++) { 88for (int i = 0; i < controls.Length; i++) { 166for (int i = 0; i < controls.Length; i++) { 229for (int i = 0; i < controls.Length; i++) {
winforms\Managed\System\WinForms\PropertyGridInternal\HotCommands.cs (7)
100verbCount = verbs.Length; 166for (int i = 0; i < this.verbs.Length; i++){ 173if (component == null || verbs == null || verbs.Length == 0) { 182for (int i = 0; i < verbs.Length; i++){ 198Point[] links = new Point[verbs.Length]; 202for (int i=0; i<verbs.Length; i++) { 220for (int i=0; i<verbs.Length; i++) {
winforms\Managed\System\WinForms\PropertyGridInternal\MergePropertyDescriptor.cs (16)
158for (int i = 0; i < descriptors.Length; i++) { 296for (int i = 1; i < descriptors.Length; i++) { 324object[] values = new object[components.Length]; 326for (int i = 0; i < components.Length; i++) { 345for (int i = 0; i < descriptors.Length; i++) { 362for (int i = 0; i < descriptors.Length; i++) { 397for (int i = 0; i < descriptors.Length; i++) { 416for (int i = 0; i < descriptors.Length; i++) { 440return items.Length; 477Array.Copy(items, 0, array, index, items.Length); 500if (items.Length != newCollection.Count) { 507for (int i = 0;i < newItems.Length; i++) { 625attributeCollections = new AttributeCollection[owner.descriptors.Length]; 626for (int i = 0; i < owner.descriptors.Length; i++) { 631if (attributeCollections.Length == 0) { 649for (int i = 1; i < attributeCollections.Length; i++) {
winforms\Managed\System\WinForms\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (9)
138IComponent[] temp = new IComponent[objs.Length]; 139Array.Copy(objs, 0, temp, 0, objs.Length); 209for (int i = 0; i < ownerArray.Length; i++) { 241if (objects != null && objects.Length > 0) { 315if (a1 != null && a2 != null && a1.Length == a2.Length) { 316for (int i = 0; i < a1.Length; i++) { 330int cLength = objs.Length; 348int cLength = objs.Length;
winforms\Managed\System\WinForms\PropertyGridInternal\MultiSelectRootGridEntry.cs (14)
92int cLength = rgobjs.Length; 99for (int i=0; i < entries.Length; i++) { 123for (int i=0; i < entries.Length; i++) { 141PropertyDescriptorCollection[] propCollections = new PropertyDescriptorCollection[objs.Length]; 146for (int i = 0; i < objs.Length; i++) { 155PropertyDescriptor[] matchArray = new PropertyDescriptor[objs.Length]; 160int[] posArray = new int[propCollections.Length]; 166for (int j = 1; match && j < propCollections.Length; j++) { 246for (int i = 0; i < entries.Length; i++) { 249newEntries = new MultiPropertyDescriptorGridEntry[entries.Length]; 258for (int i = 0; i < entries.Length; i++) { 277PropertyDescriptor[] mergeArray = new PropertyDescriptor[((PropertyDescriptor[])sortedMergedEntries[0]).Length + 1]; 279for (int i = 0; i < baseEntries.Length; i++) { 314Array.Copy(mergedEntryList, 0, mergeArray, 1, mergedEntryList.Length);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (11)
430for (int i = 0; i < pvUIItems.Length; i++) { 527for (int i = 0; i < pvUIItems.Length; i++) { 535return propertyInfo.CanResetValue(obj) || (pvUIItems != null && pvUIItems.Length > 0); 588for (int i = 0; i < pvUIItems.Length; i++) { 610if (uiItemRects == null || uiItemRects.Length != pvUIItems.Length) { 611uiItemRects = new Rectangle[pvUIItems.Length]; 622for (int i = 0; i < pvUIItems.Length; i++) { 626GridEntryHost.LabelPaintMargin = (scaledImageSizeX + 1) * pvUIItems.Length; 730if (objArray.Length > 0) 895if (objArray != null && objArray.Length > 0) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (15)
1434if (values == null || index >= (values.Length - 1)) { 1807for (int i = 0; i < values.Length; i++) { 1808object valueCur = values[(i + index + 1) % values.Length]; 1978if (values != null && values.Length > 0) { 1982for (int i = 0; i < values.Length; i++) { 2090if (cCur >= cTarget + rgipeTarget.Length) 2684for (int i = 0; i < rgvalues.Length; i++) { 2702if (i == rgvalues.Length - 1) return true; 3339if (delta > 0 && index >= (values.Length - 1)) { 3343index = values.Length - 1; 3719for (int i = 0; i < entries.Length; i++) { 3733int newArraySize = entries.Length + (e.NewChildCount - e.OldChildCount); 3740Array.Copy(entries, parentIndex + e.OldChildCount+1, newEntries, parentIndex + e.NewChildCount+1, entries.Length - (parentIndex + e.OldChildCount + 1)); 3879if (rgItems != null && rgItems.Length > 0) { 3883for (int i = 0; i < rgItems.Length; i++) {
winforms\Managed\System\WinForms\PropertyGridInternal\SingleSelectRootGridEntry.cs (2)
93for (int i = 0; i < attr1.Length; i++) { 312for (int i = 0; i < childEntries.Length; i++) {
winforms\Managed\System\WinForms\PropertyStore.cs (17)
299int length = intEntries.Length; 397int length = objEntries.Length; 510IntegerEntry[] newEntries = new IntegerEntry[intEntries.Length - 1]; 514if (index < newEntries.Length) { 515Debug.Assert(intEntries.Length - index - 1 > 0); 516Array.Copy(intEntries, index + 1, newEntries, index, intEntries.Length - index - 1); 570if (objEntries.Length == 1) 577ObjectEntry[] newEntries = new ObjectEntry[objEntries.Length - 1]; 582if (index < newEntries.Length) 584Debug.Assert(objEntries.Length - index - 1 > 0); 585Array.Copy(objEntries, index + 1, newEntries, index, objEntries.Length - index - 1); 714IntegerEntry[] newEntries = new IntegerEntry[intEntries.Length + 1]; 720if (intEntries.Length - index > 0) { 721Array.Copy(intEntries, index, newEntries, index + 1, intEntries.Length - index); 774ObjectEntry[] newEntries = new ObjectEntry[objEntries.Length + 1]; 780if (objEntries.Length - index > 0) { 781Array.Copy(objEntries, index, newEntries, index + 1, objEntries.Length - index);
winforms\Managed\System\WinForms\RelatedCurrencyManager.cs (2)
80if (listAccessors != null && listAccessors.Length > 0) { 81accessors = new PropertyDescriptor[listAccessors.Length + 1];
winforms\Managed\System\WinForms\RelatedPropertyManager.cs (2)
58if (listAccessors != null && listAccessors.Length > 0) { 59accessors = new PropertyDescriptor[listAccessors.Length + 1];
winforms\Managed\System\WinForms\RichTextBox.cs (10)
1337if (value != null && value.Length > RichTextBoxConstants.MAX_TAB_STOPS) 1348pf.cTabCount = (short)((value == null) ? 0 : value.Length); 2110if (characterSet.Length == 0) 2342int charSetLen = charSet.Length; 2905for (int i=0; i<bytesFaceName.Length; i++) cfA.szFaceName[i] = bytesFaceName[i]; 2919for (int i=0; i<bytesFaceName.Length; i++) cfW.szFaceName[i] = bytesFaceName[i]; 3006editStream = new MemoryStream(encodedBytes.Length); 3007editStream.Write(encodedBytes, 0, encodedBytes.Length); 3118result = Encoding.Unicode.GetString(bytes,0 , bytes.Length); 3121result = Encoding.Default.GetString(bytes, 0, bytes.Length);
winforms\Managed\System\WinForms\Screen.cs (1)
209for (int i=0; i<screens.Length; i++) {
winforms\Managed\System\WinForms\SelectionRangeConverter.cs (1)
74if (tokens.Length == 2) {
winforms\Managed\System\WinForms\SendKeys.cs (1)
347for (int i = 0; i < keywords.Length; i++)
winforms\Managed\System\WinForms\StatusBar.cs (1)
886for (int i = 0; i < pArray.Length; i++) {
winforms\Managed\System\WinForms\StringSorter.cs (5)
110keys = new string[items.Length]; 111for (int i = 0; i < items.Length; i++) { 132return array.Length; 379|| ((keys != null) && (keys.Length != items.Length)))
winforms\Managed\System\WinForms\StringSource.cs (2)
51size = (strings == null ) ? 0 : strings.Length; 102size = (strings == null ) ? 0 : strings.Length;
winforms\Managed\System\WinForms\TabControl.cs (6)
806Debug.Assert(0 <= index && index < tabPages.Length, "SelectedIndex returned an invalid index"); 1276else if (tabPages.Length == tabPageCount) { 1655int index = ((tabPages.Length > 0) && (SelectedIndex == -1)) ? 0: SelectedIndex; 1668for (int i = 0; i < tabPages.Length; i++) { 1727for (int i = 0; i < pages.Length; i++) { 1985for (int i = 0; i < tabPages.Length; i++) {
winforms\Managed\System\WinForms\TableLayoutPanel.cs (11)
329int[] cw = new int[containerInfo.Columns.Length]; 330for(int i = 0; i < containerInfo.Columns.Length; i++) { 347int[] rh = new int[containerInfo.Rows.Length]; 348for(int i = 0; i < containerInfo.Rows.Length; i++) { 410int cols = colStrips.Length; 411int rows = rowStrips.Length; 512int lastRow = containerInfo.Rows.Length -1; 513if (containerInfo.Rows.Length > 0) { 518int lastColumn = containerInfo.Columns.Length -1; 519if (containerInfo.Columns.Length > 0) { 520lastColumnHeight = containerInfo.Columns[containerInfo.Columns.Length -1].MinSize;
winforms\Managed\System\WinForms\TableLayoutPanelCellPosition.cs (3)
113int[] values = new int[tokens.Length]; 115for (int i = 0; i < values.Length; i++) { 120if (values.Length == 2) {
winforms\Managed\System\WinForms\TextBoxBase.cs (6)
720if (value != null && value.Length > 0) { 726for (int i=1; i < value.Length; ++i) { 2090if (start > bytes.Length){ 2091start = bytes.Length; 2093if (end > bytes.Length){ 2094end = bytes.Length;
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (2)
336int buttonLeft = (width - scaledButtonDetailsLeftPadding - ((buttons.Length - startIndex) * scaledButtonAlignmentWidth - scaledButtonAlignmentPadding)); 338for (int i = startIndex; i < buttons.Length; i++) {
winforms\Managed\System\WinForms\ToolBar.cs (3)
710for (firstVisible = 0; firstVisible < buttons.Length; firstVisible++) { 715if (firstVisible == buttons.Length) { 1170else if (buttons.Length == buttonCount) {
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (1)
148for (int i = 0; i < toolStripItems.Length; i++) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
136if (textFields.Length >= 1){ 140if (textFields.Length >= 2) {
winforms\Managed\System\WinForms\ToolStripPanel.cs (3)
597for ( int i = 0; i < controls.Length; i++) { 672for (int i = 0; i < controlArray.Length; i++) { 1375for (int i = 0; i < value.Length; i++) {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (3)
2076for (int i = 0; i < value.Length; i++) { 2282if (index >= array.Length || InnerList.Count > array.Length - index) {
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (1)
1191for (int i = 0; i < paintRects.Length; i++) {
winforms\Managed\System\WinForms\ToolStripRenderer.cs (3)
1028Rectangle[] whiteRectangles = new Rectangle[baseSizeGripRectangles.Length]; 1029Rectangle[] greyRectangles = new Rectangle[baseSizeGripRectangles.Length]; 1031for (int i = 0; i < baseSizeGripRectangles.Length; i++) {
winforms\Managed\System\WinForms\ToolStripSettings.cs (1)
253for (int i = 0; ((i < toolStrip.Items.Count) && (i < keys.Length)); i++) {
winforms\Managed\System\WinForms\ToolTip.cs (11)
593if (regions != null && regions.Length > 0) { 594for (int i=0; i<regions.Length; i++) { 917for (int i=1; i < delayTimes.Length; i++) { 944for (int i=0; i<ctls.Length; i++) { 957for (int i=0; i<ctls.Length; i++) { 1362for (int i=0; i<regions.Length; i++) { 1815for (int i = 0; i < possibleLocations.Length; i++) { 1827for (int i = 0; i < possibleLocations.Length; i++) { 1839for (int i = 0; i < possibleLocations.Length; i++) { 1854for (int i = 1; i < possibleLocations.Length; i++) { 2003for (int i=0; i<ctls.Length; i++) {
winforms\Managed\System\WinForms\TreeNode.cs (1)
1510else if (childCount + num > children.Length) {
winforms\Managed\System\WinForms\TreeNodeCollection.cs (5)
244if (nodes.Length == 0) 247if (tv != null && nodes.Length > TreeNode.MAX_TREENODES_OPS) { 251owner.EnsureCapacity(nodes.Length); 252for (int i = nodes.Length-1 ; i >= 0; i--) { 256if (tv != null && nodes.Length > TreeNode.MAX_TREENODES_OPS) {
winforms\Managed\System\WinForms\Triangle.cs (1)
124for (int i = 0; i < points.Length; i++) {
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (16)
6544IntPtr result = Marshal.AllocCoTaskMem(buffer.Length); 6545Marshal.Copy(buffer, 0, result, buffer.Length); 6552while (i < buffer.Length && buffer[i] != 0) 6555if (i < buffer.Length) 6563Marshal.Copy(ptr, buffer, 0, buffer.Length); 6570int count = Math.Min(bytes.Length, buffer.Length - offset); 6573if (offset < buffer.Length) buffer[offset++] = 0; 6590IntPtr result = Marshal.AllocCoTaskMem(buffer.Length * 2); 6591Marshal.Copy(buffer, 0, result, buffer.Length); 6598while (i < buffer.Length && buffer[i] != 0) i++; 6600if (i < buffer.Length) i++; 6607Marshal.Copy(ptr, buffer, 0, buffer.Length); 6613int count = Math.Min(s.Length, buffer.Length - offset); 6616if (offset < buffer.Length) buffer[offset++] = (char)0; 6676if (pcbRead != null && pcbRead.Length > 0) {
winforms\Managed\System\WinForms\WebBrowserContainer.cs (3)
174for (int i = 0; i < ctls.Length; i++) { 235if (ctls.Length > 0 && components == null) { 239for (int i = 0; i < ctls.Length; i ++) {
winforms\Managed\System\WinForms\WinFormsUtils.cs (2)
247for (int i = 0; i < args.Length; i++) 454Debug.Assert(array == null || count <= array.Length, "Trying to enumerate more than the array contains");
System.Windows.Forms.DataVisualization (668)
Common\Annotation\PolygonAnnotation.cs (4)
525for (int index = 0; index < points.Length; index++) 603 for(int pointIndex = 0; pointIndex < pathPoints.Length; pointIndex++) 891 for(int pointIndex = 0; pointIndex < pathPoints.Length; pointIndex++) 896 currentPathPointIndex >= pathPoints.Length )
Common\ChartTypes\AreaChart.cs (3)
569for (int i = 0; i < mapAreaPathPoints.Length; i++) 799 for(int pIndex = 1; pIndex < splinePoints.Length; pIndex++) 836 else if(pIndex == splinePoints.Length - 1)
Common\ChartTypes\BarChart.cs (3)
471 if(point.YValues.Length < this.YValuesPerPoint) 1160if (point.YValues.Length <= yValueIndex) 1389 if(point.YValues.Length < this.YValuesPerPoint)
Common\ChartTypes\BoxPlotChart.cs (5)
324 if(point.YValues.Length < this.YValuesPerPoint) 628 for(int valueIndex = 0; valueIndex < point.YValues.Length; valueIndex++) 717 for(int valueIndex = 6; valueIndex < point.YValues.Length; valueIndex++) 1105 if(point.YValues.Length < this.YValuesPerPoint) 1505 for(int valueIndex = 6; valueIndex < point.YValues.Length; valueIndex++)
Common\ChartTypes\BubbleChart.cs (2)
176 if(point.YValues.Length < this.YValuesPerPoint) 281if (point.YValues.Length < this.YValuesPerPoint)
Common\ChartTypes\ColumnChart.cs (1)
1313 if(point.YValues.Length < this.YValuesPerPoint)
Common\ChartTypes\ErrorBarChart.cs (2)
452 if(point.YValues.Length < this.YValuesPerPoint) 1206 if(point.YValues.Length < this.YValuesPerPoint)
Common\ChartTypes\FunnelChart.cs (2)
2635 for(int loop = 0; loop < percentages.Length; loop++) 2756 this._valuePercentages.Length > pointIndex )
Common\ChartTypes\LineChart.cs (4)
432 for(int pointIndex = 1; pointIndex < dataPointPos.Length; pointIndex++) 462 if(dataPointPos.Length > 1) 688 else if(dataPointPos.Length == 1 && 895if (pointIndex + 1 < points.Length)
Common\ChartTypes\PieChart.cs (37)
2079 for( int firstIndex = 0; firstIndex < startOfIntervals.Length; firstIndex++ ) 2081 for( int secondIndex = firstIndex; secondIndex < startOfIntervals.Length; secondIndex++ ) 2145 if( startOfIntervals.Length != endOfIntervals.Length ) 2154 for( int intervalIndex = 0; intervalIndex < startOfIntervals.Length - 1; intervalIndex++ ) 2166 double outOfArea = ( endOfIntervals[ endOfIntervals.Length - 1 ] - endArea ) + ( startArea - startOfIntervals[ 0 ] ); 2201 for( int intervalIndex = 0; intervalIndex < startOfIntervals.Length - 1; intervalIndex++ ) 2211 for( int reductionIndex = intervalIndex + 1; reductionIndex < startOfIntervals.Length; reductionIndex++ ) 2237 else if( endOfIntervals[ endOfIntervals.Length - 1 ] > endArea ) 2239 shift = endArea - endOfIntervals[ endOfIntervals.Length - 1 ]; 2242 for( int index = 0; index < startOfIntervals.Length; index++ ) 2258 if( startOfIntervals.Length != endOfIntervals.Length ) 2264 for( int index = 0; index < startOfIntervals.Length - 1; index++ ) 2313 if( splitIndex + 2 < startOfIntervals.Length - 1 ) 2315 for( int index = splitIndex + 2; index < startOfIntervals.Length; index++ ) 4422 if( startAngle <= 90 && endAngle > 90 || startAngle <= 450 && endAngle > 450 && frontPoint == -1 && ( points[points.Length-1] == null || points.Length == 1 ) ) 4429 points[points.Length-1] = point; 4430 newStartAngleList[points.Length-1] = startAngleList[pointIndx]; 4431 newSweepAngleList[points.Length-1] = sweepAngleList[pointIndx]; 4432 newPointIndexList[points.Length-1] = pointIndexList[pointIndx]; 4446 if( frontPoint == backPoint && points.Length != 1 ) 4448 points[points.Length-1] = null; 4449 newStartAngleList[points.Length-1] = 0; 4450 newSweepAngleList[points.Length-1] = 0; 4451 newPointIndexList[points.Length-1] = 0; 4622 listIndx = points.Length - 2; 4692 listIndx = points.Length - 2; 4887 for( int indexA = 0; indexA < _points.Length; indexA++ ) 5123 if( _numOfInsertedLabels < _points.Length / 2 ) 5127 for( int point = 0; point < _points.Length && _points[point] == null; point++ ) 5133 for( int point = _points.Length - 1; point >= 0 && _points[point] == null; point-- ) 5153 for( int point = numMove; point < _points.Length; point++ ) 5155 if(numEmptyUp+indexPoint > _points.Length - 1) 5166 int indexPoint = _points.Length - 1; 5167 for( int point = _points.Length - 1 - numMove; point >= 0; point-- )
Common\ChartTypes\PointAndFigureChart.cs (2)
334 if(dp.YValues.Length < 2) 439 for(int index = 1; index < availableBoxSizes.Length; index ++)
Common\ChartTypes\PointChart.cs (1)
1496if (point.YValues.Length <= yValueIndex)
Common\ChartTypes\RadarChart.cs (4)
317 float sectorSize = 360f / ((float)axesLocation.Length); 318 for(int index = 0; index < axesLocation.Length; index++) 875 if(area.CircularSectorsNumber == dataPointPos.Length - 1) 877 leftSidePoint = GetMiddlePoint(dataPointPos[firstPointIndex], dataPointPos[dataPointPos.Length - 2]);
Common\ChartTypes\RangeChart.cs (4)
353 if(point.YValues.Length < 2) 455PointF[] pointF = new PointF[pointsReversed.Length]; 456int pntIndex = pointsReversed.Length - 1; 464if (pointF.Length == 2)
Common\ChartTypes\RenkoChart.cs (1)
376 for(int index = 1; index < availableBoxSizes.Length; index ++)
Common\Converters\CustomAttributesConverters.cs (4)
296 if(array != null && array.Length > 0) 340 if(obj is Array && ((Array)obj).Length > 0) 344 seriesArray = new Series[((Array)obj).Length]; 376 SeriesChartType[] chartTypes = new SeriesChartType[seriesArray.Length];
Common\Converters\DataManagerConverters.cs (3)
518 double[] array = new double[values.Length]; 519 for(int index = 0; index < values.Length; index ++) 829 array = new Color[colorValues.Length];
Common\Converters\ElementPositionConverter.cs (1)
120 if(array.Length == 4)
Common\Converters\LegendConverters.cs (5)
133if (((Array)context.Instance).Length > 0 && ((Array)context.Instance).GetValue(0) is Legend) 141else if (((Array)context.Instance).Length > 0 && ((Array)context.Instance).GetValue(0) is ChartArea) 149else if (((Array)context.Instance).Length > 0 && ((Array)context.Instance).GetValue(0) is Title) 158else if (((Array)context.Instance).Length > 0 && ((Array)context.Instance).GetValue(0) is Annotation) 389 if(values.Length == 4)
Common\DataManager\DataManager.cs (8)
215if (palette == ChartColorPalette.None && this.PaletteCustomColors.Length == 0) 242 if(colorIndex >= paletteColors.Length) 357if (seriesPoint.YValues.Length > 1) 392if (seriesPoint.YValues.Length > 1) 427if (seriesPoint.YValues.Length > 1) 775if (seriesPoint.YValues.Length > 1) 973 Series[] seriesArray = new Series[series.Length]; 1033 Series[] seriesArray = new Series[series.Length];
Common\DataManager\DataPoint.cs (46)
355 otherFieldNames = new string[otherAttributeNames.Length]; 356 otherValueFormat = new string[otherAttributeNames.Length]; 359 for(int index = 0; index < otherAttributeNames.Length; index++) 413 for(int index = 0; index < yFieldNames.Length; index++) 456 object[] yValuesObj = new object[yFieldNames.Length]; 496if (yFieldNames.Length == 0) 507for (int i = 0; i < yFieldNames.Length; i++) 520otherAttributeNames.Length > 0) 522for (int i = 0; i < otherFieldNames.Length; i++) 599yValues.Length==1 && yValues[0]==null) 605 for(int i = 0; i < yValues.Length; i++) 640 for(int i = 0; i < yValues.Length; i++) 664for (int i = 0; i < yValues.Length; i++) 705for (int i = 0; i < yValues.Length; i++) 792 for(int index = 0; index < yFieldNames.Length; index++) 830 object[] yValuesObj = new object[yFieldNames.Length]; 885if (yFieldNames.Length == 0) 896for (int i = 0; i < yFieldNames.Length; i++) 997yValue.Length==1 && yValue[0]==null) 1002 yValue.Length > 0 && 1074 yValue.Length > 0 && 1896_yValue = new double[values.Length]; 1898for (int index = 0; index < values.Length; index++) 2167 for(int valueIndex = 0; valueIndex < this._yValue.Length; valueIndex++) 2187 if(yValue.Length == 0 || (base.series != null && yValue.Length > base.series.YValuesPerPoint)) 2191 for( int i = 0 ; i < yValue.Length ; i++ ) 2211if (this._yValue.Length < yValue.Length) 2213this._yValue = new double[yValue.Length]; 2221for (int i = 0; i < yValue.Length; i++) 2232for (int i = 0; i < yValue.Length; i++) 2246 for( int i = 0 ; i < yValue.Length ; i++ ) 2261 for( int i = 0 ; i < yValue.Length ; i++ ) 2270 for( int i = 0 ; i < yValue.Length ; i++ ) 2349 clonePoint._yValue = new double[this._yValue.Length]; 2375 for(int i = 0; i < ((_yValue.Length < newSize) ? _yValue.Length : newSize); i++) 2424 if(yIndex >= this.YValues.Length) 2505for (int index = this.YValues.Length; index <= 7; index++) 2510 for(int index = 1; index <= this.YValues.Length; index++) 2658if (YValues.Length == 1) 2665for (int i = 0; i < YValues.Length; i++) 2740 for(int i=0; i < _yValue.Length; i++) 4749 if(values.Length != 2) 6990 if(values.Length != 2)
Common\DataManager\DataSeries.cs (4)
962dataManager.PaletteCustomColors.Length == 0 980 if(colorIndex >= paletteColors.Length) 1597 if(this.Points.Count > 0 && this.Points[0].YValues.Length < this.YValuesPerPoint) 1701 for(int yValueIndex = 0; yValueIndex < point.YValues.Length; yValueIndex++)
Common\Formulas\FormulaHelpers.cs (10)
335for (int i = 0; i < _parameters.Length; i++) 354for (int i = 0; i < _parameters.Length && paramStringIndex < paramStringList.Length; i++) 399for (int i = 0; i < _parameters.Length && paramStringIndex < paramStringList.Length; i++) 1098for (int i = 2; i < Parameters.Length && paramStringIndex < paramStringList.Length; i++) 1415if (seriesFieldParts.Length > 2) 1425switch (seriesFieldParts.Length) 1437switch (seriesFieldParts.Length)
Common\Formulas\GeneralFormulas.cs (9)
63 if( inputValues.Length != 2 ) 73 outputValues[0] = new double [inputValues[0].Length]; 74 outputValues[1] = new double [inputValues[1].Length]; 77 for( int index = 0; index < inputValues[0].Length; index++ ) 105 if( inputValues.Length != 2 ) 113 outputValues[0] = new double [inputValues[0].Length]; 114 outputValues[1] = new double [inputValues[1].Length]; 118 for( int index = 0; index < inputValues[0].Length; index++ ) 124 for( int index = 0; index < inputValues[0].Length; index++ )
Common\Formulas\Oscillator.cs (40)
73 if( inputValues.Length != 5 ) 83if (parameterList.Length < 1 || 91if (parameterList.Length < 2 || 124 int period = Math.Min(ExpAvg.Length,ExpAvgDistribution.Length); 131 for( int index = inputValues[1].Length - period; index < inputValues[1].Length; index++ ) 142 else if( (expIndex + longPeriod - shortPeriod) < ExpAvg.Length) 176 if( inputValues.Length != 2 ) 206 outputValues[0] = new double [inputValues[0].Length - period*3/2]; 207 outputValues[1] = new double [inputValues[1].Length - period*3/2]; 210 for( int index = 0; index < outputValues[1].Length; index++ ) 255 if( inputValues.Length != 3 ) 265if (parameterList.Length < 1 || 276if (parameterList.Length < 2 || 287 double [] hiLowInput = new double[inputValues[1].Length]; 290 for( int index = 0; index < inputValues[1].Length; index++ ) 300 outputValues[0] = new double [outputAverage.Length - period]; 301 outputValues[1] = new double [outputAverage.Length - period]; 304 for( int index = 0; index < outputValues[1].Length; index++ ) 346 if( inputValues.Length != 2 ) 356if (parameterList.Length < 1 || 364if (parameterList.Length < 2 || 375if (parameterList.Length < 3 || 392 outputValues[0] = new double [longAverage.Length]; 393 outputValues[1] = new double [longAverage.Length]; 396 for( int index = 0; index < longAverage.Length; index++ ) 454 if( inputValues.Length != 4 ) 464if (parameterList.Length < 2 || 475if (parameterList.Length < 1 || 488 outputValues[0] = new double [inputValues[0].Length - periodK - periodD + 2]; 491 outputValues[1] = new double [inputValues[0].Length - periodK - periodD + 2]; 494 outputValues[2] = new double [inputValues[0].Length - periodK - periodD + 2]; 496 double [] K = new double [inputValues[0].Length - periodK + 1]; 499 for( int index = periodK - 1; index < inputValues[0].Length; index++ ) 567 if( inputValues.Length != 4 ) 575if (parameterList.Length < 1 || 588 outputValues[0] = new double [inputValues[0].Length - period + 1]; 591 outputValues[1] = new double [inputValues[0].Length - period + 1]; 594 for( int index = period - 1; index < inputValues[0].Length; index++ )
Common\Formulas\PriceIndicators.cs (80)
99 tempInput[0] = new double[inputValues.Length]; 137 int length = inputValues.Length; 162 if( inputValues[0].Length != inputValues[1].Length ) 166 if( inputValues[0].Length < period ) 174 outputValues[0] = new double [inputValues[0].Length]; 177 outputValues[1] = new double [inputValues[1].Length]; 179 for( int point = 0; point < inputValues[0].Length; point++ ) 213 outputValues[0] = new double [inputValues[0].Length - period + 1]; 216 outputValues[1] = new double [inputValues[1].Length - period + 1]; 225 for( int point = 0; point < outputValues[0].Length; point++ ) 233 if( point < outputValues[0].Length - 1 ) 277 tempInput[0] = new double[inputValues.Length]; 312 int length = inputValues.Length; 340 if( inputValues[0].Length != inputValues[1].Length ) 344 if( inputValues[0].Length < period ) 352 outputValues[0] = new double [inputValues[0].Length]; 355 outputValues[1] = new double [inputValues[1].Length]; 357 for( int point = 0; point < inputValues[0].Length; point++ ) 399 outputValues[0] = new double [inputValues[0].Length - period + 1]; 402 outputValues[1] = new double [inputValues[1].Length - period + 1]; 404 for( int point = 0; point < outputValues[0].Length; point++ ) 456 int length = inputValues.Length; 481 if( inputValues[0].Length != inputValues[1].Length ) 485 if( inputValues[0].Length < period ) 504 outputValues[0] = new double [outputValues[1].Length]; 511 for( int index = 0; index < outputValues[1].Length; index++ ) 539 int length = inputValues.Length; 564 if( inputValues[0].Length != inputValues[1].Length ) 568 if( inputValues[0].Length < period ) 576 outputValues[0] = new double [inputValues[0].Length]; 579 outputValues[1] = new double [inputValues[1].Length]; 581 for( int point = 0; point < inputValues[0].Length; point++ ) 620 outputValues[0] = new double [inputValues[0].Length - period + 1]; 623 outputValues[1] = new double [inputValues[1].Length - period + 1]; 625 for( int point = 0; point < outputValues[0].Length; point++ ) 682 int length = inputValues.Length; 714 if( inputValues[0].Length != inputValues[1].Length ) 718 if( inputValues[0].Length < period ) 726 outputValues[0] = new double [inputValues[0].Length]; 729 outputValues[1] = new double [inputValues[1].Length]; 730 outputValues[2] = new double [inputValues[1].Length]; 733 double [] average = new double [inputValues[1].Length]; 737 for( int point = 0; point < outputValues[0].Length; point++ ) 764 outputValues[0] = new double [inputValues[0].Length - period + 1]; 767 outputValues[1] = new double [inputValues[1].Length - period + 1]; 768 outputValues[2] = new double [inputValues[1].Length - period + 1]; 771 double [] average = new double [inputValues[1].Length - period + 1]; 775 for( int point = 0; point < outputValues[0].Length; point++ ) 812 int length = inputValues.Length; 823 outputValues[0] = new double [inputValues[0].Length]; 824 outputValues[1] = new double [inputValues[1].Length]; 826 for( int index = 0; index < inputValues[1].Length; index++ ) 854 int length = inputValues.Length; 865 outputValues[0] = new double [inputValues[0].Length]; 866 outputValues[1] = new double [inputValues[1].Length]; 868 for( int index = 0; index < inputValues[1].Length; index++ ) 901 int length = inputValues.Length; 912 outputValues[0] = new double [inputValues[0].Length]; 913 outputValues[1] = new double [inputValues[1].Length]; 915 for( int index = 0; index < inputValues[1].Length; index++ ) 958 int length = inputValues.Length; 987 if( inputValues[0].Length != inputValues[1].Length ) 995 outputValues[0] = new double[movingAverage[0].Length]; 996 outputValues[1] = new double[movingAverage[0].Length]; 997 outputValues[2] = new double[movingAverage[0].Length]; 999 for( int index = 0; index < movingAverage[0].Length; index++ ) 1030 outputValues = new double[inputValues.Length]; 1034 for( int index = 0; index < inputValues.Length; index++ ) 1055 outputValues = new double[inputValues.Length - period + 1]; 1059 for( int index = period - 1; index < inputValues.Length; index++ ) 1092 if( inputValues[0].Length != inputValues[1].Length ) 1100 if( inputValues[index].Length != inputValues[index+1].Length )
Common\Formulas\StatisticalAnalysis.cs (60)
171 if( inputValues.Length < 3 ) 176 for( int index = 0; index < inputValues.Length - 1; index++ ) 178 if( inputValues[index].Length != inputValues[index+1].Length ) 213 int m = inputValues.Length - 1; 214 int n = inputValues[0].Length; 348 if( inputValues.Length != 3 ) 396 if( inputValues.Length != 3 ) 440 if( inputValues.Length != 3 ) 521 fDistInv = FDistributionInverse( 1 - alpha, inputValues[1].Length - 1, inputValues[2].Length - 1 ); 522 fDist = 1 - FDistribution( valueF, inputValues[1].Length - 1, inputValues[2].Length - 1 ); 526 fDistInv = FDistributionInverse( alpha, inputValues[1].Length - 1, inputValues[2].Length - 1 ); 527 fDist = FDistribution( valueF, inputValues[1].Length - 1, inputValues[2].Length - 1 ); 575 if( inputValues.Length != 3 ) 659 double dev = Math.Sqrt( variance1 / inputValues[1].Length + variance2 / inputValues[2].Length ); 733 if( inputValues.Length != 3 ) 806 freedom = inputValues[1].Length + inputValues[2].Length - 2; 809 s = ( ( inputValues[1].Length - 1 ) * variance1 + ( inputValues[2].Length - 1 ) * variance2 ) / ( inputValues[1].Length + inputValues[2].Length - 2 ); 812 T = ( mean1 - mean2 - HypothesizedMeanDifference ) / ( Math.Sqrt( s * ( 1.0 / inputValues[1].Length + 1.0 / inputValues[2].Length ) ) ); 817 double m = inputValues[1].Length; 818 double n = inputValues[2].Length; 824 s = Math.Sqrt( variance1 / inputValues[1].Length + variance2 / inputValues[2].Length ); 906 if( inputValues.Length != 3 ) 909 if( inputValues[1].Length != inputValues[2].Length ) 967 double [] difference = new double[inputValues[1].Length]; 969 for( int item = 0; item < inputValues[1].Length; item++ ) 979 double T = ( Math.Sqrt( inputValues[1].Length ) * ( mean - HypothesizedMeanDifference ) ) / variance; 981 freedom = inputValues[1].Length - 1; 1388 if( inputValues[1].Length < 2 ) 1393 if( inputValues.Length > 2 ) 1395 if( inputValues[2].Length < 2 ) 1415 if( arrayX.Length != arrayY.Length ) 1420 double [] arrayXY = new double[arrayX.Length]; 1423 for( int index = 0; index < arrayX.Length; index++ ) 1613 if( inputValues.Length != 2 ) 1661 if( inputValues.Length != 2 ) 1699 if( inputValues.Length != 2 ) 1832 for( int outLoop = 0; outLoop < values.Length; outLoop++ ) 1834 for( int inLoop = outLoop + 1; inLoop < values.Length; inLoop++ ) 1854 if( values.Length == 0 ) 1862 int position = values.Length / 2; 1865 if( values.Length % 2 == 0 ) 1883 if( values.Length == 0 ) 1896 return sum / values.Length; 1909 if( values.Length < 1 ) 1925 return sum / ( values.Length - 1 ); 1929 return sum / values.Length;
Common\Formulas\TechGeneralIndicators.cs (63)
77 int length = inputValues.Length; 102 if( inputValues[0].Length != inputValues[1].Length ) 106 if( inputValues[0].Length < period ) 114 outputValues[0] = new double [outputValues[1].Length]; 115 for( int index = 0; index < outputValues[1].Length; index++ ) 147 if( inputValues.Length != 4 ) 155if (parameterList.Length < 1 || 173 double [] trueRange = new double [inputValues[0].Length - 1]; 176 for( int index = 1; index < inputValues[0].Length; index++ ) 193 outputValues[0] = new double [inputValues[0].Length-period]; 199 for( int index = period; index < inputValues[0].Length; index++ ) 224 if( inputValues.Length != 4 ) 235 outputValues[0] = new double [inputValues[0].Length - 1]; 236 outputValues[1] = new double [inputValues[0].Length - 1]; 239 for( int index = 1; index < inputValues[0].Length; index++ ) 279 if( inputValues.Length != 3 ) 287if (parameterList.Length < 1 || 298if (parameterList.Length < 2 || 307 double [] highLow = new double [inputValues[0].Length]; 311 for( int index = 0; index < inputValues[0].Length; index++ ) 324 outputValues[0] = new double [secondAverage.Length - period + 1]; 325 outputValues[1] = new double [secondAverage.Length - period + 1]; 330 for( int index = 2 * averagePeriod - 3 + period; index < inputValues[0].Length; index++ ) 369 if( inputValues.Length != 2 ) 377 outputValues[0] = new double [inputValues[0].Length]; 378 outputValues[1] = new double [inputValues[0].Length]; 381 for( int index = 0; index < inputValues[0].Length; index++ ) 418 if( inputValues.Length != 2 ) 426if (parameterList.Length < 1 || 437 outputValues[0] = new double [inputValues[0].Length - period]; 438 outputValues[1] = new double [inputValues[0].Length - period]; 441 for( int index = period; index < inputValues[0].Length; index++ ) 474 if( inputValues.Length != 2 ) 482if (parameterList.Length < 1 || 491 double [] upward = new double[inputValues[0].Length-1]; 492 double [] downward = new double[inputValues[0].Length-1]; 494 for( int index = 1; index < inputValues[0].Length; index++ ) 510 double [] averageUpward = new double[inputValues[0].Length]; 511 double [] averageDownward = new double[inputValues[0].Length]; 518 outputValues[0] = new double [averageDownward.Length]; 519 outputValues[1] = new double [averageDownward.Length]; 522 for( int index = 0; index < averageDownward.Length; index++ ) 558 if( inputValues.Length != 2 ) 566if (parameterList.Length < 1 || 590 outputValues[0] = new double [inputValues[0].Length - period * 3 + 2]; 591 outputValues[1] = new double [inputValues[0].Length - period * 3 + 2]; 595 for( int index = period * 3 - 2; index < inputValues[0].Length; index++ ) 636 if( inputValues.Length != 2 ) 644if (parameterList.Length < 1 || 655if (parameterList.Length < 2 || 678 outputValues[0] = new double [inputValues[0].Length - longPeriod + 1]; 679 outputValues[1] = new double [inputValues[0].Length - longPeriod + 1]; 683 for( int index = longPeriod - 1; index < inputValues[0].Length; index++ ) 726 if( inputValues.Length != 4 ) 734if (parameterList.Length < 1 || 744 double [] typicalPrice = new double[inputValues[0].Length]; 747 for( int index = 0; index < inputValues[0].Length; index++ ) 764 double [] meanDeviation = new double[movingAverage.Length]; 767 for( int index = 0; index < movingAverage.Length; index++ ) 779 outputValues[0] = new double [meanDeviation.Length]; 780 outputValues[1] = new double [meanDeviation.Length]; 783 for( int index = 0; index < meanDeviation.Length; index++ )
Common\Formulas\TimeSeriesAndForecasting.cs (42)
187if (parameterList.Length < 1 || 198if (degree > inputValues[0].Length) 203if (parameterList.Length < 2 || 206period = inputValues[0].Length / 2; 211if (parameterList.Length < 3 || 219if (parameterList.Length < 4 || 238inputErrorEst[0] = new double[inputValues[0].Length / 2]; 239inputErrorEst[1] = new double[inputValues[0].Length / 2]; 241for (int index = 0; index < inputValues[0].Length / 2; index++) 247Regression(regressionType, inputErrorEst, out outputErrorEst, degree, inputValues[0].Length / 2); 251for (int index = inputValues[0].Length / 2; index < outputErrorEst[1].Length; index++) 255error /= inputValues[0].Length - inputValues[0].Length / 2; 257error /= (inputValues[0].Length / 4); 261for (int index = 0; index < inputValues[0].Length; index++) 265dev /= inputValues[0].Length; 271outputValues[2] = new double[tempOut[0].Length]; 272outputValues[3] = new double[tempOut[0].Length]; 280for (int index = 0; index < inputValues[0].Length; index++) 286for (int index = inputValues[0].Length; index < tempOut[0].Length; index++) 310 double [] oldYValues = new double[ inputValues[1].Length ]; 311 for( int index = 0; index < inputValues[1].Length; index++ ) 333 interval = Math.Abs( inputValues[0][0] - inputValues[0][inputValues[0].Length - 1] ) / ( inputValues[0].Length - 1 ); 338 for( int index = 0; index < inputValues[0].Length; index++ ) 346 for( int i = 0; i < outputValues[0].Length; i++ ) 354 double [] oldYValues = new double[ inputValues[1].Length ]; 358 for( int index = 0; index < inputValues[1].Length; index++ ) 368 interval = Math.Abs( inputValues[0][0] - inputValues[0][inputValues[0].Length - 1] ) / ( inputValues[0].Length - 1 ); 378 for( int i = 0; i < outputValues[0].Length; i++ ) 406 int size = inputValues[0].Length; 411 interval = Math.Abs( inputValues[0][0] - inputValues[0][inputValues[0].Length - 1] ) / ( inputValues[0].Length - 1 ); 420 for( int xIndex = 0; xIndex < inputValues[0].Length; xIndex++ ) 427 for( int xIndex = 0; xIndex < inputValues[0].Length; xIndex++ ) 435 for( int index = 0; index < inputValues[0].Length; index++ ) 454 for( int j = 0; j < inputValues[0].Length; j++ ) 469 for( int j = 0; j < inputValues[0].Length; j++ ) 553 if( inputDeterminant.Length == 2 )
Common\Formulas\VolumeIndicator.cs (33)
136 int length = inputValues.Length; 161 if( inputValues[0].Length < period ) 166 outputValues[0] = new double [inputValues[0].Length - period + 1]; 167 outputValues[1] = new double [inputValues[0].Length - period + 1]; 168 double [] TypicalPrice = new double [inputValues[1].Length]; 169 double [] MoneyFlow = new double [inputValues[1].Length]; 170 double [] PositiveMoneyFlow = new double [inputValues[1].Length]; 171 double [] NegativeMoneyFlow = new double [inputValues[1].Length]; 174 for( int index = 0; index < inputValues[1].Length; index++ ) 183 for( int index = 1; index < inputValues[1].Length; index++ ) 201 for( int index = period - 1; index < inputValues[1].Length; index++ ) 245 if( inputValues.Length != 3 ) 253 outputValues[0] = new double [inputValues[0].Length]; 254 outputValues[1] = new double [inputValues[0].Length]; 264 for( int index = 1; index < inputValues[1].Length; index++ ) 302 if( inputValues.Length != 3 ) 310 outputValues[0] = new double [inputValues[0].Length]; 311 outputValues[1] = new double [inputValues[0].Length]; 317 for( int index = 1; index < inputValues[1].Length; index++ ) 354 if( inputValues.Length != 3 ) 369 outputValues[0] = new double [inputValues[0].Length]; 370 outputValues[1] = new double [inputValues[0].Length]; 376 for( int index = 1; index < inputValues[1].Length; index++ ) 424 if( inputValues.Length != 3 ) 439 outputValues[0] = new double [inputValues[0].Length]; 440 outputValues[1] = new double [inputValues[0].Length]; 446 for( int index = 1; index < inputValues[1].Length; index++ ) 488 if( inputValues.Length != 5 ) 496 outputValues[0] = new double [inputValues[0].Length]; 497 outputValues[1] = new double [inputValues[0].Length]; 499 double [] distribution = new double [inputValues[0].Length]; 507 for( int index = 0; index < inputValues[1].Length; index++ ) 518 for( int index = 0; index < inputValues[1].Length; index++ )
Common\General\Axis.cs (7)
2693Point3D[] points3D = new Point3D[points.Length]; 2694for (int i = 0; i < points.Length; i++) 2703for (int i = 0; i < points3D.Length; i++) 2710for (int i = 0; i < points.Length; i++) 4671for (int rowIndex = 0; rowIndex < textRows.Length; rowIndex++) 4720for (int rowIndex = 0; rowIndex < ((string[])labelTextRows[longestLabelIndex]).Length; rowIndex++) 5869if (this.groupingLabelSizes != null && this.groupingLabelSizes.Length > 0)
Common\General\AxisScaleBreaks.cs (5)
815 if(startSegment > 0 && (startSegment + numberOfSegments) <= segmentMaxValue.Length - 1) 855 for(int index = 0; index < segmentPointNumber.Length; index++) 882 (excludedSegment || index == (segmentPointNumber.Length - 1) )) 1060 for(int index = 0; index < segmentPointNumber.Length; index++) 1078 (segmentPointNumber[index] != 0 || index == segmentPointNumber.Length - 1))
Common\General\AxisScaleSegments.cs (4)
572 points[points.Length - 1] = new PointF(endX, y); 594 points[points.Length - 1] = new PointF(x, endY); 624 points[points.Length - 1] = new PointF(endX, y); 647 points[points.Length - 1] = new PointF(x, endY);
Common\General\Chart.cs (12)
444if (m.GetParameters().Length == 1) 789 for(int index = 0; index < yFieldNames.Length; index++) 820 while(yField.Length == 0 && fieldIndex < yFieldNames.Length) 837 object[] yValuesObj = new object[yFieldNames.Length]; 852 if(yFieldNames.Length == 0) 863 for(int i = 0; i < yFieldNames.Length; i++) 1127 for(int index = 0; index < yFieldNames.Length; index++) 1167 object[] yValuesObj = new object[yFieldNames.Length]; 1251 if(yFieldNames.Length == 0) 1262 for(int i = 0; i < yFieldNames.Length; i++) 1275 otherAttributeNames.Length > 0) 1277 for(int i = 0; i < otherFieldNames.Length; i++)
Common\General\ChartAreaAxes.cs (2)
1896 if( checkSameInterval && !sameInterval && seriesXValues.Length > 1) 1910 for(int index = listIndex + 1; index < seriesXValues.Length && !sameXValue; index++)
Common\General\ChartGraphics3D.cs (20)
1110 for( int point = 0; point < path.PathPoints.Length - 1; point++ ) 1610 for(int pIndex = 1; pIndex < splinePathPoints.Length; pIndex++) 1653 else if(pIndex == splinePathPoints.Length - 1) 3004 for(int pointIndex = 0; pointIndex < pointsSurface.Length; pointIndex++) 3123 for(int index = 0; index < gradientPoints.Length; index++) 3270 for(int index = 0; index < gradientPoints.Length; index++) 3326 for(int index = 0; index < gradientPoints.Length; index++) 3384 for(int index = 0; index < gradientPoints.Length; index++) 3414 for(int index = 0; index < gradientPoints.Length; index++) 3761 if(cubePoints.Length != 8) 4008 for(int pointIndex = 0; pointIndex < cubePoints.Length; pointIndex++) 4367 for(int pointIndex = 1; pointIndex < ellipsePoints.Length; pointIndex++) 4395 for(int pointIndex = 0; !doneFlag && pointIndex < ellipsePoints.Length; pointIndex++) 4398 for(int pointOppositeIndex = 0; !doneFlag && pointOppositeIndex < oppositeEllipsePoints.Length; pointOppositeIndex++) 4421 for(int innerPointIndex = 0; innerPointIndex < ellipsePoints.Length; innerPointIndex++) 4449 for(int innerPointIndex = 0; innerPointIndex < oppositeEllipsePoints.Length; innerPointIndex++) 4487 for(int innerPointIndex = 0; innerPointIndex < ellipsePoints.Length; innerPointIndex++) 4515 for(int innerPointIndex = 0; innerPointIndex < oppositeEllipsePoints.Length; innerPointIndex++) 4593 if(pointIndex > ellipsePoints.Length - 1) 4595 resultPath.AddLine(ellipsePoints[ellipsePoints.Length - 1], ellipsePoints[0]);
Common\General\ChartRenderingEngine.cs (4)
233if (offset == 0 && numberOfSegments == points.Length - 1) 241if (offset == 0 && numberOfSegments < points.Length - 1) 250else if (offset > 0 && (offset + numberOfSegments) == points.Length - 1) 260else if (offset > 0 && (offset + numberOfSegments) < points.Length - 1)
Common\General\DataManipulator.cs (53)
329 array = new Series[seriesNames.Length]; 390 if(series.Length == 0) 416 if(series.Length == 0) 424 if(series.Length > 1) 446 if(series.Length > 1) 457 for(int seriesIndex = 1; seriesIndex < series.Length; seriesIndex++) 467 for(int seriesIndex = 1; seriesIndex < series.Length; seriesIndex++) 1205 Series[] output = new Series[inputSeries.Length]; 1206 for(int seriesIndex = 0; seriesIndex < inputSeries.Length; seriesIndex++) 1209 if(outputSeries != null && outputSeries.Length > seriesIndex) 1261 for(int seriesIndex = 0; seriesIndex < inputSeries.Length; seriesIndex++) 1307 Series[] output = new Series[inputSeries.Length]; 1308 for(int seriesIndex = 0; seriesIndex < inputSeries.Length; seriesIndex++) 1311 if(outputSeries != null && outputSeries.Length > seriesIndex) 1363 for(int seriesIndex = 0; seriesIndex < inputSeries.Length; seriesIndex++) 1388 for(int valueIndex = 0; valueIndex < output[seriesIndex].Points[pointIndex].YValues.Length; valueIndex++) 1544 if(indexes.Length == 0) 1550 int[] result = new int[indexes.Length * 2]; 1560 if(rangeIndex.Length == 2) 1620 for(int index = 0; index < rangeElements.Length; index += 2) 2234 for(int seriesIndex = 0; seriesIndex < inputSeries.Length; seriesIndex++) 2239 if(outputSeries != null && seriesIndex < outputSeries.Length) 2388 for(int i = 1; i < pointTempValues.Length; i++) 2483 for(int seriesIndex = 0; seriesIndex < inputSeries.Length; seriesIndex++) 2488 if(outputSeries != null && seriesIndex < outputSeries.Length) 2669 for(int i = 1; i < pointTempValues.Length; i++) 2770 if(funcIndex > point.YValues.Length) 2843 if(funcIndex > point.YValues.Length) 2929 if(funcIndex > point.YValues.Length) 3025 for(int index = 0 ; index < result.Length; index++) 3034 if(valueFormulas.Length == 0) 3058 if(valueIndex >= result.Length) 3080 for(int funcIndex = 1; funcIndex < result.Length; funcIndex++) 3090 for(int funcIndex = 0; funcIndex < result.Length; funcIndex++) 3133 if(formulaParts.Length < 1 && formulaParts.Length > 2) 3139 if(formulaParts.Length == 2) 3173 if(formulaParts[formulaParts.Length - 1] == "MIN") 3175 else if(formulaParts[formulaParts.Length - 1] == "MAX") 3177 else if(formulaParts[formulaParts.Length - 1] == "AVE") 3179 else if(formulaParts[formulaParts.Length - 1] == "SUM") 3181 else if(formulaParts[formulaParts.Length - 1] == "FIRST") 3183 else if(formulaParts[formulaParts.Length - 1] == "LAST") 3185 else if(formulaParts[formulaParts.Length - 1] == "HILOOPCL") 3187 else if(formulaParts[formulaParts.Length - 1] == "HILO") 3189 else if(formulaParts[formulaParts.Length - 1] == "COUNT") 3191 else if(formulaParts[formulaParts.Length - 1] == "DISTINCTCOUNT") 3193 else if(formulaParts[formulaParts.Length - 1] == "VARIANCE") 3195 else if(formulaParts[formulaParts.Length - 1] == "DEVIATION") 3197 else if(formulaParts[formulaParts.Length - 1] == "CENTER") 3213 if(inputSeries == null || inputSeries.Length == 0) 3219 if(outputSeries != null && outputSeries.Length != inputSeries.Length)
Common\General\FormulaData.cs (41)
442while (seriesIndex < inSeries.Length && seriesIndex < outSeries.Length) 501if (outputSeries.Length != valueIndex.Length) 507if (outputSeries.Length < outputValues.Length - 1) 515if (seriesIndex + 1 > outputValues.Length - 1) 521if (series.Points.Count != outputValues[seriesIndex].Length) 533for (int pointIndex = 0; pointIndex < outputValues[0].Length; pointIndex++) 536if (series.Points.Count != outputValues[seriesIndex].Length) 597seiesArray = new Series[subStrings.Length]; 600valueArray = new int[subStrings.Length]; 610if (parts.Length < 1 && parts.Length > 2) 619if (parts.Length == 2) 700output = new double[inputSeries.Length + 1][]; 703if (inputSeries.Length != valueIndex.Length) 824if (inSeries.Length != outSeries.Length) 831for (int indexSeries = 0; indexSeries < inSeries.Length; indexSeries++) 848for (int indexSeries = 0; indexSeries < inSeries.Length; indexSeries++) 859outValues = new double[inValues.Length][]; 862for (int seriesIndex = 0; seriesIndex < inValues.Length; seriesIndex++) 864outValues[seriesIndex] = new double[inValues[seriesIndex].Length]; 865for (int pointIndex = 0; pointIndex < inValues[seriesIndex].Length; pointIndex++) 872for (int seriesIndx = 0; seriesIndx < inSeries.Length; seriesIndx++) 908output = new double[input.Length][]; 915for (int pointIndex = 0; pointIndex < input[0].Length; pointIndex++) 920for (seriesIndex = 0; seriesIndex < input.Length; seriesIndex++) 922if (seriesIndex >= input[seriesIndex].Length) 937for (seriesIndex = 1; seriesIndex < input.Length; seriesIndex++) 945for (seriesIndex = 0; seriesIndex < input.Length; seriesIndex++) 949for (int pointIndex = 0; pointIndex < input[0].Length; pointIndex++) 951if (pointIndex >= input[seriesIndex].Length) 1086for (Int32 i = 0; i < parameterList.Length; i++) 1100for (int index = 0; index < input.Length - 1; index++) 1102if (input[index].Length != input[index + 1].Length) 1118if (series.Length > 1) 1121for (int seriesIndex = 0; seriesIndex < series.Length - 1; seriesIndex++)
Common\General\ImageMap.cs (9)
245 float[] coord = new float[pathPoints.Length * 2]; 302if (shape == MapAreaShape.Circle && coordinates.Length != 3) 306if (shape == MapAreaShape.Rectangle && coordinates.Length != 4) 310if (shape == MapAreaShape.Polygon && (coordinates.Length % 2f) != 0f) 320this._coordinates = new float[coordinates.Length]; 362float[] transformedCoord = new float[this.Coordinates.Length]; 394for (int index = 0; index < this.Coordinates.Length - 1; index += 2) 845 float[] coord = new float[pathPoints.Length * 2]; 850 for(int pointIndex = 0; pointIndex < pathPoints.Length; pointIndex++)
Common\General\Label.cs (5)
1693for (int index = _axis.groupingLabelSizes.Length; index > label.RowIndex; index--) 1711for (int index = _axis.groupingLabelSizes.Length; index > label.RowIndex; index--) 2212for (int index = _axis.groupingLabelSizes.Length; index > label.RowIndex; index--) 2230for (int index = _axis.groupingLabelSizes.Length; index > label.RowIndex; index--) 2456_axis.groupingLabelSizes.Length > 0 &&
Common\General\Legend.cs (4)
1344 for(int index = 0; index < tempArray.Length; index++) 1474 for(int index = 0; index < tempArray.Length; index++) 1578 for(int index = smallestColumnIndex + 1; index < tempArray.Length - 1; index++) 1678 for(int columnIndex = 0; columnIndex < rowsPerColumn.Length; columnIndex++)
Common\General\Selection.cs (7)
2019if (requestedElementTypes.Length > 0) 2527if (points.Length > 3) 2531for (int i = 0; i < points.Length; i += 4) 2540if (points.Length == 4) 2542Point[] pointsAlligned = new Point[points.Length]; 2543for (int i = 0; i < points.Length; i++) 2804for (int i = 0; i < points.Length - 3; i = i + 4)
Common\General\SmartLabels.cs (1)
819 for(positionIndex = 0; positionIndex < positions.Length; positionIndex++)
Common\Utilities\ColorPalette.cs (1)
339 for(int i = 0; i < grayScale.Length; i++)
Common\Utilities\ImageLoader.cs (1)
198string pageFile = pageUri.Segments[pageUri.Segments.Length-1];
Common\Utilities\KeywordsRegistry.cs (1)
481 string[] keywordNames = new string[keywordAliases.Length + 1];
Common\Utilities\XmlSerializer.cs (7)
679 textWriter.WriteBase64(imageByteData, 0, imageByteData.Length); 1614if (dataPoint.YValues.Length > 0 && IsSerializableContent("YValues", objectToSerialize)) 2488if (dataPoint.YValues.Length > 0 && IsSerializableContent("YValues", objectToSerialize)) 2733 writer.Write(arr.Length); 2747 writer.Write(arr.Length); 3159 for(int arrayIndex = 0; arrayIndex < array.Length; arrayIndex++) 3173 for(int arrayIndex = 0; arrayIndex < array.Length; arrayIndex++)
WinForm\ChartWinControl.cs (1)
971 this.PaletteCustomColors.Length == 0)
System.Workflow.Activities (209)
Code.cs (1)
75if (code.GetInvocationList<EventHandler>(CodeActivity.ExecuteCodeEvent).Length == 0 &&
CodeExpressionRuleDeclaration.cs (1)
95if (codeCondition.GetInvocationList<EventHandler<ConditionalEventArgs>>(CodeCondition.ConditionEvent).Length == 0 &&
Common\BasePropertyDescriptor.cs (3)
43if (site == null && component.GetType().IsArray && (component as object[]).Length > 0 && (component as object[])[0] is IComponent) 599if (instances != null && instances.Length > 0) 705if (instances != null && instances.Length > 0)
Common\CompModHelpers.cs (7)
729if (attributes.Length > 0) 753if (parameters.GetLength(0) == types.Length) 755for (int index = 0; !mismatch && index < parameters.Length; index++) 1100for (int i = 0; i < names.Length; i++) 1150for (int i = 0; i < paths.Length && activity != null; i++) 1288isAlternateFlowActivityAttribute = activity.GetType().GetCustomAttributes(typeof(AlternateFlowActivityAttribute), true).Length != 0; 1439for (int i = 0; i < names.Length; i++)
Common\DelegateTypeInfo.cs (6)
78parameters = new CodeParameterDeclarationExpression[argTypes.Length]; 79parameterTypes = new Type[argTypes.Length]; 80for (int index = 0; index < argTypes.Length; index++) 124if (ReturnType.BaseType != dtiOther.ReturnType.BaseType || Parameters.Length != dtiOther.Parameters.Length) 127for (int parameter = 0; parameter < Parameters.Length; parameter++)
Common\TypeSystemHelpers.cs (15)
94for (int loop = 0; loop < genericParamChars.Length; loop++) 107for (int loop = 0; loop < parameters.Length; loop++) 174if (thatToken != null && thatToken.Length != 0) 179if (thatToken.Length != thisToken.Length) 181for (int i = 0; i < thatToken.Length; i++) 199if (parts.Length == 0) 206if (parts.Length == 1) 212for (int index = 1; index < parts.Length; index++) 235for (int i = 0; i < thatToken.Length; i++) 266if (thatToken != null && thatToken.Length != 0) 271if (thatToken.Length != thisToken.Length) 273for (int i = 0; i < thatToken.Length; i++) 358else if (genericParamTypeNames != null && genericParamTypeNames.Length > 0)
Common\Walker.cs (3)
195if (prop.GetIndexParameters() != null && prop.GetIndexParameters().Length > 0) 274if (visibilityAttrs.Length > 0) 284if (browsableAttrs.Length > 0)
ConstrainedGroup.cs (1)
104if (dynamicChildActivity.Length != 0)
CorrelationValidator.cs (18)
47if (attributes.Length == 0) 101if (attributes.Length != 0) 107if (correlationParameterAttributes.Length == 0) 165if (attributes.Length > 0) 257if (attributes.Length == 0) 377if (attributes.Length == 0) 382if (dsAttribs.Length != 0 && corrParamAttribs.Length != 0) 504int aliasLength = memberInfo.GetCustomAttributes(typeof(CorrelationInitializerAttribute), false).Length; 525int aliasLength = memberInfo.GetCustomAttributes(typeof(CorrelationInitializerAttribute), false).Length; 635if (memberInfo.GetCustomAttributes(typeof(CorrelationInitializerAttribute), false).Length != 0 || 636memberInfo.GetCustomAttributes(typeof(CorrelationAliasAttribute), false).Length != 0) 708if (parsedPropertyName.Length == 1) 753if (parsedPropertyName.Length == 1) 757for (index = 1; index < parsedPropertyName.Length && correlationParameterType != null; index++) 802if (index == parsedPropertyName.Length) 879if (isEvent && (!canBeIntercepted || parameters.Length != 2)) 927if (attrs.Length == 0 && serializableType == null)
Designers\EventSinkActivityDesigner.cs (2)
46if (corrProvAttribs.Length != 0 || corrParamAttribs.Length != 0)
Designers\InvokeMethodActivityDesigner.cs (2)
45if (corrProvAttribs.Length != 0 || corrParamAttribs.Length != 0)
Designers\SetStateDesigner.cs (1)
258if (activities != null && activities.Length > 0)
Designers\StateDesignerConnector.cs (3)
154for (int i = 1; i < segments.Length - 1; i++) 157for (int i = 0; i < segmentEditPoints.Length; i++) 195for (int i = 0; i < segmentEditPoints.Length; i++)
Designers\StateMachineDesignerPaint.cs (6)
79Debug.Assert(points.Length >= 2); 89for (int i = 2; i < points.Length; i++) 103optimized.Add(points[points.Length - 1]); 208Debug.Assert(points.Length >= 2); 210if (points.Length == 2) 237while (i < (points.Length - 1))
EventHandlers.cs (1)
435if (dynamicChildActivity.Length != 0)
EventSinkActivity.cs (1)
515if (dsAttribs.Length != 0)
Executors\InvokeBase.cs (4)
34object[] actualParameters = new object[formalParameters.Length]; 52object[] actualParameters = new object[formalParameters.Length]; 53if (actualParameters.Length == 0) 61ParameterModifier parameterModifier = new ParameterModifier(actualParameters.Length);
InvokeWebService.cs (2)
340if (attrs == null || attrs.Length == 0) 342if (attrs != null && attrs.Length > 0)
LocalService\CorrelationResolver.cs (14)
105if (corrProviderAttribs.Length == 0) 109if (corrProviderAttribs.Length != 0 && corrParameterAttribs.Length != 0) 154if (args.Length <= this.signaturePosition) 165for (int i = 1; i < split.Length; i++) 254for (int i = 0; i < correlationProperties.Length; i++) 276if ((member.GetCustomAttributes(typeof(CorrelationInitializerAttribute), true)).Length > 0) 283if ((member.GetCustomAttributes(typeof(CorrelationInitializerAttribute), true)).Length > 0) 306if (interfaceType.GetCustomAttributes(typeof(ExternalDataExchangeAttribute), true).Length == 0) 369if (split.Length == 1 && parameters.Length == 2) 394if (customAttrs == null || customAttrs.Length == 0) 414if (customAttrs.Length > 1) 426for (int j = 0; parameters != null && j < parameters.Length; j++)
LocalService\DataExchangeServiceBinder.cs (7)
38Object[] argsCopy = new Object[args.Length]; 49if (match != null && match.Length != 0) 51for (int i = 0; i < match.Length; ++i) 55if (methodParams.Length == argsCopy.Length) 57for (int j = 0; j < methodParams.Length; ++j) 65if (j + 1 == methodParams.Length)
LocalService\ExternalDataExchangeService.cs (3)
164if (pi.Length == 1) 175else if (pi.Length == 2) 277if (attributes.Length == 0)
LocalService\MessageQueueKey.cs (3)
120compared = (eventQueueName.correlationValues != null) ? (this.correlationValues.Length - eventQueueName.correlationValues.Length) : -1; 125for (int i = 0; i < this.correlationValues.Length; i++)
LocalService\MethodMessage.cs (3)
161object[] clones = new object[this.args.Length]; 163for (int i = 0; i < this.args.Length; i++) 197get { return this.clonedArgs.Length; }
LocalService\WorkflowMessageEventHandler.cs (1)
86if (parameters.Length == 2)
Rules\CodeDomDecompiler.cs (3)
223for (i = 1; i < typeArgs.Length; ++i) 336for (int i = 0; i < parms.Length; ++i) 339if (i != parms.Length - 1)
Rules\Design\Dialogs\IntellisenseTextBox.cs (4)
544if (parameters != null && parameters.Length > 0) 546int lastParamIndex = parameters.Length - 1; 550for (int i = 1; i < parameters.Length; ++i) 581if (attrs != null && attrs.Length > 0)
Rules\Executor.cs (1)
508for (int i = 0; i < ruleSymbols.Length; ++i)
Rules\Expressions.cs (12)
363if (attrs != null && attrs.Length > 0) 1135if (attrs != null && attrs.Length > 0) 1420if (attrs != null && attrs.Length > 0) 1541arguments = new object[parmInfos.Length]; 1543int numFixedParameters = parmInfos.Length; 2404if (attrs != null && attrs.Length > 0) 2513object[] indexArgs = new object[parmInfos.Length]; 2515int numFixedParameters = parmInfos.Length; 2599for (int i = 0; i < indices.Length; ++i) 2878for (int i = 0; i < indices.Length; ++i) 3054arguments = new object[parmInfos.Length]; 3056int numFixedParameters = parmInfos.Length;
Rules\Literal.cs (4)
825if ((mi.Name == methodName) && (parameters.Length == 2)) 846if ((mi.Name == methodName) && (parameters.Length == 2)) 866if ((mi.Name == methodName) && (parameters.Length == 2)) 888if ((mi.Name == methodName) && (parameters.Length == 2))
Rules\Parser\Parser.cs (24)
318if (propParams != null && propParams.Length > 0) 435if (pInterfaces.Length > 0) 464for (int m = 0; m < methods.Length; ++m) 665for (int i = 0; i < allTypes.Length; ++i) 697System.Diagnostics.Debug.Assert(namespaces.Length > 0); 710if (namespaces.Length > 1) 712for (int j = 1; j < namespaces.Length; ++j) 829if (propParams != null && propParams.Length > 0) 1269CodeExpression leftResult = (precedence == precedences.Length - 1) ? ParseUnaryExpression(parserContext, assignIsEquality, check) : ParseBinaryExpression(parserContext, precedence + 1, assignIsEquality, check); 1285CodeExpression rightResult = (precedence == precedences.Length - 1) ? ParseUnaryExpression(parserContext, true, check) : ParseBinaryExpression(parserContext, precedence + 1, true, check); 1633for (int i = 0; i < accessors.Length; ++i) 2125if (typeArgs.Length != typeSym.GenericArgCount) 2265for (int i = 0; i < nestedTypes.Length; ++i) 2288if (mi == null || mi.Length != 1 || (mi[0].MemberType != MemberTypes.NestedType && mi[0].MemberType != MemberTypes.TypeInfo)) 2322if (genericArgs.Length == typeArgs.Length) 2506int thisParameterCount = this.ctor.GetParameters().Length; 2507int otherParameterCount = other.ctor.GetParameters().Length; 2564if (allCtors == null || allCtors.Length == 0) 2569List<CandidateConstructor> candidates = new List<CandidateConstructor>(allCtors.Length); 2570for (int c = 0; c < allCtors.Length; ++c) 2575if (parms.Length == 0) 2586int parameterCount = parms.Length; 2593if (attrs != null && attrs.Length > 0)
Rules\References.cs (2)
79if (attrs != null && attrs.Length > 0) 82for (int i = 0; i < ruleAttrs.Length; ++i)
Rules\RuleAction.cs (3)
107for (int i = 1; i < parts.Length; ++i) 111if (i < parts.Length - 1) 126else if (string.IsNullOrEmpty(parts[i]) && i == parts.Length - 1)
Rules\RuleAttributes.cs (9)
82for (int p = 0; p < parameters.Length; ++p) 107int numParts = parts.Length; 233if (param.Position == parameters.Length - 1) 343if (members == null || members.Length == 0) 354for (int i = 0; i < members.Length; ++i) 362if (attrs != null && attrs.Length != 0) 417for (int m = 0; m < members.Length; ++m) 425if (attrs != null && attrs.Length != 0) 428for (int i = 0; i < ruleAttrs.Length; ++i)
Rules\RuleValidation.cs (34)
184actualParameterLength = actualParameters.Length; 405|| (expectedParameters.Length != other.expectedParameters.Length)) 407for (int i = 0; i < expectedParameters.Length; ++i) 416for (int i = 0; i < expectedParameters.Length; ++i) 427Debug.Assert(expectedParameters.Length == 1, "not 1 parameters"); 456Debug.Assert(expectedParameters.Length == 2, "not 2 parameters"); 489Debug.Assert(expectedParameters.Length == 2, "not 2 parameters"); 520Debug.Assert(expectedParameters.Length == 2, "not 2 parameters"); 830for (int i = 0; i < loaded.Length; ++i) 2222if ((mi.Name == "op_Implicit") && (mi.GetParameters().Length == 1)) 2245if (((mi.Name == "op_Implicit") || (mi.Name == "op_Explicit")) && (mi.GetParameters().Length == 1)) 2370int numResults = results.Length; 2387if (parms == null || parms.Length == 0) 2426if (pInterfaces.Length > 0) 2445for (int m = 0; m < members.Length; ++m) 2450if (parms == null || parms.Length == 0) 2878int thisParameterCount = this.memberParameters.Length; 2879int otherParameterCount = other.memberParameters.Length; 2902int len = Math.Min(test.Length, reference.Length); 2951if (parameters == null || parameters.Length == 0) 2968int parameterCount = parameters.Length; 2978if (attrs != null && attrs.Length > 0) 3247for (int m = 0; m < members.Length; ++m) 3274for (int m = 0; m < members.Length; ++m) 3402if (parms.Length > 0 && parms[0].ParameterType != null) 3417if (objAttrs != null && objAttrs.Length > 0) 3429if (objAttrs != null && objAttrs.Length > 0) 3441if (objAttrs != null && objAttrs.Length > 0) 3600if (attrs == null || attrs.Length == 0) 3606for (int p = 0; p < properties.Length; ++p) 3612for (int dm = 0; dm < defaultMemberAttrs.Length; ++dm) 3625if (indexerParameters.Length > 0)
Rules\Walker.cs (1)
93int numTypeWrappers = typeWrappers.Length;
SR.cs (1)
113if (args != null && args.Length > 0)
State.cs (1)
77if (dynamicChildActivity.Length != 0)
Task.cs (1)
1123if (array.Length - index < replicatorActivity.ActivityState.AbsoluteCount)
While.cs (1)
72if (dynamicChildren.Length != 0)
System.Workflow.ComponentModel (252)
AuthoringOM\Activity.cs (3)
1402this.UserData[typeof(PersistOnCloseAttribute)] = (this.GetType().GetCustomAttributes(typeof(PersistOnCloseAttribute), true).Length > 0); 1753for (int i = compensatableChildren.Length - 1; i >= 0; --i) 1830return (attributes != null && attributes.Length > 0);
AuthoringOM\ActivityExecutor.cs (3)
179if (activityExecutorsObjects == null || activityExecutorsObjects.Length == 0) 182activityExecutors = new ActivityExecutor[activityExecutorsObjects.Length]; 183for (int index = 0; index < activityExecutorsObjects.Length; index++)
AuthoringOM\Bind.cs (10)
1178for (int index = 0; index < aryMembers.Length; ++index) 1207if (aryPI.Length != argNames.Length) 1210for (int index = 0; index < args.Length; ++index) 1416if (members == null || members.Length == 0 || members[0] == null) 1451if (parameters.Length > 0) 1457object[] arguments = new object[arrayArgName.Length]; 1535object[] arguments = new object[arrayArgName.Length]; 1664object[] parameters = new object[((index != null) ? index.Length : 0) + 1]; 1665parameters[((index != null) ? index.Length : 0)] = value;
AuthoringOM\Compiler\CompileXomlTask.cs (14)
419if (this.ReferenceFiles == null || this.ReferenceFiles.Length == 0) 423if (this.SourceCodeFiles == null || this.SourceCodeFiles.Length == 0) 469for (int i = 0; i < installedNetFxs.Length; i++) 480if (parts.Length > 1) 578xomlFilesPaths = new string[WorkflowMarkupFiles.GetLength(0) + userCodeFiles.Length]; 587xomlFilesPaths = new string[userCodeFiles.Length]; 780string[] itemSpecs = new string[taskItems.Length]; 782for (int i = 0; i < taskItems.Length; i++) 830if (this.compilationOptions != null && this.compilationOptions.Length > 0) 838if (this.resourceFiles != null && this.resourceFiles.Length > 0) 956for (int i = 0; i < warnings.Length; i++) 1042for (int i = 0; i < base.ResourceFilesWithManifestResourceNames.Length; i++) 1279cultureInfoStrings = new string[cultureInfos.Length]; 1280for (int i = 0; i < cultureInfos.Length; i++)
AuthoringOM\Compiler\TypeSystem\AttributeInfo.cs (2)
110for (int loop = 0; loop < argumentNames.Length; loop++) 221string parsedTypeName = baseTypeName + "`" + genericParamTypeNames.Length.ToString(CultureInfo.InvariantCulture) + "[";
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (11)
470if (attrs != null && attrs.Length > 0) 1302if (this.parameters.Length != memberSignature.parameters.Length) 1305for (int loop = 0; loop < this.parameters.Length; loop++) 1331if (this.parameters.Length != maskSignature.parameters.Length) 1334for (int loop = 0; loop < this.parameters.Length; loop++) 1354if (parameters != null && parameters.Length > 0) 1358for (int i = 0; i < parameters.Length; i++) 1392if (this.parameters != null && this.parameters.Length > 0) 1394for (int i = 0; i < this.parameters.Length; i++)
AuthoringOM\Compiler\TypeSystem\Helper.cs (2)
190if (usageAttribs != null && usageAttribs.Length > 0) 300for (i = 0; i < tokens.Length - 1; i++)
AuthoringOM\Compiler\TypeSystem\PropertyInfo.cs (2)
107numParams = methParams.Length; 117numParams = methParams.Length - 1;
AuthoringOM\Compiler\TypeSystem\RTTypeWrapper.cs (17)
29if (xArray.Length == yArray.Length) 31for (int index = 0; !mismatch && index < xArray.Length; index++) 93this.typeArgs = new Type[typeArgs.Length]; 94for (int i = 0; i < typeArgs.Length; i++) 154if (this.typeArgs != null && this.typeArgs.Length > 0) 157for (int index = 0; index < this.typeArgs.Length; index++) 162if (index < (this.typeArgs.Length - 1)) 563Type[] types = new Type[typeArgs.Length]; 568for (int i = 0; i < typeArgs.Length; i++) 579if ((typeArgs.Length == 1) && (this.runtimeType == typeof(Nullable<>)) && !(typeArgs[0].IsEnum)) 678if (parameters.GetLength(0) == types.Length) 680for (int index = 0; !mismatch && index < parameters.Length; index++) 704if (parameters.GetLength(0) == types.Length) 706for (int index = 0; !mismatch && index < parameters.Length; index++) 731if (parameters.GetLength(0) == types.Length) 733for (int index = 0; !mismatch && index < parameters.Length; index++)
AuthoringOM\Compiler\TypeSystem\TypeProvider.cs (7)
323if ((parameters != null) && (parameters.Length > 0)) 329Type[] templateParamTypes = new Type[parameters.Length]; 330for (int index = 0; index < parameters.Length; index++) 644for (int i = 0; i < p.Length; i++) 745for (int i = 0; i < interfaces.Length; i++) 799for (int i = 0; i < flds.Length; i++) 1044if (args != null && args.Length > 0)
AuthoringOM\Compiler\Validation\DependencyObjectValidator.cs (2)
51ValidationOption validationVisibility = (validationVisibilityAtrributes.Length > 0) ? ((ValidationOptionAttribute)validationVisibilityAtrributes[0]).ValidationOption : ValidationOption.Optional; 64ValidationOption validationVisibility = (validationVisibilityAtrributes.Length > 0) ? ((ValidationOptionAttribute)validationVisibilityAtrributes[0]).ValidationOption : ValidationOption.Optional;
AuthoringOM\Compiler\Validation\Validator.cs (2)
58ValidationOption validationVisibility = (validationVisibilityAtrributes.Length > 0) ? ((ValidationOptionAttribute)validationVisibilityAtrributes[0]).ValidationOption : ValidationOption.Optional; 106ValidationOption validationVisibility = (validationVisibilityAtrributes.Length > 0) ? ((ValidationOptionAttribute)validationVisibilityAtrributes[0]).ValidationOption : ValidationOption.Optional;
AuthoringOM\Compiler\XomlCompilerHelpers.cs (5)
85if (sourceAttrs != null && sourceAttrs.Length > 0) 153if (sourceAttrs.Length > 0) 703string[] filenames = new string[ccus.Length]; 704for (int i = 0; i < ccus.Length; i++) 844NativeMethods.ThrowOnFailure((metaDataImport.EnumTypeRefs(ref enumHandle, typeRefs, (uint)typeRefs.Length, ref typeRefCount)));
AuthoringOM\ComponentFactoryHelpers.cs (2)
63if (objectType.GetCustomAttributes(typeof(SupportsTransactionAttribute), true).Length > 0) 69if (objectType.GetCustomAttributes(typeof(SupportsSynchronizationAttribute), true).Length > 0)
AuthoringOM\DependencyProperty.cs (1)
248if (values.Length > 0)
AuthoringOM\Design\ActivityDesigner.cs (3)
2496if (attributes.Length > 0) 2546if (activities.Length == 0) 2555if (activities.Length > 0)
AuthoringOM\Design\ActivityPreviewDesigner.cs (5)
308if (connectors.Length > 0) 794if (activeDropTarget < 0 || activeDropTarget >= dropTargets.Length) 1028childCount += activityCollectionDesigner.previewStrip.AccessibilityObjects.Length; 1046if (index < activityCollectionDesigner.previewStrip.AccessibilityObjects.Length) 1048index -= activityCollectionDesigner.previewStrip.AccessibilityObjects.Length;
AuthoringOM\Design\Connector.cs (8)
469for (int i = 0; i < segmentEditPoints.Length; i++) 493for (int i = 1; i < segments.Length - 1; i++) 496for (int i = 0; i < segmentEditPoints.Length; i++) 1182for (int i = newEditPointIndex; i < points.Length - newEditPointIndex; i++) 1795if (segments == null || segments.Length == 0) 1798for (int i = 1; i < segments.Length; i++) 1847if ((linesToExclude.Length % 2) > 0) 2798for (int i = 0; i < linesToExclude.Length / 2; i++)
AuthoringOM\Design\CustomActivityDesigner.cs (1)
457if (hiddenCodeAttributes != null && hiddenCodeAttributes.Length > 0)
AuthoringOM\Design\DesignerHelpers.cs (6)
1628if (method.GetParameters().Length == dti.Parameters.Length) 1631for (int i = 0; i < dti.Parameters.Length; i++) 1879Debug.Assert(segments.Length > 0); 1880if (segments.Length == 0) 1981for (int i = 1; i < segments.Length; i++)
AuthoringOM\Design\DesignerInterfaces.cs (1)
722if (connectors.Length > 0)
AuthoringOM\Design\DesignerResources.cs (1)
238if (args != null && args.Length > 0)
AuthoringOM\Design\DesignerWidgets.cs (9)
1795if (this.tabItemList.Count == this.drawItems.Length) 1873if (this.drawItems.Length != this.tabItemList.Count) 1888for (int tabItemIndex = 0; tabItemIndex < this.drawItems.Length; tabItemIndex++) 2072if (this.drawItems.Length == this.tabItemList.Count) 2085if (tabItemInfo.Image != null && this.drawItems.Length == this.tabItemList.Count) 2102if (tabItemInfo.Text != null && this.drawItems.Length == this.tabItemList.Count) 3110index = accessibleObjects.Length - 1; 3114index = Math.Max(Math.Min(accessibleObjects.Length - 1, index), 0); 3123int accessibilityObjectCount = this.itemStrip.AccessibilityObjects.Length;
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (12)
488if (arrayMembers != null && arrayMembers.Length > 0) 500if (getMembers != null && getMembers.Length > 0) 527if (parameters != null && parameters.Length > 0) 531for (int i = 0; i < parameters.Length; i++) 539if (i < parameters.Length - 1) 704if (descriptions != null && descriptions.Length > 0) 741if (attributes.Length > 0) 1245if (parameters1 == null || parameters1.Length == 0 || parameters2 == null || parameters2.Length == 0 || parameters1.Length != parameters2.Length) 1248for (int i = 0; i < parameters1.Length; i++)
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (2)
770if (treeNodes.Length == 0) 1018Activity activity = (components != null && components.Length > 0) ? components[0] as Activity : null;
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (4)
871if ((attributes != null) && attributes.Length > 0) 1045if ((type.IsGenericType) && (this.genericParameters.Parameters.Length > 0)) 1065if (index < this.genericParameters.Parameters.Length) 1108for (int loop = 0; loop < unboundedType.GetGenericArguments().Length; loop++)
AuthoringOM\Design\FreeFormDesigner.cs (1)
887if (movedLocations.Length == e.Activities.Count)
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (3)
541if (button.StateImages.Length == 1) 626if (value.Length != 1 && value.Length != 4)
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (2)
164Debug.Assert(locations.Length == DraggedActivities.Count); 224if (locations.Length == this.draggedDesignerImages.Count)
AuthoringOM\Design\ParallelActivityDesigner.cs (1)
403if (index < 0 || index >= dropTargets.Length)
AuthoringOM\Design\PropertyDescriptors.cs (2)
442if (nonUserCodeAttributes != null && nonUserCodeAttributes.Length > 0 && nonUserCodeAttributes[0] is System.Diagnostics.DebuggerNonUserCodeAttribute) 446if (browsableAttributes.Length > 0)
AuthoringOM\Design\ReferenceService.cs (2)
55if (browsableAttrs.Length > 0 && browsableAttrs[0].Browsable) 290for (int i = 0; i < references.Length; i++)
AuthoringOM\Design\SequentialActivityDesigner.cs (17)
97if (GetConnectors().Length == 0 || !Expanded || !IsVisible) 113if (connectors.Length == 0 || !Expanded || !IsVisible) 117return new ConnectorHitTestInfo(this, HitTestLocations.Designer, connectors.Length - 1); 158if (this.HelpText.Length == 0 || ContainedDesigners.Count > 0 || !Expanded || connectors.Length == 0) 254for (int i = 0; i < connectorBounds.Length; i++) 318for (int i = 0; i < connectors.Length; i++) 356if (currentIndex >= 0 && (currentIndex + 1) < GetConnectors().Length) 365if (currentIndex > 0 && currentIndex < GetConnectors().Length) 372if (currentIndex >= 0 && currentIndex < GetConnectors().Length) 409if (connectors.Length > 0) 420for (int i = 0; i < connectors.Length; i++) 423LineAnchor startCap = ((i == 0 && connectors.Length > 2) || i == connectors.Length - 1) ? LineAnchor.None : compositeDesignerTheme.ConnectorStartCap; 424LineAnchor endCap = (i == 0 || (i == connectors.Length - 1 && connectors.Length > 2)) ? LineAnchor.None : compositeDesignerTheme.ConnectorEndCap; 522for (int i = 0; i < connectors.Length; i++) 557if (this.connectorIndex < connectors.Length)
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (2)
693if (CurrentDropTarget < dropTargets.Length) 711for (int i = 0; i < dropTargets.Length; i++)
AuthoringOM\Design\TypeConverters.cs (4)
43if (attributes != null && attributes.Length > 0 && attributes[0] is DisplayNameAttribute) 49if (attributes != null && attributes.Length > 0 && attributes[0] is DisplayNameAttribute) 200object convertedValue = (splitParts.Length == 2) ? new ActivityBind(splitParts[0], splitParts[1]) : null; 379if (splitValues.Length == 2)
AuthoringOM\Design\WinOEToolBoxItem.cs (1)
122if (toolboxItemAttributes != null && toolboxItemAttributes.Length > 0)
AuthoringOM\Design\WorkflowPrinting.cs (1)
256for (int i = 0; i < Math.Min(headerFooterLines.Length, MaxHeaderFooterLines); i++)
AuthoringOM\Filters\CompensationHandlingFilter.cs (3)
417if (activities != null && activities.Length > 0 && activities[activities.Length - 1] != null) 418return activities[activities.Length - 1];
AuthoringOM\Serializer\ActivityMarkupSerializer.cs (1)
105if (instance is CompositeActivity && sourceAttrs.Length > 0 && type.Assembly == serializationManager.LocalAssembly)
AuthoringOM\Serializer\ActivitySurrogate.cs (7)
45if (memberDatas != null && memberDatas.Length == 2) 263if (members.Length == 2) 288Object[] currentMemberDatas = new object[members.Length]; 289for (int index = 0; index < currentMemberNames.Length; index++) 301if (this.memberNames.Length > 0 && this.memberNames[this.lastPosition].Equals(name)) 305else if ((++this.lastPosition < this.memberNames.Length) && (this.memberNames[this.lastPosition].Equals(name))) 312for (int i = 0; i < this.memberNames.Length; i++)
AuthoringOM\Serializer\CompositeActivityTypeDescriptor.cs (1)
34if (attributes != null && attributes.Length == 1 && attributes[0] is DesignOnlyAttribute && !(attributes[0] as DesignOnlyAttribute).IsDesignOnly)
AuthoringOM\Serializer\DependencyObjectCodeDomSerializer.cs (2)
95if (attributes.Length > 0) 175if (attributes.Length > 0)
AuthoringOM\Serializer\DictionarySurrogate.cs (1)
21if (args.Length != 2)
AuthoringOM\Serializer\FormatterServicesNoSerializableCheck.cs (12)
62for (int i = 0; i < fields.Length; i++) 68if (countProper != fields.Length) 72for (int i = 0; i < fields.Length; i++) 116typeNames = new string[typeMembers.Length]; 117for (int index = 0; index < typeMembers.Length; index++) 159MemberInfo[] membersTemp = new MemberInfo[allMembers.Count + typeMembers.Length]; 160Array.Copy(typeMembers, membersTemp, typeMembers.Length); 161allMembers.CopyTo(membersTemp, typeMembers.Length); 164string[] namesTemp = new string[allNames.Count + typeNames.Length]; 165Array.Copy(typeNames, namesTemp, typeNames.Length); 166allNames.CopyTo(namesTemp, typeNames.Length); 197if (parentTypes == null || parentTypeCount == parentTypes.Length)
AuthoringOM\Serializer\GenericQueueSurrogate.cs (1)
22if (args.Length != 1)
AuthoringOM\Serializer\ListSurrogate.cs (1)
22if (args.Length != 1)
AuthoringOM\Serializer\MarkupExtensionSerializer.cs (2)
56if (parameters != null && parameters.Length == instanceDescriptor.Arguments.Count) 117if (attributes.Length > 0 && constructorArguments.ContainsKey((attributes[0] as ConstructorArgumentAttribute).ArgumentName))
AuthoringOM\Serializer\QueueSurrogate.cs (1)
19if (items.Length == 1)
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (14)
785if (indexParameters != null && indexParameters.Length > 0) 864if (attributes.Length > 0) 1158if (attributes.Length > 0) 1371if (attributes.Length > 0) 1470if (visibilityAttrs.Length > 0 && ((DesignerSerializationVisibilityAttribute)visibilityAttrs[0]).Visibility == DesignerSerializationVisibility.Hidden) 1479serializationVisibilityAttribute.Length == 0 || 1525if (visibilityAttrs.Length > 0 && ((DesignerSerializationVisibilityAttribute)visibilityAttrs[0]).Visibility == DesignerSerializationVisibility.Hidden) 1545if (parameters != null && parameters.Length == 2 && parameters[0].ParameterType == typeof(object) && parameters[1].ParameterType == typeof(object)) 1556if (parameters != null && parameters.Length == 2 && parameters[0].ParameterType == typeof(object) && parameters[1].ParameterType == typeof(object)) 1583if (parameters == null || parameters.Length != 2 || parameters[0].ParameterType != typeof(object) || parameters[1].ParameterType != typeof(object)) 1606if (parameters == null || parameters.Length != 2 || parameters[0].ParameterType != typeof(object) || parameters[1].ParameterType != typeof(object)) 2089if (attributes.Length > 0) 2571if (parameters.Length == positionalArgs.Count) 3091if (contentPropertyAttributes != null && contentPropertyAttributes.Length > 0)
AuthoringOM\SR.cs (1)
115if (args != null && args.Length > 0)
Shared\BasePropertyDescriptor.cs (3)
42if (site == null && component.GetType().IsArray && (component as object[]).Length > 0 && (component as object[])[0] is IComponent) 598if (instances != null && instances.Length > 0) 704if (instances != null && instances.Length > 0)
Shared\CompModHelpers.cs (7)
727if (attributes.Length > 0) 751if (parameters.GetLength(0) == types.Length) 753for (int index = 0; !mismatch && index < parameters.Length; index++) 1098for (int i = 0; i < names.Length; i++) 1148for (int i = 0; i < paths.Length && activity != null; i++) 1286isAlternateFlowActivityAttribute = activity.GetType().GetCustomAttributes(typeof(AlternateFlowActivityAttribute), true).Length != 0; 1437for (int i = 0; i < names.Length; i++)
Shared\DelegateTypeInfo.cs (6)
77parameters = new CodeParameterDeclarationExpression[argTypes.Length]; 78parameterTypes = new Type[argTypes.Length]; 79for (int index = 0; index < argTypes.Length; index++) 123if (ReturnType.BaseType != dtiOther.ReturnType.BaseType || Parameters.Length != dtiOther.Parameters.Length) 126for (int parameter = 0; parameter < Parameters.Length; parameter++)
Shared\TypeSystemHelpers.cs (15)
93for (int loop = 0; loop < genericParamChars.Length; loop++) 106for (int loop = 0; loop < parameters.Length; loop++) 173if (thatToken != null && thatToken.Length != 0) 178if (thatToken.Length != thisToken.Length) 180for (int i = 0; i < thatToken.Length; i++) 198if (parts.Length == 0) 205if (parts.Length == 1) 211for (int index = 1; index < parts.Length; index++) 234for (int i = 0; i < thatToken.Length; i++) 265if (thatToken != null && thatToken.Length != 0) 270if (thatToken.Length != thisToken.Length) 272for (int i = 0; i < thatToken.Length; i++) 357else if (genericParamTypeNames != null && genericParamTypeNames.Length > 0)
Shared\Walker.cs (3)
194if (prop.GetIndexParameters() != null && prop.GetIndexParameters().Length > 0) 273if (visibilityAttrs.Length > 0) 283if (browsableAttrs.Length > 0)
System.Workflow.Runtime (39)
DebugEngine\DebugController.cs (1)
1009if (attributes != null && attributes.Length == 1)
Hosting\SqlWorkflowPersistenceService.cs (2)
468if (state == null || state.Length == 0) 525if (state == null || state.Length == 0)
MD5HashHelper.cs (9)
27int blocks = (buffer.Length + 8) / 64 + 1; 39if (offset + 64 > buffer.Length) 43for (int j = offset; j < buffer.Length; j++) 47if (offset <= buffer.Length) 49block[buffer.Length - offset] = 0x80; 53block[56] = (byte)(buffer.Length << 3); 54block[57] = (byte)(buffer.Length >> 5); 55block[58] = (byte)(buffer.Length >> 13); 56block[59] = (byte)(buffer.Length >> 21);
parent\Common\Shared\DigestComparer.cs (4)
10Debug.Assert(digest1.Length == 16 && digest2.Length == 16, "Invalid digest!"); 21Debug.Assert(digest1.Length == 16 && digest2.Length == 16, "Invalid digest!");
PerformanceCounterManager.cs (3)
254for (int i = 0; i < data.Length; ++i) 257for (int j = 0; j < currentData.Mappings.Length; ++j) 432System.Diagnostics.Debug.Assert(mappings != null && mappings.Length != 0);
System\Activities\Statements\Interop.cs (6)
620for (int i = 0; i < bodyProperties.Length; i++) 628Attribute[] newAttributes = new Attribute[customAttributes.Length + 1]; 630newAttributes[customAttributes.Length] = new DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden); 634this.exposedBodyProperties = new List<InteropProperty>(bodyProperties.Length); 681if (attributes == null || attributes.Length == 0) 686for (int i = 0; i < attributes.Length; i++)
Tracking.cs (2)
1894Array.Copy(result, result16, Math.Min(result16.Length, result.Length));
Tracking\PropertyHelper.cs (5)
54for (int i = 0; i < names.Length; i++) 206if (p.GetIndexParameters().Length > 0) 252if ((null == members) || (0 == members.Length)) 266if ((null == members) || (0 == members.Length)) 272if ((null == members) || (0 == members.Length) || (null == members[0].Name) || (0 == members[0].Name.Length))
WorkflowDefinitionDispenser.cs (2)
166Array.Copy(xomlHashCode256, xomlHashCode, Math.Min(xomlHashCode.Length, xomlHashCode256.Length));
WorkflowExecutor.cs (1)
3024if (attributes != null && attributes.Length > 0)
WorkflowRuntime.cs (4)
998if (attributes != null && attributes.Length > 0) 1015if (attributes != null && attributes.Length > 0) 1497if (pi.Length == 1) 1508else if (pi.Length == 2)
System.WorkflowServices (48)
SR.cs (1)
95if (args != null && args.Length > 0)
System\ServiceModel\Activation\WorkflowServiceHostFactory.cs (3)
125if (baseAddresses.Length == 0) 172if (components.Length < 3) 178for (int i = (components.Length - 1); i > 2; i--)
System\ServiceModel\Activities\Description\WorkflowRuntimeEndpoint.cs (1)
69Fx.Assert(inputs.Length >= 3, "Insufficient number of inputs");
System\ServiceModel\Persistence\SqlPersistenceProviderFactory.cs (5)
758Fx.Assert(additionalParameters != null && additionalParameters.Length == 2, 840Fx.Assert(additionalParameters == null || additionalParameters.Length == 0, 939Fx.Assert(additionalParameters != null && additionalParameters.Length == 1, 1405Fx.Assert(additionalParameters == null || additionalParameters.Length == 0, 1459Fx.Assert(additionalParameters != null && additionalParameters.Length == 2,
System\ServiceModel\Security\SerializableAuthorizationContext.cs (1)
150XmlDictionaryReader reader = XmlDictionaryReader.CreateBinaryReader(contextBlob, 0, contextBlob.Length, claimDictionary, XmlDictionaryReaderQuotas.Max, null, null);
System\ServiceModel\SerializableReadOnlyDictionary.cs (1)
34this.dictionary = new Dictionary<K, V>(entries.Length);
System\Workflow\Activities\ContractType.cs (11)
192this.methods.Length != contract.methods.Length) 244if (attrs != null && attrs.Length > 0) 810if (this.parameters.Length != memberSignature.parameters.Length) 815for (int loop = 0; loop < this.parameters.Length; loop++) 849if (this.parameters.Length != maskSignature.parameters.Length) 854for (int loop = 0; loop < this.parameters.Length; loop++) 885if (parameters != null && parameters.Length > 0) 889for (int i = 0; i < parameters.Length; i++)
System\Workflow\Activities\Design\RichListBox.cs (2)
69if ((attribs != null) && (attribs.Length > 0)) 93if ((attribs != null) && (attribs.Length > 0))
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (2)
142for (int index = 0; index < argumentTypes.Length; index++) 146if (index != argumentTypes.Length - 1)
System\Workflow\Activities\OperationInfo.cs (1)
287if (operationContractAttribs != null && operationContractAttribs.Length > 0)
System\Workflow\Activities\ReceiveActivity.cs (3)
1429if (operationContractAttribs != null && operationContractAttribs.Length > 0) 1577if (eventHandlers != null && eventHandlers.Length > 0) 1721if (eventHandlers != null && eventHandlers.Length > 0)
System\Workflow\Activities\SendActivity.cs (5)
397if (invocationList != null && invocationList.Length > 0) 441if (invocationList != null && invocationList.Length > 0) 631this.parameterCount = methodInfo.GetParameters().Length; 637if (operationContractAttribs != null && operationContractAttribs.Length > 0) 699if (this.outputParameters.Count > 0 && outputs.Length > 0)
System\Workflow\Activities\ServiceOperationHelpers.cs (6)
26if (operationContractAttribs != null && operationContractAttribs.Length > 0) 78Fx.Assert(operationContractAttribs.Length > 0, "operation doesnt seem to be a valid operationcontract"); 109Fx.Assert(operationContractAttribs.Length > 0, "operation doesnt seem to be a valid operationcontract"); 138if (contractAttribs != null && contractAttribs.Length > 0) 164if (operationContractAttribs != null && operationContractAttribs.Length > 0) 328for (int index = 0; index < argumentNames.Length; index++)
System\Workflow\Activities\TypedOperationInfo.cs (3)
154if (operationContractAttribs != null && operationContractAttribs.Length > 0) 259for (int index = 0; index < argumentNames.Length; index++) 296if (operationContractAttribs != null && operationContractAttribs.Length > 0)
System\Workflow\Activities\ValidationHelper.cs (3)
797if (parameter.Position >= methodInfo.GetParameters().Length || 1015if (serviceContractAttributes == null || serviceContractAttributes.Length == 0) 1028if (operationContractAttrributes == null || operationContractAttrributes.Length == 0)
System.Xml (712)
parent\parent\parent\parent\InternalApis\Clr\inc\AppContextDefaultValues.cs (4)
90if (components.Length < 2 || components.Length > 3) 111for (int i = 1; i < components.Length; i++) 116if (keyValuePair.Length != 2)
System\Xml\Base64Decoder.cs (3)
58if ( chars.Length - startPos < len ) { 114Debug.Assert( buffer.Length - index >= count ); 128for ( int i = 0; i < mapBase64.Length; i++ ) {
System\Xml\Base64Encoder.cs (1)
39if ( count > buffer.Length - index ) {
System\Xml\Base64EncoderAsync.cs (1)
23if ( count > buffer.Length - index ) {
System\Xml\BinaryXml\SqlUtils.cs (2)
129Debug.Assert(rguiData.Length == 4); 152Debug.Assert(rgulU.Length == x_cNumeMax);
System\Xml\BinaryXml\XmlBinaryReader.cs (14)
1671if (symNum == symtable.Length) { 1685if (qnameNum == qnametable.Length) { 1726Array.Clear(this.symbolTables.symtable, 1, this.symbolTables.symtable.Length - 1); 1727Array.Clear(this.symbolTables.qnametable, 0, this.symbolTables.qnametable.Length); 1765if (cbKeep > 7 * (data.Length / 8)) { 1767byte[] newdata = new byte[checked(data.Length * 2)]; 1794int cbFill = data.Length - end; 2124int newcount = this.elementStack.Length * 2; 2127System.Array.Copy(this.elementStack, 0, n, 0, this.elementStack.Length); 2132int newcount = this.attributes.Length * 2; 2197if (this.attrCount == this.attributes.Length) 2291if (this.attrCount == this.attributes.Length) 2383if (this.attrHashTbl.Length < tblSize) 2694if (this.elemDepth == this.elementStack.Length)
System\Xml\BinHexDecoder.cs (5)
52if ( chars.Length - startPos < len ) { 110Debug.Assert( buffer.Length - index >= count ); 130int len = chars.Length; 142Decode( pChars, pChars + len, pBytes, pBytes + bytes.Length, ref hasHalfByteCached, ref cachedHalfByte, out charsDecoded, out bytesDecoded ); 150if ( bytesDecoded < bytes.Length ) {
System\Xml\BinHexEncoder.cs (3)
25if ( count > buffer.Length - index ) { 50if (count > inArray.Length - offsetIn) { 62int lengthOut = outArray.Length;
System\Xml\BinHexEncoderAsync.cs (1)
17if ( count > buffer.Length - index ) {
System\Xml\BitStack.cs (1)
98len = this.bitStack.Length;
System\Xml\Cache\XPathDocumentBuilder.cs (1)
745if (++this.pageInfo.NodeCount >= this.page.Length) {
System\Xml\Cache\XPathNodeHelper.cs (2)
315idxPrec = pagePrec.Length - 1; 673if (++idxNode >= pageNode.Length) {
System\Xml\Cache\XPathNodeInfoAtom.cs (6)
398infoNew = this.hashTable[info.GetHashCode() & (this.hashTable.Length - 1)]; 410if (this.sizeTable >= this.hashTable.Length) { 412this.hashTable = new XPathNodeInfoAtom[oldTable.Length * 2]; 414for (int i = 0; i < oldTable.Length; i++) { 435int idx = info.GetHashCode() & (this.hashTable.Length - 1); 448for (int i = 0; i < this.hashTable.Length; i++) {
System\Xml\Core\HtmlEncodedRawTextWriter.cs (1)
433Debug.Assert( count >= 0 && index + count <= buffer.Length );
System\Xml\Core\HtmlUtf8RawTextWriter.cs (1)
433Debug.Assert( count >= 0 && index + count <= buffer.Length );
System\Xml\Core\IncrementalReadDecoders.cs (2)
65Debug.Assert( chars.Length - startPos >= len ); 104Debug.Assert( buffer.Length - index >= count );
System\Xml\Core\ReadContentAsBinaryHelper.cs (4)
73if ( buffer.Length - index < count ) { 120if ( buffer.Length - index < count ) { 167if ( buffer.Length - index < count ) { 214if ( buffer.Length - index < count ) {
System\Xml\Core\ReadContentAsBinaryHelperAsync.cs (4)
23if ( buffer.Length - index < count ) { 70if ( buffer.Length - index < count ) { 117if ( buffer.Length - index < count ) { 164if ( buffer.Length - index < count ) {
System\Xml\Core\XmlCharCheckingReader.cs (2)
426if (buffer.Length - index < count) { 476if (buffer.Length - index < count) {
System\Xml\Core\XmlCharCheckingReaderAsync.cs (2)
266if (buffer.Length - index < count) { 316if (buffer.Length - index < count) {
System\Xml\Core\XmlCharCheckingWriter.cs (1)
249if (count > buffer.Length - index) {
System\Xml\Core\XmlCharCheckingWriterAsync.cs (1)
168if (count > buffer.Length - index) {
System\Xml\Core\XmlEncodedRawTextWriter.cs (12)
166bufBytes = new byte[ bufChars.Length ]; 184if ( bom.Length != 0 ) { 185this.stream.Write( bom, 0, bom.Length ); 614Debug.Assert( count >= 0 && index + count <= buffer.Length ); 635Debug.Assert( count >= 0 && index + count <= buffer.Length ); 783encoder.Convert( bufChars, startOffset, endOffset - startOffset, bufBytes, bufBytesUsed, bufBytes.Length - bufBytesUsed, false, out chEnc, out bEnc, out completed ); 786if ( bufBytesUsed >= ( bufBytes.Length - 16 ) ) { 804encoder.Convert( bufChars, 1, 0, bufBytes, 0, bufBytes.Length, true, out chEnc, out bEnc, out completed ); 1434if ( lastMarkPos + 1 == textContentMarks.Length ) { 1441Debug.Assert( lastMarkPos + 1 == textContentMarks.Length ); 1442int[] newTextContentMarks = new int[ textContentMarks.Length * 2 ]; 1443Array.Copy( textContentMarks, newTextContentMarks, textContentMarks.Length );
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (5)
434Debug.Assert( count >= 0 && index + count <= buffer.Length ); 454Debug.Assert( count >= 0 && index + count <= buffer.Length ); 555encoder.Convert( bufChars, startOffset, endOffset - startOffset, bufBytes, bufBytesUsed, bufBytes.Length - bufBytesUsed, false, out chEnc, out bEnc, out completed ); 558if ( bufBytesUsed >= ( bufBytes.Length - 16 ) ) { 576encoder.Convert( bufChars, 1, 0, bufBytes, 0, bufBytes.Length, true, out chEnc, out bEnc, out completed );
System\Xml\Core\XmlEventCache.cs (8)
114for (idxEvent = 0; idxEvent < page.Length; idxEvent++) { 176writer.WriteBase64(bytes, 0, bytes.Length); 181writer.WriteBinHex(bytes, 0, bytes.Length); 268for (idxEvent = 0; idxEvent < page.Length; idxEvent++) { 498else if (this.pageSize >= this.pageCurr.Length) { 512if (index != 0 || count != buffer.Length) { 513if (buffer.Length - index > count) 514count = buffer.Length - index;
System\Xml\Core\XmlReader.cs (1)
1676read = input.Read(bytes, byteCount, bytes.Length - byteCount);
System\Xml\Core\XmlSubtreeReader.cs (3)
1086if ( index == nsAttributes.Length ) { 1087NodeData[] newNsAttrs = new NodeData[nsAttributes.Length * 2]; 1326if ( buffer.Length - index < count ) {
System\Xml\Core\XmlTextEncoder.cs (3)
116if ( count > array.Length - offset ) { 411if ( count > array.Length - offset ) { 458int bufferSize = helperBuffer.Length;
System\Xml\Core\XmlTextReaderImpl.cs (39)
1526if ( buffer.Length - index < count ) { 1574if ( buffer.Length - index < count ) { 1621if ( buffer.Length - index < count ) { 1669if ( buffer.Length - index < count ) { 1727if ( buffer.Length - index < count ) { 2615bufferSize = ps.bytes.Length; 2629if ( ps.bytes == null || ps.bytes.Length < bufferSize ) { 2635if ( ps.chars == null || ps.chars.Length < bufferSize + 1 ) { 2641while ( ps.bytesUsed < 4 && ps.bytes.Length - ps.bytesUsed > 0 ) { 2642int read = stream.Read( ps.bytes, ps.bytesUsed, ps.bytes.Length - ps.bytesUsed ); 2658int preambleLen = preamble.Length; 3084if ( ps.charsUsed == ps.chars.Length - 1 ) { 3090char[] newChars = new char[ ps.chars.Length * 2 ]; 3091BlockCopyChars( ps.chars, 0, newChars, 0, ps.chars.Length ); 3098if ( ps.bytes.Length - ps.bytesUsed < MaxByteSequenceLen ) { 3099byte[] newBytes = new byte[ ps.bytes.Length * 2 ]; 3106charsRead = ps.chars.Length - ps.charsUsed - 1; 3112int charsLen = ps.chars.Length; 3130char[] newChars = new char[ ps.chars.Length * 2 ]; 3131BlockCopyChars( ps.chars, 0, newChars, 0, ps.chars.Length ); 3150charsRead = ps.chars.Length - ps.charsUsed - 1; 3156if ( ps.bytePos == ps.bytesUsed && ps.bytes.Length - ps.bytesUsed > 0 ) { 3157int read = ps.stream.Read( ps.bytes, ps.bytesUsed, ps.bytes.Length - ps.bytesUsed ); 3176charsRead = ps.textReader.Read( ps.chars, ps.charsUsed, ps.chars.Length - ps.charsUsed - 1 ); 3186Debug.Assert ( ps.charsUsed < ps.chars.Length ); 3196Debug.Assert( maxCharsCount <= ps.chars.Length - ps.charsUsed - 1 ); 4578if ( attrDuplSortingArray == null || attrDuplSortingArray.Length < attrCount ) { 6882Debug.Assert( nodeIndex < nodes.Length ); 6883Debug.Assert( nodes[nodes.Length - 1] == null ); 6894Debug.Assert( nodeIndex < nodes.Length ); 6895if ( nodeIndex >= nodes.Length - 1 ) { 6896NodeData[] newNodes = new NodeData[nodes.Length * 2]; 6897Array.Copy( nodes, 0, newNodes, 0, nodes.Length ); 6900Debug.Assert( nodeIndex < nodes.Length ); 7287else if ( parsingStatesStackTop + 1 == parsingStatesStack.Length ) { 7288ParsingState[] newParsingStateStack = new ParsingState[ parsingStatesStack.Length * 2 ]; 7289Array.Copy( parsingStatesStack, 0, newParsingStateStack, 0, parsingStatesStack.Length ); 7329if ( array.Length - index < count ) { 8526Debug.Assert(endPos < chars.Length);
System\Xml\Core\XmlTextReaderImplAsync.cs (25)
373if ( buffer.Length - index < count ) { 428if ( buffer.Length - index < count ) { 491if ( buffer.Length - index < count ) { 546if ( buffer.Length - index < count ) { 599if ( buffer.Length - index < count ) { 841bufferSize = ps.bytes.Length; 853if ( ps.bytes == null || ps.bytes.Length < bufferSize ) { 859if ( ps.chars == null || ps.chars.Length < bufferSize + 1 ) { 865while ( ps.bytesUsed < 4 && ps.bytes.Length - ps.bytesUsed > 0 ) { 866int read = await stream.ReadAsync( ps.bytes, ps.bytesUsed, ps.bytes.Length - ps.bytesUsed ).ConfigureAwait(false); 882int preambleLen = preamble.Length; 994if ( ps.charsUsed == ps.chars.Length - 1 ) { 1000char[] newChars = new char[ ps.chars.Length * 2 ]; 1001BlockCopyChars( ps.chars, 0, newChars, 0, ps.chars.Length ); 1008if ( ps.bytes.Length - ps.bytesUsed < MaxByteSequenceLen ) { 1009byte[] newBytes = new byte[ ps.bytes.Length * 2 ]; 1016charsRead = ps.chars.Length - ps.charsUsed - 1; 1022int charsLen = ps.chars.Length; 1040char[] newChars = new char[ ps.chars.Length * 2 ]; 1041BlockCopyChars( ps.chars, 0, newChars, 0, ps.chars.Length ); 1060charsRead = ps.chars.Length - ps.charsUsed - 1; 1066if ( ps.bytePos == ps.bytesUsed && ps.bytes.Length - ps.bytesUsed > 0 ) { 1067int read = await ps.stream.ReadAsync( ps.bytes, ps.bytesUsed, ps.bytes.Length - ps.bytesUsed ).ConfigureAwait(false); 1086charsRead = await ps.textReader.ReadAsync( ps.chars, ps.charsUsed, ps.chars.Length - ps.charsUsed - 1 ).ConfigureAwait(false); 1096Debug.Assert ( ps.charsUsed < ps.chars.Length );
System\Xml\Core\XmlTextWriter.cs (3)
1238if ( nsIndex == nsStack.Length ) { 1448if (top == stack.Length - 1) { 1449TagInfo[] na = new TagInfo[stack.Length + 10];
System\Xml\Core\XmlUtf8RawTextWriter.cs (6)
137if ( bom.Length != 0 ) { 138Buffer.BlockCopy( bom, 0, bufBytes, 1, bom.Length ); 139bufPos += bom.Length; 140textPos += bom.Length; 546Debug.Assert( count >= 0 && index + count <= buffer.Length ); 565Debug.Assert( count >= 0 && index + count <= buffer.Length );
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (2)
408Debug.Assert( count >= 0 && index + count <= buffer.Length ); 426Debug.Assert( count >= 0 && index + count <= buffer.Length );
System\Xml\Core\XmlWellFormedWriter.cs (6)
452if (top == elemScopeStack.Length) { 946if (count > buffer.Length - index) { 975if (count > buffer.Length - index) { 1024if (count > buffer.Length - index) { 1524if (top == nsStack.Length) { 1840if (top == attrStack.Length) {
System\Xml\Core\XmlWellFormedWriterAsync.cs (4)
230if (top == elemScopeStack.Length) { 826if (count > buffer.Length - index) { 855if (count > buffer.Length - index) { 904if (count > buffer.Length - index) {
System\Xml\Core\XmlWellFormedWriterHelpers.cs (1)
445else if (items.Length == newItemIndex) {
System\Xml\Core\XsdCachingReader.cs (8)
560Debug.Assert(attIndex <= attributeEvents.Length); 566if (attIndex >= attributeEvents.Length -1 ) { //reached capacity of array, Need to increase capacity to twice the initial 567ValidatingReaderNodeData[] newAttributeEvents = new ValidatingReaderNodeData[attributeEvents.Length * 2]; 568Array.Copy(attributeEvents, 0, newAttributeEvents, 0, attributeEvents.Length); 580Debug.Assert(contentIndex <= contentEvents.Length); 587if (contentIndex >= contentEvents.Length -1 ) { //reached capacity of array, Need to increase capacity to twice the initial 588ValidatingReaderNodeData[] newContentEvents = new ValidatingReaderNodeData[contentEvents.Length * 2]; 589Array.Copy(contentEvents, 0, newContentEvents, 0, contentEvents.Length);
System\Xml\Core\XsdValidatingReader.cs (4)
1796Debug.Assert(attIndex <= attributePSVINodes.Length); 1802if (attIndex >= attributePSVINodes.Length - 1) { //reached capacity of PSVIInfo array, Need to increase capacity to twice the initial 1803AttributePSVIInfo[] newPSVINodes = new AttributePSVIInfo[attributePSVINodes.Length * 2]; 1804Array.Copy(attributePSVINodes, 0, newPSVINodes, 0, attributePSVINodes.Length);
System\Xml\Dom\DocumentSchemaValidator.cs (3)
494else if (currentIndex >= nodeSequenceToValidate.Length -1 ) { //reached capacity of array, Need to increase capacity to twice the initial 495XmlNode[] newNodeSequence = new XmlNode[nodeSequenceToValidate.Length * 2]; 496Array.Copy(nodeSequenceToValidate, 0, newNodeSequence, 0, nodeSequenceToValidate.Length);
System\Xml\Dom\DomNameTable.cs (2)
28Debug.Assert( ( entries.Length & mask ) == 0 ); // entries.Length must be a power of two 99for ( int i = 0; i < oldEntries.Length; i++ ) {
System\Xml\NameTable.cs (5)
105if (start >= key.Length || start < 0 || (long)start + len > (long)key.Length) { 159if (start >= key.Length || start < 0 || (long)start + len > (long)key.Length) { 198for ( int i = 0; i < oldEntries.Length; i++ ) {
System\Xml\Resolvers\XmlPreloadedResolver.cs (7)
75: this(array, 0, array.Length) { 183for (int i = 0; i < Xhtml10_Dtd.Length; i++) { 191Debug.Assert(Rss091_Dtd.Length == 1); 257Add(uri, new ByteArrayChunk(value, 0, value.Length)); 273if (value.Length - offset < count) { 299while ((read = value.Read(buffer, 0, buffer.Length)) > 0) { 349for (int i = 0; i < dtdSet.Length; i++) {
System\Xml\Schema\Asttree.cs (3)
490ArrayList AstArray = new ArrayList(xpath.Length); 491this.fAxisArray = new ArrayList(xpath.Length); 496for (int i = 0; i < xpath.Length; ++i) {
System\Xml\Schema\BitSet.cs (14)
39int bitsLength = bits.Length; 78if ((++ nBitSlot) == bits.Length ) { 102int bitsLength = bits.Length; 103int setLength = other.bits.Length; 118int setLength = other.bits.Length; 127for (int i = bits.Length; --i >= 0;) { 142int bitsLength = bits.Length; 143int setLength = other.bits.Length; 180for (int i = 0; i < bits.Length; i++) { 188int i = Math.Min(this.bits.Length, other.bits.Length); 203if (nRequiredLength > bits.Length) { 205int request = 2 * bits.Length; 209Array.Copy(bits, newBits, bits.Length);
System\Xml\Schema\ConstraintStruct.cs (13)
32this.tableDim = constraint.Fields.Length; 219this.dim = ((Array)obj).Length; 313return atomicValues1.Length == 1 && atomicValues1.GetValue(0).Equals(other.Value); 316return arr1.Length == 1 && arr1.GetValue(0).Equals(other.Value); 324return atomicValues2.Length == 1 && atomicValues2.GetValue(0).Equals(this.Value); 327return arr2.Length == 1 && arr2.GetValue(0).Equals(this.Value); 360this.dim = ks.Length; 376for (int i = 0; i < this.ks.Length; ++i) { 388for (int i = 0; i < this.ks.Length; i ++) { 403 for (int j = 0 ; j < atomicValues.Length ; j ++) { 408 for (int j = 0 ; j < ((Array) this.ks[i].Value).Length ; j ++) { 425for (int i = 0; i < this.ks.Length; i++) { 436for (int i = 1; i < this.ks.Length; i++) {
System\Xml\Schema\ContentValidator.cs (4)
1471for (int i = 0; i < transition.Length - 1; i ++) { 1499for (int i = 0; i < transition.Length - 1; i ++) { 1794Array.Copy(rposInfo.rangeCounters, 0, newRPosInfo.rangeCounters, 0, rposInfo.rangeCounters.Length); 1817Array.Copy(rposInfo.rangeCounters, 0, newRPosInfo.rangeCounters, 0, rposInfo.rangeCounters.Length);
System\Xml\Schema\DataTypeImplementation.cs (15)
223for (int i = 0; i < c_XsdTypes.Length; i++) { //Create all types 241for (int i = 0; i < c_XsdTypes.Length; i++) { 796int length = value1.Length; 797if (length != value2.Length) { 878int length = arr1.Length; 879if (length != arr2.Length) { 887for (int i =0; i < atomicValues1.Length; i++) { 896for (int i = 0; i < arr1.Length; i ++) { 948for (int i =0; i < valuesToCheck.Length; i++) { 1004for (int i = 0; i < splitString.Length; ++i) { 1016for (int i = 0; i < splitString.Length; ++i) { 1095for (int i = 0; i < types.Length; ++i) { 1104for (int i = 0; i < types.Length; ++i) { 1122for (int i = 0; i < types.Length; ++i) { 1157for (int i = 0; i < types.Length; ++i) {
System\Xml\Schema\DtdParser.cs (3)
1475else if ( condSectionEntityIds.Length == condSectionDepth ) { 1476int[] tmp = new int[condSectionEntityIds.Length*2]; 1477Array.Copy( condSectionEntityIds, 0, tmp, 0, condSectionEntityIds.Length );
System\Xml\Schema\DtdParserAsync.cs (3)
1086else if ( condSectionEntityIds.Length == condSectionDepth ) { 1087int[] tmp = new int[condSectionEntityIds.Length*2]; 1088Array.Copy( condSectionEntityIds, 0, tmp, 0, condSectionEntityIds.Length );
System\Xml\Schema\DtdValidator.cs (2)
304for (int i = 0; i < ss.Length; ++i) { 486for (int i = 0; i < ss.Length; ++i) {
System\Xml\Schema\FacetChecker.cs (3)
593for (int i = 0; i < c_map.Length; i++) { 1296int length = value.Length; 1347int length = values.Length;
System\Xml\Schema\NamespaceList.cs (1)
42for (int i = 0; i < splitString.Length; ++i) {
System\Xml\Schema\Preprocessor.cs (2)
1340baseTypeCount += union1.MemberTypes.Length; 1342for (int i = 0; i < qNames.Length; ++i) {
System\Xml\Schema\SchemaCollectionCompiler.cs (1)
506for (int i = 0; i < mainMemberTypes.Length; ++i) {
System\Xml\Schema\SchemaCollectionpreProcessor.cs (2)
1028baseTypeCount += union1.MemberTypes.Length; 1029for (int i = 0; i < union1.MemberTypes.Length; ++i) {
System\Xml\Schema\SchemaSetCompiler.cs (2)
102int numberOfSchemaTypes = schemaSimpleTypes.Length - 3; //skip last 2 xquery types 573for (int i = 0; i < mainMemberTypes.Length; ++i) {
System\Xml\Schema\XdrBuilder.cs (2)
433for (int i = 0; i < _CurState._Attributes.Length; i++) { 1318for (int i = 0; i < _CurState._NextStates.Length; i ++) {
System\Xml\Schema\XdrValidator.cs (2)
403for (int i = 0; i < ss.Length; ++i) { 484for (int i = 0; i < ss.Length; ++i) {
System\Xml\Schema\XmlSchemaCollection.cs (2)
243if (index == array.Length && array.IsFixedSize) { 262if (index == array.Length) {
System\Xml\Schema\XmlSchemaObjectTable.cs (2)
184Debug.Assert(array.Length >= size, "array is not big enough to hold all the items in the ICollection"); 229Debug.Assert(array.Length >= size, "array is not big enough to hold all the items in the ICollection");
System\Xml\Schema\XmlSchemaSet.cs (2)
686if (index < 0 || index > schemas.Length -1 ) 870for (int i = 0; i < locationsTable.Length; i++) {
System\Xml\Schema\XmlSchemaSimpleTypeUnion.cs (3)
49if (memberTypes != null && memberTypes.Length > 0) { //Only if the union has MemberTypes defined 51XmlQualifiedName[] newQNames = new XmlQualifiedName[memberTypes.Length]; 53for (int i = 0; i < memberTypes.Length; i++) {
System\Xml\Schema\XmlSchemaValidator.cs (12)
1103for (int j = 0; j < locations.Length - 1; j += 2) { 1679for (int i = 0; i < ss.Length; ++i) { 1809context.Constr = new ConstraintStruct[currentElementDecl.Constraints.Length]; 1811for (int i = 0; i < currentElementDecl.Constraints.Length; ++i) 1818for (int i = 0; i < context.Constr.Length; ++i) { 1829for (int j = 0; j < constraintStructures.Length; ++j) { 1871for (int j = 0; j < constraintStructures.Length; ++j) { 1916for (int i = 0; i < constraintStructures.Length; ++i) { 1954for (int i = 0; i < constraints.Length; ++i) { 2052for (int i = 0; i < vcs.Length; ++i) { 2282Debug.Assert(nsList.Length > 0); 2284for (int i = 1; i < nsList.Length; i++) {
System\Xml\Schema\XmlValueConverter.cs (2)
3320this.converters = new XmlValueConverter[memberTypes.Length]; 3321for (int i = 0; i < memberTypes.Length; i++) {
System\Xml\Schema\XsdBuilder.cs (5)
716for (int i = 0; i < this.currentEntry.Attributes.Length; i++) { 2223for (int i = 0; i < this.currentEntry.NextStates.Length; ++i) { 2270for (int i = 0; i < values.Length; i++) { 2294for (int i = 0; i < stringValues.Length; i++) { 2296for (int j = 0; j < DerivationMethodStrings.Length; j++) {
System\Xml\Schema\XsdValidator.cs (10)
270for (int i = 0; i < xsiSchemaLocation.Length - 1; i += 2) { 597for (int i = 0; i < ss.Length; ++i) { 712context.Constr = new ConstraintStruct[context.ElementDecl.Constraints.Length]; 714for (int i = 0; i < context.ElementDecl.Constraints.Length; ++i) { 720for (int i = 0; i < context.Constr.Length; ++i) { 731for (int j = 0; j < constraints.Length; ++j) { 769for (int j = 0; j < constraints.Length; ++j) { 815for (int i = 0; i < constraints.Length; ++i) { 858for (int i = 0; i < constraints.Length; ++i) { 945for (int i = 0; i < vcs.Length; ++i) {
System\Xml\Serialization\CodeExporter.cs (5)
127for ( int i = 0; i<attributes.Length; i++ ) { 198if (arrayMapping.Elements.Length == 1) { 204for (int i = 0; i < arrayMapping.Elements.Length; i++) { 218if (mapping.IsFlags && mapping.Constants.Length > 31) { 223for (int i = 0; i < mapping.Constants.Length; i++) {
System\Xml\Serialization\CodeGenerator.cs (1)
104for (int i = 0; i < argTypes.Length; i++) {
System\Xml\Serialization\CodeIdentifier.cs (2)
199for (int i = 0; i < parts.Length; i++) { 245for (int i = 0; i < names.Length; i++) {
System\Xml\Serialization\Compilation.cs (23)
55for (int i = 0; i < xmlMappings.Length; i++) { 127for (int i = 0; i < xmlMappings.Length; i++) { 164if (attrs.Length == 0) { 183if (token != null && token.Length > 0) { 262if (attrs.Length != 1) 280for (int i = 0; i < modules.Length; i++) { 316for (int i = 0; i < types.Length; i++) { 330if (types != null && types.Length > 0 && types[0] != null) { 333if (assembly != null && types.Length > 0) { 334for (int i = 0; i < types.Length; i++) { 359if (types != null && types.Length == 1 && types[0] != null) { 376string[] writeMethodNames = new string[xmlMappings.Length]; 378for (int i = 0; i < xmlMappings.Length; i++) { 390string[] readMethodNames = new string[xmlMappings.Length]; 391for (int i = 0; i < xmlMappings.Length; i++) { 398for (int i = 0; i < xmlMappings.Length; i++) { 446if (types != null && types.Length > 0 && types[0] != null) { 463if (types != null && types.Length == 1 && types[0] != null) { 478string[] writeMethodNames = new string[xmlMappings.Length]; 480for (int i = 0; i < xmlMappings.Length; i++) { 493string[] readMethodNames = new string[xmlMappings.Length]; 494for (int i = 0; i < xmlMappings.Length; i++) { 501for (int i = 0; i < xmlMappings.Length; i++) {
System\Xml\Serialization\Compiler.cs (5)
66for (int i = 0; i < ctors.Length; i++) { 68for (int j = 0; j < parms.Length; j++) { 75for (int i = 0; i < arguments.Length; i++) { 89if (typeForwardedFromAttribute.Length > 0) 246for (int i = 0; i < flags.Length; i++) {
System\Xml\Serialization\ImportContext.cs (2)
356for (int i = 0; i < memberTypes.Length; i++) { 437for (int i = 0; i < attrs.Length; i++) {
System\Xml\Serialization\Mappings.cs (15)
335sortedElements = new ElementAccessor[elements.Length]; 336Array.Copy(elements, 0, sortedElements, 0, elements.Length); 509for (int i = 0; i < members.Length; i++) { 554for (int i = 0; i < members.Length; i++) { 616get { return text != null && (elements == null || elements.Length == 0); } 620get { return (elements != null && elements.Length > 0); } 664sortedElements = new ElementAccessor[elements.Length]; 665Array.Copy(elements, 0, sortedElements, 0, elements.Length); 695if (elements != null && elements.Length > 0) return elements[0]; 703if (arrayMapping.Elements != null && arrayMapping.Elements.Length == 1) { 717if (elements != null && elements.Length == 1) { 732if (a.Length != b.Length) 734for (int i = 0; i < a.Length; i++) { 742if (Elements != null && Elements.Length > 0) {
System\Xml\Serialization\Models.cs (5)
132MemberInfo[] fieldsAndProps = new MemberInfo[members.Length]; 136for (int i = 0; i < members.Length; i++) { 142for (int i = 0; i < members.Length; i++) { 209if (parameters.Length > 0) return false; 352for (int i = 0; i < fields.Length; i++) {
System\Xml\Serialization\SchemaObjectWriter.cs (4)
181for (int i = 0; i < a.Length; i++) { 433for (int ia = 0; ia < a.Length; ia++) { 449for (int ia = 0; ia < a.Length; ia++) { 492for (int i = 0; i < o.MemberTypes.Length; i++) {
System\Xml\Serialization\SoapAttributes.cs (1)
46for (int i = 0; i < attrs.Length; i++) {
System\Xml\Serialization\SoapCodeExporter.cs (5)
150for (int i = 0; i < mapping.Members.Length; i++) { 155for (int i = 0; i < mapping.Members.Length; i++) { 159for (int i = 0; i < mapping.Members.Length; i++) { 208if (member.Elements.Length == 0) return; 265for (int i = 0; i < accessors.Length; i++)
System\Xml\Serialization\SoapReflectionImporter.cs (6)
78for (int i = 0; i < attrs.Length; i++) { 446if (mapping.Elements.Length == 1) 540for (int i = 0; i < model.Constants.Length; i++) { 570MemberMapping[] mappings = new MemberMapping[xmlReflectionMembers.Length]; 571for (int i = 0; i < mappings.Length; i++) { 718for (int i = 0; i < names.Length; i++) {
System\Xml\Serialization\SoapSchemaExporter.cs (7)
67if (memberMapping.Elements.Length > 0) 240if (accessors.Length == 0) return; 241if (accessors.Length == 1) { 248for (int i = 0; i < accessors.Length; i++) 322for (int i = 0; i < members.Length; i++) { 324if (member.Elements.Length > 0) { 362for (int i = 0; i < mapping.Constants.Length; i++) {
System\Xml\Serialization\SoapSchemaImporter.cs (2)
143for (int i = 0; i < mapping.Members.Length; i++) { 581if (isList && enumMapping.Constants.Length > 63) {
System\Xml\Serialization\TypeExtensions.cs (1)
41parameters.Length == 1 &&
System\Xml\Serialization\Types.cs (14)
395if (typeDescs.Length == 0) return null; 399for (int i = 0; i < typeDescs.Length; i++) { 408for (i = 0; i < typeDescs.Length; i++) { 411if (i == typeDescs.Length) break; 499for (int i = 0; i < unsupportedTypes.Length; i++) { 544for (int i = 0; i < unsupportedTypes.Length; i++) { 896for (int i = 0; i < arguments.Length; i++) { 939for (int i = 0; i < mapping.Members.Length; i++) { 996for (int i = 0; i < mappings.Length; ++i) { 1033for (int i = 0; i < mappings.Length; i++) 1099if (attrs != null && attrs.Length > 0) { 1172if (defaultMembers != null && defaultMembers.Length > 0) { 1174for (int i = 0; i < defaultMembers.Length; i++) { 1181if (parameters.Length == 1 && parameters[0].ParameterType == typeof(int)) {
System\Xml\Serialization\XmlAttributes.cs (2)
98for (int i = 0; i < attrs.Length; i++) { 173if (attrs.Length == 0) return null;
System\Xml\Serialization\XmlCodeExporter.cs (18)
89for (int j = 0; j < mapping.Elements.Length; j++) { 207for (int i = 0; i < values.Length; i++) { 297for (int i = 0; i < vals.Length; i++) { 303for (int i = 0; i < vals.Length; i++) { 325string[] names = new string[c.Length]; 326long[] ids = new long[c.Length]; 328for (int i = 0; i < c.Length; i++) { 338for (int i = 0; i < c.Length; i++) { 446CodeExpression[] initializers = new CodeExpression[vals.Length]; 447for (int i = 0; i < vals.Length; i++) { 525for (int i = 0; i < mapping.Members.Length; i++) { 533for (int i = 0; i < mapping.Members.Length; i++) { 538for (int i = 0; i < mapping.Members.Length; i++) { 543for (int i = 0; i < mapping.Members.Length; i++) { 597for (int i = 0; i < array.Elements.Length; i++) { 647if (member.Elements.Length == 1) { 680for (int i = 0; i < member.Elements.Length; i++) { 835for (int i = 0; i < accessors.Length; i++)
System\Xml\Serialization\Xmlcustomformatter.cs (4)
122for (int i = 0; i < toks.Length; i++) { 140if (value.Length == 0) 155for (int i = 0; i < ids.Length; i++) { 388for (int i = 0; i < parts.Length; i++) {
System\Xml\Serialization\XmlMapping.cs (1)
120for (int i = 0; i < mappings.Length; i++) {
System\Xml\Serialization\XmlMembersMapping.cs (3)
25mappings = new XmlMemberMapping[mapping.Members.Length]; 26for (int i = 0; i < mappings.Length; i++) { 65get { return mappings.Length; }
System\Xml\Serialization\XmlReflectionImporter.cs (22)
96for (int i = 0; i < attrs.Length; i++) { 208if (mapping.Elements != null && mapping.Elements.Length > 0) { 459if (attrs.Length > 0) { 776if (member.Elements != null && member.Elements.Length != 0) { 853for (int i = 0; i < names.Length; i++) { 887if (mapping.Elements.Length == 1) { 963for (int i = 0; i < mapping.Elements.Length; i++) { 1060for (int i = 0; i < model.Constants.Length; i++) { 1091MemberMapping[] mappings = new MemberMapping[xmlReflectionMembers.Length]; 1097for (int i = 0; i < mappings.Length; i++) { 1207if (xmlReflectionMember.OverrideIsNullable && member.Elements.Length > 0) 1213for (int i = 0; i < reflectionMembers.Length; i++) 1257for (int i = 0; i < xmlReflectionMembers.Length; i++) { 1270if (infos == null || infos.Length == 0) { 1280else if (infos.Length > 1) { 1720if (accessor.TypeDesc.IsArrayLike && accessor.Elements.Length > 0 && !(accessor.Elements[0].Mapping is ArrayMapping)) 1729accessor.ChoiceIdentifier.MemberIds = new string[accessor.Elements.Length]; 1730for (int i = 0; i < accessor.Elements.Length; i++) { 1734for (int j = 0; j < choiceMapping.Constants.Length; j++) { 1844for (int i = 0; i < choiceMapping.Constants.Length; i++) { 1916else if (!isSequence && member.Elements != null && member.Elements.Length > 0) { 1917for (int i = 0; i < member.Elements.Length; i++) {
System\Xml\Serialization\XmlSchemaExporter.cs (14)
58if (mapping.Members.Length == 1 && mapping.Members[0].Elements[0].Mapping is SpecialMapping) { 96else if (member.Elements == null || member.Elements.Length == 0) 591if (accessors.Length == 0) return; 592if (accessors.Length == 1) { 599for (int i = 0; i < accessors.Length; i++) 792string[] names = new string[c.Length]; 793long[] ids = new long[c.Length]; 795for (int i = 0; i < c.Length; i++) { 804for (int i = 0; i < c.Length; i++) { 926for (int i = 0; i < members.Length; i++) { 936if (member.Elements.Length > 0) { 938!(member.Elements.Length == 1 && member.Elements[0].Mapping is ArrayMapping); 983for (int i = 0; i < members.Length; i++) { 1020for (int i = 0; i < mapping.Constants.Length; i++) {
System\Xml\Serialization\XmlSchemaImporter.cs (17)
195if (mapping.Members.Length != 1 || !mapping.Members[0].Accessor.Any) 230MemberMapping[] members = new MemberMapping[names.Length]; 231for (int i = 0; i < names.Length; i++) { 606for (int i = 0; i < structMapping.Members.Length; i++) { 769Hashtable uniqueTypeDescs = new Hashtable(member.Elements.Length); 771for (int i = 0; i < member.Elements.Length; i++) { 802for (int i = 0; i < typeDescs.Length; i++) 827member.ChoiceIdentifier.MemberIds = new string[member.Elements.Length]; 829for (int i = 0; i < member.Elements.Length; i++) { 861if (arrayMapping.Elements.Length != 1) 924for (int j = 0; j < elements.Length; j++) { 964for (int i = 0; i < elements.Length; i++) { 1034if (elements.Length == 0) 1037for (int i = 0; i < elements.Length; i++) 1418if (nodes != null && nodes.Length > 0) { 1634if (isList && enumMapping.Constants.Length > 63) { 1666for (int i = 0; i < choice.Length; i++) {
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (9)
67if (scopes.Length > 0) { 108if (index < a.Length) return a; 109TypeMapping[] b = new TypeMapping[a.Length + 32]; 166if (methods != null && methods.Length != 0 && xmlMappings != null && xmlMappings.Length == methods.Length) { 167for (int i = 0; i < methods.Length; i++) { 188for (int i = 0; i < types.Length; i++) { 343for (int i = 0; i < xmlMappings.Length; i++) {
System\Xml\Serialization\XmlSerializationILGen.cs (9)
40if (scopes.Length > 0) { 121if (index < a.Length) return a; 122TypeMapping[] b = new TypeMapping[a.Length + 32]; 190if (methods != null && methods.Length != 0 && xmlMappings != null && xmlMappings.Length == methods.Length) { 198for (int i = 0; i < methods.Length; i++) { 220for (int i = 0; i < types.Length; i++) { 428for (int i = 0; i < xmlMappings.Length; i++) {
System\Xml\Serialization\XmlSerializationReader.cs (50)
485if (offset == buffer.Length) { 492bytes = r.ReadElementContentAsBase64(buffer, offset, buffer.Length-offset); 495bytes = r.ReadElementContentAsBinHex(buffer, offset, buffer.Length-offset); 504currentSize = Math.Min(block.Length, total); 960int charsLength = chars.Length; 1038for (int i = 0; i < dimensions.Length; i++) { 1313if (index < a.Length) return a; 1314Array b = Array.CreateInstance(elementType, a.Length * 2); 1325if (a.Length == length) return a; 1481for (int i = 0; i < array.Length; i++) { 2309for (int j = 0; j < mappings.Length; j++) { 2343Writer.Write(mappings.Length.ToString(CultureInfo.InvariantCulture)); 2362for (int i = 0; i < mappings.Length; i++) { 2376for (int j = 0; j < mappings.Length; j++) { 2393for (int j = 0; j < mapping.Elements.Length; j++) { 2405else if (mapping.TypeDesc.IsArrayLike && !(mapping.Elements.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping)) { 2418if (members.Length > 0 && members[0].Mapping.IsReturnValue) Writer.WriteLine("IsReturnValue = true;"); 2420WriteParamsRead(mappings.Length); 2470for (int i = 0; i < mappings.Length; i++) { 2504Writer.Write(mappings.Length.ToString(CultureInfo.InvariantCulture)); 2520Member[] members = new Member[mappings.Length]; 2521for (int i = 0; i < mappings.Length; i++) { 2535for (int j = 0; j < mappings.Length; j++) { 2548if (members.Length > 0 && members[0].Mapping.IsReturnValue) Writer.WriteLine("IsReturnValue = true;"); 2554WriteParamsRead(mappings.Length); 2748for (int i = 0; i < constants.Length; i++) { 2838for (int i = 0; i < constants.Length; i++) { 3092ArrayList arraysToDeclareList = new ArrayList(mappings.Length); 3093ArrayList arraysToSetList = new ArrayList(mappings.Length); 3094ArrayList allMembersList = new ArrayList(mappings.Length); 3096for (int i = 0; i < mappings.Length; i++) { 3112for (int j = 0; j < mapping.Elements.Length; j++) { 3124if (mapping.Attribute == null && mapping.Elements.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping) { 3135if (mapping.TypeDesc.IsArrayLike && !(mapping.Elements.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping)) { 3154WriteParamsRead(mappings.Length); 3221members = new Member[mappings.Length]; 3222for (int i = 0; i < mappings.Length; i++) { 3239WriteParamsRead(mappings.Length); 3273for (int i = 0; i < members.Length; i++) { 3436for (int i = 0; i < members.Length; i++) { 3602for (int i = 0; i < members.Length; i++) { 3604if (member.Mapping.Elements.Length == 0) 3633for (int i = 0; i < members.Length; i++) { 3701for (int i = 0; i < members.Length; i++) { 3712for (int j = 0; j < elements.Length; j++) { 3860for (int i = 0; i < elements.Length; i++) { 3874for (int i = 0; i < members.Length; i++) { 3891for (int i = 0; i < members.Length; i++) { 3904for (int j = 0; j < elements.Length; j++) { 4064for (int i = 0; i < members.Length; i++) {
System\Xml\Serialization\XmlSerializationReaderILGen.cs (29)
379for (int j = 0; j < mappings.Length; j++) { 435ilg.NewArray(typeof(object), mappings.Length); 453for (int i = 0; i < mappings.Length; i++) { 467for (int j = 0; j < mappings.Length; j++) { 484for (int j = 0; j < mapping.Elements.Length; j++) { 496else if (mapping.TypeDesc.IsArrayLike && !(mapping.Elements.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping)) { 509if (members.Length > 0 && members[0].Mapping.IsReturnValue) { 522WriteParamsRead(mappings.Length); 630for (int i = 0; i < mappings.Length; i++) { 1019for (int i = 0; i < constants.Length; i++) { 1104for (int i = 0; i < constants.Length; i++) { 1566ArrayList arraysToDeclareList = new ArrayList(mappings.Length); 1567ArrayList arraysToSetList = new ArrayList(mappings.Length); 1568ArrayList allMembersList = new ArrayList(mappings.Length); 1570for (int i = 0; i < mappings.Length; i++) { 1586for (int j = 0; j < mapping.Elements.Length; j++) { 1598if (mapping.Attribute == null && mapping.Elements.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping) { 1609if (mapping.TypeDesc.IsArrayLike && !(mapping.Elements.Length == 1 && mapping.Elements[0].Mapping is ArrayMapping)) { 1628WriteParamsRead(mappings.Length); 1865for (int i = 0; i < members.Length; i++) { 2182for (int i = 0; i < members.Length; i++) { 2251for (int i = 0; i < members.Length; i++) { 2262for (int j = 0; j < elements.Length; j++) { 2484for (int i = 0; i < elements.Length; i++) { 2498for (int i = 0; i < members.Length; i++) { 2510for (int i = 0; i < members.Length; i++) { 2523for (int j = 0; j < elements.Length; j++) { 2654for (int i = 0; i < members.Length; i++) { 2834Debug.Assert(!localA.LocalType.IsGenericType || (localA.LocalType.GetGenericArguments().Length == 1 && localA.LocalType.GetGenericArguments()[0].IsAssignableFrom(elementType)));
System\Xml\Serialization\XmlSerializationWriter.cs (41)
325for (int i=0;i<xmlNodes.Length;i++){ 351XmlCustomFormatter.WriteArrayBase64(w, (byte[])o, 0,((byte[])o).Length); 881XmlCustomFormatter.WriteArrayBase64(w, value, 0, value.Length); 897XmlCustomFormatter.WriteArrayBase64(w, value, 0, value.Length); 916XmlCustomFormatter.WriteArrayBase64(w, value, 0, value.Length); 1000XmlCustomFormatter.WriteArrayBase64(w, value, 0, value.Length); 1121int arrayLength = a.Length; 1493for (int i = 0; i < values.Length; i++) { 1644for (int i = 0; i < mapping.Members.Length; i++) { 1654for (int j = 0; j < mapping.Members.Length; j++) { 1690for (int i = 0; i < mapping.Members.Length; i++) { 1702for (int j = 0; j < mapping.Members.Length; j++) { 1728for (int j = 0; j < mapping.Members.Length; j++) { 1745if (isRpc && member.IsReturnValue && member.Elements.Length > 0) { 1772Writer.Write(mapping.Members.Length.ToString(CultureInfo.InvariantCulture)); 1776WriteExtraMembers(mapping.Members.Length.ToString(CultureInfo.InvariantCulture), "pLength"); 1853if (constants.Length > 0) { 1860for (int i = 0; i < constants.Length; i++) { 1877for (int i = 0; i < constants.Length; i++) { 1887for (int i = 0; i < constants.Length; i++) { 2120for (int i = 0; i < members.Length; i++) { 2153for (int i = 0; i < members.Length; i++) { 2158bool checkShouldPersist = m.CheckShouldPersist && (m.Elements.Length > 0 || m.Text != null); 2375!(elements.Length == 1 && elements[0].Mapping is ArrayMapping)) 2383if (elements.Length == 0 && text == null) return; 2487int count = elements.Length + (text == null ? 0 : 1); 2510if (elements.Length == 0 && text == null) return; 2511if (elements.Length == 1 && text == null) { 2531for (int i = 0; i < elements.Length; i++) { 2589if (elements.Length - anyCount > 0) Writer.Write("else "); 2677if (elements.Length > 0) { 2697if (elements.Length > 0) { 3144for (int i = 0; i < members.Length; i++) { 3192for (int i = 0; i < choiceMapping.Constants.Length; i++) { 3269for (int i = 0; i < parameterTypes.Length; i++) 3432for (int i = 0; i < structMapping.Members.Length; i++) { 3451for (int i = 0; i < enumFields.Length; i++) { 3492for (int i = 0; i < memberInfos.Length; i++) { 3535for(int i=0;i<paramTypes.Length;i++){ 3537if(i < (paramTypes.Length-1)) 3593for(int i=0;i<args.Length;i++){
System\Xml\Serialization\XmlSerializationWriterILGen.cs (27)
189for (int i = 0; i < values.Length; i++) { 379for (int i = 0; i < mapping.Members.Length; i++) { 389for (int j = 0; j < mapping.Members.Length; j++) { 427for (int i = 0; i < mapping.Members.Length; i++) { 439for (int j = 0; j < mapping.Members.Length; j++) { 469for (int j = 0; j < mapping.Members.Length; j++) { 572if (constants.Length > 0) { 582for (int i = 0; i < constants.Length; i++) { 607ilg.NewArray(typeof(String), constants.Length); 609for (int i = 0; i < constants.Length; i++) { 618ilg.NewArray(typeof(long), constants.Length); 621for (int i = 0; i < constants.Length; i++) { 1037for (int i = 0; i < members.Length; i++) { 1062for (int i = 0; i < members.Length; i++) { 1067bool checkShouldPersist = m.CheckShouldPersist && (m.Elements.Length > 0 || m.Text != null); 1366!(elements.Length == 1 && elements[0].Mapping is ArrayMapping)) 1375if (elements.Length == 0 && text == null) return; 1503int count = elements.Length + (text == null ? 0 : 1); 1519if (elements.Length == 0 && text == null) return; 1520if (elements.Length == 1 && text == null) { 1540for (int i = 0; i < elements.Length; i++) { 1596if (elements.Length - anyCount > 0) { // NOOP 1602if (elements.Length - anyCount > 0) ilg.InitElseIf(); 1752if (elements.Length > 0) { 1764if (elements.Length > 0) { 2144for (int i = 0; i < members.Length; i++) { 2175for (int i = 0; i < choiceMapping.Constants.Length; i++) {
System\Xml\Serialization\XmlSerializer.cs (15)
237for (int i = 0; i < extraTypes.Length; i++) 472if (mappings == null || mappings.Length == 0) return new XmlSerializer[0]; 483XmlSerializer[] serializers = new XmlSerializer[mappings.Length]; 487for (int i = 0; i < serializers.Length; i++) { 501XmlSerializer[] serializers = new XmlSerializer[mappings.Length]; 502for (int i = 0; i < serializers.Length; i++) 509XmlSerializer[] serializers = new XmlSerializer[mappings.Length]; 522for (int i = 0; i < mappings.Length; i++) { 560if (mappings == null || mappings.Length == 0) return new XmlSerializer[0]; 566XmlSerializer[] serializers = new XmlSerializer[mappings.Length]; 567for (int i = 0; i < serializers.Length; i++) { 596if (types == null || types.Length == 0) 607for (int i = 0; i < types.Length; i ++) { 629XmlTypeMapping[] mappings = new XmlTypeMapping[types.Length]; 630for (int i = 0; i < types.Length; i++) {
System\Xml\Serialization\XmlSerializerFactory.cs (1)
136for (int i = 0; i < extraTypes.Length; i++)
System\Xml\Serialization\XmlSerializerNamespaces.cs (1)
45for (int i = 0; i < namespaces.Length; i++) {
System\Xml\XmlCharType.cs (2)
726Debug.Assert( startPos + len <= chars.Length ); 727Debug.Assert( startPos <= chars.Length );
System\Xml\XmlConvert.cs (1)
308return BinHexEncoder.Encode(inArray, 0, inArray.Length);
System\Xml\XmlEncoding.cs (2)
197return chars.Length * 4; 229return bytes.Length / 4;
System\Xml\XmlException.cs (3)
240return BuildCharExceptionArgs(data, data.Length, invCharIndex); 244Debug.Assert(invCharIndex < data.Length); 246Debug.Assert(length <= data.Length);
System\Xml\XmlNamespacemanager.cs (3)
155if ( lastDecl == nsdecls.Length - 1 ) { 156NamespaceDeclaration[] newNsdecls = new NamespaceDeclaration[nsdecls.Length * 2]; 157Array.Copy( nsdecls, 0, newNsdecls, 0, nsdecls.Length );
System\Xml\XPath\Internal\FunctionQuery.cs (1)
27for (int i = 0; i < tmp.Length; i ++) {
System\Xml\XPath\Internal\IdQuery.cs (1)
50for (int idx = 0; idx < ids.Length; idx++) {
System\Xml\XPath\Internal\SortQuery.cs (6)
148Debug.Assert(this.expressions.Length == this.comparers.Length); 149Debug.Assert(0 < this.expressions.Length); 150Debug.Assert(0 <= numSorts && numSorts <= this.expressions.Length); 152if (numSorts == this.expressions.Length) { 162Debug.Assert(numSorts < this.expressions.Length);
System\Xml\XPath\Internal\StringFunctions.cs (1)
30for (int i = 0; i < tmp.Length; i ++) {
System\Xml\XPath\Internal\XPathMultyIterator.cs (9)
24for (int i = 0; i < this.arr.Length; i ++) { 31for (int i = 0; i < arr.Length; i ++) { 34for (int i = arr.Length - 2; firstNotEmpty <= i; ) { 92Debug.Assert(firstNotEmpty <= item && item < arr.Length); 94while (item + 1 < arr.Length) { 118for (int i = 0; i < arr.Length; i ++) { 137Debug.Assert(firstNotEmpty < arr.Length, "MoveNext() returned false"); 146if (firstNotEmpty >= arr.Length) { 153if (firstNotEmpty >= arr.Length) {
System\Xml\XPath\Internal\XPathParser.cs (2)
482if (pi.ArgTypes.Length < argCount) { 483argCount = pi.ArgTypes.Length; // argument we have the type specified (can be < pi.Minargs)
System\Xml\Xslt\XslCompiledTransform.cs (1)
262GeneratedCodeAttribute generatedCodeAttr = customAttrs.Length > 0 ? (GeneratedCodeAttribute)customAttrs[0] : null;
System.Xml.Linq (18)
System\Xml\Linq\XLinq.cs (18)
670if (numEntries < buckets.Length) 677for (int bucketIdx = 0; bucketIdx < buckets.Length; bucketIdx++) { 704if (newSize < buckets.Length / 2) { 705newSize = buckets.Length; 708newSize = buckets.Length * 2; 720for (int bucketIdx = 0; bucketIdx < buckets.Length; bucketIdx++) { 782if (newEntry < 0 || newEntry >= buckets.Length) 807entryIndex = Interlocked.CompareExchange(ref buckets[hashCode & (buckets.Length - 1)], newEntry, EndOfList); 841currentIndex = buckets[hashCode & (buckets.Length - 1)]; 863buckets[hashCode & (buckets.Length - 1)] = currentIndex; 995while (i < a.Length && a[i] != null) i++; 996if (i == a.Length) { 1022for (int i = 0; i < a.Length; i++) { 1046for (int i = 0; i < a.Length; i++) { 1074for (int i = 0; i < a.Length; i++) { 1097for (int i = 0; i < a.Length; i++) { 1120while (i < a.Length) { 1148while (i < a.Length) {
UIAutomationClient (67)
MS\Internal\Automation\ClientEventManager.cs (2)
153int[] propertiesAsInts = new int[properties.Length]; 154for (int i = 0; i < properties.Length; i++)
MS\Internal\Automation\MenuTracker.cs (2)
85Debug.Assert(handlers.Length <= 1, "handlers.Length"); 86if( handlers.Length > 0 )
MS\Internal\Automation\Misc.cs (8)
61int l = a1.Length; 63if (l != a2.Length) 94totalLength += a.Length; 102int l = a.Length; 115if (a.Length == 0) 123for (int src = 1; src < a.Length; src++) 135if (newLength == a.Length) 725for (int source = 0; source < ach.Length; source++)
MS\Internal\Automation\ProxyManager.cs (4)
115for( int i = 0 ; i < _pseudoProxies.Length ; i++ ) 734for( int i = proxyInfo.Length - 1; i >= 0; i-- ) 741for( int j = 0 ; j < _pseudoProxyClassNames.Length ; j++ ) 811if ( index >= QUERYCLASSNAME_BASE && index - QUERYCLASSNAME_BASE < _classNames.Length )
MS\Internal\Automation\Schema.cs (2)
204AutomationElement[] els = new AutomationElement[objArr.Length]; 205for (int i = 0; i < objArr.Length; i++)
MS\Internal\Automation\UiaCoreAPI.cs (22)
153IntPtr dataStart = Marshal.AllocCoTaskMem((properties.Length + patterns.Length) * sizeof(int)); 158_propertyCount = properties.Length; 159for (int i = 0; i < properties.Length; i++) 165_patternCount = patterns.Length; 166for (int i = 0; i < patterns.Length; i++) 235for (int propertyIndex = 0; propertyIndex < request.Properties.Length; propertyIndex++) 259int patternBaseIndex = 1 + request.Properties.Length; 260for (int patternIndex = 0; patternIndex < request.Patterns.Length; patternIndex++) 469Debug.Assert(offsets.Length == treeStructures.Length); 472UiaCacheResponse[] responses = new UiaCacheResponse[treeStructures.Length]; 475for (int i = 0; i < treeStructures.Length; i++) 478int endRow = i < treeStructures.Length - 1 ? offsets[i + 1] : requestedData.GetLength(0); 612CheckError(RawUiaAddEvent(hnode, eventId, callback, scope, properties, properties == null ? 0 : properties.Length, miniCR, out hevent)); 886SafeTextRangeHandle[] result = new SafeTextRangeHandle[arr.Length]; 887for (int i = 0; i < arr.Length; i++) 902SafeTextRangeHandle[] result = new SafeTextRangeHandle[arr.Length]; 903for (int i = 0; i < arr.Length; i++) 1029int count = doubles.Length / 4; 1030int leftover = doubles.Length % 4; 1129if (arr == null || arr.Length != 2)
MS\Internal\Automation\WindowHideOrCloseTracker.cs (2)
98Debug.Assert(handlers.Length <= 1, "handlers.Length"); 99if ( handlers.Length > 0 )
MS\Internal\Automation\WindowShowOrOpenTracker.cs (2)
97Debug.Assert(handlers.Length <= 1, "handlers.Length"); 98if (handlers.Length > 0)
MS\Internal\Automation\WinEventWrap.cs (3)
45Debug.Assert(eventIds != null && eventIds.Length > 0, "eventIds is invalid"); 47_hHooks = new IntPtr[_eventIds.Length]; 148for (int i=0;i<_hHooks.Length;i++)
System\Windows\Automation\AndCondition.cs (2)
49Misc.ValidateArgument( conditions.Length >= 2, SRID.MustBeAtLeastTwoConditions ); 61SetMarshalData(new UiaCoreApi.UiaAndOrCondition(UiaCoreApi.ConditionType.And, _conditionArrayHandle.DangerousGetHandle(), _conditions.Length));
System\Windows\Automation\Automation.cs (1)
272if (properties.Length == 0)
System\Windows\Automation\AutomationElement.cs (8)
332for (int i = 0; i < id.Length; i++) 811if (responses.Length < 1) 816Debug.Assert(responses.Length == 1); 836AutomationElement[] els = new AutomationElement[responses.Length]; 838for( int i = 0 ; i < responses.Length ; i ++ ) 868if (patterns != null && patterns.Length > 0) 1325int dataOffset = isProperty ? 1 : 1 + _request.Properties.Length; 1326for (int i = 0; i < refTable.Length; i++)
System\Windows\Automation\AutomationElementCollection.cs (1)
101return _elements.Length;
System\Windows\Automation\Condition.cs (2)
80IntPtr mem = Marshal.AllocCoTaskMem(conditions.Length * intPtrSize); 89for (int i = 0; i < conditions.Length; i++)
System\Windows\Automation\OrCondition.cs (2)
49Misc.ValidateArgument( conditions.Length >= 2, SRID.MustBeAtLeastTwoConditions ); 61SetMarshalData(new UiaCoreApi.UiaAndOrCondition(UiaCoreApi.ConditionType.Or, _conditionArrayHandle.DangerousGetHandle(), _conditions.Length));
System\Windows\Automation\Text\TextRange.cs (4)
93TextPatternRange[] ranges = new TextPatternRange[hTextRanges.Length]; 94for (int i = 0; i < hTextRanges.Length; i++) 418AutomationElement[] wrappedChildren = new AutomationElement[rawChildren.Length]; 419for (int i = 0; i < rawChildren.Length; i++)
UIAutomationClientsideProviders (69)
MS\Internal\AutomationProxies\Accessible.cs (6)
580if (accChildren != null && 0 <= index && index < accChildren.Length) 658children = new Accessible[objs.Length]; 659for (int i=0;i<objs.Length;i++) 1017if (index >= children.Length) 1018index = children.Length - 1; 1044for (int i=0;i<children.Length;i++)
MS\Internal\AutomationProxies\EventManager.cs (1)
491if (currentRanges != null && currentRanges.Length > 0)
MS\Internal\AutomationProxies\Misc.cs (7)
75int len = baseID.Length; 87double[] doubles = new double[rectArray.Length * 4]; 89for (int i = 0; i < rectArray.Length; i++) 150int l = a1.Length; 152if (l != a2.Length) 1085if (index >= QUERYCLASSNAME_BASE && index - QUERYCLASSNAME_BASE < _asClassNames.Length) 1670for (int source = 0; source < ach.Length; source++)
MS\Internal\AutomationProxies\MSAANativeProvider.cs (8)
285properties = new AutomationProperty[propertiesAsInts.Length]; 286for (int i = 0; i < propertiesAsInts.Length; i++) 303properties = new AutomationProperty[propertiesAsInts.Length]; 304for (int i = 0; i < propertiesAsInts.Length; i++) 415rval = new int[parentId.Length + 1]; 426rval[rval.Length - 1] = _acc.AccessibleChildrenIndex(Parent._acc); 600IRawElementProviderSimple [] rawEPS= new IRawElementProviderSimple[accessibles.Length]; 601for (int i=0;i<accessibles.Length;i++)
MS\Internal\AutomationProxies\MSAAWinEventWrap.cs (1)
104for (int i=0;i<_hHooks.Length;i++)
MS\Internal\AutomationProxies\ProxyHwnd.cs (5)
318properties = new AutomationProperty[propertiesAsInts.Length]; 319for (int i = 0; i < propertiesAsInts.Length; i++) 336properties = new AutomationProperty[propertiesAsInts.Length]; 337for (int i = 0; i < propertiesAsInts.Length; i++) 544for (int i = 0; evtId != null && i < evtId.Length; i++)
MS\Internal\AutomationProxies\WindowsHyperlink.cs (3)
310for (int source = 0; source < ach.Length; source++) 314if (source + 1 < ach.Length && ach[source] == '<' && (ach[source + 1] == 'A' || ach[source + 1] == 'a')) 318else if (source + 2 < ach.Length && ach[source] == '<' && ach[source + 1] == '/' && (ach[source + 2] == 'A' || ach[source + 2] == 'a'))
MS\Internal\AutomationProxies\WindowsIPAddress.cs (2)
142if (abOctet.Length == 4) 239if (strIPAddresses.Length != 4)
MS\Internal\AutomationProxies\WindowsListBox.cs (1)
471WinEventTracker.RemoveToNotificationList(hwnd, aEvtIdProperties, null, aEvtIdProperties.Length);
MS\Internal\AutomationProxies\WindowsListView.cs (12)
248int groupsCount = groupIds.Length; 251if (groupIds.Length == 0) 286int groupsCount = groupIds.Length; 289if (groupIds.Length == 0) 360if (groupIds.Length == 0) 387int groupsCount = groupIds.Length; 390if (groupIds.Length == 0) 503for (int i = 0, c = aidProps.Length; i < c; i++) 532for (int i = 0, c = aidProps.Length; i < c; i++) 837if ( viewID < 0 || viewID > ListViewViews.Length ) 846if ( viewID < 0 || viewID > ListViewViews.Length ) 1608if (groupIds.Length == 0)
MS\Internal\AutomationProxies\WindowsListViewGroup.cs (4)
264if (groupInfo._count <= 0 || groupInfo._count > items.Length) 278if (groupInfo._count <= 0 || groupInfo._count > items.Length) 323if (groupInfo._count <= 0 || groupInfo._count > items.Length) 525if (groupManagerInfo._count <= 0 || groupManagerInfo._count >= items.Length)
MS\Internal\AutomationProxies\WindowsListViewGroupHelper.cs (4)
814System.Diagnostics.Debug.Assert(min <= _items.Length, "EnsureCapacity: min is > _items.Length"); 815if (min == _items.Length) 819_items = new int[temp.Length * 2]; 820Array.Copy(temp, _items, temp.Length);
MS\Internal\AutomationProxies\WindowsListViewItem.cs (2)
131for (index = 0; index < groupIds.Length && windowsListViewGroup.ID != groupIds[index]; index++); 133if (index >= groupIds.Length)
MS\Internal\AutomationProxies\WindowsMenu.cs (5)
476WinEventTracker.AddToNotificationList(IntPtr.Zero, new WinEventTracker.ProxyRaiseEvents(MenuEvents), _menuEvents, _menuEvents.Length); 497WinEventTracker.RemoveToNotificationList (IntPtr.Zero, _menuEvents, new WinEventTracker.ProxyRaiseEvents (MenuEvents), _menuEvents.Length); 1080int count = aidProps.Length; 1379for (int i = 0; i < keywordsAccelerators.Length; i++) 2793for (int i = 0; i < keywordsAccelerators.Length; i++)
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
432if (a1.Length != a2.Length || a1.Rank != a2.Rank)
MS\Internal\AutomationProxies\WindowsTab.cs (2)
313&& aidProps.Length > 0 335&& aidProps.Length > 0
MS\Internal\AutomationProxies\WindowsTooltip.cs (3)
108WinEventTracker.AddToNotificationList( IntPtr.Zero, new WinEventTracker.ProxyRaiseEvents( OnToolTipEvents ), _toolTipEventIds, _toolTipEventIds.Length ); 125WinEventTracker.RemoveToNotificationList( IntPtr.Zero, _toolTipEventIds, new WinEventTracker.ProxyRaiseEvents( OnToolTipEvents ), _toolTipEventIds.Length ); 271for (scan = rects.Length - 1; scan >= 0; scan--)
MS\Internal\AutomationProxies\WinEventTracker.cs (1)
606private static Hashtable[] _ahp = new Hashtable[_eventIdToIndex.Length];
WindowsBase (224)
Base\MS\Internal\AssemblyHelper.cs (3)
62int n = names.Length; 76for (int i=assemblies.Length-1; i>=0; --i) 263for (int i=_records.Length-1; i>=0; --i)
Base\MS\Internal\AvTrace.cs (6)
290if (parameters != null && labels != null && labels.Length > 0) 293for( ; i < labels.Length && j < parameters.Length; i++, j++ ) 338if( TraceExtraMessages != null && j < parameters.Length) 559object[] argstrs = new object[args.Length]; 560for (int i = 0; i < args.Length; ++i)
Base\MS\Internal\BaseHashHelper.cs (2)
78HybridDictionary dictionary = new HybridDictionary(types.Length); 79for (int i=0; i<types.Length; ++i)
Base\MS\Internal\ComponentModel\APCustomTypeDescriptor.cs (1)
131filteredProps = new List<PropertyDescriptor>(registeredProperties.Length);
Base\MS\Internal\ComponentModel\AttachedPropertyMethodSelector.cs (6)
36if (match.Length > 1) 46for(int idx = 0; idx < match.Length; idx++) 65if (parameters.Length != types.Length) 75for(int idx = 0; idx < parameters.Length; idx++) 94for(int idx = 0; idx < parameters.Length; idx++)
Base\MS\Internal\ComponentModel\AttachInfo.cs (9)
83for (int idx = 0; idx < attributes.Length; idx++) 92if (!seenTypeAttribute && attributes.Length > 0) 94browsableAttributes = new AttachedPropertyBrowsableAttribute[attributes.Length + 1]; 95for(int idx = 0; idx < attributes.Length; idx++) 99browsableAttributes[attributes.Length] = ParameterTypeAttribute; 103browsableAttributes = new AttachedPropertyBrowsableAttribute[attributes.Length]; 104for(int idx = 0; idx < attributes.Length; idx++) 144Debug.Assert(parameters != null && parameters.Length == 1, "GetAttachedPropertyMethod should return a method with one parameter."); 180numAttrs = attrs.Length;
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (15)
475if (typeAttrArray != null && typeAttrArray.Length > 0) 478Attribute[] mergedAttrArray = new Attribute[attrArray.Length + typeAttrArray.Length]; 479Array.Copy(attrArray, mergedAttrArray, attrArray.Length); 480Array.Copy(typeAttrArray, 0, mergedAttrArray, attrArray.Length, typeAttrArray.Length); 503if (milist.Length > 0 && milist[0] != null) 520Attribute[] newArray = new Attribute[addAttrs.Length + paAttrs.Length]; 522paAttrs.CopyTo(newArray, addAttrs.Length); 535Attribute[] newArray = new Attribute[addAttrs.Length + attrArray.Length]; 537addAttrs.CopyTo(newArray, attrArray.Length); 738for (int idx = 0; idx < attrArray.Length / 2; idx++) 740int swap = attrArray.Length - idx - 1;
Base\MS\Internal\ContentType.cs (1)
431if (splitBasedOnForwardSlash.Length != 2)
Base\MS\Internal\IO\Packaging\Certificate.cs (1)
136s.Write(byteArray, 0, byteArray.Length);
Base\MS\Internal\IO\Packaging\CompoundFile\CompoundFileDeflateTransform.cs (11)
133zStream.AvailOut = (uint)sinkBuf.Length; // this is the number of bytes free in pOutBuf and is updated by ums_deflate call 144int decompressedSize = sinkBuf.Length - (int) zStream.AvailOut; 274while ((bytesRead = PackagingUtilities.ReliableRead(source, sourceBuf, 0, sourceBuf.Length)) > 0) 284zStream.AvailOut = (uint)sinkBuf.Length; // this is the number of bytes free in pOutBuf and is updated by ums_deflate call 292int compressedSize = sinkBuf.Length - (int) zStream.AvailOut; 303destStreamLength += _headerBuf.Length; 361if (buffer.Length < size) 364size = Math.Max(size, buffer.Length + (buffer.Length >> 1)); // fast Length * 1.5 391int bytesRead = PackagingUtilities.ReliableRead(source, _headerBuf, 0, _headerBuf.Length); 394if (bytesRead < _headerBuf.Length)
Base\MS\Internal\IO\Packaging\CompoundFile\CompoundFileReference.cs (3)
131int entries = segments.Length; 141for (int i = 0; i < segments.Length - (streamReference == null ? 0 : 1); i++) 161bytes += ContainerUtilities.WriteByteLengthPrefixedDWordPaddedUnicodeString(writer, segments[segments.Length - 1]);
Base\MS\Internal\IO\Packaging\CompoundFile\CompoundFileStorageReference.cs (1)
155if (strings.Length == 0)
Base\MS\Internal\IO\Packaging\CompoundFile\CompoundFileStreamReference.cs (1)
161if (strings.Length == 0)
Base\MS\Internal\IO\Packaging\CompoundFile\ContainerUtilities.cs (1)
268if (padding.Length != padLength)
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptedStream.cs (7)
349(_baseStream, prefixData, 0, prefixData.Length); 669_baseStream.Write(prefixData, 0, prefixData.Length); 809if ((clearTextBuffer == null) || (clearTextBuffer.Length < totalByteCount)) 847Debug.Assert(checked(offset + count <= buffer.Length)); 875Debug.Assert(buffer.Length > 0); 877Debug.Assert(checked(offset + count <= buffer.Length)); 889if (_randomBuffer == null || (_randomBuffer.Length < count))
Base\MS\Internal\IO\Packaging\CompoundFile\RightsManagementEncryptionTransform.cs (8)
270checked { headerLen += _publishLicenseHeaderExtraBytes.Length; } 279_publishLicenseHeaderExtraBytes.Length 941Int32 utf8ByteLength = utf8Bytes.Length; 1045int numBytes = bytes.Length; 1293if (bytes.Length != length) 1300SkipDwordPadding(bytes.Length, reader); 1325if (bytes.Length != CU.Int32Size - extra) 1363Int32 length = bytes.Length;
Base\MS\Internal\IO\Packaging\CompressStream.cs (1)
646long n = Math.Min(bytesToSeek, buf.Length);
Base\MS\Internal\IO\Packaging\DeflateEmulationStream.cs (2)
51bytesRead = deflateStream.Read(Buffer, 0, Buffer.Length); 75bytesRead = source.Read(Buffer, 0, Buffer.Length);
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (1)
786int bytes = (int)Math.Min(toSkip, zeroBytesBuf.Length);
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (1)
728int nLen = byteArray.Length;
Base\MS\Internal\IO\Packaging\XmlStringTable.cs (1)
36Debug.Assert((int)ID._IllegalValue == _table.Length - 1, "ID enumeration should match TableEntry array - verify edits are matching");
Base\MS\Internal\IO\Zip\Crc32.cs (3)
59int bytesRead = stream.Read(buffer,0,buffer.Length); 75Debug.Assert((offset >=0) && (count >=0) && (offset+count <= buffer.Length)); 103for(uint tablePosition=0; tablePosition < _Crc32Table.Length; tablePosition++)
Base\MS\Internal\IO\Zip\ZipIOBlockManager.cs (19)
371int subBlockSize = (int)Math.Min((long)tempBuffer.Length, moveBlockSize - bytesMoved); 565Debug.Assert(checked(buffer.Length-offset) >= sizeof(Int16)); 568Array.Copy(tempBuffer, 0, buffer, offset, tempBuffer.Length); 570return offset + tempBuffer.Length; 575Debug.Assert(checked(buffer.Length-offset) >= sizeof(Int32)); 578Array.Copy(tempBuffer, 0, buffer, offset, tempBuffer.Length); 580return offset + tempBuffer.Length; 585Debug.Assert(checked(buffer.Length-offset) >= sizeof(Int64)); 588Array.Copy(tempBuffer, 0, buffer, offset, tempBuffer.Length); 590return offset + tempBuffer.Length; 595Debug.Assert(checked(buffer.Length-offset) >= sizeof(UInt16)); 598Array.Copy(tempBuffer, 0, buffer, offset, tempBuffer.Length); 600return offset + tempBuffer.Length; 605Debug.Assert(checked(buffer.Length-offset) >= sizeof(UInt32)); 608Array.Copy(tempBuffer, 0, buffer, offset, tempBuffer.Length); 610return offset + tempBuffer.Length; 615Debug.Assert(checked(buffer.Length-offset) >= sizeof(UInt64)); 618Array.Copy(tempBuffer, 0, buffer, offset, tempBuffer.Length); 620return offset + tempBuffer.Length;
Base\MS\Internal\IO\Zip\ZipIOCentralDirectoryFileHeader.cs (2)
477if (_fileNameLength != _fileName.Length) 497if (_fileCommentLength != _fileComment.Length)
Base\MS\Internal\IO\Zip\ZipIOEndOfCentralDirectoryBlock.cs (5)
323int bytesRead = PackagingUtilities.ReliableRead(archiveStream, buffer, 0, buffer.Length); 348Debug.Assert(buffer.Length >= _fixedMinimalRecordSize); // the end of central directory record must fit in there 350Debug.Assert(pos <= buffer.Length - _fixedMinimalRecordSize); // enough space to fit the record after pos 355for(int i = 0; i<_signatureBuffer.Length; i++) 414if (_zipFileCommentLength != _zipFileComment.Length)
Base\MS\Internal\IO\Zip\ZipIOExtraFieldElement.cs (3)
107if (_data.Length != size) 132Debug.Assert(_size == _data.Length); 196_size = checked((UInt16) data.Length);
Base\MS\Internal\IO\Zip\ZipIOExtraFieldPaddingElement.cs (2)
80if (sniffiedBytes.Length < _signatureSize) 85Debug.Assert(sniffiedBytes.Length == _signatureSize);
Base\MS\Internal\IO\Zip\ZipIOLocalFileHeader.cs (3)
55if (asciiName.Length > ZipIOBlockManager.MaxFileNameSize) 86header._fileNameLength = (UInt16)asciiName.Length; 383if (_fileNameLength != _fileName.Length)
Base\MS\Internal\IO\Zip\ZipIOZip64EndOfCentralDirectoryBlock.cs (2)
100Debug.Assert(_zip64ExtensibleDataSector.Length == 401sizeOfZip64ExtensibleDataSector = (ulong)_zip64ExtensibleDataSector.Length;
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (3)
1167return Encoding.Unicode.GetString(dataBuffer, 0, dataBuffer.Length - 2); 1964for (int i = 0; i < _rightEnums.Length; i++) 1978for (int i = 0; i < _rightEnums.Length; i++)
Base\MS\Internal\Threading\ExceptionWrapper.cs (2)
65if (argsArr == null || argsArr.Length == 0) 69else if(argsArr.Length == 1)
Base\MS\Internal\WeakEventTable.cs (1)
312for (int i=keys.Length-1; i>=0; --i)
Base\System\Collections\ObjectModel\WeakReadOnlyCollection.cs (1)
168if (array.Length - index < Count) {
Base\System\ComponentModel\PropertyChangedEventManager.cs (1)
153for (int i=keys.Length-1; i>=0; --i)
Base\System\IO\Packaging\CompoundFile\DataSpaceManager.cs (9)
6040 == transformStack.Length ) 1078if (_mapTableHeaderPreservation.Length != extraDataSize) 1152checked ((Int32) (KnownBytesInMapTableHeader + _mapTableHeaderPreservation.Length))); 1234if (extraData.Length != extraDataSize) 1292checked { headerSize += definition.ExtraData.Length; } 1363if (extraData.Length != extraDataSize) 1468Debug.Assert(transformInstance.ExtraData.Length > 0); 1470checked { headerLength += transformInstance.ExtraData.Length; } 1488transformPrimary.Write( memoryBuffer, 0, memoryBuffer.Length );
Base\System\IO\Packaging\Package.cs (2)
500Dictionary<PackUriHelper.ValidatedPartUri, PackagePart> seenPartUris = new Dictionary<PackUriHelper.ValidatedPartUri, PackagePart>(parts.Length); 502for (int i = 0; i < parts.Length; i++)
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (1)
850for (int i = 0; i < chainStatus.Length; i++)
Base\System\IO\Packaging\PackUriHelper.cs (8)
1239Debug.Assert(segments.Length > 0 && segments[0] == String.Empty); 1242Debug.Assert(String.CompareOrdinal((Path.GetExtension(segments[segments.Length - 1])), _relationshipPartUpperCaseExtension) == 0); 1246if ((segments.Length >= 3) && 1247(segments[segments.Length - 1].Length > _relationshipPartExtensionName.Length)) 1250result = (String.CompareOrdinal(segments[segments.Length - 2], _relationshipPartUpperCaseSegmentName) == 0); 1255if (segments.Length > 3 && result == true) 1257if ((segments[segments.Length - 1]).EndsWith(_relsrelsUpperCaseExtension, StringComparison.Ordinal)) 1260if(String.CompareOrdinal(segments[segments.Length - 3], _relationshipPartUpperCaseSegmentName) == 0)
Base\System\Security\RightsManagement\CryptoProvider.cs (4)
123outputBufferSize = (uint)clearText.Length; 132(uint)clearText.Length, 182outputBufferSize = (uint)cryptoText.Length; 191(uint)cryptoText.Length,
Base\System\Windows\Data\DataSourceProvider.cs (1)
362Invariant.Assert(args.Length == 5);
Base\System\Windows\DependencyObject.cs (5)
2415for (int i = 0; i < sources.Length; i++) 2489for (int i = 0; i < newSources.Length; i++) 2927if (((float) endLength / (float) _effectiveValues.Length) < 0.8) 3107if (effectiveValuesCount > 0 && _effectiveValues.Length > entryIndex.Index) 3198if (_effectiveValues.Length == effectiveValuesCount)
Base\System\Windows\DependentList.cs (1)
58for(int i=0; i<snapList.Length; i++)
Base\System\Windows\Markup\TypeConverterHelper.cs (1)
85if (methodInfo.GetParameters().Length == 1)
Base\System\Windows\Media\Matrix.cs (2)
366for (int i = 0; i < points.Length; i++) 395for (int i = 0; i < vectors.Length; i++)
Base\System\Windows\PropertyMetadata.cs (2)
598if (handlers.Length > 0) 601for (int i = 1; i < handlers.Length; i++)
Base\System\Windows\Threading\Dispatcher.cs (2)
3124object[] parameters = new object[1 + (args == null ? 1 : args.Length)]; 3128Array.Copy(args, 0, parameters, 1, args.Length);
Base\System\Windows\Threading\DispatcherSynchronizationContext.cs (1)
104return MS.Win32.UnsafeNativeMethods.WaitForMultipleObjectsEx(waitHandles.Length, waitHandles, waitAll, millisecondsTimeout, false);
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (6)
136if (offset + count > buffer.Length) 173if (offset + count > buffer.Length) 210Invariant.Assert(buffer.Length > 0); 214Invariant.Assert(checked(offset + requestedCount <= buffer.Length)); 265Invariant.Assert(buffer.Length > 0); 269Invariant.Assert(checked(offset + requestedCount <= buffer.Length));
Shared\MS\Internal\ReaderWriterLockWrapper.cs (1)
321return MS.Win32.UnsafeNativeMethods.WaitForMultipleObjectsEx(waitHandles.Length, waitHandles, waitAll, millisecondsTimeout, false);
Shared\MS\Internal\SafeSecurityHelper.cs (4)
190for (int i = assemblies.Length - 1; i >= 0; i--) 313if (reqKeyToken.Length == curKeyToken.Length) 317for (int i = 0; i < reqKeyToken.Length; i++)
Shared\MS\Utility\FrugalList.cs (8)
1328return _entries.Length; 1338if ((null != _entries) && (_count < _entries.Length)) 1347int size = _entries.Length; 1363Array.Copy(_entries, 0, destEntries, 0, _entries.Length); 1407if ((null != _entries) && (_count < _entries.Length)) 1532if (_entries.Length >= oldCount) 1576if ((value >= 0) && (value <= _entries.Length)) 1612if (newCapacity + (newCapacity >> 2) >= _sourceArray.Length)
Shared\MS\Utility\FrugalMap.cs (12)
1152if (_entries.Length > _count) 1158Entry[] destEntries = new Entry[_entries.Length + GROWTH]; 1161Array.Copy(_entries, 0, destEntries, 0, _entries.Length); 1260for (int index = 0; index < _entries.Length; ++index) 1366if (_entries.Length > _count) 1372Entry[] destEntries = new Entry[_entries.Length + GROWTH]; 1375Array.Copy(_entries, 0, destEntries, 0, _entries.Length); 1496for (int index = 0; index < _entries.Length; ++index) 1852if (_entries.Length > _count) 1858int size = _entries.Length; 1862Array.Copy(_entries, 0, destEntries, 0, _entries.Length); 1977for (int index = 0; index < _entries.Length; ++index)
Shared\MS\Utility\ItemList.cs (2)
108if ((Count + delta) > List.Length) 110T[] newList = new T[Math.Max(List.Length * 2, Count + delta)];
Shared\MS\Utility\TraceProvider.cs (1)
158int argCount = eventPayload.Length;
Shared\MS\Win32\HandleCollector.cs (1)
44if (handleTypeCount == 0 || handleTypeCount == handleTypes.Length)
Shared\MS\Win32\HwndWrapper.cs (1)
76for(int i = 0, iEnd = hooks.Length; i < iEnd; i++)
Shared\MS\Win32\NativeMethodsCLR.cs (17)
6179get { return buffer.Length; } 6184IntPtr result = Marshal.AllocCoTaskMem(buffer.Length); 6185Marshal.Copy(buffer, 0, result, buffer.Length); 6193while (i < buffer.Length && buffer[i] != 0) 6198if (i < buffer.Length) 6208Marshal.Copy(ptr, buffer, 0, buffer.Length); 6215int count = Math.Min(bytes.Length, buffer.Length - offset); 6220if (offset < buffer.Length) 6243get { return buffer.Length; } 6248IntPtr result = Marshal.AllocCoTaskMem(buffer.Length * 2); 6249Marshal.Copy(buffer, 0, result, buffer.Length); 6257while (i < buffer.Length && buffer[i] != 0) 6262if (i < buffer.Length) 6271Marshal.Copy(ptr, buffer, 0, buffer.Length); 6277int count = Math.Min(s.Length, buffer.Length - offset); 6282if (offset < buffer.Length)
Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (1)
4052int len = args.Length;
Shared\System\Windows\Markup\ReflectionHelper.cs (2)
52if (nameFrags.Length == 1) 59if (nameFrags.Length != 2)
WsatConfig (25)
CommandLine\ConsoleEntryPoint.cs (1)
166if (argv.Length < 1)
Configuration\ClusterRegistryConfigurationProvider.cs (11)
154(uint)value.Length); 191if (buffer == null || buffer.Length < 2) 196return Encoding.Unicode.GetString(buffer, 0, buffer.Length - 2); 207byte[] buffer = new byte[temp.Length + 2]; 208Array.Copy(temp, buffer, temp.Length); 209buffer[temp.Length] = 0; 210buffer[temp.Length + 1] = 0; 250byte[] buffer = new byte[(len + value.Length + 1) * 2]; 256Array.Copy(temp, 0, buffer, index, temp.Length); 257index += temp.Length; 274index < buffer.Length - 1 && BitConverter.ToChar(buffer, index) != 0;
Configuration\MsdtcClusterUtils.cs (1)
336return Encoding.Unicode.GetString(buffer, 0, buffer.Length - 2);
Configuration\WsatConfiguration.cs (6)
592if (this.X509GlobalAcl != null && this.X509GlobalAcl.Length > 0) 595for (int i = 1; i < this.X509GlobalAcl.Length; ++i) 606if (this.KerberosGlobalAcl != null && this.KerberosGlobalAcl.Length > 0) 609for (int i = 1; i < this.KerberosGlobalAcl.Length; ++i) 869if (this.KerberosGlobalAcl == null || this.KerberosGlobalAcl.Length < 1) 887if (this.X509GlobalAcl == null || this.X509GlobalAcl.Length < 1)
Configuration\WsatServiceCertificate.cs (6)
62sslConf.ParamDesc.pSslHash = new SafeLocalAllocation(sslHash.Length); 63sslConf.ParamDesc.pSslHash.Copy(sslHash, 0, sslHash.Length); 64sslConf.ParamDesc.SslHashLength = sslHash.Length; 139sslConf.ParamDesc.pSslHash = new SafeLocalAllocation(sslHash.Length); 140sslConf.ParamDesc.pSslHash.Copy(sslHash, 0, sslHash.Length); 141sslConf.ParamDesc.SslHashLength = sslHash.Length;
WsatUI (32)
Configuration\ClusterRegistryConfigurationProvider.cs (11)
154(uint)value.Length); 191if (buffer == null || buffer.Length < 2) 196return Encoding.Unicode.GetString(buffer, 0, buffer.Length - 2); 207byte[] buffer = new byte[temp.Length + 2]; 208Array.Copy(temp, buffer, temp.Length); 209buffer[temp.Length] = 0; 210buffer[temp.Length + 1] = 0; 250byte[] buffer = new byte[(len + value.Length + 1) * 2]; 256Array.Copy(temp, 0, buffer, index, temp.Length); 257index += temp.Length; 274index < buffer.Length - 1 && BitConverter.ToChar(buffer, index) != 0;
Configuration\ETWSafeNativeMethods.cs (6)
115if (loggerNameChars.Length < SafeNativeMethods.MaxTraceLoggerNameLen) 117Array.Copy(loggerNameChars, 0, Tail.LoggerName, 0, loggerNameChars.Length); 128if (logFileNameChars.Length < SafeNativeMethods.MaxTraceFileNameLen) 130Array.Copy(logFileNameChars, 0, Tail.LogFileName, 0, logFileNameChars.Length); 139Head.LogFileNameOffset = (uint)(Marshal.SizeOf(this) - Tail.LogFileName.Length * sizeof(char)); 140Head.LoggerNameOffset = (uint)(Head.LogFileNameOffset - Tail.LoggerName.Length * sizeof(char));
Configuration\MsdtcClusterUtils.cs (1)
336return Encoding.Unicode.GetString(buffer, 0, buffer.Length - 2);
Configuration\WsatConfiguration.cs (4)
592if (this.X509GlobalAcl != null && this.X509GlobalAcl.Length > 0) 595for (int i = 1; i < this.X509GlobalAcl.Length; ++i) 606if (this.KerberosGlobalAcl != null && this.KerberosGlobalAcl.Length > 0) 609for (int i = 1; i < this.KerberosGlobalAcl.Length; ++i)
Configuration\WsatServiceCertificate.cs (6)
62sslConf.ParamDesc.pSslHash = new SafeLocalAllocation(sslHash.Length); 63sslConf.ParamDesc.pSslHash.Copy(sslHash, 0, sslHash.Length); 64sslConf.ParamDesc.SslHashLength = sslHash.Length; 139sslConf.ParamDesc.pSslHash = new SafeLocalAllocation(sslHash.Length); 140sslConf.ParamDesc.pSslHash.Copy(sslHash, 0, sslHash.Length); 141sslConf.ParamDesc.SslHashLength = sslHash.Length;
MMCUI\AcceptedCertificatesForm.cs (2)
77for (int j = 0; j < allowedCertificates.Length; j++) 101for (int i = 0; i < allowedCertificates.Length; i++)
MMCUI\ACLWrapper.cs (1)
319pcAccesses = (int)access.Length;
MMCUI\WSATControl.cs (1)
387if (this.config.X509GlobalAcl.Length > 0)
XamlBuildTask (9)
Microsoft\Build\Tasks\Xaml\CompilationPass2Task.cs (2)
239IList<string> applicationMarkup = new List<string>(this.ApplicationMarkup.Length); 271sourceCodeFiles = new List<string>(this.SourceCodeFiles.Length);
Microsoft\Build\Tasks\Xaml\GenerateTemporaryAssemblyTask.cs (1)
174if (items != null && items.Length > 0)
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTask.cs (4)
297if (referencesTimeStampCache == null || referencesTimeStampCache.Count != References.Length) 350sourceCodeFiles = new List<string>(this.SourceCodeFiles.Length); 366if (this.XamlBuildTypeInspectionExtensionNames != null && this.XamlBuildTypeInspectionExtensionNames.Length > 0) 387(this.XamlBuildTypeInspectionExtensionNames != null && this.XamlBuildTypeInspectionExtensionNames.Length > 0);
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (1)
270if (asm.GetReferencedAssemblies().Length == 0)
Microsoft\Build\Tasks\Xaml\XamlValidatingReader.cs (1)
107(args == null || args.Length == 0) ?