4 instantiations of BindingList
System.Windows.Forms.Tests (4)
System\Windows\Forms\BindingSourceTests.cs (4)
282
yield return new object[] { new ObjectDataClass { List = o1 }, nameof(ObjectDataClass.List), true, true, true, false, false, false, new
BindingList
<object> { o1 }, typeof(BindingList<object>) };
285
yield return new object[] { new ObjectDataClass { List = o2 }, nameof(ObjectDataClass.List).ToLowerInvariant(), true, true, true, false, false, false, new
BindingList
<object> { o2 }, typeof(BindingList<object>) };
287
yield return new object[] { new ObjectDataClass { List = 1 }, nameof(ObjectDataClass.List), true, true, true, false, false, false, new
BindingList
<int> { 1 }, typeof(BindingList<int>) };
288
yield 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,
519
Type genericType = typeof(
BindingList
<>);
System.Windows.Forms.Tests (15)
System\Windows\Forms\BindingSourceTests.cs (15)
43
Assert.IsType<
BindingList
<object>>(source.List);
60
yield return new object[] { null, null, typeof(
BindingList
<object>) };
61
yield return new object[] { null, string.Empty, typeof(
BindingList
<object>) };
62
yield return new object[] { null, "dataMember", typeof(
BindingList
<object>) };
63
yield return new object[] { new DataClass { List = null }, nameof(DataClass.List), typeof(
BindingList
<int>) };
64
yield return new object[] { new DataClass { List = null }, nameof(DataClass.List), typeof(
BindingList
<int>) };
66
yield return new object[] { new ObjectDataClass { List = null }, nameof(ObjectDataClass.List), typeof(
BindingList
<object>) };
67
yield return new object[] { new ObjectDataClass { List = null }, nameof(ObjectDataClass.List).ToLowerInvariant(), typeof(
BindingList
<object>) };
275
yield return new object[] { emptyEnumerable, dataMember, true, false, true, false, false, false, new List<int>[] { emptyList }, typeof(
BindingList
<EnumerableWrapper<int>>) };
278
yield return new object[] { nonEmptyEnumerable, dataMember, true, false, true, false, false, false, nonEmptyList, typeof(
BindingList
<int>) };
282
yield return new object[] { new ObjectDataClass { List = o1 }, nameof(ObjectDataClass.List), true, true, true, false, false, false, new BindingList<object> { o1 }, typeof(
BindingList
<object>) };
285
yield return new object[] { new ObjectDataClass { List = o2 }, nameof(ObjectDataClass.List).ToLowerInvariant(), true, true, true, false, false, false, new BindingList<object> { o2 }, typeof(
BindingList
<object>) };
287
yield return new object[] { new ObjectDataClass { List = 1 }, nameof(ObjectDataClass.List), true, true, true, false, false, false, new BindingList<int> { 1 }, typeof(
BindingList
<int>) };
288
yield return new object[] { new ObjectDataClass { List = 1 }, nameof(ObjectDataClass.List).ToLowerInvariant(), true, true, true, false, false, false, new BindingList<int> { 1 }, typeof(
BindingList
<int>) };
506
Assert.IsType<
BindingList
<object>>(source.List);