26 references to Current
System.Windows.Forms.Primitives (9)
System\Windows\Forms\RefCountedCache.cs (3)
91var node = enumerator.Current; 158var node = enumerator.Current; 181enumerator.Current!.Value.Dispose();
System\Windows\Forms\SinglyLinkedList.cs (6)
93/// Attempts to move to the next node. Sets <see cref="Current"/> when successful. If there are no more 94/// nodes returns false and <see cref="Current"/> will be null. 131/// Removes the <see cref="Current"/> node. Note that this will make <see cref="Current"/> the prior node 176/// Moves the <see cref="Current"/> node to the front of the list. Note that this will make 177/// <see cref="Current"/> the prior node so that <see cref="MoveNext"/> will place on the next node
System.Windows.Forms.Primitives.Tests (17)
System\Windows\Forms\SinglyLinkedListTests.cs (17)
75Assert.Null(enumerator.Current); 78Assert.Equal(1, enumerator.Current); 81Assert.Equal(2, enumerator.Current); 83Assert.Equal(1, enumerator.Current); 86Assert.Equal(3, enumerator.Current); 88Assert.Equal(4, enumerator.Current); 90Assert.Equal(5, enumerator.Current); 93Assert.Equal(4, enumerator.Current); 96Assert.Null(enumerator.Current); 127Assert.Null(enumerator.Current); 130Assert.Equal(2, enumerator.Current); 132Assert.Equal(3, enumerator.Current); 135Assert.Equal(2, enumerator.Current); 139Assert.Equal(5, enumerator.Current); 142Assert.Equal(4, enumerator.Current); 144Assert.Null(enumerator.Current); 194list.Add(enumerator.Current);