233 references to Rank
GenerateDocumentationAndConfigFiles (5)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
143if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
882if (array.Rank != 1) 1377if (array.Rank != 1) 1585if (array.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
456if ((array != null) && (array.Rank != 1))
Microsoft.Build (5)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedArray.cs (1)
143if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedDictionary`2.cs (3)
882if (array.Rank != 1) 1377if (array.Rank != 1) 1585if (array.Rank != 1)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedList`1.cs (1)
456if ((array != null) && (array.Rank != 1))
Microsoft.CodeAnalysis (5)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
143if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
882if (array.Rank != 1) 1377if (array.Rank != 1) 1585if (array.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
456if ((array != null) && (array.Rank != 1))
Microsoft.CodeAnalysis.Analyzers (5)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
143if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
882if (array.Rank != 1) 1377if (array.Rank != 1) 1585if (array.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
456if ((array != null) && (array.Rank != 1))
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
143if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
882if (array.Rank != 1) 1377if (array.Rank != 1) 1585if (array.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
456if ((array != null) && (array.Rank != 1))
Microsoft.CodeAnalysis.CodeStyle (5)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
143if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
882if (array.Rank != 1) 1377if (array.Rank != 1) 1585if (array.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
456if ((array != null) && (array.Rank != 1))
Microsoft.CodeAnalysis.Extensions.Package (5)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
143if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
882if (array.Rank != 1) 1377if (array.Rank != 1) 1585if (array.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
456if ((array != null) && (array.Rank != 1))
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
143if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
882if (array.Rank != 1) 1377if (array.Rank != 1) 1585if (array.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
456if ((array != null) && (array.Rank != 1))
Microsoft.CodeAnalysis.Scripting (4)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (4)
565if (array.Rank > 1) 644Debug.Assert(array.Rank > 1); 654int[] indices = new int[array.Rank]; 655for (int i = array.Rank - 1; i >= 0; i--)
Microsoft.CodeAnalysis.Workspaces (5)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
143if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
882if (array.Rank != 1) 1377if (array.Rank != 1) 1585if (array.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
456if ((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)
1151Dim rank As Integer = arrayInstance.Rank 1200Dim 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)
718if (array.Rank != 1)
MS\Internal\FontFace\TypefaceCollection.cs (1)
59if (array.Rank != 1)
MS\Internal\PartialArray.cs (1)
126if (array.Rank != 1)
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
167if (array.Rank != 1)
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
112if (array.Rank != 1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SequentialUshortCollection.cs (1)
38if (array.Rank != 1)
System\Windows\FreezableCollection.cs (1)
479if (array.Rank != 1)
System\Windows\Generated\TextDecorationCollection.cs (1)
391if (array.Rank != 1)
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
390if (array.Rank != 1)
System\Windows\Media\CharacterMetricsDictionary.cs (1)
195if (array.Rank != 1)
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
164if (array.Rank != 1)
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
393if (array.Rank != 1)
System\Windows\Media\FamilyMapCollection.cs (1)
90if (array.Rank != 1)
System\Windows\Media\FamilyTypefaceCollection.cs (1)
368if (array.Rank != 1)
System\Windows\Media\Fonts.cs (1)
313if (array.Rank != 1)
System\Windows\Media\Generated\DoubleCollection.cs (1)
365if (array.Rank != 1)
System\Windows\Media\Generated\DrawingCollection.cs (1)
412if (array.Rank != 1)
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
400if (array.Rank != 1)
System\Windows\Media\Generated\GeometryCollection.cs (1)
412if (array.Rank != 1)
System\Windows\Media\Generated\GradientStopCollection.cs (1)
400if (array.Rank != 1)
System\Windows\Media\Generated\Int32Collection.cs (1)
365if (array.Rank != 1)
System\Windows\Media\Generated\PathFigureCollection.cs (1)
401if (array.Rank != 1)
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
400if (array.Rank != 1)
System\Windows\Media\Generated\PointCollection.cs (1)
365if (array.Rank != 1)
System\Windows\Media\Generated\TextEffectCollection.cs (1)
400if (array.Rank != 1)
System\Windows\Media\Generated\TransformCollection.cs (1)
412if (array.Rank != 1)
System\Windows\Media\Generated\VectorCollection.cs (1)
365if (array.Rank != 1)
System\Windows\Media\GlyphTypeface.cs (2)
1811if (array.Rank != 1) 1896if (array.Rank != 1)
System\Windows\Media\Imaging\BitmapSource.cs (1)
642if (pixels.Rank != 1)
System\Windows\Media\Imaging\CachedBitmap.cs (1)
115if (pixels.Rank != 1)
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
1051if (sourceBuffer.Rank == 1) 1078else if (sourceBuffer.Rank == 2)
System\Windows\Media\VisualCollection.cs (1)
172if (array.Rank != 1)
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
398if (array.Rank != 1)
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
410if (array.Rank != 1)
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
410if (array.Rank != 1)
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
363if (array.Rank != 1)
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
410if (array.Rank != 1)
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
363if (array.Rank != 1)
System\Windows\Media3D\Visual3DCollection.cs (1)
157if (array.Rank != 1)
PresentationFramework (6)
MS\Internal\Data\IndexedEnumerable.cs (1)
297Invariant.Assert(array.Rank == 1, "expected array of rank=1");
MS\Internal\Documents\ContentElementCollection.cs (1)
67if (array.Rank != 1)
System\Windows\Controls\ColumnDefinition.cs (1)
76if (array.Rank != 1)
System\Windows\Controls\ItemCollection.cs (1)
285if (array.Rank > 1)
System\Windows\Controls\RowDefinition.cs (1)
71if (array.Rank != 1)
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
356if (array != null && array.Rank != 1)
Roslyn.Diagnostics.Analyzers (5)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray.cs (1)
143if (typeof(T[]) != destinationArray.GetType() && destinationArray.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
882if (array.Rank != 1) 1377if (array.Rank != 1) 1585if (array.Rank != 1)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
456if ((array != null) && (array.Rank != 1))
System.Collections (13)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
14if (array.Rank != 1)
System\Collections\Generic\LinkedList.cs (1)
451if (array.Rank != 1)
System\Collections\Generic\OrderedDictionary.cs (3)
1284if (array.Rank != 1) 1527if (array.Rank != 1) 1836if (array.Rank != 1)
System\Collections\Generic\PriorityQueue.cs (1)
953if (array.Rank != 1)
System\Collections\Generic\SortedDictionary.cs (2)
552if (array.Rank != 1) 713if (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)
405if (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.DirectoryServices (1)
System\DirectoryServices\PropertyCollection.cs (1)
157if (array.Rank != 1)
System.DirectoryServices.AccountManagement (2)
System\DirectoryServices\AccountManagement\PrincipalCollection.cs (1)
26if (array.Rank != 1)
System\DirectoryServices\AccountManagement\TrackedCollection.cs (1)
24if (array.Rank != 1)
System.Linq.Expressions (1)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
355if (array.Rank != 1)
System.Numerics.Tensors (2)
System\Numerics\Tensors\netcore\TensorShape.cs (2)
702int rank = array.Rank; 750int rank = array.Rank;
System.ObjectModel (1)
System\Collections\CollectionHelpers.cs (1)
14if (array.Rank != 1)
System.Private.CoreLib (48)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Array.cs (23)
442if (sourceArray.GetType() != destinationArray.GetType() && sourceArray.Rank != destinationArray.Rank) 491Debug.Assert(sourceArray.Rank == destinationArray.Rank); 726Debug.Assert(Rank == 1); 742Debug.Assert(indices.Length == Rank); 818if (Rank != indices.Length) 826if (Rank != 1) 834if (Rank != 2) 842if (Rank != 3) 850if (Rank != 1) 858if (Rank != 2) 866if (Rank != 3) 876if (Rank != indices.Length) 924if (Rank != indices.Length) 984if (Rank != indices.Length) 1245if (array.Rank != 1) 1439if (array != null && array.Rank != 1) 1771if (array.Rank != 1) 2004if (array.Rank != 1) 2239if (array.Rank != 1) 2412if (keys.Rank != 1 || (items != null && items.Rank != 1))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Attribute.cs (2)
116Debug.Assert(thisValueArray.Rank == 1 && thatValueArray.Rank == 1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (5)
251if ((array != null) && (array.Rank != 1)) 266if ((array != null) && (array.Rank != 1)) 826if (array.Rank != 1) 2280if (array.Rank != 1) 2294if (array.Rank != 1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (1)
675if (array.Rank != 1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
1578if (array.Rank != 1) 2067if (array.Rank != 1) 2261if (array.Rank != 1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
389if ((array != null) && (array.Rank != 1))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (1)
125if (array.Rank != 1)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (2)
152if (array.Rank != 1) 307if (array.Rank != 1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
177if (array.Rank != 1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
14if (array.Rank != 1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
108if (array.Rank != 1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ArrayWithOffset.cs (1)
23if (array is not Array arrayObj || (arrayObj.Rank != 1) || !Marshal.IsPinnable(arrayObj))
System.Private.Windows.Core (11)
Windows\Win32\System\Variant\VARIANT.cs (11)
287if (array.Rank == 1) 449if (array.Rank <= 32) 461Span<int> indices = stackalloc int[array.Rank]; 462Span<int> lower = stackalloc int[array.Rank]; 463Span<int> upper = stackalloc int[array.Rank]; 469int[] indices = new int[array.Rank]; 470int[] lower = new int[array.Rank]; 471int[] upper = new int[array.Rank]; 477int lastIndex = array.Rank - 1; 479for (i = 0; i < array.Rank; i++) 521for (int i = array.Rank; i >= 1; i--)
System.Security.AccessControl (1)
System\Security\AccessControl\ACL.cs (1)
171if (array.Rank != 1)
System.Security.Cryptography (5)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
137if (array.Rank != 1)
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)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
137if (array.Rank != 1)
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (1)
86if (array.Rank != 1)
System\Security\Cryptography\Pkcs\RecipientInfoCollection.cs (1)
61if (array.Rank != 1)
System\Security\Cryptography\Pkcs\SignerInfoCollection.cs (1)
59if (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.Xaml (1)
System\Xaml\XamlObjectReader.cs (1)
1804if (value.Rank > 1)
UIAutomationClientSideProviders (3)
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (3)
405if (a1.Length != a2.Length || a1.Rank != a2.Rank) 411for (int i = 0; i < a1.Rank; i++)