62 references to GetLength
Microsoft.Build (1)
FrameworkLocationHelper.cs (1)
1462for (int i = 0; i < s_explicitFallbackRulesForPathToDotNetFrameworkSdkTools.GetLength(0); ++i)
Microsoft.Build.Engine.UnitTests (1)
Scanner_Tests.cs (1)
51for (int i = 0; i < tests.GetLength(0); i++)
Microsoft.Build.Tasks.Core (4)
AssignProjectConfiguration.cs (2)
181var resolvedReferences = new List<ITaskItem>(ProjectReferences.GetLength(0)); 182var unresolvedReferences = new List<ITaskItem>(ProjectReferences.GetLength(0));
ResolveNonMSBuildProjectOutput.cs (2)
93var resolvedPaths = new List<ITaskItem>(ProjectReferences.GetLength(0)); 94var unresolvedReferences = new List<ITaskItem>(ProjectReferences.GetLength(0));
Microsoft.Build.Utilities.Core (1)
FrameworkLocationHelper.cs (1)
1462for (int i = 0; i < s_explicitFallbackRulesForPathToDotNetFrameworkSdkTools.GetLength(0); ++i)
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\Utils.vb (2)
103Dim lenSrcLastRank As Integer = arySrc.GetLength(lastRank - 1) 104Dim lenDestLastRank As Integer = aryDest.GetLength(lastRank - 1)
PresentationCore (37)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (7)
196Debug.Assert(byteRanges.GetLength(0) == 1, "We don't support a request with multiple byte ranges"); 223for (int i = 0; i < byteRanges.GetLength(0); ++i) 273for (int i=0, j=0; i < inByteRanges.GetLength(0); ++i, ++j) 462for (int i = 0; i < byteRanges.GetLength(0); ++i) 727if (byteRanges.GetLength(0) <= 0 || byteRanges.GetLength(1) != 2) 732for (int i = 0; i < byteRanges.GetLength(0); ++i)
MS\Internal\IO\Packaging\NetStream.cs (2)
680if (ranges.GetLength(0) > 0) 691while (r < ranges.GetLength(0))
System\Windows\Media\Color.cs (13)
60for (int i = 0; i < c1.nativeColorValue.GetLength(0); i++) 83if (values.GetLength(0) != c1.nativeColorValue.GetLength(0)) 88for (int numChannels = 0; numChannels < values.GetLength(0); numChannels++) 308for (int i= 0; i< nativeColorValue.GetLength(0); ++i ) 311if (i< nativeColorValue.GetLength(0)-1 ) 353for (int i = 0; i < color.nativeColorValue.GetLength(0); i++) 424for (int i = 0; i < c1.nativeColorValue.GetLength(0); i++) 543for (int i = 0; i < c1.nativeColorValue.GetLength(0); i++) 753if (color1.nativeColorValue.GetLength(0) != color2.nativeColorValue.GetLength(0)) 758for (int i = 0; i < color1.nativeColorValue.GetLength(0); i++) 1113if (this.nativeColorValue.GetLength(0) > 0)
System\Windows\Media\ColorTransform.cs (6)
140for (int i = 0; i < dstValue.GetLength(0); i++) 177if (srcValue.GetLength(0) < 3 || srcValue.GetLength(0) > 8) 182if (srcValue.GetLength(0) <= 4) 187for (int i = 0; i < srcValue.GetLength(0); i++) 211for (int i = 0; i < srcValue.GetLength(0); i++)
System\Windows\Media\Imaging\PropVariant.cs (1)
274String[] strArray = new String[charArray.GetLength(0)];
System\Windows\Media\Imaging\WriteableBitmap.cs (6)
1088if (sourceBuffer.GetLength(0) <= 0) 1107sourceBufferSize = sourceBuffer.GetLength(0) * elementSize; 1114if (sourceBuffer.GetLength(0) <= 0 || sourceBuffer.GetLength(1) <= 0) 1133sourceBufferSize = sourceBuffer.GetLength(0) * sourceBuffer.GetLength(1) * elementSize;
System\Windows\Media\Parsers.cs (2)
108if (preSplit.GetLength(0)< 2) 117int numTokens = split.GetLength(0);
ReachFramework (4)
Serialization\ColorTypeConverter.cs (3)
188for (int i = 0; i < color.GetNativeColorValues().GetLength(0); ++i) 191if (i < color.GetNativeColorValues().GetLength(0) - 1) 337while ( (count = profileStream.Read( buffer, 0, buffer.GetLength(0)) ) > 0 )
Serialization\Manager\ReachSerializationCacheItems.cs (1)
221propertyInfo.GetIndexParameters().GetLength(0) == 0)
System.ComponentModel.TypeConverter (3)
System\ComponentModel\ArrayConverter.cs (3)
44int length = valueArray.GetLength(0); 75if (instance is Array array && array.GetLength(0) > _index) 87if (array.GetLength(0) > _index)
System.Linq.Parallel (2)
System\Linq\Parallel\Partitioning\HashRepartitionEnumerator.cs (1)
74Debug.Assert(valueExchangeMatrix.GetLength(0) == partitionCount, "expected square matrix of buffers (NxN)");
System\Linq\Parallel\Partitioning\OrderedHashRepartitionEnumerator.cs (1)
76Debug.Assert(valueExchangeMatrix.GetLength(0) == partitionCount, "expected square matrix of buffers (NxN)");
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
622return GetLength(dimension);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
418IncrementCollectionCount(xmlWriter, array.GetLength(0));
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\Formatters\Binary\BinaryObjectWriter.cs (1)
449lengthA[i] = array.GetLength(i);
UIAutomationClient (4)
MS\Internal\Automation\CacheHelper.cs (1)
109if (response.RequestedData != null && propIndex != response.RequestedData.GetLength(0))
MS\Internal\Automation\UiaCoreApi.cs (3)
210for(int objIndex = 0 ; objIndex < data.GetLength(0) ; objIndex++ ) 465int properties = requestedData.GetLength(1); 469int endRow = i < treeStructures.Length - 1 ? offsets[i + 1] : requestedData.GetLength(0);