2 writes to entries
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ListBox.cs (2)
2593
entries
= new Entry[Math.Max(elements, 4)];
2599
entries
= newEntries;
32 references to entries
System.Windows.Forms (32)
winforms\Managed\System\WinForms\ListBox.cs (32)
2546
entries
[count] = new Entry(item);
2547
return
entries
[count++];
2560
entries
[count++] = new Entry(i);
2570
Array.Clear(
entries
, 0, count);
2592
if (
entries
== null) {
2595
else if (count + elements >=
entries
.Length) {
2596
int newLength = Math.Max(
entries
.Length * 2,
entries
.Length + elements);
2598
entries
.CopyTo(newEntries, 0);
2614
if ((
entries
[i].state & stateMask) != 0) {
2640
if ((
entries
[i].state & stateMask) != 0) {
2675
return
entries
[actualIndex].item;
2688
return
entries
[actualIndex];
2695
return ((
entries
[index].state & stateMask) == stateMask);
2707
if (stateMask == 0 || (
entries
[i].state & stateMask) != 0) {
2709
if (
entries
[i].item.Equals(item)) {
2727
if (stateMask == 0 || (
entries
[i].state & stateMask) != 0) {
2729
if (
entries
[i] == identifier) {
2746
System.Array.Copy(
entries
, index,
entries
, index + 1, count - index);
2749
entries
[index] = new Entry(item);
2772
entries
[i] =
entries
[i+1];
2774
entries
[count] = null;
2782
entries
[index].item = item;
2790
entries
[index].state |= stateMask;
2793
entries
[index].state &= ~stateMask;
2803
return Array.BinarySearch(
entries
, 0, count, element, this);
2811
Array.Sort(
entries
, 0, count, this);
2889
if ((items.
entries
[current].state & state) != 0) {
2894
if ((items.
entries
[current].state & state) == state) {
2923
return items.
entries
[current].item;