7 references to GetListItemType
System.Windows.Forms (1)
System\Windows\Forms\DataBinding\BindingSource.cs (1)
1127Type type = ListBindingHelper.GetListItemType(_dataSource, _dataMember);
System.Windows.Forms.Tests (6)
System\Windows\Forms\ListBindingHelperTests.cs (6)
178Assert.Equal(list is null ? typeof(object) : expected, ListBindingHelper.GetListItemType(list, null)); 179Assert.Equal(list is null ? typeof(object) : expected, ListBindingHelper.GetListItemType(list, string.Empty)); 218Assert.Equal(expected, ListBindingHelper.GetListItemType(list, dataMember)); 228Assert.Throws<NotSupportedException>(() => ListBindingHelper.GetListItemType(list, null)); 229Assert.Throws<NotSupportedException>(() => ListBindingHelper.GetListItemType(list, string.Empty)); 230Assert.Throws<NotSupportedException>(() => ListBindingHelper.GetListItemType(list, "dataMember"));