11 references to new
System.Windows.Forms (2)
System\Windows\Forms\DataBinding\BindingSource.cs (2)
66: this(dataSource: null, dataMember: string.Empty) 183BindingSource bs = new(this, dataMember);
System.Windows.Forms.Tests (9)
System\Windows\Forms\BindingSourceTests.cs (8)
455using BindingSource source = new(mockCurrencyManagerProvider.Object, dataMember); 465Assert.Throws<NotSupportedException>(() => new BindingSource(dataSource, "dataMember")); 471Assert.Throws<ArgumentException>(() => new BindingSource(new DataClass(), "NoSuchProperty")); 579using BindingSource bindingSource = new(new DataSource(), nameof(DataSource.Member)); 603using BindingSource bindingSource = new(dataSource, nameof(ISupportInitializeNotificationDataSource.Member)); 639using BindingSource bindingSource = new(dataSource, nameof(ISupportInitializeNotificationDataSource.Member)); 675using BindingSource bindingSource = new(dataSource, nameof(ISupportInitializeNotificationDataSource.Member)); 827public SubBindingSource(object dataSource, string dataMember) : base(dataSource, dataMember)
System\Windows\Forms\ListBindingHelperTests.cs (1)
64BindingSource validSource = new(new List<CustomCurrencyManagerProvider> { new() { Property = 1 } }, null);