9 implementations of IListSource
System.Data.Common (2)
System\Data\DataSet.cs (1)
34public class DataSet : MarshalByValueComponent, IListSource, IXmlSerializable, ISupportInitializeNotification, ISerializable
System\Data\DataTable.cs (1)
35public class DataTable : MarshalByValueComponent, IListSource, ISupportInitializeNotification, ISerializable, IXmlSerializable
System.Windows.Forms.Tests (7)
System\Windows\Forms\ListBindingHelperTests.cs (7)
522private class GenericIListSourceClassWithItem : List<int>, IListSource 529private class NonGenericIListSourceClassWithItem : ArrayList, IListSource 602private class PrivateDefaultConstructor : IListSource 611private class NoDefaultConstructor : IListSource 622private class ThrowingDefaultConstructor : IListSource 634private class ClassWithIListSource : IListSource 641private class NullIListSource : IListSource
54 references to IListSource
netstandard (1)
netstandard.cs (1)
335[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.IListSource))]
PresentationFramework (7)
MS\Internal\Data\DefaultValueConverter.cs (3)
139if (typeof(IListSource).IsAssignableFrom(sourceType) && 666IListSource ils = o as IListSource;
MS\Internal\Data\ViewManager.cs (2)
528IListSource ils = collection as IListSource;
System\Windows\Data\CollectionViewSource.cs (2)
138o is IListSource || 146o is IListSource);
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
69System.Collections.IList list = ((IListSource)dataset).GetList();
System (1)
src\libraries\shims\System\ref\System.cs (1)
321[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ComponentModel.IListSource))]
System.Data.Common (4)
System\Data\DataSet.cs (2)
650bool IListSource.ContainsListCollection => true; 1443IList IListSource.GetList() => DefaultViewManager;
System\Data\DataTable.cs (2)
2971bool IListSource.ContainsListCollection => false; 3203IList IListSource.GetList() => DefaultView;
System.Windows.Forms (16)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
402AttributeProvider(typeof(IListSource))]
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
1905[AttributeProvider(typeof(IListSource))]
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
136if (value is not null and not (IList or IListSource))
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (1)
92[AttributeProvider(typeof(IListSource))]
System\Windows\Forms\Controls\ListControl\ListControl.cs (2)
45[AttributeProvider(typeof(IListSource))] 52if (value is not null and not (IList or IListSource))
System\Windows\Forms\DataBinding\BindingContext.cs (1)
246if (dataSource is IList or IListSource)
System\Windows\Forms\DataBinding\BindingSource.cs (4)
216[AttributeProvider(typeof(IListSource))] 668else if (typeof(IListSource).IsAssignableFrom(type)) 670return ((IListSource)CreateInstanceOfType(type)!).GetList(); 1096if (list is IListSource iListSource)
System\Windows\Forms\DataBinding\CurrencyManager.cs (1)
160if (tempList is IListSource listSource)
System\Windows\Forms\DataBinding\ListBindingHelper.cs (3)
18if (list is IListSource listSource) 209if (list is Type listAsType && typeof(IListSource).IsAssignableFrom(listAsType)) 495typeof(IListSource).IsAssignableFrom(type))
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (1)
303[AttributeProvider(typeof(IListSource))]
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
830[AttributeProvider(typeof(IListSource))]
System\Windows\Forms\Design\DesignBindingPicker.cs (4)
1087bool isListofLists = (dataSourceInstance is IListSource listSource) && listSource.ContainsListCollection; 1479if (dataSource is not (IListSource or IList or Array)) 2135IListSource? ils = dataSource as IListSource;
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (1)
40if ((binding.DataSource is IListSource || binding.DataSource is IList || binding.DataSource is Array) && binding.PropertyName.Equals(propDesc.Name))
System.Windows.Forms.Tests (18)
System\Windows\Forms\BindingContextTests.cs (7)
447Mock<IListSource> mockIListSource = new(MockBehavior.Strict); 465Mock<IListSource> mockIListSource = new(MockBehavior.Strict); 631Mock<IListSource> mockIListSource = new(MockBehavior.Strict); 653Mock<IListSource> mockIListSource = new(MockBehavior.Strict); 675Mock<IListSource> mockIListSource = new(MockBehavior.Strict); 694Mock<IListSource> mockIListSource = new(MockBehavior.Strict); 1036public IListSource Property { get; set; }
System\Windows\Forms\BindingSourceTests.cs (4)
127Mock<IListSource> mockEmptyListSource = new(MockBehavior.Strict); 200Mock<IListSource> mockNonEmptyListSource = new(MockBehavior.Strict); 212Mock<IListSource> mockListSource = new(MockBehavior.Strict); 813public IListSource ListSource { get; set; }
System\Windows\Forms\ComboBoxTests.cs (1)
623Mock<IListSource> mockSource = new(MockBehavior.Strict);
System\Windows\Forms\ListBindingHelperTests.cs (4)
24Mock<IListSource> mockSource = new(MockBehavior.Strict); 100Mock<IListSource> mockSource = new(MockBehavior.Strict); 139Mock<IListSource> genericMockSource = new(MockBehavior.Strict); 143Mock<IListSource> nonGenericMockSource = new(MockBehavior.Strict);
System\Windows\Forms\ListBoxTests.cs (1)
786Mock<IListSource> mockSource = new(MockBehavior.Strict);
System\Windows\Forms\ListControlTests.cs (1)
553Mock<IListSource> mockSource = new(MockBehavior.Strict);