346 references to GetLength
dotnet-svcutil-lib (7)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
461
IncrementCollectionCount(xmlWriter, array.
GetLength
(0));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\WSSecurityJan2004.cs (3)
97
_valueTypeUris = new string[valueTypeUris.
GetLength
(0)];
98
for (int i = 0; i < _valueTypeUris.
GetLength
(0); ++i)
108
for (int i = 0; i < _valueTypeUris.
GetLength
(0); ++i)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityJan2004.cs (3)
86
_valueTypeUris = new string[valueTypeUris.
GetLength
(0)];
87
for (int i = 0; i < _valueTypeUris.
GetLength
(0); ++i)
97
for (int i = 0; i < _valueTypeUris.
GetLength
(0); ++i)
GenerateDocumentationAndConfigFiles (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
142
var width = matrix.
GetLength
(0);
143
var height = matrix.
GetLength
(1);
Metrics (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
142
var width = matrix.
GetLength
(0);
143
var height = matrix.
GetLength
(1);
Metrics.Legacy (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
142
var width = matrix.
GetLength
(0);
143
var height = matrix.
GetLength
(1);
Microsoft.CodeAnalysis.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
142
var width = matrix.
GetLength
(0);
143
var height = matrix.
GetLength
(1);
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
142
var width = matrix.
GetLength
(0);
143
var height = matrix.
GetLength
(1);
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
142
var width = matrix.
GetLength
(0);
143
var height = matrix.
GetLength
(1);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
142
var width = matrix.
GetLength
(0);
143
var height = matrix.
GetLength
(1);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\NullableTests.cs (1)
1287
for (int i = 0; i < types.
GetLength
(0); ++i)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
142
var width = matrix.
GetLength
(0);
143
var height = matrix.
GetLength
(1);
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
142
var width = matrix.
GetLength
(0);
143
var height = matrix.
GetLength
(1);
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
142
var width = matrix.
GetLength
(0);
143
var height = matrix.
GetLength
(1);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\ObjectFormatter\CommonTypeNameFormatter.cs (1)
172
int length = arrayOpt.
GetLength
(i);
Microsoft.CodeAnalysis.VisualBasic (4)
Preprocessor\ExpressionEvaluator.vb (4)
64
Debug.Assert(s_dominantType.
GetLength
(0) = s_dominantType.
GetLength
(1)) ' 2d array must be square
65
For i As Integer = 0 To s_dominantType.
GetLength
(0) - 1
66
For j As Integer = i + 1 To s_dominantType.
GetLength
(1) - 1
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
142
var width = matrix.
GetLength
(0);
143
var height = matrix.
GetLength
(1);
Microsoft.ML.Core (1)
Utilities\BigArray.cs (1)
242
int curBlockCount = _entries.
GetLength
(0);
Microsoft.ML.KMeansClustering (5)
KMeansPlusPlusTrainer.cs (5)
621
Contracts.Assert(0 <= bestCluster && bestCluster < _clusterDistances.
GetLength
(1), "bestCluster must be between 0..clusterCount-1");
638
Contracts.Assert(0 <= newClusterIdxWithinSample && newClusterIdxWithinSample < _clusterDistances.
GetLength
(0), "newClusterIdxWithinSample must be between 0..numSamplesPerRound-1");
639
Contracts.Assert(0 <= oldClusterIdx && oldClusterIdx < _clusterDistances.
GetLength
(1));
654
Contracts.Assert(0 <= newClusterIdxWithinSample && newClusterIdxWithinSample < _clusterDistances.
GetLength
(0),
657
(0 <= bestOldCluster && bestOldCluster < _clusterDistances.
GetLength
(1))),
Microsoft.ML.TimeSeries (1)
SrCnnEntireAnomalyDetector.cs (1)
620
for (int i = 0; i < results.
GetLength
(0); ++i)
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\Utils.vb (2)
103
Dim lenSrcLastRank As Integer = arySrc.
GetLength
(lastRank - 1)
104
Dim lenDestLastRank As Integer = aryDest.
GetLength
(lastRank - 1)
Microsoft.VisualBasic.Forms (3)
Microsoft\VisualBasic\ApplicationServices\ConsoleApplicationBase.vb (3)
55
If envArgs.
GetLength
(0) >= 2 Then '1 element means no args, just the executing program. >= 2 means executing program + one or more command line arguments
56
Dim newArgs(envArgs.
GetLength
(0) - 2) As String 'dimming z(0) gives a z() of 1 element.
57
Array.Copy(envArgs, 1, newArgs, 0, envArgs.
GetLength
(0) - 1) 'copy everything but the 0th element (the path of the executing program)
PresentationCore (13)
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (7)
190
Debug.Assert(byteRanges.
GetLength
(0) == 1, "We don't support a request with multiple byte ranges");
217
for (int i = 0; i < byteRanges.
GetLength
(0); ++i)
267
for (int i=0, j=0; i < inByteRanges.
GetLength
(0); ++i, ++j)
456
for (int i = 0; i < byteRanges.
GetLength
(0); ++i)
718
if (byteRanges.
GetLength
(0) <= 0 || byteRanges.
GetLength
(1) != 2)
723
for (int i = 0; i < byteRanges.
GetLength
(0); ++i)
MS\Internal\IO\Packaging\NetStream.cs (2)
669
if (ranges.
GetLength
(0) > 0)
680
while (r < ranges.
GetLength
(0))
System\Windows\Media\Imaging\PropVariant.cs (1)
246
String[] strArray = new String[charArray.
GetLength
(0)];
System\Windows\Media\Imaging\WriteableBitmap.cs (3)
1053
int firstDimLength = sourceBuffer.
GetLength
(0);
1080
int firstDimLength = sourceBuffer.
GetLength
(0);
1081
int secondDimLength = sourceBuffer.
GetLength
(1);
Roslyn.Diagnostics.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
142
var width = matrix.
GetLength
(0);
143
var height = matrix.
GetLength
(1);
System.ComponentModel.TypeConverter (3)
System\ComponentModel\ArrayConverter.cs (3)
44
int length = valueArray.
GetLength
(0);
75
if (instance is Array array && array.
GetLength
(0) > _index)
87
if (array.
GetLength
(0) > _index)
System.IO.Packaging (1)
System\IO\Packaging\PackageXmlStringTable.cs (1)
85
for (int i = 1; i < s_xmlstringtable.
GetLength
(0); i++)
System.Linq.Parallel (2)
System\Linq\Parallel\Partitioning\HashRepartitionEnumerator.cs (1)
74
Debug.Assert(valueExchangeMatrix.
GetLength
(0) == partitionCount, "expected square matrix of buffers (NxN)");
System\Linq\Parallel\Partitioning\OrderedHashRepartitionEnumerator.cs (1)
76
Debug.Assert(valueExchangeMatrix.
GetLength
(0) == partitionCount, "expected square matrix of buffers (NxN)");
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\TensorShape.cs (3)
726
lengths[i] = array.
GetLength
(i);
783
intermediateLengths[i] = array.
GetLength
(i);
806
int length = array.
GetLength
(index);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
1007
return
GetLength
(dimension);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
418
IncrementCollectionCount(xmlWriter, array.
GetLength
(0));
System.Private.Windows.Core (1)
Windows\Win32\System\Variant\VARIANT.cs (1)
517
multiplier *= array.
GetLength
(i - 1);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\ArrayEditor.cs (1)
36
object[] items = new object[valueArray.
GetLength
(0)];
System\Windows\Forms\Design\StringArrayEditor.cs (1)
28
object[] items = new object[valueArray.
GetLength
(0)];
System.Windows.Forms.Primitives.Tests (260)
Interop\Oleaut32\VARIANTTests.cs (260)
2010
Assert.Equal(result.Length, array.
GetLength
(0));
2029
Assert.Equal(result.Length, array.
GetLength
(0));
2063
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2064
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2082
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2083
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2099
Assert.Equal(result.Length, array.
GetLength
(0));
2116
Assert.Equal(result.Length, array.
GetLength
(0));
2154
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2155
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2181
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2182
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2206
Assert.Equal(result.Length, array.
GetLength
(0));
2231
Assert.Equal(result.Length, array.
GetLength
(0));
2269
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2270
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2296
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2297
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2321
Assert.Equal(result.Length, array.
GetLength
(0));
2346
Assert.Equal(result.Length, array.
GetLength
(0));
2384
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2385
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2411
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2412
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2436
Assert.Equal(result.Length, array.
GetLength
(0));
2461
Assert.Equal(result.Length, array.
GetLength
(0));
2499
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2500
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2526
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2527
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2551
Assert.Equal(result.Length, array.
GetLength
(0));
2576
Assert.Equal(result.Length, array.
GetLength
(0));
2601
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2602
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2628
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2629
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2653
Assert.Equal(result.Length, array.
GetLength
(0));
2678
Assert.Equal(result.Length, array.
GetLength
(0));
2716
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2717
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2743
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2744
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2768
Assert.Equal(result.Length, array.
GetLength
(0));
2793
Assert.Equal(result.Length, array.
GetLength
(0));
2818
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2819
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2845
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2846
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2870
Assert.Equal(result.Length, array.
GetLength
(0));
2895
Assert.Equal(result.Length, array.
GetLength
(0));
2933
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2934
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2960
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
2961
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
2985
Assert.Equal(result.Length, array.
GetLength
(0));
3010
Assert.Equal(result.Length, array.
GetLength
(0));
3035
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3036
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3062
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3063
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3087
Assert.Equal(result.Length, array.
GetLength
(0));
3112
Assert.Equal(result.Length, array.
GetLength
(0));
3150
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3151
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3177
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3178
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3202
Assert.Equal(result.Length, array.
GetLength
(0));
3227
Assert.Equal(result.Length, array.
GetLength
(0));
3252
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3253
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3279
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3280
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3304
Assert.Equal(result.Length, array.
GetLength
(0));
3329
Assert.Equal(result.Length, array.
GetLength
(0));
3367
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3368
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3394
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3395
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3418
Assert.Equal(result.Length, array.
GetLength
(0));
3443
Assert.Equal(result.Length, array.
GetLength
(0));
3481
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3482
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3508
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3509
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3533
Assert.Equal(result.Length, array.
GetLength
(0));
3558
Assert.Equal(result.Length, array.
GetLength
(0));
3596
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3597
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3623
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3624
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3648
Assert.Equal(result.Length, array.
GetLength
(0));
3673
Assert.Equal(result.Length, array.
GetLength
(0));
3711
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3712
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3738
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3739
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3763
Assert.Equal(result.Length, array.
GetLength
(0));
3788
Assert.Equal(result.Length, array.
GetLength
(0));
3826
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3827
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3853
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
3854
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
3885
Assert.Equal(expected.Length, array.
GetLength
(0));
3911
Assert.Equal(expected.Length, array.
GetLength
(0));
3955
Assert.Equal(expected.
GetLength
(0), array.
GetLength
(0));
3956
Assert.Equal(expected.
GetLength
(1), array.
GetLength
(1));
3982
Assert.Equal(expected.
GetLength
(0), array.
GetLength
(0));
3983
Assert.Equal(expected.
GetLength
(1), array.
GetLength
(1));
4018
Assert.Equal(expected.Length, array.
GetLength
(0));
4044
Assert.Equal(expected.Length, array.
GetLength
(0));
4094
Assert.Equal(expected.
GetLength
(0), array.
GetLength
(0));
4095
Assert.Equal(expected.
GetLength
(1), array.
GetLength
(1));
4122
Assert.Equal(expected.
GetLength
(0), array.
GetLength
(0));
4123
Assert.Equal(expected.
GetLength
(1), array.
GetLength
(1));
4147
Assert.Equal(expected.Length, array.
GetLength
(0));
4172
Assert.Equal(expected.Length, array.
GetLength
(0));
4215
Assert.Equal(expected.
GetLength
(0), array.
GetLength
(0));
4216
Assert.Equal(expected.
GetLength
(1), array.
GetLength
(1));
4242
Assert.Equal(expected.
GetLength
(0), array.
GetLength
(0));
4243
Assert.Equal(expected.
GetLength
(1), array.
GetLength
(1));
4267
Assert.Equal(expected.Length, array.
GetLength
(0));
4292
Assert.Equal(expected.Length, array.
GetLength
(0));
4342
Assert.Equal(expected.
GetLength
(0), array.
GetLength
(0));
4343
Assert.Equal(expected.
GetLength
(1), array.
GetLength
(1));
4369
Assert.Equal(expected.
GetLength
(0), array.
GetLength
(0));
4370
Assert.Equal(expected.
GetLength
(1), array.
GetLength
(1));
4397
Assert.Equal(result.Length, array.
GetLength
(0));
4424
Assert.Equal(result.Length, array.
GetLength
(0));
4460
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
4461
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
4497
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
4498
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
4529
Assert.Equal(result.Length, array.
GetLength
(0));
4566
Assert.Equal(result.Length, array.
GetLength
(0));
4614
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
4615
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
4671
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
4672
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
4711
Assert.Equal(result.Length, array.
GetLength
(0));
4748
Assert.Equal(result.Length, array.
GetLength
(0));
4796
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
4797
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
4853
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
4854
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
4894
Assert.Equal(result.Length, array.
GetLength
(0));
4932
Assert.Equal(result.Length, array.
GetLength
(0));
4981
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
4982
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
5039
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
5040
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
5100
Assert.Equal(result.Length, array.
GetLength
(0));
5152
Assert.Equal(result.Length, array.
GetLength
(0));
5236
Assert.Equal(result.
GetLength
(0), array.
GetLength
(0));
5237
Assert.Equal(result.
GetLength
(1), array.
GetLength
(1));
5449
cElements = (uint)multiDimArray.
GetLength
(0),
5455
cElements = (uint)multiDimArray.
GetLength
(1),
5467
for (int i = 0; i < multiDimArray.
GetLength
(0); i++)
5469
for (int j = 0; j < multiDimArray.
GetLength
(1); j++)
System.Windows.Forms.Tests (2)
System\Windows\Forms\ClipboardTests.cs (2)
776
result.
GetLength
(0).Should().Be(2);
777
result.
GetLength
(1).Should().Be(3);
Test.Utilities (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
142
var width = matrix.
GetLength
(0);
143
var height = matrix.
GetLength
(1);
Text.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (2)
142
var width = matrix.
GetLength
(0);
143
var height = matrix.
GetLength
(1);
UIAutomationClient (4)
MS\Internal\Automation\CacheHelper.cs (1)
103
if (response.RequestedData != null && propIndex != response.RequestedData.
GetLength
(0))
MS\Internal\Automation\UiaCoreApi.cs (3)
205
for(int objIndex = 0 ; objIndex < data.
GetLength
(0) ; objIndex++ )
460
int properties = requestedData.
GetLength
(1);
464
int endRow = i < treeStructures.Length - 1 ? offsets[i + 1] : requestedData.
GetLength
(0);