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