46 instantiations of BindingMemberInfo
System.Windows.Forms (6)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
1356BindingMemberInfo displayBindingMember = new(displayMember); 1387BindingMemberInfo valueBindingMember = new(valueMember);
System\Windows\Forms\Controls\ListControl\ListControl.cs (3)
117SetDataConnection(_dataSource, new BindingMemberInfo(value), force: false); 305BindingMemberInfo newValueMember = new(value); 663SetDataConnection(null, new BindingMemberInfo(string.Empty), true);
System\Windows\Forms\DataBinding\Binding.cs (1)
149BindingMemberInfo = new BindingMemberInfo(dataMember);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewComboBoxColumnDesigner.cs (1)
82BindingMemberInfo bindingMemberInfo = new(dataMember);
System.Windows.Forms.Tests (39)
System\Windows\Forms\BindingMemberInfoTests.cs (33)
12BindingMemberInfo info = new(); 29BindingMemberInfo info = new(dataMember); 37yield return new object[] { new BindingMemberInfo("Some.Other"), new BindingMemberInfo("Some.Other"), true }; 38yield return new object[] { new BindingMemberInfo("Some.Other"), new BindingMemberInfo("some.other"), true }; 39yield return new object[] { new BindingMemberInfo("Some.Other"), new BindingMemberInfo("Some2.Other"), false }; 40yield return new object[] { new BindingMemberInfo("Some.Other"), new BindingMemberInfo("Some.Other2"), false }; 41yield return new object[] { new BindingMemberInfo("Some.Other"), new BindingMemberInfo("Some"), false }; 42yield return new object[] { new BindingMemberInfo("Some.Other"), new BindingMemberInfo(), false }; 44yield return new object[] { new BindingMemberInfo("Some"), new BindingMemberInfo("Some"), true }; 45yield return new object[] { new BindingMemberInfo("Some"), new BindingMemberInfo("Some2"), false }; 46yield return new object[] { new BindingMemberInfo("Some"), new BindingMemberInfo("Some.Other"), false }; 47yield return new object[] { new BindingMemberInfo("Some.Other"), new BindingMemberInfo(), false }; 49yield return new object[] { new BindingMemberInfo(), new BindingMemberInfo(), true }; 50yield return new object[] { new BindingMemberInfo(), new BindingMemberInfo(""), true }; 51yield return new object[] { new BindingMemberInfo(), new BindingMemberInfo("Some.Other"), false }; 53yield return new object[] { new BindingMemberInfo("Some.Other"), new(), false }; 54yield return new object[] { new BindingMemberInfo("Some.Other"), null, false }; 72yield return new object[] { new BindingMemberInfo() }; 73yield return new object[] { new BindingMemberInfo("Some") }; 74yield return new object[] { new BindingMemberInfo("Some.Other") };
System\Windows\Forms\BindingTests.cs (6)
27Assert.Equal(new BindingMemberInfo(dataMember), binding.BindingMemberInfo); 56Assert.Equal(new BindingMemberInfo(dataMember), binding.BindingMemberInfo); 85Assert.Equal(new BindingMemberInfo(dataMember), binding.BindingMemberInfo); 114Assert.Equal(new BindingMemberInfo(dataMember), binding.BindingMemberInfo); 143Assert.Equal(new BindingMemberInfo(dataMember), binding.BindingMemberInfo); 172Assert.Equal(new BindingMemberInfo(dataMember), binding.BindingMemberInfo);
22 references to BindingMemberInfo
System.Windows.Forms (16)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
1356BindingMemberInfo displayBindingMember = new(displayMember); 1387BindingMemberInfo valueBindingMember = new(valueMember);
System\Windows\Forms\Controls\ListControl\ListControl.cs (6)
25private BindingMemberInfo _displayMember; 26private BindingMemberInfo _valueMember; 114BindingMemberInfo oldDisplayMember = _displayMember; 258private static bool BindingMemberInfoInDataManager(CurrencyManager dataManager, BindingMemberInfo bindingMemberInfo) 305BindingMemberInfo newValueMember = new(value); 671private void SetDataConnection(object? newDataSource, BindingMemberInfo newDisplayMember, bool force)
System\Windows\Forms\DataBinding\Binding.cs (1)
164public BindingMemberInfo BindingMemberInfo { get; }
System\Windows\Forms\DataBinding\BindingMemberInfo.cs (7)
6public readonly struct BindingMemberInfo : IEquatable<BindingMemberInfo> 39if (otherObject is not BindingMemberInfo otherMember) 47public bool Equals(BindingMemberInfo other) 50public static bool operator ==(BindingMemberInfo a, BindingMemberInfo b) => a.Equals(b); 52public static bool operator !=(BindingMemberInfo a, BindingMemberInfo b) => !a.Equals(b);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewComboBoxColumnDesigner.cs (1)
82BindingMemberInfo bindingMemberInfo = new(dataMember);
System.Windows.Forms.Tests (5)
System\Windows\Forms\BindingMemberInfoTests.cs (5)
12BindingMemberInfo info = new(); 29BindingMemberInfo info = new(dataMember); 59public void Equals_Invoke_ReturnsExpected(BindingMemberInfo info, object other, bool expected) 61if (other is BindingMemberInfo otherInfo) 79public void GetHashCode_Invoke_ReturnsExpected(BindingMemberInfo info)