328 references to Rank
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
141if (array.Rank != 1)
Microsoft.Build.Framework (5)
SegmentedArray.cs (1)
135if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
SegmentedDictionary`2.cs (3)
852if (array.Rank != 1) 1333if (array.Rank != 1) 1533if (array.Rank != 1)
SegmentedList`1.cs (1)
383if ((array != null) && (array.Rank != 1))
Microsoft.CodeAnalysis (5)
src\Dependencies\Collections\SegmentedArray.cs (1)
141if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
858if (array.Rank != 1) 1353if (array.Rank != 1) 1561if (array.Rank != 1)
src\Dependencies\Collections\SegmentedList`1.cs (1)
449if ((array != null) && (array.Rank != 1))
Microsoft.CodeAnalysis.CodeStyle (5)
src\Dependencies\Collections\SegmentedArray.cs (1)
141if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
858if (array.Rank != 1) 1353if (array.Rank != 1) 1561if (array.Rank != 1)
src\Dependencies\Collections\SegmentedList`1.cs (1)
449if ((array != null) && (array.Rank != 1))
Microsoft.CodeAnalysis.Collections.Package (5)
SegmentedArray.cs (1)
141if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
SegmentedDictionary`2.cs (3)
858if (array.Rank != 1) 1353if (array.Rank != 1) 1561if (array.Rank != 1)
SegmentedList`1.cs (1)
449if ((array != null) && (array.Rank != 1))
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Debugger\Engine\DkmClrValue.cs (2)
592int rank = array.Rank; 612int rank = array.Rank;
Microsoft.CodeAnalysis.Scripting (4)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (4)
567if (array.Rank > 1) 646Debug.Assert(array.Rank > 1); 656int[] indices = new int[array.Rank]; 657for (int i = array.Rank - 1; i >= 0; i--)
Microsoft.CodeAnalysis.UnitTests (2)
Collections\List\ICollection.NonGeneric.Tests.cs (2)
193Assert.Equal(2, arr.Rank); 204Assert.Equal(1, arr.Rank);
Microsoft.CodeAnalysis.Workspaces (5)
src\Dependencies\Collections\SegmentedArray.cs (1)
141if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
858if (array.Rank != 1) 1353if (array.Rank != 1) 1561if (array.Rank != 1)
src\Dependencies\Collections\SegmentedList`1.cs (1)
449if ((array != null) && (array.Rank != 1))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Dependencies\Collections\SegmentedArray.cs (1)
141if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
858if (array.Rank != 1) 1353if (array.Rank != 1) 1561if (array.Rank != 1)
src\Dependencies\Collections\SegmentedList`1.cs (1)
449if ((array != null) && (array.Rank != 1))
Microsoft.VisualBasic.Core (23)
Microsoft\VisualBasic\CompilerServices\CharArrayType.vb (1)
33If CharArray IsNot Nothing AndAlso CharArray.Rank = 1 Then
Microsoft\VisualBasic\CompilerServices\Conversions.vb (1)
2125If ArrayValue IsNot Nothing AndAlso ArrayValue.Rank = 1 Then
Microsoft\VisualBasic\CompilerServices\LateBinding.vb (2)
525If ArgCount <> ary.Rank Then 773If ArgCount <> ary.Rank Then
Microsoft\VisualBasic\CompilerServices\ObjectType.vb (3)
387ElseIf TypeOf obj1 Is Char() AndAlso CType(obj1, Array).Rank = 1 Then 399ElseIf TypeOf obj2 Is Char() AndAlso CType(obj2, Array).Rank = 1 Then 434ElseIf TypeOf obj1 Is Char() AndAlso CType(obj1, Array).Rank = 1 Then
Microsoft\VisualBasic\CompilerServices\StringType.vb (1)
154If CharArray IsNot Nothing AndAlso CharArray.Rank = 1 Then
Microsoft\VisualBasic\CompilerServices\Symbols.vb (2)
1154Dim rank As Integer = arrayInstance.Rank 1203Dim rank As Integer = arrayInstance.Rank
Microsoft\VisualBasic\CompilerServices\Utils.vb (5)
89If aryDest.Rank() <> arySrc.Rank() Then 93For iDim = 0 To aryDest.Rank() - 2 101If arySrc.Rank > 1 Then 102Dim lastRank As Integer = arySrc.Rank
Microsoft\VisualBasic\CompilerServices\VB6File.vb (1)
2295If TypeOf value Is Char() AndAlso CType(value, Array).Rank = 1 Then
Microsoft\VisualBasic\Financial.vb (2)
378If ValueArray.Rank <> 1 Then 505If ValueArray.Rank <> 1 Then
Microsoft\VisualBasic\Information.vb (2)
490If ary.Rank = 1 Then 493Result = Result & "[" & (New String(","c, ary.Rank - 1)) & "]"
Microsoft\VisualBasic\Interaction.vb (1)
153If Choice.Rank <> 1 Then
Microsoft\VisualBasic\Strings.vb (2)
326If Source.Rank <> 1 Then 504If SourceArray.Rank <> 1 Then
PresentationCore (41)
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
731if (array.Rank != 1)
MS\Internal\FontFace\TypefaceCollection.cs (1)
74if (array.Rank != 1)
MS\Internal\PartialArray.cs (1)
141if (array.Rank != 1)
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
183if (array.Rank != 1)
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
126if (array.Rank != 1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SequentialUshortCollection.cs (1)
58if (array.Rank != 1)
System\Windows\FreezableCollection.cs (1)
507if (array.Rank != 1)
System\Windows\Generated\TextDecorationCollection.cs (1)
408if (array.Rank != 1)
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
418if (array.Rank != 1)
System\Windows\Media\CharacterMetricsDictionary.cs (1)
213if (array.Rank != 1)
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
179if (array.Rank != 1)
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
414if (array.Rank != 1)
System\Windows\Media\FamilyMapCollection.cs (1)
103if (array.Rank != 1)
System\Windows\Media\FamilyTypefaceCollection.cs (1)
382if (array.Rank != 1)
System\Windows\Media\Fonts.cs (1)
327if (array.Rank != 1)
System\Windows\Media\Generated\DoubleCollection.cs (1)
380if (array.Rank != 1)
System\Windows\Media\Generated\DrawingCollection.cs (1)
430if (array.Rank != 1)
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
416if (array.Rank != 1)
System\Windows\Media\Generated\GeometryCollection.cs (1)
430if (array.Rank != 1)
System\Windows\Media\Generated\GradientStopCollection.cs (1)
416if (array.Rank != 1)
System\Windows\Media\Generated\Int32Collection.cs (1)
380if (array.Rank != 1)
System\Windows\Media\Generated\PathFigureCollection.cs (1)
417if (array.Rank != 1)
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
416if (array.Rank != 1)
System\Windows\Media\Generated\PointCollection.cs (1)
380if (array.Rank != 1)
System\Windows\Media\Generated\TextEffectCollection.cs (1)
416if (array.Rank != 1)
System\Windows\Media\Generated\TransformCollection.cs (1)
430if (array.Rank != 1)
System\Windows\Media\Generated\VectorCollection.cs (1)
380if (array.Rank != 1)
System\Windows\Media\GlyphTypeface.cs (2)
1821if (array.Rank != 1) 1906if (array.Rank != 1)
System\Windows\Media\Imaging\BitmapSource.cs (1)
657if (pixels.Rank != 1)
System\Windows\Media\Imaging\CachedBitmap.cs (1)
136if (pixels.Rank != 1)
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
1086if (sourceBuffer.Rank == 1) 1113else if (sourceBuffer.Rank == 2)
System\Windows\Media\VisualCollection.cs (1)
192if (array.Rank != 1)
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
412if (array.Rank != 1)
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
426if (array.Rank != 1)
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
426if (array.Rank != 1)
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
376if (array.Rank != 1)
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
426if (array.Rank != 1)
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
376if (array.Rank != 1)
System\Windows\Media3D\Visual3DCollection.cs (1)
171if (array.Rank != 1)
PresentationFramework (6)
MS\Internal\Data\IndexedEnumerable.cs (1)
309Invariant.Assert(array.Rank == 1, "expected array of rank=1");
MS\Internal\Documents\ContentElementCollection.cs (1)
73if (array.Rank != 1)
System\Windows\Controls\ColumnDefinition.cs (1)
89if (array.Rank != 1)
System\Windows\Controls\ItemCollection.cs (1)
298if (array.Rank > 1)
System\Windows\Controls\RowDefinition.cs (1)
89if (array.Rank != 1)
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
361if (array != null && array.Rank != 1)
System.Collections (14)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
21if (array.Rank != 1)
System\Collections\BitArray.cs (1)
754if (array.Rank != 1)
System\Collections\Generic\LinkedList.cs (1)
451if (array.Rank != 1)
System\Collections\Generic\OrderedDictionary.cs (3)
1280if (array.Rank != 1) 1523if (array.Rank != 1) 1832if (array.Rank != 1)
System\Collections\Generic\PriorityQueue.cs (1)
953if (array.Rank != 1)
System\Collections\Generic\SortedDictionary.cs (2)
554if (array.Rank != 1) 715if (array.Rank != 1)
System\Collections\Generic\SortedList.cs (3)
456if (array.Rank != 1) 1054if (array != null && array.Rank != 1) 1168if (array != null && array.Rank != 1)
System\Collections\Generic\SortedSet.cs (1)
544if (array.Rank != 1)
System\Collections\Generic\Stack.cs (1)
124if (array.Rank != 1)
System.Collections.Immutable (2)
System\Collections\Frozen\FrozenDictionary.cs (1)
352if (array.Rank != 1)
System\Collections\Frozen\FrozenSet.cs (1)
286if (array != null && array.Rank != 1)
System.Collections.NonGeneric (5)
System\Collections\Queue.cs (1)
132if (array.Rank != 1)
System\Collections\SortedList.cs (3)
338if (array.Rank != 1) 940if (array != null && array.Rank != 1) 1043if (array != null && array.Rank != 1)
System\Collections\Stack.cs (1)
118if (array.Rank != 1)
System.Collections.Specialized (3)
System\Collections\Specialized\NameObjectCollectionBase.cs (2)
375if (array.Rank != 1) 599if (array.Rank != 1)
System\Collections\Specialized\NameValueCollection.cs (1)
200if (dest.Rank != 1)
System.Data.Common (3)
System\Data\DataRowComparer.cs (3)
55(1 != a.Rank) || 56(1 != b.Rank) || 197if (array.Rank > 1)
System.Linq.Expressions (1)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
355if (array.Rank != 1)
System.Numerics.Tensors (8)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (3)
144public ReadOnlyTensorSpan(Array? array) : this(array, ReadOnlySpan<int>.Empty, array == null ? [0] : (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray(), []) { } 156lengths = (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray(); 200lengths = (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray();
System\Numerics\Tensors\netcore\TensorSpan.cs (3)
147public TensorSpan(Array? array) : this(array, ReadOnlySpan<int>.Empty, array == null ? [0] : (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray(), []) { } 159lengths = (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray(); 204lengths = (from dim in Enumerable.Range(0, array.Rank) select (nint)array.GetLength(dim)).ToArray();
System\Numerics\Tensors\netcore\TensorSpanHelpers.cs (2)
127Debug.Assert(array.Rank == indexes.Length || indexes.Length == 0); 151Debug.Assert(array.Rank == indexes.Length || indexes.Length == 0);
System.ObjectModel (1)
System\Collections\CollectionHelpers.cs (1)
14if (array.Rank != 1)
System.Private.CoreLib (48)
src\libraries\System.Private.CoreLib\src\System\Array.cs (17)
426if (Rank != indices.Length) 434if (Rank != 1) 442if (Rank != 2) 450if (Rank != 3) 458if (Rank != 1) 466if (Rank != 2) 474if (Rank != 3) 484if (Rank != indices.Length) 532if (Rank != indices.Length) 592if (Rank != indices.Length) 853if (array.Rank != 1) 1047if (array != null && array.Rank != 1) 1367if (array.Rank != 1) 1600if (array.Rank != 1) 1835if (array.Rank != 1) 2008if (keys.Rank != 1 || (items != null && items.Rank != 1))
src\libraries\System.Private.CoreLib\src\System\Attribute.cs (2)
116Debug.Assert(thisValueArray.Rank == 1 && thatValueArray.Rank == 1);
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (5)
251if ((array != null) && (array.Rank != 1)) 266if ((array != null) && (array.Rank != 1)) 827if (array.Rank != 1) 2281if (array.Rank != 1) 2295if (array.Rank != 1)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
1469if (array.Rank != 1) 1958if (array.Rank != 1) 2152if (array.Rank != 1)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
389if ((array != null) && (array.Rank != 1))
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (1)
125if (array.Rank != 1)
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (6)
537Debug.Assert(array.Rank == 1); 556Debug.Assert(array.Rank == 1); 576if (array.Rank != 1) 608Debug.Assert(array.Rank == 1); 1193if (array.Rank != 1) 1228if (array.Rank != 1)
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (2)
152if (array.Rank != 1) 307if (array.Rank != 1)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
177if (array.Rank != 1)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
21if (array.Rank != 1)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
107if (array.Rank != 1)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ArrayWithOffset.cs (1)
23if (array is not Array arrayObj || (arrayObj.Rank != 1) || !Marshal.IsPinnable(arrayObj))
src\System\Array.CoreCLR.cs (6)
45if (sourceArray.GetType() != destinationArray.GetType() && sourceArray.Rank != destinationArray.Rank) 114Debug.Assert(sourceArray.Rank == destinationArray.Rank); 413Debug.Assert(Rank == 1); 429Debug.Assert(indices.Length == Rank);
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (1)
40if (array.Rank != 1)
System.Private.Windows.Core (11)
Windows\Win32\System\Variant\VARIANT.cs (11)
280if (array.Rank == 1) 442if (array.Rank <= 32) 454Span<int> indices = stackalloc int[array.Rank]; 455Span<int> lower = stackalloc int[array.Rank]; 456Span<int> upper = stackalloc int[array.Rank]; 462int[] indices = new int[array.Rank]; 463int[] lower = new int[array.Rank]; 464int[] upper = new int[array.Rank]; 470int lastIndex = array.Rank - 1; 472for (i = 0; i < array.Rank; i++) 514for (int i = array.Rank; i >= 1; i--)
System.Security.Cryptography (4)
System\Security\Cryptography\AsnEncodedDataCollection.cs (1)
70if (array.Rank != 1)
System\Security\Cryptography\OidCollection.cs (1)
76if (array.Rank != 1)
System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs (1)
62if (array.Rank != 1)
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (1)
81if (array.Rank != 1)
System.Security.Cryptography.Pkcs (4)
System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
143if (array.Rank != 1)
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (1)
95if (array.Rank != 1)
System\Security\Cryptography\Pkcs\RecipientInfoCollection.cs (1)
64if (array.Rank != 1)
System\Security\Cryptography\Pkcs\SignerInfoCollection.cs (1)
61if (array.Rank != 1)
System.Windows.Forms (1)
misc\CollectionHelper.cs (1)
18if (target.Rank != 1)
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (2)
390if (array.Rank != 1) 392manager.ReportError(string.Format(SR.SerializerInvalidArrayRank, array.Rank.ToString(CultureInfo.InvariantCulture)));
System.Windows.Forms.Primitives.Tests (103)
Interop\Oleaut32\VARIANTTests.cs (103)
2009Assert.Equal(1, array.Rank); 2028Assert.Equal(1, array.Rank); 2061Assert.Equal(2, array.Rank); 2080Assert.Equal(2, array.Rank); 2098Assert.Equal(1, array.Rank); 2115Assert.Equal(1, array.Rank); 2152Assert.Equal(2, array.Rank); 2179Assert.Equal(2, array.Rank); 2205Assert.Equal(1, array.Rank); 2230Assert.Equal(1, array.Rank); 2267Assert.Equal(2, array.Rank); 2294Assert.Equal(2, array.Rank); 2320Assert.Equal(1, array.Rank); 2345Assert.Equal(1, array.Rank); 2382Assert.Equal(2, array.Rank); 2409Assert.Equal(2, array.Rank); 2435Assert.Equal(1, array.Rank); 2460Assert.Equal(1, array.Rank); 2497Assert.Equal(2, array.Rank); 2524Assert.Equal(2, array.Rank); 2550Assert.Equal(1, array.Rank); 2575Assert.Equal(1, array.Rank); 2599Assert.Equal(2, array.Rank); 2626Assert.Equal(2, array.Rank); 2652Assert.Equal(1, array.Rank); 2677Assert.Equal(1, array.Rank); 2714Assert.Equal(2, array.Rank); 2741Assert.Equal(2, array.Rank); 2767Assert.Equal(1, array.Rank); 2792Assert.Equal(1, array.Rank); 2816Assert.Equal(2, array.Rank); 2843Assert.Equal(2, array.Rank); 2869Assert.Equal(1, array.Rank); 2894Assert.Equal(1, array.Rank); 2931Assert.Equal(2, array.Rank); 2958Assert.Equal(2, array.Rank); 2984Assert.Equal(1, array.Rank); 3009Assert.Equal(1, array.Rank); 3033Assert.Equal(2, array.Rank); 3060Assert.Equal(2, array.Rank); 3086Assert.Equal(1, array.Rank); 3111Assert.Equal(1, array.Rank); 3148Assert.Equal(2, array.Rank); 3175Assert.Equal(2, array.Rank); 3201Assert.Equal(1, array.Rank); 3226Assert.Equal(1, array.Rank); 3250Assert.Equal(2, array.Rank); 3277Assert.Equal(2, array.Rank); 3303Assert.Equal(1, array.Rank); 3328Assert.Equal(1, array.Rank); 3365Assert.Equal(2, array.Rank); 3392Assert.Equal(2, array.Rank); 3417Assert.Equal(1, array.Rank); 3442Assert.Equal(1, array.Rank); 3479Assert.Equal(2, array.Rank); 3506Assert.Equal(2, array.Rank); 3532Assert.Equal(1, array.Rank); 3557Assert.Equal(1, array.Rank); 3594Assert.Equal(2, array.Rank); 3621Assert.Equal(2, array.Rank); 3647Assert.Equal(1, array.Rank); 3672Assert.Equal(1, array.Rank); 3709Assert.Equal(2, array.Rank); 3736Assert.Equal(2, array.Rank); 3762Assert.Equal(1, array.Rank); 3787Assert.Equal(1, array.Rank); 3824Assert.Equal(2, array.Rank); 3851Assert.Equal(2, array.Rank); 3884Assert.Equal(1, array.Rank); 3910Assert.Equal(1, array.Rank); 3953Assert.Equal(2, array.Rank); 3980Assert.Equal(2, array.Rank); 4017Assert.Equal(1, array.Rank); 4043Assert.Equal(1, array.Rank); 4092Assert.Equal(2, array.Rank); 4120Assert.Equal(2, array.Rank); 4146Assert.Equal(1, array.Rank); 4171Assert.Equal(1, array.Rank); 4213Assert.Equal(2, array.Rank); 4240Assert.Equal(2, array.Rank); 4266Assert.Equal(1, array.Rank); 4291Assert.Equal(1, array.Rank); 4340Assert.Equal(2, array.Rank); 4367Assert.Equal(2, array.Rank); 4396Assert.Equal(1, array.Rank); 4423Assert.Equal(1, array.Rank); 4458Assert.Equal(2, array.Rank); 4495Assert.Equal(2, array.Rank); 4528Assert.Equal(1, array.Rank); 4565Assert.Equal(1, array.Rank); 4612Assert.Equal(2, array.Rank); 4669Assert.Equal(2, array.Rank); 4710Assert.Equal(1, array.Rank); 4747Assert.Equal(1, array.Rank); 4794Assert.Equal(2, array.Rank); 4851Assert.Equal(2, array.Rank); 4893Assert.Equal(1, array.Rank); 4931Assert.Equal(1, array.Rank); 4979Assert.Equal(2, array.Rank); 5037Assert.Equal(2, array.Rank); 5099Assert.Equal(1, array.Rank); 5151Assert.Equal(1, array.Rank); 5234Assert.Equal(2, array.Rank);
System.Xaml (1)
System\Xaml\XamlObjectReader.cs (1)
1800if (value.Rank > 1)
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (3)
413if (a1.Length != a2.Length || a1.Rank != a2.Rank) 419for (int i = 0; i < a1.Rank; i++)
xunit.assert (5)
Sdk\CollectionTracker.cs (5)
145 if (expectedArray.Rank == 1 && expectedArray.GetLowerBound(0) == 0 && 146 actualArray.Rank == 1 && actualArray.GetLowerBound(0) == 0) 149 if (expectedArray.Rank != actualArray.Rank) 154 for (var rank = 0; rank < expectedArray.Rank; rank++)