251 references to GetLowerBound
Microsoft.Build.Framework (4)
SegmentedArray.cs (1)
143var dstLB = destinationArray.GetLowerBound(0);
SegmentedDictionary`2.cs (3)
857if (array.GetLowerBound(0) != 0) 1338if (array.GetLowerBound(0) != 0) 1538if (array.GetLowerBound(0) != 0)
Microsoft.CodeAnalysis (4)
src\Dependencies\Collections\SegmentedArray.cs (1)
149var dstLB = destinationArray.GetLowerBound(0);
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
885if (array.GetLowerBound(0) != 0) 1380if (array.GetLowerBound(0) != 0) 1588if (array.GetLowerBound(0) != 0)
Microsoft.CodeAnalysis.CodeStyle (4)
src\Dependencies\Collections\SegmentedArray.cs (1)
149var dstLB = destinationArray.GetLowerBound(0);
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
885if (array.GetLowerBound(0) != 0) 1380if (array.GetLowerBound(0) != 0) 1588if (array.GetLowerBound(0) != 0)
Microsoft.CodeAnalysis.Collections.Package (4)
SegmentedArray.cs (1)
149var dstLB = destinationArray.GetLowerBound(0);
SegmentedDictionary`2.cs (3)
885if (array.GetLowerBound(0) != 0) 1380if (array.GetLowerBound(0) != 0) 1588if (array.GetLowerBound(0) != 0)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (2)
Debugger\Engine\DkmClrValue.cs (2)
596builder.Add(array.GetUpperBound(i) - array.GetLowerBound(i) + 1); 616builder.Add(array.GetLowerBound(i));
Microsoft.CodeAnalysis.Scripting (5)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (3)
659indices[i] = array.GetLowerBound(i); 670indices[i] = array.GetLowerBound(i); 686while (i >= 0 && indices[i] == array.GetLowerBound(i))
Hosting\ObjectFormatter\CommonTypeNameFormatter.cs (2)
163if (arrayOpt.GetLowerBound(i) > 0) 172int lowerBound = arrayOpt.GetLowerBound(i);
Microsoft.CodeAnalysis.UnitTests (1)
Collections\List\ICollection.NonGeneric.Tests.cs (1)
205Assert.Equal(2, arr.GetLowerBound(0));
Microsoft.CodeAnalysis.Workspaces (4)
src\Dependencies\Collections\SegmentedArray.cs (1)
149var dstLB = destinationArray.GetLowerBound(0);
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
885if (array.GetLowerBound(0) != 0) 1380if (array.GetLowerBound(0) != 0) 1588if (array.GetLowerBound(0) != 0)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Dependencies\Collections\SegmentedArray.cs (1)
149var dstLB = destinationArray.GetLowerBound(0);
src\Dependencies\Collections\SegmentedDictionary`2.cs (3)
885if (array.GetLowerBound(0) != 0) 1380if (array.GetLowerBound(0) != 0) 1588if (array.GetLowerBound(0) != 0)
Microsoft.Data.Analysis (2)
TextFieldParser.cs (2)
1085lowerBound = _delimitersCopy.GetLowerBound(0); 1105lowerBound = _fieldWidthsCopy.GetLowerBound(0);
Microsoft.Data.Analysis.Tests (2)
src\Microsoft.Data.Analysis\TextFieldParser.cs (2)
1085lowerBound = _delimitersCopy.GetLowerBound(0); 1105lowerBound = _fieldWidthsCopy.GetLowerBound(0);
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\FileIO\TextFieldParser.vb (2)
1288lowerBound = m_DelimitersCopy.GetLowerBound(0) 1306lowerBound = m_FieldWidthsCopy.GetLowerBound(0)
System.Collections (11)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
26if (array.GetLowerBound(0) != 0)
System\Collections\Generic\LinkedList.cs (1)
456if (array.GetLowerBound(0) != 0)
System\Collections\Generic\OrderedDictionary.cs (3)
1285if (array.GetLowerBound(0) != 0) 1528if (array.GetLowerBound(0) != 0) 1837if (array.GetLowerBound(0) != 0)
System\Collections\Generic\PriorityQueue.cs (1)
958if (array.GetLowerBound(0) != 0)
System\Collections\Generic\SortedDictionary.cs (2)
559if (array.GetLowerBound(0) != 0) 720if (array.GetLowerBound(0) != 0)
System\Collections\Generic\SortedList.cs (1)
461if (array.GetLowerBound(0) != 0)
System\Collections\Generic\SortedSet.cs (1)
549if (array.GetLowerBound(0) != 0)
System\Collections\Generic\Stack.cs (1)
129if (array.GetLowerBound(0) != 0)
System.Collections.Immutable (1)
System\Collections\Frozen\FrozenDictionary.cs (1)
357if (array.GetLowerBound(0) != 0)
System.Data.Common (3)
System\Data\DataRowComparer.cs (3)
63int index1 = a.GetLowerBound(0); 64int index2 = b.GetLowerBound(0); 203hash = array.GetValue(array.GetLowerBound(0))!.GetHashCode();
System.ObjectModel (1)
System\Collections\CollectionHelpers.cs (1)
19if (array.GetLowerBound(0) != 0)
System.Private.CoreLib (30)
src\libraries\System.Private.CoreLib\src\System\Array.cs (21)
385CopyImpl(sourceArray, sourceArray.GetLowerBound(0), destinationArray, destinationArray.GetLowerBound(0), length, reliable: false); 655return IndexOf(this, value) >= this.GetLowerBound(0); 785return BinarySearch(array, array.GetLowerBound(0), array.Length, value, null); 824return BinarySearch(array, array.GetLowerBound(0), array.Length, value, comparer); 846int lb = array.GetLowerBound(0); 1050Copy(this, GetLowerBound(0), array!, index, Length); 1340return IndexOf(array, value, array.GetLowerBound(0), array.Length); 1353int lb = array.GetLowerBound(0); 1370int lb = array.GetLowerBound(0); 1561int lb = array.GetLowerBound(0); 1574int lb = array.GetLowerBound(0); 1588int lb = array.GetLowerBound(0); 1814Reverse(array, array.GetLowerBound(0), array.Length); 1827int lowerBound = array.GetLowerBound(0); 1921Sort(array, null, array.GetLowerBound(0), array.Length, null); 1934Sort(keys, items, keys.GetLowerBound(0), keys.Length, null); 1967Sort(array, null, array.GetLowerBound(0), array.Length, comparer); 1982Sort(keys, items, keys.GetLowerBound(0), keys.Length, comparer); 2010int keysLowerBound = keys.GetLowerBound(0); 2011if (items != null && keysLowerBound != items.GetLowerBound(0))
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
1474if (array.GetLowerBound(0) != 0) 1963if (array.GetLowerBound(0) != 0) 2157if (array.GetLowerBound(0) != 0)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (1)
130if (array.GetLowerBound(0) != 0)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
182if (array.GetLowerBound(0) != 0)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
26if (array.GetLowerBound(0) != 0)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
112if (array.GetLowerBound(0) != 0)
src\System\Array.CoreCLR.cs (2)
50int srcLB = sourceArray.GetLowerBound(0); 55int dstLB = destinationArray.GetLowerBound(0);
System.Private.Windows.Core (1)
Windows\Win32\System\Variant\VARIANT.cs (1)
474indices[i] = lower[i] = array.GetLowerBound(i);
System.Threading.Tasks.Parallel (1)
System\Threading\Tasks\Parallel.cs (1)
1706int from = array.GetLowerBound(0);
System.Windows.Forms (1)
misc\CollectionHelper.cs (1)
22if (target.GetLowerBound(0) != 0)
System.Windows.Forms.Primitives.Tests (154)
Interop\Oleaut32\VARIANTTests.cs (154)
2009Assert.Equal(0, array.GetLowerBound(0)); 2028Assert.Equal(1, array.GetLowerBound(0)); 2061Assert.Equal(0, array.GetLowerBound(0)); 2062Assert.Equal(0, array.GetLowerBound(1)); 2080Assert.Equal(1, array.GetLowerBound(0)); 2081Assert.Equal(2, array.GetLowerBound(1)); 2098Assert.Equal(0, array.GetLowerBound(0)); 2115Assert.Equal(1, array.GetLowerBound(0)); 2152Assert.Equal(0, array.GetLowerBound(0)); 2153Assert.Equal(0, array.GetLowerBound(1)); 2179Assert.Equal(1, array.GetLowerBound(0)); 2180Assert.Equal(2, array.GetLowerBound(1)); 2205Assert.Equal(0, array.GetLowerBound(0)); 2230Assert.Equal(1, array.GetLowerBound(0)); 2267Assert.Equal(0, array.GetLowerBound(0)); 2268Assert.Equal(0, array.GetLowerBound(1)); 2294Assert.Equal(1, array.GetLowerBound(0)); 2295Assert.Equal(2, array.GetLowerBound(1)); 2320Assert.Equal(0, array.GetLowerBound(0)); 2345Assert.Equal(1, array.GetLowerBound(0)); 2382Assert.Equal(0, array.GetLowerBound(0)); 2383Assert.Equal(0, array.GetLowerBound(1)); 2409Assert.Equal(1, array.GetLowerBound(0)); 2410Assert.Equal(2, array.GetLowerBound(1)); 2435Assert.Equal(0, array.GetLowerBound(0)); 2460Assert.Equal(1, array.GetLowerBound(0)); 2497Assert.Equal(0, array.GetLowerBound(0)); 2498Assert.Equal(0, array.GetLowerBound(1)); 2524Assert.Equal(1, array.GetLowerBound(0)); 2525Assert.Equal(2, array.GetLowerBound(1)); 2550Assert.Equal(0, array.GetLowerBound(0)); 2575Assert.Equal(1, array.GetLowerBound(0)); 2599Assert.Equal(0, array.GetLowerBound(0)); 2600Assert.Equal(0, array.GetLowerBound(1)); 2626Assert.Equal(1, array.GetLowerBound(0)); 2627Assert.Equal(2, array.GetLowerBound(1)); 2652Assert.Equal(0, array.GetLowerBound(0)); 2677Assert.Equal(1, array.GetLowerBound(0)); 2714Assert.Equal(0, array.GetLowerBound(0)); 2715Assert.Equal(0, array.GetLowerBound(1)); 2741Assert.Equal(1, array.GetLowerBound(0)); 2742Assert.Equal(2, array.GetLowerBound(1)); 2767Assert.Equal(0, array.GetLowerBound(0)); 2792Assert.Equal(1, array.GetLowerBound(0)); 2816Assert.Equal(0, array.GetLowerBound(0)); 2817Assert.Equal(0, array.GetLowerBound(1)); 2843Assert.Equal(1, array.GetLowerBound(0)); 2844Assert.Equal(2, array.GetLowerBound(1)); 2869Assert.Equal(0, array.GetLowerBound(0)); 2894Assert.Equal(1, array.GetLowerBound(0)); 2931Assert.Equal(0, array.GetLowerBound(0)); 2932Assert.Equal(0, array.GetLowerBound(1)); 2958Assert.Equal(1, array.GetLowerBound(0)); 2959Assert.Equal(2, array.GetLowerBound(1)); 2984Assert.Equal(0, array.GetLowerBound(0)); 3009Assert.Equal(1, array.GetLowerBound(0)); 3033Assert.Equal(0, array.GetLowerBound(0)); 3034Assert.Equal(0, array.GetLowerBound(1)); 3060Assert.Equal(1, array.GetLowerBound(0)); 3061Assert.Equal(2, array.GetLowerBound(1)); 3086Assert.Equal(0, array.GetLowerBound(0)); 3111Assert.Equal(1, array.GetLowerBound(0)); 3148Assert.Equal(0, array.GetLowerBound(0)); 3149Assert.Equal(0, array.GetLowerBound(1)); 3175Assert.Equal(1, array.GetLowerBound(0)); 3176Assert.Equal(2, array.GetLowerBound(1)); 3201Assert.Equal(0, array.GetLowerBound(0)); 3226Assert.Equal(1, array.GetLowerBound(0)); 3250Assert.Equal(0, array.GetLowerBound(0)); 3251Assert.Equal(0, array.GetLowerBound(1)); 3277Assert.Equal(1, array.GetLowerBound(0)); 3278Assert.Equal(2, array.GetLowerBound(1)); 3303Assert.Equal(0, array.GetLowerBound(0)); 3328Assert.Equal(1, array.GetLowerBound(0)); 3365Assert.Equal(0, array.GetLowerBound(0)); 3366Assert.Equal(0, array.GetLowerBound(1)); 3392Assert.Equal(1, array.GetLowerBound(0)); 3393Assert.Equal(2, array.GetLowerBound(1)); 3417Assert.Equal(0, array.GetLowerBound(0)); 3442Assert.Equal(1, array.GetLowerBound(0)); 3479Assert.Equal(0, array.GetLowerBound(0)); 3480Assert.Equal(0, array.GetLowerBound(1)); 3506Assert.Equal(1, array.GetLowerBound(0)); 3507Assert.Equal(2, array.GetLowerBound(1)); 3532Assert.Equal(0, array.GetLowerBound(0)); 3557Assert.Equal(1, array.GetLowerBound(0)); 3594Assert.Equal(0, array.GetLowerBound(0)); 3595Assert.Equal(0, array.GetLowerBound(1)); 3621Assert.Equal(1, array.GetLowerBound(0)); 3622Assert.Equal(2, array.GetLowerBound(1)); 3647Assert.Equal(0, array.GetLowerBound(0)); 3672Assert.Equal(1, array.GetLowerBound(0)); 3709Assert.Equal(0, array.GetLowerBound(0)); 3710Assert.Equal(0, array.GetLowerBound(1)); 3736Assert.Equal(1, array.GetLowerBound(0)); 3737Assert.Equal(2, array.GetLowerBound(1)); 3762Assert.Equal(0, array.GetLowerBound(0)); 3787Assert.Equal(1, array.GetLowerBound(0)); 3824Assert.Equal(0, array.GetLowerBound(0)); 3825Assert.Equal(0, array.GetLowerBound(1)); 3851Assert.Equal(1, array.GetLowerBound(0)); 3852Assert.Equal(2, array.GetLowerBound(1)); 3884Assert.Equal(0, array.GetLowerBound(0)); 3910Assert.Equal(1, array.GetLowerBound(0)); 3953Assert.Equal(0, array.GetLowerBound(0)); 3954Assert.Equal(0, array.GetLowerBound(1)); 3980Assert.Equal(1, array.GetLowerBound(0)); 3981Assert.Equal(2, array.GetLowerBound(1)); 4017Assert.Equal(0, array.GetLowerBound(0)); 4043Assert.Equal(1, array.GetLowerBound(0)); 4092Assert.Equal(0, array.GetLowerBound(0)); 4093Assert.Equal(0, array.GetLowerBound(1)); 4120Assert.Equal(1, array.GetLowerBound(0)); 4121Assert.Equal(2, array.GetLowerBound(1)); 4146Assert.Equal(0, array.GetLowerBound(0)); 4171Assert.Equal(1, array.GetLowerBound(0)); 4213Assert.Equal(0, array.GetLowerBound(0)); 4214Assert.Equal(0, array.GetLowerBound(1)); 4240Assert.Equal(1, array.GetLowerBound(0)); 4241Assert.Equal(2, array.GetLowerBound(1)); 4266Assert.Equal(0, array.GetLowerBound(0)); 4291Assert.Equal(1, array.GetLowerBound(0)); 4340Assert.Equal(0, array.GetLowerBound(0)); 4341Assert.Equal(0, array.GetLowerBound(1)); 4367Assert.Equal(1, array.GetLowerBound(0)); 4368Assert.Equal(2, array.GetLowerBound(1)); 4396Assert.Equal(0, array.GetLowerBound(0)); 4423Assert.Equal(1, array.GetLowerBound(0)); 4458Assert.Equal(0, array.GetLowerBound(0)); 4459Assert.Equal(0, array.GetLowerBound(1)); 4495Assert.Equal(1, array.GetLowerBound(0)); 4496Assert.Equal(2, array.GetLowerBound(1)); 4528Assert.Equal(0, array.GetLowerBound(0)); 4565Assert.Equal(1, array.GetLowerBound(0)); 4612Assert.Equal(0, array.GetLowerBound(0)); 4613Assert.Equal(0, array.GetLowerBound(1)); 4669Assert.Equal(1, array.GetLowerBound(0)); 4670Assert.Equal(2, array.GetLowerBound(1)); 4710Assert.Equal(0, array.GetLowerBound(0)); 4747Assert.Equal(1, array.GetLowerBound(0)); 4794Assert.Equal(0, array.GetLowerBound(0)); 4795Assert.Equal(0, array.GetLowerBound(1)); 4851Assert.Equal(1, array.GetLowerBound(0)); 4852Assert.Equal(2, array.GetLowerBound(1)); 4893Assert.Equal(0, array.GetLowerBound(0)); 4931Assert.Equal(1, array.GetLowerBound(0)); 4979Assert.Equal(0, array.GetLowerBound(0)); 4980Assert.Equal(0, array.GetLowerBound(1)); 5037Assert.Equal(1, array.GetLowerBound(0)); 5038Assert.Equal(2, array.GetLowerBound(1)); 5099Assert.Equal(0, array.GetLowerBound(0)); 5151Assert.Equal(1, array.GetLowerBound(0)); 5234Assert.Equal(0, array.GetLowerBound(0)); 5235Assert.Equal(0, array.GetLowerBound(1));
System.Windows.Forms.Tests (4)
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (2)
400result.GetLowerBound(0).Should().Be(1); 401result.GetLowerBound(1).Should().Be(2);
System\Windows\Forms\ClipboardTests.cs (2)
868result.GetLowerBound(0).Should().Be(1); 869result.GetLowerBound(1).Should().Be(2);
UIAutomationClientSideProviders (2)
MS\Internal\AutomationProxies\WindowsRichEditRange.cs (2)
420if (a1.GetLowerBound(i) != a2.GetLowerBound(i)
xunit.assert (4)
Sdk\CollectionTracker.cs (4)
145 if (expectedArray.Rank == 1 && expectedArray.GetLowerBound(0) == 0 && 146 actualArray.Rank == 1 && actualArray.GetLowerBound(0) == 0) 155 if (expectedArray.GetLowerBound(rank) != actualArray.GetLowerBound(rank) || expectedArray.GetUpperBound(rank) != actualArray.GetUpperBound(rank))