163 references to Rank
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
141
if (array.
Rank
!= 1)
Microsoft.Build.Framework (5)
SegmentedArray.cs (1)
135
if (typeof(T[]) != destinationArray.GetType() && destinationArray.
Rank
!= 1)
SegmentedDictionary`2.cs (3)
852
if (array.
Rank
!= 1)
1333
if (array.
Rank
!= 1)
1533
if (array.
Rank
!= 1)
SegmentedList`1.cs (1)
383
if ((array != null) && (array.
Rank
!= 1))
Microsoft.VisualBasic.Core (23)
Microsoft\VisualBasic\CompilerServices\CharArrayType.vb (1)
33
If CharArray IsNot Nothing AndAlso CharArray.
Rank
= 1 Then
Microsoft\VisualBasic\CompilerServices\Conversions.vb (1)
2125
If ArrayValue IsNot Nothing AndAlso ArrayValue.
Rank
= 1 Then
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (2)
525
If ArgCount <> ary.
Rank
Then
773
If ArgCount <> ary.
Rank
Then
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (3)
387
ElseIf TypeOf obj1 Is Char() AndAlso CType(obj1, Array).
Rank
= 1 Then
399
ElseIf TypeOf obj2 Is Char() AndAlso CType(obj2, Array).
Rank
= 1 Then
434
ElseIf TypeOf obj1 Is Char() AndAlso CType(obj1, Array).
Rank
= 1 Then
Microsoft\VisualBasic\CompilerServices\StringType.vb (1)
154
If CharArray IsNot Nothing AndAlso CharArray.
Rank
= 1 Then
Microsoft\VisualBasic\CompilerServices\Symbols.vb (2)
1154
Dim rank As Integer = arrayInstance.
Rank
1203
Dim rank As Integer = arrayInstance.
Rank
Microsoft\VisualBasic\CompilerServices\Utils.vb (5)
89
If aryDest.
Rank
() <> arySrc.
Rank
() Then
93
For iDim = 0 To aryDest.
Rank
() - 2
101
If arySrc.
Rank
> 1 Then
102
Dim lastRank As Integer = arySrc.
Rank
Microsoft\VisualBasic\CompilerServices\VB6File.vb (1)
2295
If TypeOf value Is Char() AndAlso CType(value, Array).
Rank
= 1 Then
Microsoft\VisualBasic\Financial.vb (2)
378
If ValueArray.
Rank
<> 1 Then
505
If ValueArray.
Rank
<> 1 Then
Microsoft\VisualBasic\Information.vb (2)
490
If ary.
Rank
= 1 Then
493
Result = Result & "[" & (New String(","c, ary.
Rank
- 1)) & "]"
Microsoft\VisualBasic\Interaction.vb (1)
153
If Choice.
Rank
<> 1 Then
Microsoft\VisualBasic\Strings.vb (2)
326
If Source.
Rank
<> 1 Then
504
If SourceArray.
Rank
<> 1 Then
PresentationCore (41)
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
732
if (array.
Rank
!= 1)
MS\Internal\FontFace\TypefaceCollection.cs (1)
74
if (array.
Rank
!= 1)
MS\Internal\PartialArray.cs (1)
141
if (array.
Rank
!= 1)
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
183
if (array.
Rank
!= 1)
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
126
if (array.
Rank
!= 1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SequentialUshortCollection.cs (1)
58
if (array.
Rank
!= 1)
System\Windows\FreezableCollection.cs (1)
507
if (array.
Rank
!= 1)
System\Windows\Generated\TextDecorationCollection.cs (1)
408
if (array.
Rank
!= 1)
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
418
if (array.
Rank
!= 1)
System\Windows\Media\CharacterMetricsDictionary.cs (1)
213
if (array.
Rank
!= 1)
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
179
if (array.
Rank
!= 1)
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
414
if (array.
Rank
!= 1)
System\Windows\Media\FamilyMapCollection.cs (1)
103
if (array.
Rank
!= 1)
System\Windows\Media\FamilyTypefaceCollection.cs (1)
382
if (array.
Rank
!= 1)
System\Windows\Media\Fonts.cs (1)
327
if (array.
Rank
!= 1)
System\Windows\Media\Generated\DoubleCollection.cs (1)
380
if (array.
Rank
!= 1)
System\Windows\Media\Generated\DrawingCollection.cs (1)
430
if (array.
Rank
!= 1)
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
416
if (array.
Rank
!= 1)
System\Windows\Media\Generated\GeometryCollection.cs (1)
430
if (array.
Rank
!= 1)
System\Windows\Media\Generated\GradientStopCollection.cs (1)
416
if (array.
Rank
!= 1)
System\Windows\Media\Generated\Int32Collection.cs (1)
380
if (array.
Rank
!= 1)
System\Windows\Media\Generated\PathFigureCollection.cs (1)
417
if (array.
Rank
!= 1)
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
416
if (array.
Rank
!= 1)
System\Windows\Media\Generated\PointCollection.cs (1)
380
if (array.
Rank
!= 1)
System\Windows\Media\Generated\TextEffectCollection.cs (1)
416
if (array.
Rank
!= 1)
System\Windows\Media\Generated\TransformCollection.cs (1)
430
if (array.
Rank
!= 1)
System\Windows\Media\Generated\VectorCollection.cs (1)
380
if (array.
Rank
!= 1)
System\Windows\Media\GlyphTypeface.cs (2)
1824
if (array.
Rank
!= 1)
1909
if (array.
Rank
!= 1)
System\Windows\Media\Imaging\BitmapSource.cs (1)
659
if (pixels.
Rank
!= 1)
System\Windows\Media\Imaging\CachedBitmap.cs (1)
136
if (pixels.
Rank
!= 1)
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
1086
if (sourceBuffer.
Rank
== 1)
1112
else if (sourceBuffer.
Rank
== 2)
System\Windows\Media\VisualCollection.cs (1)
192
if (array.
Rank
!= 1)
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
412
if (array.
Rank
!= 1)
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
426
if (array.
Rank
!= 1)
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
426
if (array.
Rank
!= 1)
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
376
if (array.
Rank
!= 1)
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
426
if (array.
Rank
!= 1)
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
376
if (array.
Rank
!= 1)
System\Windows\Media3D\Visual3DCollection.cs (1)
171
if (array.
Rank
!= 1)
PresentationFramework (6)
MS\Internal\Data\IndexedEnumerable.cs (1)
309
Invariant.Assert(array.
Rank
== 1, "expected array of rank=1");
MS\Internal\Documents\ContentElementCollection.cs (1)
73
if (array.
Rank
!= 1)
System\Windows\Controls\ColumnDefinition.cs (1)
89
if (array.
Rank
!= 1)
System\Windows\Controls\ItemCollection.cs (1)
298
if (array.
Rank
> 1)
System\Windows\Controls\RowDefinition.cs (1)
89
if (array.
Rank
!= 1)
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
361
if (array != null && array.
Rank
!= 1)
System.Collections (10)
System\Collections\BitArray.cs (1)
754
if (array.
Rank
!= 1)
System\Collections\Generic\LinkedList.cs (1)
451
if (array.
Rank
!= 1)
System\Collections\Generic\PriorityQueue.cs (1)
939
if (array.
Rank
!= 1)
System\Collections\Generic\SortedDictionary.cs (2)
560
if (array.
Rank
!= 1)
721
if (array.
Rank
!= 1)
System\Collections\Generic\SortedList.cs (3)
456
if (array.
Rank
!= 1)
1053
if (array != null && array.
Rank
!= 1)
1167
if (array != null && array.
Rank
!= 1)
System\Collections\Generic\SortedSet.cs (1)
544
if (array.
Rank
!= 1)
System\Collections\Generic\Stack.cs (1)
124
if (array.
Rank
!= 1)
System.Collections.Immutable (2)
System\Collections\Frozen\FrozenDictionary.cs (1)
352
if (array.
Rank
!= 1)
System\Collections\Frozen\FrozenSet.cs (1)
250
if (array != null && array.
Rank
!= 1)
System.Collections.NonGeneric (5)
System\Collections\Queue.cs (1)
132
if (array.
Rank
!= 1)
System\Collections\SortedList.cs (3)
338
if (array.
Rank
!= 1)
940
if (array != null && array.
Rank
!= 1)
1043
if (array != null && array.
Rank
!= 1)
System\Collections\Stack.cs (1)
118
if (array.
Rank
!= 1)
System.Collections.Specialized (3)
System\Collections\Specialized\NameObjectCollectionBase.cs (2)
375
if (array.
Rank
!= 1)
599
if (array.
Rank
!= 1)
System\Collections\Specialized\NameValueCollection.cs (1)
200
if (dest.
Rank
!= 1)
System.Data.Common (3)
System\Data\DataRowComparer.cs (3)
55
(1 != a.
Rank
) ||
56
(1 != b.
Rank
) ||
197
if (array.
Rank
> 1)
System.Linq.Expressions (1)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
355
if (array.
Rank
!= 1)
System.ObjectModel (1)
System\Collections\CollectionHelpers.cs (1)
14
if (array.
Rank
!= 1)
System.Private.CoreLib (48)
src\libraries\System.Private.CoreLib\src\System\Array.cs (17)
428
if (
Rank
!= indices.Length)
436
if (
Rank
!= 1)
444
if (
Rank
!= 2)
452
if (
Rank
!= 3)
460
if (
Rank
!= 1)
468
if (
Rank
!= 2)
476
if (
Rank
!= 3)
486
if (
Rank
!= indices.Length)
534
if (
Rank
!= indices.Length)
594
if (
Rank
!= indices.Length)
855
if (array.
Rank
!= 1)
1053
if (array != null && array.
Rank
!= 1)
1373
if (array.
Rank
!= 1)
1609
if (array.
Rank
!= 1)
1847
if (array.
Rank
!= 1)
2023
if (keys.
Rank
!= 1 || (items != null && items.
Rank
!= 1))
src\libraries\System.Private.CoreLib\src\System\Attribute.cs (2)
116
Debug.Assert(thisValueArray.
Rank
== 1 && thatValueArray.
Rank
== 1);
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (5)
251
if ((array != null) && (array.
Rank
!= 1))
266
if ((array != null) && (array.
Rank
!= 1))
827
if (array.
Rank
!= 1)
2281
if (array.
Rank
!= 1)
2295
if (array.
Rank
!= 1)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
1045
if (array.
Rank
!= 1)
1534
if (array.
Rank
!= 1)
1728
if (array.
Rank
!= 1)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
389
if ((array != null) && (array.
Rank
!= 1))
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (1)
125
if (array.
Rank
!= 1)
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (6)
537
Debug.Assert(array.
Rank
== 1);
556
Debug.Assert(array.
Rank
== 1);
576
if (array.
Rank
!= 1)
608
Debug.Assert(array.
Rank
== 1);
1193
if (array.
Rank
!= 1)
1228
if (array.
Rank
!= 1)
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (2)
152
if (array.
Rank
!= 1)
307
if (array.
Rank
!= 1)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
177
if (array.
Rank
!= 1)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
14
if (array.
Rank
!= 1)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
107
if (array.
Rank
!= 1)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ArrayWithOffset.cs (1)
23
if (!(array is Array arrayObj) || (arrayObj.
Rank
!= 1) || !Marshal.IsPinnable(arrayObj))
src\System\Array.CoreCLR.cs (6)
45
if (sourceArray.GetType() != destinationArray.GetType() && sourceArray.
Rank
!= destinationArray.
Rank
)
101
Debug.Assert(sourceArray.
Rank
== destinationArray.
Rank
);
473
Debug.Assert(
Rank
== 1);
489
Debug.Assert(indices.Length ==
Rank
);
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (1)
40
if (array.
Rank
!= 1)
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\Formatters\Binary\BinaryObjectWriter.cs (1)
443
int rank = array.
Rank
;
System.Security.Cryptography (4)
System\Security\Cryptography\AsnEncodedDataCollection.cs (1)
70
if (array.
Rank
!= 1)
System\Security\Cryptography\OidCollection.cs (1)
76
if (array.
Rank
!= 1)
System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs (1)
62
if (array.
Rank
!= 1)
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (1)
81
if (array.
Rank
!= 1)
System.Xaml (1)
System\Xaml\XamlObjectReader.cs (1)
1800
if (value.
Rank
> 1)
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (3)
413
if (a1.Length != a2.Length || a1.
Rank
!= a2.
Rank
)
419
for (int i = 0; i < a1.
Rank
; i++)
xunit.assert (5)
Sdk\CollectionTracker.cs (5)
128
if (expectedArray.
Rank
== 1 && expectedArray.GetLowerBound(0) == 0 &&
129
actualArray.
Rank
== 1 && actualArray.GetLowerBound(0) == 0)
132
if (expectedArray.
Rank
!= actualArray.
Rank
)
137
for (var rank = 0; rank < expectedArray.
Rank
; rank++)