Base:
property
Current
System.Windows.Forms.BindingManagerBase.Current
1 override of Current
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\RelatedPropertyManager.cs (1)
91
public 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)
127
IEditableObject? obj =
Current
as IEditableObject;
141
IEditableObject? obj =
Current
as IEditableObject;
System.Windows.Forms.Tests (13)
System\Windows\Forms\BindingContextTests.cs (12)
407
Assert.Same(dataSource, manager.
Current
);
523
Assert.Equal(expectedCurrent, manager.
Current
);
599
Assert.Same(list, manager.
Current
);
660
Assert.Same(mockIListSource.Object, manager.
Current
);
686
Assert.Same(dataSource, parentManager.
Current
);
701
Assert.Same(mockIListSource.Object, manager.
Current
);
723
Assert.Same(dataSource, newManager.
Current
);
806
Assert.Same(dataSource, manager.
Current
);
843
Assert.Equal(1, manager.
Current
);
888
Assert.Same(dataSource, manager1.
Current
);
894
Assert.Same(dataSource, manager2.
Current
);
954
Assert.Equal(dataSource, manager.
Current
);
System\Windows\Forms\PropertyManagerTests.cs (1)
18
Assert.Null(manager.
Current
);