38 references to new
System.Windows.Forms (6)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
1352BindingMemberInfo displayBindingMember = new(displayMember); 1383BindingMemberInfo 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 (31)
System\Windows\Forms\BindingMemberInfoTests.cs (25)
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"), default(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"), default(BindingMemberInfo), false }; 50yield return new object[] { default(BindingMemberInfo), new BindingMemberInfo(""), true }; 51yield return new object[] { default(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 }; 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);