16 writes to DataMember
System.Windows.Forms.Tests (16)
System\Windows\Forms\ErrorProviderTests.cs (16)
227DataMember = value 232provider.DataMember = value; 242DataMember = "OldMember" 245provider.DataMember = value; 249provider.DataMember = value; 270DataMember = value 275provider.DataMember = value; 298DataMember = dataMember 311provider.DataMember = "dataMember"; 322provider.DataMember = "dataMember"; 345DataMember = "NoSuchValue" 361Assert.Throws<ArgumentException>(() => provider.DataMember = "NoSuchValue"); 396DataMember = string.Empty, 469DataMember = dataMember, 484DataMember = "NoSuchValue", 499DataMember = "NoSuchValue",
34 references to DataMember
System.Windows.Forms (6)
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (6)
21[ComplexBindingProperties(nameof(DataSource), nameof(DataMember))] 188SetErrorManager(DataSource, DataMember, force: true); 250bool dataMemberChanged = DataMember != newDataMember; 324SetErrorManager(value, DataMember, force: false); 405SetErrorManager(DataSource, DataMember, true); 610SetErrorManager(DataSource, DataMember, true);
System.Windows.Forms.Tests (28)
System\Windows\Forms\ErrorProviderTests.cs (28)
22Assert.Null(provider.DataMember); 45Assert.Null(provider.DataMember); 72Assert.Null(provider.DataMember); 229Assert.Equal(expected, provider.DataMember); 233Assert.Equal(expected, provider.DataMember); 246Assert.Equal(expected, provider.DataMember); 250Assert.Equal(expected, provider.DataMember); 272Assert.Equal(expected, provider.DataMember); 276Assert.Equal(expected, provider.DataMember); 301Assert.Same(dataMember, provider.DataMember); 308PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataMember)]; 319PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ErrorProvider))[nameof(ErrorProvider.DataMember)]; 327Assert.Empty(provider.DataMember); 348Assert.Equal("NoSuchValue", provider.DataMember); 363Assert.Equal("NoSuchValue", provider.DataMember); 382Assert.Null(provider.DataMember); 387Assert.Null(provider.DataMember); 400Assert.Empty(provider.DataMember); 405Assert.Empty(provider.DataMember); 473Assert.Same(dataMember, provider.DataMember); 488Assert.Equal("NoSuchValue", provider.DataMember); 503Assert.Empty(provider.DataMember); 789Assert.Same(newDataMember, provider.DataMember); 794Assert.Same(newDataMember, provider.DataMember); 823Assert.Same(newDataMember, provider.DataMember); 828Assert.Same(newDataMember, provider.DataMember); 842Assert.Equal("NoSuchValue", provider.DataMember); 847Assert.Equal("NoSuchValue", provider.DataMember);