4 instantiations of BindingList
System.Windows.Forms.Tests (4)
System\Windows\Forms\BindingSourceTests.cs (4)
282yield return new object[] { new ObjectDataClass { List = o1 }, nameof(ObjectDataClass.List), true, true, true, false, false, false, new BindingList<object> { o1 }, typeof(BindingList<object>) }; 285yield return new object[] { new ObjectDataClass { List = o2 }, nameof(ObjectDataClass.List).ToLowerInvariant(), true, true, true, false, false, false, new BindingList<object> { o2 }, typeof(BindingList<object>) }; 287yield return new object[] { new ObjectDataClass { List = 1 }, nameof(ObjectDataClass.List), true, true, true, false, false, false, new BindingList<int> { 1 }, typeof(BindingList<int>) }; 288yield return new object[] { new ObjectDataClass { List = 1 }, nameof(ObjectDataClass.List).ToLowerInvariant(), true, true, true, false, false, false, new BindingList<int> { 1 }, typeof(BindingList<int>) };
19 references to BindingList
netstandard (1)
netstandard.cs (1)
188[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.BindingList<>))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
174[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.BindingList<>))]
System.Windows.Forms (2)
System\Windows\Forms\DataBinding\BindingSource.cs (2)
514/// Creates an instance of <see cref="BindingList{T}"/> where T is only known at run time, 519Type genericType = typeof(BindingList<>);
System.Windows.Forms.Tests (15)
System\Windows\Forms\BindingSourceTests.cs (15)
43Assert.IsType<BindingList<object>>(source.List); 60yield return new object[] { null, null, typeof(BindingList<object>) }; 61yield return new object[] { null, string.Empty, typeof(BindingList<object>) }; 62yield return new object[] { null, "dataMember", typeof(BindingList<object>) }; 63yield return new object[] { new DataClass { List = null }, nameof(DataClass.List), typeof(BindingList<int>) }; 64yield return new object[] { new DataClass { List = null }, nameof(DataClass.List), typeof(BindingList<int>) }; 66yield return new object[] { new ObjectDataClass { List = null }, nameof(ObjectDataClass.List), typeof(BindingList<object>) }; 67yield return new object[] { new ObjectDataClass { List = null }, nameof(ObjectDataClass.List).ToLowerInvariant(), typeof(BindingList<object>) }; 275yield return new object[] { emptyEnumerable, dataMember, true, false, true, false, false, false, new List<int>[] { emptyList }, typeof(BindingList<EnumerableWrapper<int>>) }; 278yield return new object[] { nonEmptyEnumerable, dataMember, true, false, true, false, false, false, nonEmptyList, typeof(BindingList<int>) }; 282yield return new object[] { new ObjectDataClass { List = o1 }, nameof(ObjectDataClass.List), true, true, true, false, false, false, new BindingList<object> { o1 }, typeof(BindingList<object>) }; 285yield return new object[] { new ObjectDataClass { List = o2 }, nameof(ObjectDataClass.List).ToLowerInvariant(), true, true, true, false, false, false, new BindingList<object> { o2 }, typeof(BindingList<object>) }; 287yield return new object[] { new ObjectDataClass { List = 1 }, nameof(ObjectDataClass.List), true, true, true, false, false, false, new BindingList<int> { 1 }, typeof(BindingList<int>) }; 288yield return new object[] { new ObjectDataClass { List = 1 }, nameof(ObjectDataClass.List).ToLowerInvariant(), true, true, true, false, false, false, new BindingList<int> { 1 }, typeof(BindingList<int>) }; 506Assert.IsType<BindingList<object>>(source.List);