Base:
property
Current
System.Windows.Forms.BindingManagerBase.Current
1 override of Current
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\RelatedPropertyManager.cs (1)
91public override object? Current => (DataSource is not null) ? _fieldInfo.GetValue(DataSource) : null;
15 references to Current
System.Windows.Forms (2)
System\Windows\Forms\DataBinding\PropertyManager.cs (2)
127IEditableObject? obj = Current as IEditableObject; 141IEditableObject? obj = Current as IEditableObject;
System.Windows.Forms.Tests (13)
System\Windows\Forms\BindingContextTests.cs (12)
407Assert.Same(dataSource, manager.Current); 523Assert.Equal(expectedCurrent, manager.Current); 599Assert.Same(list, manager.Current); 660Assert.Same(mockIListSource.Object, manager.Current); 686Assert.Same(dataSource, parentManager.Current); 701Assert.Same(mockIListSource.Object, manager.Current); 723Assert.Same(dataSource, newManager.Current); 805Assert.Same(dataSource, manager.Current); 842Assert.Equal(1, manager.Current); 887Assert.Same(dataSource, manager1.Current); 893Assert.Same(dataSource, manager2.Current); 953Assert.Equal(dataSource, manager.Current);
System\Windows\Forms\PropertyManagerTests.cs (1)
18Assert.Null(manager.Current);