5 interfaces inheriting from IList
Microsoft.Maui.Controls (1)
ListView\IListProxy.cs (1)
8 public interface IListProxy : IList
System.ComponentModel.TypeConverter (1)
System\ComponentModel\IBindingList.cs (1)
9public interface IBindingList : IList
System.Data.Common (3)
System\Data\IColumnMappingCollection.cs (1)
8public interface IColumnMappingCollection : IList
System\Data\IDataParameterCollection.cs (1)
8public interface IDataParameterCollection : IList
System\Data\ITableMappingCollection.cs (1)
8public interface ITableMappingCollection : IList
276 implementations of IList
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceImportCollection.cs (1)
23public class CodeNamespaceImportCollection : IList
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
11public class SynchronizedCollection<T> : IList<T>, IList
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
10public class SynchronizedReadOnlyCollection<T> : IList<T>, IList
Shared\Options\ListValue.cs (1)
19internal class ListValue<TValue> : ICollection, IList<TValue>, IList
GenerateDocumentationAndConfigFiles (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Metrics (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Metrics.Legacy (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.Build.Framework (5)
ImmutableSegmentedList`1.cs (1)
71internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
ImmutableSegmentedList`1+Builder.cs (1)
14public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
ImmutableSegmentedList`1+ValueBuilder.cs (1)
14private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
SegmentedArray`1.cs (1)
20internal readonly struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
SegmentedList`1.cs (1)
32internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.CodeAnalysis (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.CodeAnalysis.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.CodeAnalysis.BannedApiAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.CodeAnalysis.CodeStyle (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.CodeAnalysis.Collections.Package (5)
Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.CodeAnalysis.Extensions.Package (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.CodeAnalysis.InteractiveHost (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.CodeAnalysis.PublicApiAnalyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.CodeAnalysis.Threading.Package (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.CodeAnalysis.Workspaces (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Microsoft.Maui.Controls (3)
ObservableWrapper.cs (1)
10 internal class ObservableWrapper<TTrack, TRestrict> : IList<TRestrict>, IList, INotifyCollectionChanged where TTrack : Element where TRestrict : TTrack
ReadOnlyListAdapter.cs (1)
10 internal sealed class ReadOnlyListAdapter : IList
TemplatedItemsList.cs (1)
19 public sealed class TemplatedItemsList<TView, [DynamicallyAccessedMembers(BindableProperty.DeclaringTypeMembers | BindableProperty.ReturnTypeMembers)] TItem> : BindableObject, ITemplatedItemsList<TItem>, IList, IDisposable
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
17Public NotInheritable Class Collection : Implements ICollection, IList
PresentationCore (56)
System\Windows\FreezableCollection.cs (1)
24public class FreezableCollection<T>: Animatable, IList, IList<T>, INotifyCollectionChanged, INotifyPropertyChanged
System\Windows\Generated\TextDecorationCollection.cs (1)
22public sealed partial class TextDecorationCollection : Animatable, IList, IList<TextDecoration>
System\Windows\Ink\StrokeCollection.cs (1)
841internal class ReadOnlyStrokeCollection : StrokeCollection, ICollection<Stroke>, IList
System\Windows\Input\Command\CommandBindingCollection.cs (1)
19public sealed class CommandBindingCollection : IList
System\Windows\Input\Command\InputBindingCollection.cs (1)
19public sealed class InputBindingCollection : IList
System\Windows\Input\Command\InputGestureCollection.cs (1)
19public sealed class InputGestureCollection : IList
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
20public class BooleanKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
20public class ByteKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
20public class CharKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
20public class ColorKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
20public class DecimalKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
20public class DoubleKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
20public class Int16KeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
20public class Int32KeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
20public class Int64KeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
20public class MatrixKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
20public class ObjectKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
20public class Point3DKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
20public class PointKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
20public class QuaternionKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
20public class RectKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
20public class Rotation3DKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
20public class SingleKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
20public class SizeKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
20public class StringKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
21public sealed partial class TimelineCollection : Animatable, IList, IList<Timeline>
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
20public class Vector3DKeyFrameCollection : Freezable, IList
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
20public class VectorKeyFrameCollection : Freezable, IList
System\Windows\Media\DrawingCollection.cs (1)
18public sealed partial class DrawingCollection : Animatable, IList, IList<Drawing>
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
24public sealed partial class BitmapEffectCollection : Animatable, IList, IList<BitmapEffect>
System\Windows\Media\FamilyMapCollection.cs (1)
12public sealed class FontFamilyMapCollection : IList<FontFamilyMap>, SC.IList
System\Windows\Media\FamilyTypefaceCollection.cs (1)
11public sealed class FamilyTypefaceCollection : IList<FamilyTypeface>, SC.IList
System\Windows\Media\Generated\DoubleCollection.cs (1)
32public sealed partial class DoubleCollection : Freezable, IFormattable, IList, IList<double>
System\Windows\Media\Generated\DrawingCollection.cs (1)
31public sealed partial class DrawingCollection : Animatable, IList, IList<Drawing>
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
31public sealed partial class GeneralTransformCollection : Animatable, IList, IList<GeneralTransform>
System\Windows\Media\Generated\GeometryCollection.cs (1)
31public sealed partial class GeometryCollection : Animatable, IList, IList<Geometry>
System\Windows\Media\Generated\GradientStopCollection.cs (1)
31public sealed partial class GradientStopCollection : Animatable, IFormattable, IList, IList<GradientStop>
System\Windows\Media\Generated\Int32Collection.cs (1)
32public sealed partial class Int32Collection : Freezable, IFormattable, IList, IList<int>
System\Windows\Media\Generated\PathFigureCollection.cs (1)
32public sealed partial class PathFigureCollection : Animatable, IFormattable, IList, IList<PathFigure>
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
31public sealed partial class PathSegmentCollection : Animatable, IList, IList<PathSegment>
System\Windows\Media\Generated\PointCollection.cs (1)
32public sealed partial class PointCollection : Freezable, IFormattable, IList, IList<Point>
System\Windows\Media\Generated\TextEffectCollection.cs (1)
31public sealed partial class TextEffectCollection : Animatable, IList, IList<TextEffect>
System\Windows\Media\Generated\TransformCollection.cs (1)
31public sealed partial class TransformCollection : Animatable, IList, IList<Transform>
System\Windows\Media\Generated\VectorCollection.cs (1)
32public sealed partial class VectorCollection : Freezable, IFormattable, IList, IList<Vector>
System\Windows\Media\GeometryCollection.cs (1)
17public sealed partial class GeometryCollection : Animatable, IList, IList<Geometry>
System\Windows\Media\PathFigureCollection.cs (1)
15public sealed partial class PathFigureCollection : Animatable, IList, IList<PathFigure>
System\Windows\Media\PathSegmentCollection.cs (1)
17public sealed partial class PathSegmentCollection : Animatable, IList, IList<PathSegment>
System\Windows\Media\TextEffectCollection.cs (1)
21public sealed partial class TextEffectCollection : Animatable, IList, IList<TextEffect>
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
29public sealed partial class GeneralTransform3DCollection : Animatable, IList, IList<GeneralTransform3D>
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
29public sealed partial class MaterialCollection : Animatable, IList, IList<Material>
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
29public sealed partial class Model3DCollection : Animatable, IList, IList<Model3D>
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
30public sealed partial class Point3DCollection : Freezable, IFormattable, IList, IList<Point3D>
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
29public sealed partial class Transform3DCollection : Animatable, IList, IList<Transform3D>
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
30public sealed partial class Vector3DCollection : Freezable, IFormattable, IList, IList<Vector3D>
System\Windows\Media3D\Visual3DCollection.cs (1)
14public sealed class Visual3DCollection : IList, IList<Visual3D>
System\Windows\TextDecorationCollection.cs (1)
23public sealed partial class TextDecorationCollection : Animatable, IList
PresentationFramework (19)
MS\Internal\Controls\InnerItemCollectionView.cs (1)
22internal sealed class InnerItemCollectionView : CollectionView, IList
MS\Internal\Data\LiveShapingList.cs (1)
74internal class LiveShapingList : IList
MS\Internal\Data\ParameterCollection.cs (1)
15internal class ParameterCollection : Collection<object>, IList
MS\Internal\Documents\ContentElementCollection.cs (1)
21internal abstract class ContentElementCollection<TParent, TItem> : IList<TItem>, IList
System\Windows\Controls\ColumnDefinition.cs (1)
41public sealed class ColumnDefinitionCollection : IList<ColumnDefinition> , IList
System\Windows\Controls\CustomDictionarySources.cs (1)
29internal class CustomDictionarySources : IList<Uri>, IList
System\Windows\Controls\ItemCollection.cs (1)
44public sealed class ItemCollection : CollectionView, IList, IEditableCollectionViewAddNewItem, ICollectionViewLiveShaping, IItemProperties, IWeakEventListener
System\Windows\Controls\MultipleCopiesCollection.cs (1)
18IList,
System\Windows\Controls\RowDefinition.cs (1)
36public sealed class RowDefinitionCollection : IList<RowDefinition> , IList
System\Windows\Controls\UIElementCollection.cs (1)
21public class UIElementCollection : IList
System\Windows\Data\CompositeCollection.cs (1)
25public class CompositeCollection : IList, INotifyCollectionChanged, ICollectionViewFactory, IWeakEventListener
System\Windows\Documents\InlineCollection.cs (1)
21public class InlineCollection : TextElementCollection<Inline>, IList
System\Windows\Documents\TableCellCollection.cs (1)
20public sealed class TableCellCollection : IList<TableCell>, IList
System\Windows\Documents\TableColumnCollection.cs (1)
20public sealed class TableColumnCollection : IList<TableColumn>, IList
System\Windows\Documents\TableRowCollection.cs (1)
20public sealed class TableRowCollection : IList<TableRow>, IList
System\Windows\Documents\TableRowGroupCollection.cs (1)
20public sealed class TableRowGroupCollection : IList<TableRowGroup>, IList
System\Windows\Documents\TextElementCollection.cs (1)
16public class TextElementCollection<TextElementType> : IList, ICollection<TextElementType> where TextElementType : TextElement
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
20public class ThicknessKeyFrameCollection : Freezable, IList
System\Windows\TriggerActionCollection.cs (1)
20public sealed class TriggerActionCollection : IList, IList<TriggerAction>
Roslyn.Diagnostics.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
System.CodeDom (1)
System\CodeDom\CodeNamespaceImportCollection.cs (1)
9public class CodeNamespaceImportCollection : IList
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (3)
35IList<KeyValuePair<TKey, TValue>>, IReadOnlyList<KeyValuePair<TKey, TValue>>, IList 1472public sealed class KeyCollection : IList<TKey>, IReadOnlyList<TKey>, IList 1667public sealed class ValueCollection : IList<TValue>, IReadOnlyList<TValue>, IList
System.Collections.Immutable (5)
System\Collections\Immutable\ImmutableArray_1.cs (1)
15public readonly partial struct ImmutableArray<T> : IReadOnlyList<T>, IList<T>, IEquatable<ImmutableArray<T>>, IList, IImmutableArray, IStructuralComparable, IStructuralEquatable, IImmutableList<T>
System\Collections\Immutable\ImmutableArray_1.netcoreapp.cs (1)
8public readonly partial struct ImmutableArray<T> : IReadOnlyList<T>, IList<T>, IEquatable<ImmutableArray<T>>, IList, IImmutableArray, IStructuralComparable, IStructuralEquatable, IImmutableList<T>
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
31public sealed class Builder : IList<T>, IList, IReadOnlyList<T>
System\Collections\Immutable\ImmutableList_1.cs (1)
19public sealed partial class ImmutableList<T> : IImmutableList<T>, IList<T>, IList, IStrongEnumerable<T, ImmutableList<T>.Enumerator>
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
24public sealed partial class ImmutableSortedSet<T> : IImmutableSet<T>, IReadOnlySet<T>, IReadOnlyList<T>, IList<T>, ISet<T>, IList, IStrongEnumerable<T, ImmutableSortedSet<T>.Enumerator>
System.Collections.NonGeneric (3)
System\Collections\CollectionBase.cs (1)
15public abstract class CollectionBase : IList
System\Collections\SortedList.cs (2)
888private sealed class KeyList : IList 992private sealed class ValueList : IList
System.Collections.Specialized (2)
System\Collections\Specialized\OrderedDictionary.cs (1)
536private sealed class OrderedDictionaryKeyValueCollection : IList
System\Collections\Specialized\StringCollection.cs (1)
12public class StringCollection : IList
System.ComponentModel.TypeConverter (4)
System\ComponentModel\Design\DesignerOptionService.cs (1)
115public sealed class DesignerOptionCollection : IList
System\ComponentModel\EventDescriptorCollection.cs (1)
14public class EventDescriptorCollection : ICollection, IList
System\ComponentModel\ListSortDescriptionCollection.cs (1)
9public class ListSortDescriptionCollection : IList
System\ComponentModel\PropertyDescriptorCollection.cs (1)
14public class PropertyDescriptorCollection : ICollection, IList, IDictionary
System.Diagnostics.TraceSource (1)
System\Diagnostics\TraceListeners.cs (1)
14public class TraceListenerCollection : IList
System.DirectoryServices (1)
artifacts\obj\System.DirectoryServices\Debug\net10.0\System.DirectoryServices.notsupported.cs (1)
437public partial class SchemaNameCollection : System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList
System.DirectoryServices.AccountManagement (1)
artifacts\obj\System.DirectoryServices.AccountManagement\Debug\net10.0\System.DirectoryServices.AccountManagement.notsupported.cs (1)
353public partial class PrincipalValueCollection<T> : System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T>, System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList
System.Linq.Expressions (1)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
15public sealed class ReadOnlyCollectionBuilder<T> : IList<T>, IList
System.ObjectModel (2)
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (2)
276internal sealed class ReadOnlyList : IList 321internal sealed class SingleItemReadOnlyList : IList
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
20public abstract partial class Array : ICloneable, IList, IStructuralComparable, IStructuralEquatable
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (4)
17public class ArrayList : IList, ICloneable 1471private sealed class SyncIList : IList 1588private sealed class FixedSizeList : IList 1847private sealed class ReadOnlyList : IList
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
21public class List<T> : IList<T>, IList, IReadOnlyList<T>
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
14public class Collection<T> : IList<T>, IList, IReadOnlyList<T>
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
15public class ReadOnlyCollection<T> : IList<T>, IList, IReadOnlyList<T>
src\System\Array.CoreCLR.cs (1)
16public abstract partial class Array : ICloneable, IList, IStructuralComparable, IStructuralEquatable
System.Private.Xml (2)
System\Xml\Xsl\ListBase.cs (1)
19internal abstract class ListBase<T> : IList<T>, System.Collections.IList
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (1)
22public class XmlQuerySequence<T> : IList<T>, System.Collections.IList
System.Security.Cryptography.Xml (3)
System\Security\Cryptography\Xml\CanonicalXmlNodeList.cs (1)
9internal sealed class CanonicalXmlNodeList : XmlNodeList, IList
System\Security\Cryptography\Xml\EncryptionPropertyCollection.cs (1)
8public sealed class EncryptionPropertyCollection : IList
System\Security\Cryptography\Xml\ReferenceList.cs (1)
8public sealed class ReferenceList : IList
System.ServiceModel.Primitives (1)
netstandard.cs (1)
14public partial class SynchronizedCollection<T> : IList<T>, IList
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\CaptureCollection.cs (1)
16public class CaptureCollection : IList<Capture>, IReadOnlyList<Capture>, IList
System\Text\RegularExpressions\GroupCollection.cs (1)
17public class GroupCollection : IList<Group>, IReadOnlyList<Group>, IList, IReadOnlyDictionary<string, Group>
System\Text\RegularExpressions\MatchCollection.cs (1)
16public class MatchCollection : IList<Match>, IReadOnlyList<Match>, IList
System.Windows.Forms (40)
System\Windows\Forms\AutoCompleteStringCollection.cs (1)
12public class AutoCompleteStringCollection : IList
System\Windows\Forms\Control.ControlCollection.cs (1)
16public partial class ControlCollection : ArrangedElementCollection, IList, ICloneable
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (1)
14public partial class ObjectCollection : IList, IComparer<Entry>
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (1)
14public class DataGridViewCellCollection : BaseCollection, IList
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
15public partial class DataGridViewColumnCollection : BaseCollection, IList
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (1)
15public class ObjectCollection : IList
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (1)
17public partial class DataGridViewRowCollection : ICollection, IList
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (1)
14public class DataGridViewSelectedCellCollection : BaseCollection, IList
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (1)
10public class DataGridViewSelectedColumnCollection : BaseCollection, IList
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (1)
14public class DataGridViewSelectedRowCollection : BaseCollection, IList
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (1)
17public sealed partial class ImageCollection : IList
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (1)
12public class LinkCollection : IList
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedIndexCollection.cs (1)
11public class CheckedIndexCollection : IList
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (1)
11public class CheckedItemCollection : IList
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (1)
11public partial class IntegerCollection : IList
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.CustomTabOffsetsEnumerator.cs (1)
10public partial class IntegerCollection : IList
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (1)
18public class ObjectCollection : IList
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.cs (1)
11public partial class SelectedIndexCollection : IList
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.SelectedIndexEnumerator.cs (1)
10public partial class SelectedIndexCollection : IList
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (1)
12public class SelectedObjectCollection : IList
System\Windows\Forms\Controls\ListView\ListView.CheckedIndexCollection.cs (1)
12public class CheckedIndexCollection : IList
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (1)
12public class CheckedListViewItemCollection : IList
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (1)
12public class ColumnHeaderCollection : IList
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (1)
15public partial class ListViewItemCollection : IList
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (1)
12public class SelectedIndexCollection : IList
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (1)
12public class SelectedListViewItemCollection : IList
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
13public class ListViewGroupCollection : IList
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (1)
12public class ListViewSubItemCollection : IList
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (1)
11public class TabPageCollection : IList
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
14public class ToolStripItemCollection : ArrangedElementCollection, IList
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelRowCollection.cs (1)
13public class ToolStripPanelRowCollection : ArrangedElementCollection, IList
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (1)
29internal partial class ToolStripPanelRowControlCollection : ArrangedElementCollection, IList, IEnumerable
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (1)
11public class TreeNodeCollection : IList
System\Windows\Forms\Controls\Unsupported\ContextMenu\Menu.MenuItemCollection.cs (1)
24public class MenuItemCollection : IList
System\Windows\Forms\Controls\Unsupported\DataGrid\GridColumnStylesCollection.cs (1)
24public class GridColumnStylesCollection : BaseCollection, IList
System\Windows\Forms\Controls\Unsupported\DataGrid\GridTableStylesCollection.cs (1)
22public class GridTableStylesCollection : BaseCollection, IList
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBar.StatusBarPanelCollection.cs (1)
24public class StatusBarPanelCollection : IList
System\Windows\Forms\Controls\Unsupported\ToolBar\ToolBar.ToolBarButtonCollection.cs (1)
23public class ToolBarButtonCollection : IList
System\Windows\Forms\Layout\ArrangedElementCollection.cs (1)
8public class ArrangedElementCollection : IList
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
12public abstract class TableLayoutStyleCollection : IList
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
16internal class DesignerControlCollection : Control.ControlCollection, IList
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (1)
16internal class OriginalImageCollection : IList
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
2147internal class DesignerTableLayoutControlCollection : TableLayoutControlCollection, IList
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
13: IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>
System.Windows.Forms.Tests (1)
System\Windows\Forms\BindingSourceTests.cs (1)
762private class VirtualList<T> : IList
System.Xaml.Tests (1)
System\Xaml\XamlTypeTests.cs (1)
3214private class AmbiguousIList : AmbiguousICollection, IList
Test.Utilities (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
Text.Analyzers (5)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
73internal readonly partial struct ImmutableSegmentedList<T> : IImmutableList<T>, IReadOnlyList<T>, IList<T>, IList, IEquatable<ImmutableSegmentedList<T>>
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
16public sealed class Builder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
16private struct ValueBuilder : IList<T>, IReadOnlyList<T>, IList
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
22internal readonly partial struct SegmentedArray<T> : ICloneable, IList, IStructuralComparable, IStructuralEquatable, IList<T>, IReadOnlyList<T>, IEquatable<SegmentedArray<T>>
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
35internal class SegmentedList<T> : IList<T>, IList, IReadOnlyList<T>
4124 references to IList
BinaryFormatTests (7)
FormatTests\FormattedObject\ListTests.cs (7)
56public void BinaryFormatWriter_TryWritePrimitiveList(IList list) 65IList deserialized = (IList)formatter.Deserialize(stream); // CodeQL[SM02229] : Testing legacy feature. This is a safe use of BinaryFormatter because the data is trusted and the types are controlled and validated. 72public void BinaryFormatWriter_TryWritePrimitiveList_Unsupported(IList list) 81public void SerializationRecordExtensions_TryGetPrimitiveList(IList list) 88public static TheoryData<IList> PrimitiveLists_TestData => new() 111public static TheoryData<IList> Lists_UnsupportedTestData => new()
dotnet-svcutil-lib (72)
CodeDomFixup\CollectionHelpers.cs (2)
11public static T Find<T>(IList list, Filter<T> filter) 28public static void MapList<T>(IList list, Filter<T> filter, OnFiltered<T> onFiltered)
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceImportCollection.cs (10)
60bool IList.IsReadOnly 69bool IList.IsFixedSize 145object IList.this[int index] 198int IList.Add(object value) 204void IList.Clear() 210bool IList.Contains(object value) 216int IList.IndexOf(object value) 222void IList.Insert(int index, object value) 229void IList.Remove(object value) 236void IList.RemoveAt(int index)
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (1)
871return ((IList)InterfaceTypes).Contains(type);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchema.cs (1)
700internal void GetExternalSchemasList(IList extList, XmlSchema schema)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (6)
344protected static readonly Type IListType = typeof(IList); 3570IList listSrc = list as IList; 3595private IList ToList(object list, IXmlNamespaceResolver nsResolver) 3598IList listSrc = list as IList;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (2)
25return typeof(IList).GetMethod( 110if (get_Item == null && typeof(IList).IsAssignableFrom(varType))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (11)
59IList values = (IList)SchemaSet.Schemas(ns); 73public IList GetSchemas(string ns) 75return (IList)SchemaSet.Schemas(ns); 326IList values = (IList)SchemaSet.Schemas(name.Namespace); 434IList originals = (IList)SchemaSet.Schemas(schema.TargetNamespace); 447private void AddImport(IList schemas, string ns) 469private void Merge(IList originals, XmlSchema schema) 703internal XmlSchemaObject Find(XmlSchemaObject o, IList originals)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
3911WriteDefaultIndexerInit(typeof(IList), typeof(Array).FullName, false, false);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathArrayIterator.cs (3)
17protected IList list; 20public XPathArrayIterator(IList list) 40public IList AsList
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (2)
339((IList)collection).Remove(codeTypeDeclaration); 341((IList)collection).Add(newCodeTypeDeclaration);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
704s_typeOfIList = typeof(IList);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
596((IList)Globals.TypeOfNullable.GetInterfaces()).Contains(memberType))
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
618handle = ((IList)_mappings).Add(mapping);
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (10)
221return ((IList)_items).GetEnumerator(); 238((IList)_items).CopyTo(array, index); 242object IList.this[int index] 255bool IList.IsReadOnly 260bool IList.IsFixedSize 265int IList.Add(object value) 276bool IList.Contains(object value) 282int IList.IndexOf(object value) 288void IList.Insert(int index, object value) 294void IList.Remove(object value)
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (10)
202bool IList.IsFixedSize 207bool IList.IsReadOnly 212object IList.this[int index] 224int IList.Add(object value) 230void IList.Clear() 235bool IList.Contains(object value) 241int IList.IndexOf(object value) 247void IList.Insert(int index, object value) 252void IList.Remove(object value) 257void IList.RemoveAt(int index)
Shared\Options\ListValue.cs (10)
65bool IList.IsReadOnly { get { return this.IsReadOnly; } } 79bool IList.IsFixedSize { get { return false; } } 87object IList.this[int index] 93int IList.Add(object value) 118void IList.Insert(int index, object value) 131void IList.Clear() 141bool IList.Contains(object value) 151int IList.IndexOf(object value) 156void IList.Remove(object value) 161void IList.RemoveAt(int index)
GenerateDocumentationAndConfigFiles (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
InMemory.FunctionalTests (2)
HttpsConnectionMiddlewareTests.cs (2)
860var list = (System.Collections.IList)clientChain;
InteropClient (2)
Assert.cs (2)
116public static void AreEqual(IList expected, IList actual)
Metrics (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Metrics.Legacy (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Microsoft.AspNetCore.Grpc.JsonTranscoding (13)
Internal\Json\FieldMaskConverter.cs (2)
31var messagePaths = (IList)message.Descriptor.Fields[FieldMask.PathsFieldNumber].Accessor.GetValue(message);
Internal\Json\JsonConverterHelper.cs (6)
153var newValues = (IList)JsonSerializer.Deserialize(ref reader, repeatedFieldType, options)!; 155var existingValue = (IList)fieldDescriptor.Accessor.GetValue(message); 187var list = (IList)value;
Internal\Json\ListValueConverter.cs (2)
28var list = (IList)value.Descriptor.Fields[ListValue.ValuesFieldNumber].Accessor.GetValue(value);
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (3)
269var list = (IList)field.Accessor.GetValue(message); 277else if (values is IList listValues)
Microsoft.AspNetCore.Grpc.Swagger (3)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (3)
269var list = (IList)field.Accessor.GetValue(message); 277else if (values is IList listValues)
Microsoft.AspNetCore.JsonPatch (15)
Adapters\AdapterFactory.cs (1)
34if (target is IList)
Internal\ListAdapter.cs (14)
27var list = (IList)target; 64var list = (IList)target; 97var list = (IList)target; 129var list = (IList)target; 166var list = (IList)target; 203var list = target as IList; 267protected virtual bool TryGetListTypeArgument(IList list, out Type listTypeArgument, out string errorMessage) 296IList list,
Microsoft.AspNetCore.JsonPatch.SystemTextJson (8)
Adapters\AdapterFactory.cs (1)
35IList => new ListAdapter(),
Helpers\GenericListOrJsonArrayUtilities.cs (5)
14if (list is IList nonGenericList) 29if (list is IList nonGenericList) 60if (list is IList nonGenericList) 76if (list is IList nonGenericList) 92if (list is IList nonGenericList)
Internal\ListAdapter.cs (2)
150var list = target as IList;
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (12)
Internal\ListAdapterTest.cs (12)
194public static TheoryData<IList, object, string, IList> AddingDifferentComplexTypeWorksData 198return new TheoryData<IList, object, string, IList>() 230public void Add_DifferentComplexTypeWorks(IList targetObject, object value, string position, IList expected) 246public static TheoryData<IList, object, string, IList> AddingKeepsObjectReferenceData 253return new TheoryData<IList, object, string, IList>() 285public void Add_KeepsObjectReference(IList targetObject, object value, string position, IList expected)
Microsoft.AspNetCore.JsonPatch.Tests (12)
Internal\ListAdapterTest.cs (12)
194public static TheoryData<IList, object, string, IList> AddingDifferentComplexTypeWorksData 198return new TheoryData<IList, object, string, IList>() 230public void Add_DifferentComplexTypeWorks(IList targetObject, object value, string position, IList expected) 246public static TheoryData<IList, object, string, IList> AddingKeepsObjectReferenceData 253return new TheoryData<IList, object, string, IList>() 285public void Add_KeepsObjectReference(IList targetObject, object value, string position, IList expected)
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\ModelBindingHelper.cs (4)
640var converted = (IList)Array.CreateInstance(destinationElementType, valueAsArray.Length); 652var converted = (IList)Array.CreateInstance(destinationElementType, 1);
Microsoft.Build.Framework (70)
IListCalls.cs (10)
10/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 21where TList : IList 25where TList : IList 29where TList : IList 33where TList : IList 37where TList : IList 43where TList : IList 49where TList : IList 55where TList : IList 61where TList : IList
ImmutableSegmentedList`1.cs (13)
90bool IList.IsFixedSize => true; 92bool IList.IsReadOnly => true; 106object? IList.this[int index] 658int IList.Add(object? value) 661void IList.Clear() 664bool IList.Contains(object? value) 666IList backingList = _list; 670int IList.IndexOf(object? value) 672IList backingList = _list; 676void IList.Insert(int index, object? value) 679void IList.Remove(object? value) 682void IList.RemoveAt(int index) 687IList backingList = _list;
ImmutableSegmentedList`1+Builder.cs (8)
28bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 30bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 42object? IList.this[int index] 230int IList.Add(object? value) 233bool IList.Contains(object? value) 236int IList.IndexOf(object? value) 239void IList.Insert(int index, object? value) 242void IList.Remove(object? value)
ImmutableSegmentedList`1+ValueBuilder.cs (15)
39bool IList.IsFixedSize => false; 41bool IList.IsReadOnly => false; 53object? IList.this[int index] 55get => ((IList)ReadOnlyList)[index]; 56set => ((IList)GetOrCreateMutableList())[index] = value; 339int IList.Add(object? value) 340=> ((IList)GetOrCreateMutableList()).Add(value); 342bool IList.Contains(object? value) 343=> ((IList)ReadOnlyList).Contains(value); 345int IList.IndexOf(object? value) 346=> ((IList)ReadOnlyList).IndexOf(value); 348void IList.Insert(int index, object? value) 349=> ((IList)GetOrCreateMutableList()).Insert(index, value); 351void IList.Remove(object? value) 352=> ((IList)GetOrCreateMutableList()).Remove(value);
SegmentedArray`1.cs (11)
139object? IList.this[int index] 192int IList.Add(object? value) 202void IList.Clear() 206foreach (IList list in _items) 218bool IList.Contains(object? value) 220foreach (IList list in _items) 240int IList.IndexOf(object? value) 244IList list = _items[i]; 270void IList.Insert(int index, object? value) 280void IList.Remove(object? value) 290void IList.RemoveAt(int index)
SegmentedList`1.cs (8)
154bool IList.IsFixedSize => false; 159bool IList.IsReadOnly => false; 198object? IList.this[int index] 247int IList.Add(object? item) 349bool IList.Contains(object? item) 644int IList.IndexOf(object? item) 722void IList.Insert(int index, object? item) 922void IList.Remove(object? item)
TaskParameterEventArgs.cs (5)
40IList items, 59IList items, 92public IList Items { get; private set; } 141private IList ReadItems(BinaryReader reader) 192private void WriteItems(BinaryWriter writer, IList items)
Microsoft.CodeAnalysis (70)
PEWriter\Miscellaneous.cs (4)
37var asIList = enumerable as IList; 71var asIList = enumerable as IList;
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
TreeDumper.cs (1)
115&& node.Value is IList { Count: 0 })
Microsoft.CodeAnalysis.Analyzers (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Microsoft.CodeAnalysis.AnalyzerUtilities (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Microsoft.CodeAnalysis.BannedApiAnalyzers (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Microsoft.CodeAnalysis.CodeStyle (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Microsoft.CodeAnalysis.Collections.Package (65)
Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (1)
82.GetMembers(nameof(IList.Add))
Microsoft.CodeAnalysis.CSharp.Features (3)
ConvertLinq\ConvertForEachToLinqQuery\CSharpConvertForEachToLinqQueryProvider.cs (1)
250methodSymbol.Name == nameof(IList.Add) &&
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (1)
353IdentifierName(nameof(IList.Add))),
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForNewDiagnosticAnalyzer.cs (1)
82.GetMembers(nameof(IList.Add))
Microsoft.CodeAnalysis.Extensions.Package (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Microsoft.CodeAnalysis.Features (4)
AddImport\SymbolReferenceFinder.cs (1)
421nameof(IList.Add), nameNode: null, filter: SymbolFilter.Member, cancellationToken).ConfigureAwait(false);
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (2)
35private const string Count = nameof(IList.Count); 38[typeof(IList<>).FullName!, typeof(IReadOnlyList<>).FullName!, typeof(IList).FullName!];
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
72if (memberAccessName is not nameof(Array.Length) and not nameof(IList.Count))
Microsoft.CodeAnalysis.InteractiveHost (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Microsoft.CodeAnalysis.PublicApiAnalyzers (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Microsoft.CodeAnalysis.ResxSourceGenerator (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Microsoft.CodeAnalysis.Threading.Package (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Microsoft.CodeAnalysis.UnitTests (122)
Collections\ImmutableListTestBase.cs (13)
24protected static readonly Func<IList, object?, object> IndexOfFunc = (l, v) => l.IndexOf(v); 25protected static readonly Func<IList, object?, object> ContainsFunc = (l, v) => l.Contains(v); 26protected static readonly Func<IList, object?, object> RemoveFunc = (l, v) => { l.Remove(v); return l.Count; }; 127Assert.Equal(((IList)list).Contains(i), hitTest[i]); 539protected void AssertIListBaselineBothDirections<T1, T2>(Func<IList, object?, object> operation, T1 item, T2 other) 547/// implementation of <see cref="IList"/> behave the same way <see cref="List{T}"/> does. 551/// The <see cref="IList"/> operation to perform. 552/// The function is provided with the <see cref="IList"/> implementation to test 555/// of the operation across <see cref="IList"/> implementations. 559protected void AssertIListBaseline<T>(Func<IList, object?, object> operation, T item, object? other) 561IList bclList = new List<T> { item }; 562IList testedList = (IList)this.GetListQuery(ImmutableSegmentedList.Create(item));
Collections\ImmutableSegmentedListBuilderTest.cs (1)
311IList list = ImmutableSegmentedList.Create<int>().ToBuilder();
Collections\ImmutableSegmentedListTest.cs (2)
481Assert.Equal(3, ((IList)list)[2]); 745IList list = ImmutableSegmentedList.Create<int>();
Collections\IndexOfTests.cs (2)
55if (factory(list) is IList) 57Assert.Equal(-1, ((IList)factory(list)).IndexOf(6));
Collections\List\IList.NonGeneric.Tests.cs (77)
31protected abstract IList NonGenericIListFactory(); 38protected virtual IList NonGenericIListFactory(int count) 40IList collection = NonGenericIListFactory(); 45protected virtual void AddToCollection(IList collection, int numberOfItemsToAdd) 112IList casted = ((IList)enumerable); 125IList casted = ((IList)enumerable); 138IList casted = ((IList)enumerable); 148IList casted = ((IList)enumerable); 161IList casted = ((IList)enumerable); 174IList casted = ((IList)enumerable); 185protected override void AddToCollection(ICollection collection, int numberOfItemsToAdd) => AddToCollection((IList)collection, numberOfItemsToAdd); 195IList collection = NonGenericIListFactory(count); 207IList collection = NonGenericIListFactory(count); 219IList list = NonGenericIListFactory(count); 228IList list = NonGenericIListFactory(count); 237IList list = NonGenericIListFactory(count); 252IList list = NonGenericIListFactory(count); 266IList list = NonGenericIListFactory(count); 280IList list = NonGenericIListFactory(count); 292IList list = NonGenericIListFactory(count); 305IList list = NonGenericIListFactory(count); 318IList list = NonGenericIListFactory(count); 332IList list = NonGenericIListFactory(count); 346IList list = NonGenericIListFactory(count); 363IList list = NonGenericIListFactory(count); 379IList collection = NonGenericIListFactory(count); 393IList collection = NonGenericIListFactory(count); 410IList collection = NonGenericIListFactory(0); 427IList collection = NonGenericIListFactory(count); 442IList collection = NonGenericIListFactory(count); 457IList collection = NonGenericIListFactory(count); 471IList collection = NonGenericIListFactory(count); 494IList collection = NonGenericIListFactory(count); 510IList collection = NonGenericIListFactory(count); 523IList collection = NonGenericIListFactory(count); 541IList collection = NonGenericIListFactory(count); 562IList collection = NonGenericIListFactory(count); 574IList collection = NonGenericIListFactory(count); 583IList collection = NonGenericIListFactory(count); 592IList collection = NonGenericIListFactory(count); 606IList collection = NonGenericIListFactory(count); 618IList collection = NonGenericIListFactory(count); 634IList list = NonGenericIListFactory(count); 652IList list = NonGenericIListFactory(count); 671IList list = NonGenericIListFactory(count); 684IList list = NonGenericIListFactory(count); 699IList list = NonGenericIListFactory(count); 711IList list = NonGenericIListFactory(count); 737IList list = NonGenericIListFactory(count); 751IList list = NonGenericIListFactory(count); 765IList list = NonGenericIListFactory(count); 777IList list = NonGenericIListFactory(count); 791IList list = NonGenericIListFactory(count); 805IList list = NonGenericIListFactory(count); 820IList list = NonGenericIListFactory(count); 835IList list = NonGenericIListFactory(count); 853IList list = NonGenericIListFactory(count); 869IList collection = NonGenericIListFactory(count); 881IList collection = NonGenericIListFactory(count); 900IList list = NonGenericIListFactory(count); 924IList collection = NonGenericIListFactory(count); 943IList collection = NonGenericIListFactory(count); 962IList collection = NonGenericIListFactory(count); 979IList collection = NonGenericIListFactory(count); 996IList collection = NonGenericIListFactory(count); 1015IList list = NonGenericIListFactory(count); 1029IList list = NonGenericIListFactory(count); 1043IList list = NonGenericIListFactory(count); 1055IList list = NonGenericIListFactory(count); 1071IList list = NonGenericIListFactory(count); 1091IList collection = NonGenericIListFactory(count);
Collections\List\SegmentedList.Generic.Tests.AsNonGenericIList.cs (2)
26protected override IList NonGenericIListFactory() 31protected override IList NonGenericIListFactory(int count)
Collections\List\SegmentedList.Generic.Tests.Misc.cs (13)
82IList _ilist = list; 111IList _ilist = list; 507IList _ilist = list; 518IList _ilist = list; 529IList _ilist = list; 540IList _ilist = list; 553IList _ilist = list; 576IList _ilist = list; 584IList _ilist = list; 631IList _ilist = list; 639IList _ilist = list; 650IList _ilist = list; 658IList _ilist = list;
Collections\SegmentedArrayTests.cs (12)
56Assert.Throws<NullReferenceException>(() => ((IList)data)[0]); 57Assert.Throws<NullReferenceException>(() => ((IList)data)[0] = IntPtr.Zero); 76Assert.Throws<NotSupportedException>(() => ((IList)data).Add(IntPtr.Zero)); 79Assert.Throws<NotSupportedException>(() => ((IList)data).Insert(0, IntPtr.Zero)); 81Assert.Throws<NotSupportedException>(() => ((IList)data).Remove(IntPtr.Zero)); 83Assert.Throws<NotSupportedException>(() => ((IList)data).RemoveAt(0)); 86Assert.Throws<NullReferenceException>(() => ((IList)data).Clear()); 87Assert.Throws<NullReferenceException>(() => ((IList)data).Contains(IntPtr.Zero)); 89Assert.Throws<NullReferenceException>(() => ((IList)data).IndexOf(IntPtr.Zero)); 182Assert.Equal((IntPtr)i, ((IList)data)[i]); 183((IList)data)[i] = IntPtr.Add(data[i], 1); 184Assert.Equal((IntPtr)(i + 1), ((IList)data)[i]);
Microsoft.CodeAnalysis.Workspaces (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
176return sysType == typeof(System.Collections.IList)
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
899((IList)list).CopyTo(result, 0);
Microsoft.Maui (1)
Extensions\EnumerableExtensions.cs (1)
108 if (enumerable is IList list)
Microsoft.Maui.Controls (67)
BindableLayout\BindableLayout.cs (6)
15 public IList Children { get; } 368 var layoutChildren = layout.Children; 417 var layoutChildren = layout.Children; 512 var layoutChildren = layout.Children; 524 var layoutChildren = layout.Children; 553 void ReplaceChild(object item, IBindableLayout layout, IList layoutChildren, int index)
Internals\NotifyCollectionChangedEventArgsEx.cs (7)
19 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, IList changedItems) : base(action, changedItems) 25 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, IList newItems, IList oldItems) : base(action, newItems, oldItems) 31 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex) : base(action, newItems, oldItems, startingIndex) 37 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, IList changedItems, int startingIndex) : base(action, changedItems, startingIndex) 43 public NotifyCollectionChangedEventArgsEx(int count, NotifyCollectionChangedAction action, IList changedItems, int index, int oldIndex) : base(action, changedItems, index, oldIndex)
Items\MarshalingObservableCollection.cs (4)
18 readonly IList _internalCollection; 22 public MarshalingObservableCollection(IList list) 40 public IList Items { get; } 41 public ResetNotifyCollectionChangedEventArgs(IList items)
Layout\Layout.cs (1)
45 IList IBindableLayout.Children => _children;
LegacyLayouts\Layout.cs (1)
37 IList IBindableLayout.Children => _children;
ListProxy.cs (10)
16 readonly IList _list; 43 _list = enumerable as IList; 412 object IList.this[int index] 418 bool IList.IsReadOnly 423 bool IList.IsFixedSize 443 int IList.Add(object item) 448 void IList.Remove(object item) 453 void IList.Insert(int index, object item) 458 void IList.RemoveAt(int index) 463 void IList.Clear()
ListView\ListView.cs (2)
430 var list = ItemsSource as IList;
ObservableWrapper.cs (4)
304 public bool IsFixedSize => ((IList)_list).IsFixedSize; 306 public bool IsSynchronized => ((IList)_list).IsSynchronized; 308 public object SyncRoot => ((IList)_list).SyncRoot; 310 object IList.this[int index]
Picker\Picker.cs (8)
42 BindableProperty.Create(nameof(ItemsSource), typeof(IList), typeof(Picker), default(IList), 142 public IList ItemsSource 144 get { return (IList)GetValue(ItemsSourceProperty); } 262 ((Picker)bindable).OnItemsSourceChanged((IList)oldValue, (IList)newValue); 265 void OnItemsSourceChanged(IList oldValue, IList newValue)
Shell\ShellElementCollection.cs (5)
24 IList _inner; 25 IList _visibleItems; 32 internal IList Inner 64 protected IList VisibleItems 299 set => base.Inner = (IList)value;
Shell\ShellSectionCollection.cs (1)
23 public IList VisibleItems => collection.VisibleItems;
TemplatedItemsList.cs (16)
272 int IList.Add(object item) 277 void IList.Clear() 282 bool IList.Contains(object item) 287 int IList.IndexOf(object item) 299 void IList.Insert(int index, object item) 304 bool IList.IsFixedSize 309 bool IList.IsReadOnly 314 object IList.this[int index] 326 void IList.Remove(object item) 331 void IList.RemoveAt(int index) 682 IList ConvertContent(int startingIndex, IList items, bool forceCreate = false, bool setIndex = false) 1016 IList items = ConvertContent(e.NewStartingIndex, e.NewItems, true, true); 1088 IList oldItems = ConvertContent(e.NewStartingIndex, e.OldItems); 1089 IList newItems = ConvertContent(e.NewStartingIndex, e.NewItems, true, true); 1302 List<string> ConvertItems(IList list)
View\View.cs (2)
99 void AddItems(IList newItems) 112 void RemoveItems(IList oldItems)
Microsoft.Maui.Controls.Xaml (2)
MarkupExtensions\ArrayExtension.cs (2)
20 public IList Items { get; } 34 ((IList)array)[i] = Items[i];
Microsoft.ML.Core (4)
CommandLine\CmdParser.cs (4)
1968IList vals = (Array)value; 1976IList defs = (Array)def; 2067IList vals = (Array)value; 2075IList defs = (Array)def;
Microsoft.ML.Parquet (7)
ParquetLoader.cs (7)
445private readonly IList[] _columnValues; 479_columnValues = new IList[_actives.Length]; 533return CreateGetterDelegateCore<IList, ReadOnlyMemory<char>>(col, _parquetConversions.Conv); 718public void Conv(in IList src, ref ReadOnlyMemory<char> dst) => dst = ConvertListToString(src).AsMemory(); 752private string ConvertListToString(IList list) 763if (enu.Current is IList && enu.Current.GetType().IsGenericType) 765sb.Append("[" + ConvertListToString((IList)enu.Current) + "],");
Microsoft.VisualBasic.Core (10)
Microsoft\VisualBasic\Collection.vb (10)
627Private ReadOnly Property IListIsFixedSize() As Boolean Implements IList.IsFixedSize 633Private ReadOnly Property IListIsReadOnly() As Boolean Implements IList.IsReadOnly 666Private Function IListAdd(ByVal value As Object) As Integer Implements IList.Add 671Private Sub IListInsert(ByVal index As Integer, ByVal value As Object) Implements IList.Insert 679Private Sub IListRemoveAt(ByVal index As Integer) Implements IList.RemoveAt 692Private Sub IListRemove(ByVal value As Object) Implements IList.Remove 701Private Sub IListClear() Implements IList.Clear 705Private Property IListItem(ByVal index As Integer) As Object Implements IList.Item 719Private Function IListContains(ByVal value As Object) As Boolean Implements IList.Contains 723Private Function IListIndexOf(ByVal value As Object) As Integer Implements IList.IndexOf
Microsoft.VisualStudio.LanguageServices (1)
ValueTracking\TreeViewItemBase.cs (1)
114static void SetParents(IList? items, TreeViewItemBase? parent)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
112[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.IList))]
netstandard (1)
netstandard.cs (1)
143[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.IList))]
PresentationBuildTasks (9)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecords.cs (1)
477else if (ReflectionHelper.GetMscorlibType(typeof(IList)).IsAssignableFrom(propertyType) ||
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlParser.cs (1)
1140int tokenIndex = ((IList)XamlNode.ScopeStartTokens).IndexOf(xamlNode.TokenType);
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (7)
228return (ReflectionHelper.GetMscorlibType(typeof(IList)).IsAssignableFrom(type) 4197!ReflectionHelper.GetMscorlibType(typeof(IList)).IsAssignableFrom(propertyType) && 4495if (ReflectionHelper.GetMscorlibType(typeof(IList)).IsAssignableFrom(parentElementType) 4593if (ReflectionHelper.GetMscorlibType(typeof(IList)).IsAssignableFrom(pi.PropertyType)) 4651!ReflectionHelper.GetMscorlibType(typeof(IList)).IsAssignableFrom(parentType) && 4728else if( ReflectionHelper.GetMscorlibType(typeof(IList)).IsAssignableFrom(contentPropertyType) ) 4886if( iCollectionT.Assembly == ReflectionHelper.GetMscorlibType(typeof(IList)).Assembly )
PresentationCore (379)
MS\Internal\FontCache\FontResourceCache.cs (1)
36IList resourceList = new ResourceManagerWrapper(entryAssembly).ResourceList;
MS\Internal\Resources\ResourceManagerWrapper.cs (2)
120internal IList ResourceList 168return (IList)_resourceList;
System\Windows\FreezableCollection.cs (8)
405bool IList.IsReadOnly 413bool IList.IsFixedSize 423object IList.this[int index] 436int IList.Add(object value) 442bool IList.Contains(object value) 447int IList.IndexOf(object value) 452void IList.Insert(int index, object value) 458void IList.Remove(object value)
System\Windows\Generated\TextDecorationCollection.cs (8)
317bool IList.IsReadOnly 325bool IList.IsFixedSize 335object IList.this[int index] 348int IList.Add(object value) 354bool IList.Contains(object value) 359int IList.IndexOf(object value) 364void IList.Insert(int index, object value) 370void IList.Remove(object value)
System\Windows\Ink\StrokeCollection.cs (1)
864bool IList.IsReadOnly
System\Windows\Input\Command\CommandBindingCollection.cs (8)
38public CommandBindingCollection(IList commandBindings) 75bool IList.Contains(object key) 85int IList.IndexOf(object value) 95void IList.Insert(int index, object value) 104int IList.Add(object commandBinding) 113void IList.Remove(object commandBinding) 121object IList.this[int index] 248return _innerCBList is not null && ((IList)_innerCBList).IsSynchronized;
System\Windows\Input\Command\InputBindingCollection.cs (8)
38public InputBindingCollection(IList inputBindings) 86bool IList.Contains(object key) 96int IList.IndexOf(object value) 107void IList.Insert(int index, object value) 116int IList.Add(object inputBinding) 126void IList.Remove(object inputBinding) 134object IList.this[int index] 219return ((IList)_innerBindingList).IsSynchronized;
System\Windows\Input\Command\InputGestureCollection.cs (9)
38public InputGestureCollection( IList inputGestures ) 75bool IList.Contains(object key) 85int IList.IndexOf(object value) 96void IList.Insert(int index, object value) 108int IList.Add(object inputGesture) 120void IList.Remove(object inputGesture) 131object IList.this[int index] 189return ((IList)_innerGestureList).IsSynchronized; 202return _innerGestureList != null ? ((IList)_innerGestureList).SyncRoot : this;
System\Windows\Input\InputScope.cs (4)
32public System.Collections.IList Names 36return (System.Collections.IList)_scopeNames; 80public System.Collections.IList PhraseList 84return (System.Collections.IList)_phraseList;
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
440IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
440IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
440IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
440IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
440IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\TimelineCollection.cs (8)
316bool IList.IsReadOnly 324bool IList.IsFixedSize 334object IList.this[int index] 347int IList.Add(object value) 353bool IList.Contains(object value) 358int IList.IndexOf(object value) 363void IList.Insert(int index, object value) 369void IList.Remove(object value)
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\Media\Animation\IKeyFrameAnimation.cs (1)
19IList KeyFrames { get; set; }
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (8)
319bool IList.IsReadOnly 327bool IList.IsFixedSize 337object IList.this[int index] 350int IList.Add(object value) 356bool IList.Contains(object value) 361int IList.IndexOf(object value) 366void IList.Insert(int index, object value) 372void IList.Remove(object value)
System\Windows\Media\FamilyMapCollection.cs (7)
193int SC.IList.Add(object value) 198bool SC.IList.Contains(object value) 203int SC.IList.IndexOf(object value) 208void SC.IList.Insert(int index, object item) 213void SC.IList.Remove(object value) 221bool SC.IList.IsFixedSize 226object SC.IList.this[int index]
System\Windows\Media\FamilyTypefaceCollection.cs (7)
179int SC.IList.Add(object value) 184bool SC.IList.Contains(object value) 189int SC.IList.IndexOf(object value) 194void SC.IList.Insert(int index, object item) 199void SC.IList.Remove(object value) 207bool SC.IList.IsFixedSize 212object SC.IList.this[int index]
System\Windows\Media\Generated\DoubleCollection.cs (8)
278bool IList.IsReadOnly 286bool IList.IsFixedSize 296object IList.this[int index] 309int IList.Add(object value) 315bool IList.Contains(object value) 325int IList.IndexOf(object value) 335void IList.Insert(int index, object value) 341void IList.Remove(object value)
System\Windows\Media\Generated\DrawingCollection.cs (8)
338bool IList.IsReadOnly 346bool IList.IsFixedSize 356object IList.this[int index] 369int IList.Add(object value) 375bool IList.Contains(object value) 380int IList.IndexOf(object value) 385void IList.Insert(int index, object value) 391void IList.Remove(object value)
System\Windows\Media\Generated\GeneralTransformCollection.cs (8)
326bool IList.IsReadOnly 334bool IList.IsFixedSize 344object IList.this[int index] 357int IList.Add(object value) 363bool IList.Contains(object value) 368int IList.IndexOf(object value) 373void IList.Insert(int index, object value) 379void IList.Remove(object value)
System\Windows\Media\Generated\GeometryCollection.cs (8)
338bool IList.IsReadOnly 346bool IList.IsFixedSize 356object IList.this[int index] 369int IList.Add(object value) 375bool IList.Contains(object value) 380int IList.IndexOf(object value) 385void IList.Insert(int index, object value) 391void IList.Remove(object value)
System\Windows\Media\Generated\GradientStopCollection.cs (8)
326bool IList.IsReadOnly 334bool IList.IsFixedSize 344object IList.this[int index] 357int IList.Add(object value) 363bool IList.Contains(object value) 368int IList.IndexOf(object value) 373void IList.Insert(int index, object value) 379void IList.Remove(object value)
System\Windows\Media\Generated\Int32Collection.cs (8)
278bool IList.IsReadOnly 286bool IList.IsFixedSize 296object IList.this[int index] 309int IList.Add(object value) 315bool IList.Contains(object value) 325int IList.IndexOf(object value) 335void IList.Insert(int index, object value) 341void IList.Remove(object value)
System\Windows\Media\Generated\PathFigureCollection.cs (8)
327bool IList.IsReadOnly 335bool IList.IsFixedSize 345object IList.this[int index] 358int IList.Add(object value) 364bool IList.Contains(object value) 369int IList.IndexOf(object value) 374void IList.Insert(int index, object value) 380void IList.Remove(object value)
System\Windows\Media\Generated\PathSegmentCollection.cs (8)
326bool IList.IsReadOnly 334bool IList.IsFixedSize 344object IList.this[int index] 357int IList.Add(object value) 363bool IList.Contains(object value) 368int IList.IndexOf(object value) 373void IList.Insert(int index, object value) 379void IList.Remove(object value)
System\Windows\Media\Generated\PointCollection.cs (8)
278bool IList.IsReadOnly 286bool IList.IsFixedSize 296object IList.this[int index] 309int IList.Add(object value) 315bool IList.Contains(object value) 325int IList.IndexOf(object value) 335void IList.Insert(int index, object value) 341void IList.Remove(object value)
System\Windows\Media\Generated\TextEffectCollection.cs (8)
326bool IList.IsReadOnly 334bool IList.IsFixedSize 344object IList.this[int index] 357int IList.Add(object value) 363bool IList.Contains(object value) 368int IList.IndexOf(object value) 373void IList.Insert(int index, object value) 379void IList.Remove(object value)
System\Windows\Media\Generated\TransformCollection.cs (8)
338bool IList.IsReadOnly 346bool IList.IsFixedSize 356object IList.this[int index] 369int IList.Add(object value) 375bool IList.Contains(object value) 380int IList.IndexOf(object value) 385void IList.Insert(int index, object value) 391void IList.Remove(object value)
System\Windows\Media\Generated\VectorCollection.cs (8)
278bool IList.IsReadOnly 286bool IList.IsFixedSize 296object IList.this[int index] 309int IList.Add(object value) 315bool IList.Contains(object value) 325int IList.IndexOf(object value) 335void IList.Insert(int index, object value) 341void IList.Remove(object value)
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (8)
324bool IList.IsReadOnly 332bool IList.IsFixedSize 342object IList.this[int index] 355int IList.Add(object value) 361bool IList.Contains(object value) 366int IList.IndexOf(object value) 371void IList.Insert(int index, object value) 377void IList.Remove(object value)
System\Windows\Media3D\Generated\MaterialCollection.cs (8)
336bool IList.IsReadOnly 344bool IList.IsFixedSize 354object IList.this[int index] 367int IList.Add(object value) 373bool IList.Contains(object value) 378int IList.IndexOf(object value) 383void IList.Insert(int index, object value) 389void IList.Remove(object value)
System\Windows\Media3D\Generated\Model3DCollection.cs (8)
336bool IList.IsReadOnly 344bool IList.IsFixedSize 354object IList.this[int index] 367int IList.Add(object value) 373bool IList.Contains(object value) 378int IList.IndexOf(object value) 383void IList.Insert(int index, object value) 389void IList.Remove(object value)
System\Windows\Media3D\Generated\Point3DCollection.cs (8)
276bool IList.IsReadOnly 284bool IList.IsFixedSize 294object IList.this[int index] 307int IList.Add(object value) 313bool IList.Contains(object value) 323int IList.IndexOf(object value) 333void IList.Insert(int index, object value) 339void IList.Remove(object value)
System\Windows\Media3D\Generated\Transform3DCollection.cs (8)
336bool IList.IsReadOnly 344bool IList.IsFixedSize 354object IList.this[int index] 367int IList.Add(object value) 373bool IList.Contains(object value) 378int IList.IndexOf(object value) 383void IList.Insert(int index, object value) 389void IList.Remove(object value)
System\Windows\Media3D\Generated\Vector3DCollection.cs (8)
276bool IList.IsReadOnly 284bool IList.IsFixedSize 294object IList.this[int index] 307int IList.Add(object value) 313bool IList.Contains(object value) 323int IList.IndexOf(object value) 333void IList.Insert(int index, object value) 339void IList.Remove(object value)
System\Windows\Media3D\Visual3DCollection.cs (8)
305int IList.Add(object value) 314bool IList.Contains(object value) 322int IList.IndexOf(object value) 330void IList.Insert(int index, object value) 337bool IList.IsFixedSize 344bool IList.IsReadOnly 352void IList.Remove(object value) 360object IList.this[int index]
PresentationFramework (390)
MS\Internal\Annotations\Anchoring\PathNode.cs (1)
113public IList Children
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
59public IList AttachedAnnotations
MS\Internal\Annotations\Component\IAnnotationComponent.cs (1)
26IList AttachedAnnotations { get; }
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (1)
91public IList AttachedAnnotations
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (1)
964IList IAnnotationComponent.AttachedAnnotations
MS\Internal\Data\CollectionViewGroupInternal.cs (4)
428internal bool Move(object item, IList list, ref int oldIndex, ref int newIndex) 613internal IListComparer(IList list) 623internal void ResetList(IList list) 655private IList _list;
MS\Internal\Data\CollectionViewGroupRoot.cs (4)
168internal void MoveWithinSubgroups(object item, LiveShapingItem lsi, IList list, int oldIndex, int newIndex) 573private void MoveWithinSubgroups(object item, CollectionViewGroupInternal group, int level, IList list, int oldIndex, int newIndex) 599private void MoveWithinSubgroup(object item, CollectionViewGroupInternal group, int level, object name, IList list, int oldIndex, int newIndex) 640private void MoveWithinSubgroup(object item, CollectionViewGroupInternal group, IList list, int oldIndex, int newIndex)
MS\Internal\Data\DataExtensionMethods.cs (4)
18internal static int Search(this IList list, int index, int count, object value, IComparer comparer) 38internal static int Search(this IList list, object value, IComparer comparer) 45internal static void Move(this IList list, int oldIndex, int newIndex) 64internal static void Sort(this IList list, IComparer comparer)
MS\Internal\Data\DefaultValueConverter.cs (2)
135targetType.IsAssignableFrom(typeof(IList))) 659IList il = null;
MS\Internal\Data\IndexedEnumerable.cs (5)
270internal IList List 307IList list = (IList)array; 470_list = collection as IList; 687private IList _list;
MS\Internal\Data\ParameterCollection.cs (2)
41bool IList.IsReadOnly 49bool IList.IsFixedSize
MS\Internal\Data\PropertyPathWorker.cs (5)
275IList ilist = (IList)item; 1182bool isIList = (item is IList); 1184aryMembers[1] = typeof(IList).GetDefaultMembers(); 1817typeof(System.Collections.IList),
MS\Internal\Data\ViewManager.cs (3)
523IList ilsList = null; 554IList il = ilsList ?? collection as IList;
MS\Internal\Documents\ContentElementCollection.cs (12)
401int IList.Add(object value) 415return ((IList)this).IndexOf(item); 418void IList.Clear() 423bool IList.Contains(object value) 435int IList.IndexOf(object value) 447void IList.Insert(int index, object value) 461bool IList.IsFixedSize 469bool IList.IsReadOnly 477void IList.Remove(object value) 489void IList.RemoveAt(int index) 494object IList.this[int index] 546/// <seealso cref="IList.IsReadOnly"/>
MS\Internal\ListOfObject.cs (3)
14private IList _list; 15internal ListOfObject(IList list) 112public ObjectEnumerator(IList list)
System\Windows\Annotations\Annotation.cs (3)
699IList changedItems = null; 753IList changedItems = null; 802IList changedItems = null;
System\Windows\Annotations\AnnotationService.cs (4)
400IList attachedAnnotations = GetAllAttachedAnnotationsFor(element); 411IList attachedAnnotations = _annotationMap.GetAllAttachedAnnotations(); 914private void UnloadAnnotationsFromList(IList attachedAnnotations) 1169private IList GetAllAttachedAnnotationsFor(DependencyObject element)
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (2)
67IList childItems = null; 164IList items = null;
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
411IList childItems = null;
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
150IList childItems = itemsHost.Children;
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
62IList childItems = null;
System\Windows\Controls\AlternationConverter.cs (1)
26public IList Values
System\Windows\Controls\CalendarSelectionChangedEventArgs.cs (2)
22public CalendarSelectionChangedEventArgs(RoutedEvent eventId, IList removedItems, IList addedItems) :
System\Windows\Controls\ColumnDefinition.cs (20)
119/// <see cref="IList.Add"/> 125int IList.Add(object value) 163/// <see cref="IList.Contains"/> 165bool IList.Contains(object value) 194/// <see cref="IList.IndexOf"/> 196int IList.IndexOf(object value) 202/// <see cref="IList<T>.IndexOf"/> 218/// <see cref="IList.Insert"/> 223void IList.Insert(int index, object value) 235/// <see cref="IList<T>.Insert"/> 249/// <see cref="IList.Remove"/> 254void IList.Remove(object value) 278/// <see cref="IList<T>.RemoveAt"/> 279/// <seealso cref="IList.RemoveAt"/> 377/// <see cref="IList.IsFixedSize"/> 379bool IList.IsFixedSize 389/// <seealso cref="IList.IsReadOnly"/> 416/// <see cref="IList.this"/> 422object IList.this[int index] 446/// <see cref="IList<T>.Item"/>
System\Windows\Controls\CustomDictionarySources.cs (14)
203int IList.Add(object value) 209void IList.Clear() 214bool IList.Contains(object value) 216return ((IList)_uriList).Contains(value); 219int IList.IndexOf(object value) 221return ((IList)_uriList).IndexOf(value); 224void IList.Insert(int index, object value) 229bool IList.IsFixedSize 233return ((IList)_uriList).IsFixedSize; 237bool IList.IsReadOnly 241return ((IList)_uriList).IsReadOnly; 245void IList.Remove(object value) 250void IList.RemoveAt(int index) 255object IList.this[int index]
System\Windows\Controls\DataErrorValidationRule.cs (1)
47IList items = bindingGroup.Items;
System\Windows\Controls\DataGrid.cs (3)
277internal void UpdateDataGridReference(IList list, bool clear) 308private static void UpdateColumnSizeConstraints(IList list) 322private static bool HasVisibleColumns(IList columns)
System\Windows\Controls\DataGridCellsPanel.cs (9)
58IList children = RealizedChildren; 629IList children = RealizedChildren; 1033IList children = RealizedChildren; 1136private void CleanupRange(IList children, IItemContainerGenerator generator, int startIndex, int count) 1314private void SetDataGridCellPanelWidth(IList children, double newWidth) 1347IList children = RealizedChildren; 1557private List<int> GetRealizedChildrenNotInBlockList(List<RealizedColumnsBlock> blockList, IList children) 1632IList children = RealizedChildren; 1921private IList RealizedChildren
System\Windows\Controls\DataGridColumnCollection.cs (6)
404private void UpdateDisplayIndexForNewColumns(IList newColumns, int startingIndex) 550private void UpdateDisplayIndexForRemovedColumns(IList oldColumns, int startingIndex) 593private void UpdateDisplayIndexForReplacedColumn(IList oldColumns, IList newColumns) 619private void ClearDisplayIndex(IList oldColumns, IList newColumns)
System\Windows\Controls\DataGridColumnHeaderCollection.cs (1)
241private static object[] HeadersFromColumns(IList columns)
System\Windows\Controls\ItemCollection.cs (4)
762bool IList.IsFixedSize 776bool IList.IsReadOnly 2233private void CloneList(IList clone, IList master)
System\Windows\Controls\ItemContainerGenerator.cs (4)
1252internal IList ItemsInternal 1367IList items = _factory.ItemsInternal; 1940IList items; 2789private IList _items;
System\Windows\Controls\ListBox.cs (1)
197public IList SelectedItems
System\Windows\Controls\MenuItem.cs (1)
1133KeyGesture keyGesture = ((IList)col)[i] as KeyGesture;
System\Windows\Controls\MultipleCopiesCollection.cs (1)
272void IList.RemoveAt(int index)
System\Windows\Controls\Primitives\MultiSelector.cs (1)
33public IList SelectedItems
System\Windows\Controls\Primitives\Selector.cs (5)
776typeof(IList), 779(IList) null)); 792internal IList SelectedItemsImpl 794get { return (IList)GetValue(SelectedItemsImplProperty); } 1677IList userSelectedItems = SelectedItemsImpl;
System\Windows\Controls\RowDefinition.cs (20)
114/// <see cref="IList.Add"/> 120int IList.Add(object value) 158/// <see cref="IList.Contains"/> 160bool IList.Contains(object value) 189/// <see cref="IList.IndexOf"/> 191int IList.IndexOf(object value) 197/// <see cref="IList<T>.IndexOf"/> 213/// <see cref="IList.Insert"/> 218void IList.Insert(int index, object value) 230/// <see cref="IList<T>.Insert"/> 244/// <see cref="IList.Remove"/> 249void IList.Remove(object value) 273/// <see cref="IList<T>.RemoveAt"/> 274/// <seealso cref="IList.RemoveAt"/> 372/// <see cref="IList.IsFixedSize"/> 374bool IList.IsFixedSize 384/// <seealso cref="IList.IsReadOnly"/> 411/// <see cref="IList.this"/> 417object IList.this[int index] 441/// <see cref="IList<T>.Item"/>
System\Windows\Controls\SelectedDatesCollection.cs (2)
420private void RaiseSelectionChanged(IList removedItems, IList addedItems)
System\Windows\Controls\SelectionChangedEventArgs.cs (4)
31IList removedItems, 32IList addedItems) 74public IList RemovedItems 82public IList AddedItems
System\Windows\Controls\SpellCheck.cs (5)
147public IList CustomDictionaries 151return (IList)_owner.GetValue(CustomDictionariesProperty); 160public static IList GetCustomDictionaries(TextBoxBase textBoxBase) 163return (IList)textBoxBase.GetValue(CustomDictionariesProperty); 169typeof(IList),
System\Windows\Controls\UIElementCollection.cs (8)
401int IList.Add(object value) 409bool IList.Contains(object value) 417int IList.IndexOf(object value) 425void IList.Insert(int index, object value) 432bool IList.IsFixedSize 439bool IList.IsReadOnly 447void IList.Remove(object value) 455object IList.this[int index]
System\Windows\Controls\VirtualizedCellInfoCollection.cs (5)
1116internal void OnColumnsChanged(NotifyCollectionChangedAction action, int oldDisplayIndex, DataGridColumn oldColumn, int newDisplayIndex, IList selectedRows) 1145private void OnAddColumn(int columnIndex, IList selectedRows) 1175private void FillInFullRowRegions(IList rows, int columnIndex, bool notify) 1227private void OnReplaceColumn(int columnIndex, DataGridColumn oldColumn, IList selectedRows) 1389internal void ClearFullRows(IList rows)
System\Windows\Controls\VirtualizingStackPanel.cs (30)
1628IList items = generator.ItemsInternal; 2224IList children = RealizedChildren; // yes, this is weird, but this property ensures the Generator is properly initialized. 2226IList items = ((ItemContainerGenerator)generator).ItemsInternal; 3342IList children = RealizedChildren; // yes, this is weird, but this property ensures the Generator is properly initialized. 3344IList items = ((ItemContainerGenerator)generator).ItemsInternal; 3790IList children = RealizedChildren; 3792IList items = ((ItemContainerGenerator)generator).ItemsInternal; 5492IList items, 5638IList items, 5735IList children, 5736IList items, 5891IList items, 5956IList items, 6827IList children = childItemsHost.InternalChildren; 7428IList children, 7429IList items, 7578IList children, 7579IList items, 8062ref IList items, 8063ref IList children, 8144ref IList items, 8146ref IList children, 8566IList items, 8897IList children = RealizedChildren; 9046IList children = RealizedChildren; 9435private void CleanupRange(IList children, IItemContainerGenerator generator, int startIndex, int count) 10989IList items = generator.ItemsInternal; 11014IList items = null; 11243private double GetMaxChildArrangeLength(IList children, bool isHorizontal) 11557private IList RealizedChildren
System\Windows\Data\BindingGroup.cs (5)
174IList items = Items; 199public IList Items 336IList items = Items; 377IList items = Items; 1233IList items = Items;
System\Windows\Data\BindingListCollectionView.cs (4)
2131private IList CollectionProxy 2235IList list = CollectionProxy; 2537private IList _shadowList; 2559private IList _cachedList;
System\Windows\Data\CompositeCollection.cs (2)
354bool IList.IsFixedSize 368bool IList.IsReadOnly
System\Windows\Data\ListCollectionView.cs (18)
23/// <seealso cref="ICollectionView"/> based on and associated to <seealso cref="IList"/>. 39public ListCollectionView(IList list) 1216IList list = InternalList; 2285protected IList InternalList 2479private IList SourceList 2481get { return SourceCollection as IList; } 2547IList list = AllowsCrossThreadChanges ? ShadowCollection : (SourceCollection as IList); 2558IList localList = IsLiveShaping ? (IList)(new LiveShapingList(this, GetLiveShapingFlags(), ActiveComparer)) 2559: (IList)(new ArrayList(size)); 2665IList ilFull = (AllowsCrossThreadChanges ? ShadowCollection : SourceCollection) as IList; 2761private int MatchingSearch(object item, int index, IList ilFull, IList ilPartial) 3176IList ilFull = (AllowsCrossThreadChanges ? ShadowCollection : SourceCollection) as IList; 3311private IList _internalList;
System\Windows\Data\ObjectDataProvider.cs (2)
222public IList ConstructorParameters 245public IList MethodParameters
System\Windows\Documents\AdornerLayer.cs (1)
654IList keys = _zOrderMap.GetKeyList();
System\Windows\Documents\LinkTarget.cs (7)
58return (LinkTarget)((IList)this)[index]; 62((IList)this)[index] = value; 71return ((IList)this).Add((object)value); 80((IList)this).Remove((object) value); 88return ((IList)this).Contains((object)value); 105return ((IList)this).IndexOf((object)value); 114((IList)this).Insert(index, (object)value);
System\Windows\Documents\TableCellCollection.cs (24)
272int IList.Add(object value) 274return ((IList)_cellCollectionInternal).Add(value); 277void IList.Clear() 282bool IList.Contains(object value) 284return ((IList)_cellCollectionInternal).Contains(value); 287int IList.IndexOf(object value) 289return ((IList)_cellCollectionInternal).IndexOf(value); 292void IList.Insert(int index, object value) 294((IList)_cellCollectionInternal).Insert(index, value); 297bool IList.IsFixedSize 301return ((IList)_cellCollectionInternal).IsFixedSize; 305bool IList.IsReadOnly 309return ((IList)_cellCollectionInternal).IsReadOnly; 313void IList.Remove(object value) 315((IList)_cellCollectionInternal).Remove(value); 318void IList.RemoveAt(int index) 320((IList)_cellCollectionInternal).RemoveAt(index); 323object IList.this[int index] 327return ((IList)_cellCollectionInternal)[index]; 332((IList)_cellCollectionInternal)[index] = value; 359/// <see cref="IList.IsReadOnly"/> 365return ((IList)_cellCollectionInternal).IsReadOnly; 379return ((IList)_cellCollectionInternal).IsSynchronized; 390return ((IList)_cellCollectionInternal).SyncRoot;
System\Windows\Documents\TableColumnCollection.cs (21)
272int IList.Add(object value) 281return ((IList)_columnCollection).Add(value); 284void IList.Clear() 289bool IList.Contains(object value) 291return ((IList)_columnCollection).Contains(value); 294int IList.IndexOf(object value) 296return ((IList)_columnCollection).IndexOf(value); 299void IList.Insert(int index, object value) 301((IList)_columnCollection).Insert(index, value); 304bool IList.IsFixedSize 308return ((IList)_columnCollection).IsFixedSize; 312bool IList.IsReadOnly 316return ((IList)_columnCollection).IsReadOnly; 320void IList.Remove(object value) 322((IList)_columnCollection).Remove(value); 325void IList.RemoveAt(int index) 327((IList)_columnCollection).RemoveAt(index); 330object IList.this[int index] 334return ((IList)_columnCollection)[index]; 339((IList)_columnCollection)[index] = value; 367/// <seealso cref="IList.IsReadOnly"/>
System\Windows\Documents\TableRowCollection.cs (24)
272int IList.Add(object value) 274return ((IList)_rowCollectionInternal).Add(value); 277void IList.Clear() 282bool IList.Contains(object value) 284return ((IList)_rowCollectionInternal).Contains(value); 287int IList.IndexOf(object value) 289return ((IList)_rowCollectionInternal).IndexOf(value); 292void IList.Insert(int index, object value) 294((IList)_rowCollectionInternal).Insert(index, value); 297bool IList.IsFixedSize 301return ((IList)_rowCollectionInternal).IsFixedSize; 305bool IList.IsReadOnly 309return ((IList)_rowCollectionInternal).IsReadOnly; 313void IList.Remove(object value) 315((IList)_rowCollectionInternal).Remove(value); 318void IList.RemoveAt(int index) 320((IList)_rowCollectionInternal).RemoveAt(index); 323object IList.this[int index] 327return ((IList)_rowCollectionInternal)[index]; 332((IList)_rowCollectionInternal)[index] = value; 359/// <see cref="IList.IsReadOnly"/> 365return ((IList)_rowCollectionInternal).IsReadOnly; 379return ((IList)_rowCollectionInternal).IsSynchronized; 390return ((IList)_rowCollectionInternal).SyncRoot;
System\Windows\Documents\TableRowGroupCollection.cs (21)
272int IList.Add(object value) 274return ((IList)_rowGroupCollectionInternal).Add(value); 277void IList.Clear() 282bool IList.Contains(object value) 284return ((IList)_rowGroupCollectionInternal).Contains(value); 287int IList.IndexOf(object value) 289return ((IList)_rowGroupCollectionInternal).IndexOf(value); 292void IList.Insert(int index, object value) 294((IList)_rowGroupCollectionInternal).Insert(index, value); 297bool IList.IsFixedSize 301return ((IList)_rowGroupCollectionInternal).IsFixedSize; 305bool IList.IsReadOnly 309return ((IList)_rowGroupCollectionInternal).IsReadOnly; 313void IList.Remove(object value) 315((IList)_rowGroupCollectionInternal).Remove(value); 318void IList.RemoveAt(int index) 320((IList)_rowGroupCollectionInternal).RemoveAt(index); 323object IList.this[int index] 327return ((IList)_rowGroupCollectionInternal)[index]; 332((IList)_rowGroupCollectionInternal)[index] = value; 359/// <see cref="IList.IsReadOnly"/>
System\Windows\Documents\TextElementCollection.cs (10)
418int IList.Add(object value) 423void IList.Clear() 428bool IList.Contains(object value) 440int IList.IndexOf(object value) 445void IList.Insert(int index, object value) 504bool IList.IsFixedSize 512bool IList.IsReadOnly 520void IList.Remove(object value) 532void IList.RemoveAt(int index) 537object IList.this[int index]
System\Windows\Documents\TextRangeBase.cs (1)
836listItemCounter.Push(((IList)listItem.SiblingListItems).IndexOf(listItem));
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
4290typeof(System.Collections.IList), // type
System\Windows\Markup\Baml2006\WpfXamlType.cs (1)
490if (typeof(IList).IsAssignableFrom(UnderlyingType))
System\Windows\Markup\BamlCollectionHolder.cs (2)
46internal IList List 48get { return _collection as IList; }
System\Windows\Markup\BamlRecordReader.cs (12)
880else if (typeof(IList).IsAssignableFrom(elementType)) 1299if (typeof(IList).IsAssignableFrom(propertyDefinition.PropertyType)) 1301contentProperty = ((DependencyObject)parent).GetValue(propertyDefinition.DependencyProperty) as IList; 1325parent) as IList; 1347as IList; 3021if (typeof(IList).IsAssignableFrom(expectedType)) 3185private IList GetListFromContext(ReaderContextStackData context) 3187IList result = null; 3193result = (IList)GetObjectDataFromContext(context); 4645IList list = GetListFromContext(parentContext); 4876IList contentList = contentProperty as IList;
System\Windows\Markup\BamlRecords.cs (1)
485else if ((typeof(IList).IsAssignableFrom(propertyType) ||
System\Windows\Markup\KnownTypes.cs (1)
2414internal static IList GetCollectionForCPA(object o, KnownElements knownElement)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
485(typeof(IList).IsAssignableFrom(PropertyType) ||
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
892!typeof(IList).IsAssignableFrom(descriptor.PropertyType))
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (1)
473IList IKeyFrameAnimation.KeyFrames
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (6)
272int IList.Add(object keyFrame) 317bool IList.Contains(object keyFrame) 335int IList.IndexOf(object keyFrame) 353void IList.Insert(int index, object keyFrame) 402void IList.Remove(object keyFrame) 439object IList.this[int index]
System\Windows\TemplateContent.cs (1)
1021if (typeof(IList).IsAssignableFrom(property.PropertyType))
System\Windows\TriggerActionCollection.cs (8)
187int IList.Add(object value) 191int index = ((IList) _rawList).Add(VerifyIsTriggerAction(value)); 195bool IList.Contains(object value) 200int IList.IndexOf(object value) 205void IList.Insert(int index, object value) 210bool IList.IsFixedSize 218void IList.Remove(object value) 223object IList.this[int index]
System\Windows\VisualStateGroup.cs (2)
31public IList States 47public IList Transitions
System\Windows\VisualStateManager.cs (3)
129typeof(IList), 155public static IList GetVisualStateGroups(FrameworkElement obj) 159return obj.GetValue(VisualStateManager.VisualStateGroupsProperty) as IList;
PresentationFramework-SystemData (1)
SystemDataExtension.cs (1)
74System.Collections.IList list = ((IListSource)dataset).GetList();
Roslyn.Diagnostics.Analyzers (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
System.CodeDom (10)
System\CodeDom\CodeNamespaceImportCollection.cs (10)
26bool IList.IsReadOnly => false; 28bool IList.IsFixedSize => false; 66object IList.this[int index] 86int IList.Add(object value) => _data.Add((CodeNamespaceImport)value); 88void IList.Clear() => Clear(); 90bool IList.Contains(object value) => _data.Contains(value); 92int IList.IndexOf(object value) => _data.IndexOf((CodeNamespaceImport)value); 94void IList.Insert(int index, object value) 100void IList.Remove(object value) 106void IList.RemoveAt(int index)
System.Collections (28)
System\Collections\Generic\OrderedDictionary.cs (28)
251bool IList.IsReadOnly => false; 257bool IList.IsFixedSize => false; 290object? IList.this[int index] 1331int IList.Add(object? value) 1343bool IList.Contains(object? value) => 1349int IList.IndexOf(object? value) 1360void IList.Insert(int index, object? value) 1371void IList.Remove(object? value) 1487bool IList.IsReadOnly => true; 1490bool IList.IsFixedSize => false; 1502bool IList.Contains(object? value) => value is TKey key && Contains(key); 1581object? IList.this[int index] 1621int IList.Add(object? value) => throw new NotSupportedException(); 1624void IList.Clear() => throw new NotSupportedException(); 1627int IList.IndexOf(object? value) => value is TKey key ? _dictionary.IndexOf(key) : -1; 1630void IList.Insert(int index, object? value) => throw new NotSupportedException(); 1633void IList.Remove(object? value) => throw new NotSupportedException(); 1636void IList.RemoveAt(int index) => throw new NotSupportedException(); 1682bool IList.IsReadOnly => true; 1685bool IList.IsFixedSize => false; 1730object? IList.this[int index] 1782int IList.Add(object? value) => throw new NotSupportedException(); 1785void IList.Clear() => throw new NotSupportedException(); 1788bool IList.Contains(object? value) => 1794int IList.IndexOf(object? value) 1827void IList.Insert(int index, object? value) => throw new NotSupportedException(); 1830void IList.Remove(object? value) => throw new NotSupportedException(); 1833void IList.RemoveAt(int index) => throw new NotSupportedException();
System.Collections.Immutable (90)
System\Collections\Immutable\ImmutableArray_1.cs (21)
1189/// Adds an item to the <see cref="IList"/>. 1191/// <param name="value">The object to add to the <see cref="IList"/>.</param> 1196int IList.Add(object? value) 1205void IList.Clear() 1218/// Determines whether the <see cref="IList"/> contains a specific value. 1220/// <param name="value">The object to locate in the <see cref="IList"/>.</param> 1222/// true if the <see cref="object"/> is found in the <see cref="IList"/>; otherwise, false. 1224bool IList.Contains(object? value) 1236/// Determines the index of a specific item in the <see cref="IList"/>. 1238/// <param name="value">The object to locate in the <see cref="IList"/>.</param> 1242int IList.IndexOf(object? value) 1254/// Inserts an item to the <see cref="IList"/> at the specified index. 1257/// <param name="value">The object to insert into the <see cref="IList"/>.</param> 1259void IList.Insert(int index, object? value) 1271bool IList.IsFixedSize 1283bool IList.IsReadOnly 1326/// Removes the first occurrence of a specific object from the <see cref="IList"/>. 1328/// <param name="value">The object to remove from the <see cref="IList"/>.</param> 1330void IList.Remove(object? value) 1340void IList.RemoveAt(int index) 1355object? IList.this[int index]
System\Collections\Immutable\ImmutableList_1.Builder.cs (22)
1024/// Adds an item to the <see cref="IList"/>. 1026/// <param name="value">The object to add to the <see cref="IList"/>.</param> 1030int IList.Add(object? value) 1039void IList.Clear() 1045/// Determines whether the <see cref="IList"/> contains a specific value. 1047/// <param name="value">The object to locate in the <see cref="IList"/>.</param> 1049/// true if the <see cref="object"/> is found in the <see cref="IList"/>; otherwise, false. 1051bool IList.Contains(object? value) 1062/// Determines the index of a specific item in the <see cref="IList"/>. 1064/// <param name="value">The object to locate in the <see cref="IList"/>.</param> 1068int IList.IndexOf(object? value) 1079/// Inserts an item to the <see cref="IList"/> at the specified index. 1082/// <param name="value">The object to insert into the <see cref="IList"/>.</param> 1083void IList.Insert(int index, object? value) 1089/// Gets a value indicating whether the <see cref="IList"/> has a fixed size. 1091/// <returns>true if the <see cref="IList"/> has a fixed size; otherwise, false.</returns> 1092bool IList.IsFixedSize 1102bool IList.IsReadOnly 1108/// Removes the first occurrence of a specific object from the <see cref="IList"/>. 1110/// <param name="value">The object to remove from the <see cref="IList"/>.</param> 1111void IList.Remove(object? value) 1127object? IList.this[int index]
System\Collections\Immutable\ImmutableList_1.cs (24)
992/// Adds an item to the <see cref="IList"/>. 994/// <param name="value">The object to add to the <see cref="IList"/>.</param> 999int IList.Add(object? value) => throw new NotSupportedException(); 1002/// Removes the <see cref="IList"/> item at the specified index. 1006void IList.RemoveAt(int index) => throw new NotSupportedException(); 1012void IList.Clear() => throw new NotSupportedException(); 1015/// Determines whether the <see cref="IList"/> contains a specific value. 1017/// <param name="value">The object to locate in the <see cref="IList"/>.</param> 1019/// true if the <see cref="object"/> is found in the <see cref="IList"/>; otherwise, false. 1021bool IList.Contains(object? value) => IsCompatibleObject(value) && this.Contains((T)value!); 1024/// Determines the index of a specific item in the <see cref="IList"/>. 1026/// <param name="value">The object to locate in the <see cref="IList"/>.</param> 1030int IList.IndexOf(object? value) => IsCompatibleObject(value) ? this.IndexOf((T)value!) : -1; 1033/// Inserts an item to the <see cref="IList"/> at the specified index. 1036/// <param name="value">The object to insert into the <see cref="IList"/>.</param> 1038void IList.Insert(int index, object? value) => throw new NotSupportedException(); 1041/// Gets a value indicating whether the <see cref="IList"/> has a fixed size. 1043/// <returns>true if the <see cref="IList"/> has a fixed size; otherwise, false.</returns> 1044bool IList.IsFixedSize => true; 1051bool IList.IsReadOnly => true; 1054/// Removes the first occurrence of a specific object from the <see cref="IList"/>. 1056/// <param name="value">The object to remove from the <see cref="IList"/>.</param> 1058void IList.Remove(object? value) => throw new NotSupportedException(); 1070object? IList.this[int index]
System\Collections\Immutable\ImmutableSortedSet_1.cs (23)
779/// Gets a value indicating whether the <see cref="IList"/> has a fixed size. 781/// <returns>true if the <see cref="IList"/> has a fixed size; otherwise, false.</returns> 782bool IList.IsFixedSize 792bool IList.IsReadOnly 828/// Adds an item to the <see cref="IList"/>. 830/// <param name="value">The object to add to the <see cref="IList"/>.</param> 835int IList.Add(object? value) 844void IList.Clear() 857/// Determines whether the <see cref="IList"/> contains a specific value. 859/// <param name="value">The object to locate in the <see cref="IList"/>.</param> 861/// true if the <see cref="object"/> is found in the <see cref="IList"/>; otherwise, false. 863bool IList.Contains(object? value) 873/// Determines the index of a specific item in the <see cref="IList"/>. 875/// <param name="value">The object to locate in the <see cref="IList"/>.</param> 879int IList.IndexOf(object? value) 889/// Inserts an item to the <see cref="IList"/> at the specified index. 892/// <param name="value">The object to insert into the <see cref="IList"/>.</param> 894void IList.Insert(int index, object? value) 900/// Removes the first occurrence of a specific object from the <see cref="IList"/>. 902/// <param name="value">The object to remove from the <see cref="IList"/>.</param> 904void IList.Remove(object? value) 914void IList.RemoveAt(int index) 927object? IList.this[int index]
System.Collections.NonGeneric (14)
System\Collections\CollectionBase.cs (10)
38protected IList List 40get { return (IList)this; } 90bool IList.IsReadOnly 95bool IList.IsFixedSize 115object? IList.this[int index] 143bool IList.Contains(object? value) 148int IList.Add(object? value) 166void IList.Remove(object? value) 184int IList.IndexOf(object? value) 189void IList.Insert(int index, object? value)
System\Collections\SortedList.cs (4)
428public virtual IList GetKeyList() => keyList ??= new KeyList(this); 441public virtual IList GetValueList() => valueList ??= new ValueList(this); 712public override IList GetKeyList() 720public override IList GetValueList()
System.Collections.Specialized (18)
System\Collections\Specialized\OrderedDictionary.cs (10)
580bool IList.Contains(object? value) 600int IList.IndexOf(object? value) 628bool IList.IsFixedSize => true; 629bool IList.IsReadOnly => true; 631object? IList.this[int index] 641void IList.Insert(int index, object? value) 646void IList.Remove(object? value) 651void IList.RemoveAt(int index) 656int IList.Add(object? value) 661void IList.Clear()
System\Collections\Specialized\StringCollection.cs (8)
43bool IList.IsReadOnly 51bool IList.IsFixedSize 186object? IList.this[int index] 198int IList.Add(object? value) 203bool IList.Contains(object? value) 209int IList.IndexOf(object? value) 214void IList.Insert(int index, object? value) 219void IList.Remove(object? value)
System.ComponentModel.Composition (4)
Microsoft\Internal\Collections\CollectionServices.CollectionOfObject.cs (4)
27if (typeof(IList).IsAssignableFrom(collectionObject.GetType())) 29return new CollectionOfObjectList((IList)collectionObject); 39private readonly IList _list; 41public CollectionOfObjectList(IList list)
System.ComponentModel.Primitives (1)
System\ComponentModel\ComponentCollection.cs (1)
22IList list = InnerList;
System.ComponentModel.TypeConverter (63)
System\ComponentModel\Design\DesignerCollection.cs (2)
13private readonly IList _designers; 37public DesignerCollection(IList? designers)
System\ComponentModel\Design\DesignerOptionService.cs (10)
337bool IList.IsFixedSize => true; 342bool IList.IsReadOnly => true; 347object? IList.this[int index] 356int IList.Add(object? value) => throw new NotSupportedException(); 361void IList.Clear() => throw new NotSupportedException(); 366bool IList.Contains(object? value) 375int IList.IndexOf(object? value) 384void IList.Insert(int index, object? value) => throw new NotSupportedException(); 389void IList.Remove(object? value) => throw new NotSupportedException(); 394void IList.RemoveAt(int index) => throw new NotSupportedException();
System\ComponentModel\EventDescriptorCollection.cs (10)
376object? IList.this[int index] 395int IList.Add(object? value) => Add((EventDescriptor?)value); 397bool IList.Contains(object? value) => Contains((EventDescriptor?)value); 399void IList.Clear() => Clear(); 401int IList.IndexOf(object? value) => IndexOf((EventDescriptor?)value); 403void IList.Insert(int index, object? value) => Insert(index, (EventDescriptor?)value); 405void IList.Remove(object? value) => Remove((EventDescriptor?)value); 407void IList.RemoveAt(int index) => RemoveAt(index); 409bool IList.IsReadOnly => _readOnly; 411bool IList.IsFixedSize => _readOnly;
System\ComponentModel\IListSource.cs (1)
16IList GetList();
System\ComponentModel\ListSortDescriptionCollection.cs (10)
36bool IList.IsFixedSize => true; 38bool IList.IsReadOnly => true; 40object? IList.this[int index] 46int IList.Add(object? value) => throw new InvalidOperationException(SR.CantModifyListSortDescriptionCollection); 48void IList.Clear() => throw new InvalidOperationException(SR.CantModifyListSortDescriptionCollection); 50public bool Contains(object? value) => ((IList)_sorts).Contains(value); 52public int IndexOf(object? value) => ((IList)_sorts).IndexOf(value); 54void IList.Insert(int index, object? value) => throw new InvalidOperationException(SR.CantModifyListSortDescriptionCollection); 56void IList.Remove(object? value) => throw new InvalidOperationException(SR.CantModifyListSortDescriptionCollection); 58void IList.RemoveAt(int index) => throw new InvalidOperationException(SR.CantModifyListSortDescriptionCollection);
System\ComponentModel\MaskedTextProvider.cs (1)
548return ((System.Collections.IList)editPositions).GetEnumerator();
System\ComponentModel\MemberDescriptor.cs (1)
310protected virtual void FillAttributes(IList attributeList)
System\ComponentModel\PropertyDescriptor.cs (1)
243protected override void FillAttributes(IList attributeList)
System\ComponentModel\PropertyDescriptorCollection.cs (11)
408void IList.Clear() => Clear(); 414void IList.RemoveAt(int index) => RemoveAt(index); 544((IList)this).Remove(pd); 549int IList.Add(object? value) => Add((PropertyDescriptor)value!); 551bool IList.Contains(object? value) => Contains((PropertyDescriptor)value!); 553int IList.IndexOf(object? value) => IndexOf((PropertyDescriptor)value!); 555void IList.Insert(int index, object? value) => Insert(index, (PropertyDescriptor)value!); 557bool IList.IsReadOnly => _readOnly; 559bool IList.IsFixedSize => _readOnly; 561void IList.Remove(object? value) => Remove((PropertyDescriptor?)value); 563object? IList.this[int index]
System\ComponentModel\ReflectEventDescriptor.cs (3)
220protected override void FillAttributes(IList attributes) 257private void FillEventInfoAttribute(EventInfo realEventInfo, IList attributes) 378private void FillSingleMethodAttribute(MethodInfo realMethodInfo, IList attributes)
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
749protected override void FillAttributes(IList attributes)
System\ComponentModel\TypeConverter.cs (1)
470if (_values is IList list)
System\ComponentModel\TypeDescriptor.cs (11)
426IList? associations = (IList?)associationTable[primary]; 432associations = (IList?)associationTable[primary]; 571private static ArrayList? FilterMembers(IList members, Attribute[] attributes) 628IList? associations = (IList?)assocTable?[primary]; 1888IList? list = members as ArrayList; 1972IList? list = members as ArrayList; 2634IList? associations = (IList?)assocTable?[primary]; 2758public static void SortDescriptorArray(IList infos)
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationElement.cs (1)
493protected virtual void ListErrors(IList errorList)
System.Data.Common (55)
System\Data\Common\DataColumnMappingCollection.cs (3)
31bool IList.IsReadOnly 35bool IList.IsFixedSize 39object? IList.this[int index]
System\Data\Common\DataTableMappingCollection.cs (3)
26bool IList.IsReadOnly => false; 27bool IList.IsFixedSize => false; 28object? IList.this[int index]
System\Data\Common\DbParameterCollection.cs (25)
38object? IList.this[int index] 63/// For a description of this member, see <see cref="IList.Add" />. 65/// <param name="value">For a description of this member, see <see cref="IList.Add" />.</param> 66/// <returns>For a description of this member, see <see cref="IList.Add" />.</returns> 70/// <see cref="IList" /> interface. 72int IList.Add(object? value) => Add(value!); 79/// For a description of this member, see <see cref="IList.Contains" />. 81/// <param name="value">For a description of this member, see <see cref="IList.Contains" />.</param> 82/// <returns>For a description of this member, see <see cref="IList.Contains" />.</returns> 86/// <see cref="IList" /> interface. 88bool IList.Contains(object? value) => Contains(value!); 106/// For a description of this member, see <see cref="IList.IndexOf" />. 108/// <param name="value">For a description of this member, see <see cref="IList.IndexOf" />.</param> 109/// <returns>For a description of this member, see <see cref="IList.IndexOf" />.</returns> 113/// <see cref="IList" /> interface. 115int IList.IndexOf(object? value) => IndexOf(value!); 122/// For a description of this member, see <see cref="IList.Insert" />. 124/// <param name="index">For a description of this member, see <see cref="IList.Insert" />.</param> 125/// <param name="value">For a description of this member, see <see cref="IList.Insert" />.</param> 129/// <see cref="IList" /> interface. 131void IList.Insert(int index, object? value) => Insert(index, value!); 136/// For a description of this member, see <see cref="IList.Remove" />. 138/// <param name="value">For a description of this member, see <see cref="IList.Remove" />.</param> 142/// <see cref="IList" /> interface. 144void IList.Remove(object? value) => Remove(value!);
System\Data\DataColumnPropertyDescriptor.cs (1)
22if (typeof(IList).IsAssignableFrom(PropertyType))
System\Data\DataSet.cs (1)
1447IList IListSource.GetList() => DefaultViewManager;
System\Data\DataTable.cs (1)
3208IList IListSource.GetList() => DefaultView;
System\Data\DataView.cs (11)
515object? IList.this[int recordIndex] 834bool IList.IsReadOnly => false; 836bool IList.IsFixedSize => false; 838int IList.Add(object? value) 849void IList.Clear() 854bool IList.Contains(object? value) => (0 <= IndexOf(value as DataRowView)); 856int IList.IndexOf(object? value) => IndexOf(value as DataRowView); 888void IList.Insert(int index, object? value) 893void IList.Remove(object? value) 899((IList)this).RemoveAt(index); 907void IList.RemoveAt(int index) => Delete(index);
System\Data\DataViewManager.cs (10)
154bool IList.IsReadOnly => true; 156bool IList.IsFixedSize => true; 163object? IList.this[int index] 169int IList.Add(object? value) 174void IList.Clear() 179bool IList.Contains(object? value) => (value == _item); 181int IList.IndexOf(object? value) => (value == _item) ? 1 : -1; 183void IList.Insert(int index, object? value) 188void IList.Remove(object? value) 193void IList.RemoveAt(int index)
System.Data.Odbc (2)
System\Data\Odbc\OdbcParameterCollectionHelper.cs (2)
42return ((System.Collections.IList)InnerList).IsFixedSize; 50return ((System.Collections.IList)InnerList).IsReadOnly;
System.Diagnostics.TraceSource (14)
System\Diagnostics\TraceListeners.cs (14)
79return ((IList)_list).Add(listener); 127return ((IList)this).Contains(listener); 162return ((IList)this).IndexOf(listener); 184((IList)this).Remove(listener); 195((IList)this).Remove(listener); 210object? IList.this[int index] 228bool IList.IsReadOnly 237bool IList.IsFixedSize 246int IList.Add(object? value) 256return ((IList)_list).Add(value); 261bool IList.Contains(object? value) 267int IList.IndexOf(object? value) 273void IList.Insert(int index, object? value) 288void IList.Remove(object? value)
System.DirectoryServices (8)
artifacts\obj\System.DirectoryServices\Debug\net10.0\System.DirectoryServices.notsupported.cs (8)
444bool System.Collections.IList.IsFixedSize { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 445bool System.Collections.IList.IsReadOnly { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 446object? System.Collections.IList.this[int index] { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 459int System.Collections.IList.Add(object? value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 460bool System.Collections.IList.Contains(object? value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 461int System.Collections.IList.IndexOf(object? value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 462void System.Collections.IList.Insert(int index, object? value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 463void System.Collections.IList.Remove(object? value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); }
System.DirectoryServices.AccountManagement (10)
artifacts\obj\System.DirectoryServices.AccountManagement\Debug\net10.0\System.DirectoryServices.AccountManagement.notsupported.cs (10)
365bool System.Collections.IList.IsFixedSize { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } } 366bool System.Collections.IList.IsReadOnly { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } } 367object System.Collections.IList.this[int index] { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } } 379int System.Collections.IList.Add(object value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } 380void System.Collections.IList.Clear() { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } 381bool System.Collections.IList.Contains(object value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } 382int System.Collections.IList.IndexOf(object value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } 383void System.Collections.IList.Insert(int index, object value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } 384void System.Collections.IList.Remove(object value) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } 385void System.Collections.IList.RemoveAt(int index) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); }
System.Linq (1)
System\Linq\OfType.SpeedOpt.cs (1)
181_source is IList list)
System.Linq.Expressions (9)
System\Linq\Expressions\MemberBinding.cs (1)
22/// A binding that represents initializing a member of type <see cref="Collections.IList"/> or <see cref="Collections.Generic.ICollection{T}"/> from a list of elements.
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (8)
269bool IList.IsReadOnly => false; 271int IList.Add(object? value) 285bool IList.Contains(object? value) 294int IList.IndexOf(object? value) 303void IList.Insert(int index, object? value) 316bool IList.IsFixedSize => false; 318void IList.Remove(object? value) 326object? IList.this[int index]
System.Net.Security (4)
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (4)
26private ServiceNameCollection(IList list, string serviceName) 35private ServiceNameCollection(IList list, IEnumerable serviceNames) 43private ServiceNameCollection(IList list, int additionalCapacity) 120private void AddIfNew(IList serviceNames)
System.Net.Sockets (6)
artifacts\obj\System.Net.Sockets\Debug\net10.0\System.Net.Sockets.notsupported.cs (6)
417public static void Select(System.Collections.IList? checkRead, System.Collections.IList? checkWrite, System.Collections.IList? checkError, int microSeconds) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); } 418public static void Select(System.Collections.IList? checkRead, System.Collections.IList? checkWrite, System.Collections.IList? checkError, System.TimeSpan timeout) { throw new System.PlatformNotSupportedException(System.SR.SystemNetSockets_PlatformNotSupported); }
System.ObjectModel (13)
System\Collections\Specialized\NotifyCollectionChangedEventArgs.cs (13)
17private readonly IList? _newItems; 18private readonly IList? _oldItems; 89public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList? changedItems) : 100public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList? changedItems, int startingIndex) 176public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems) : 188public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex) 231public NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction action, IList? changedItems, int index, int oldIndex) 253public IList? NewItems => _newItems; 258public IList? OldItems => _oldItems; 278private readonly IList _list; 280internal ReadOnlyList(IList list)
System.Private.CoreLib (51)
src\libraries\System.Private.CoreLib\src\System\Array.cs (8)
1028object? IList.this[int index] 1034int IList.Add(object? value) 1040bool IList.Contains(object? value) 1045void IList.Clear() 1050int IList.IndexOf(object? value) 1055void IList.Insert(int index, object? value) 1060void IList.Remove(object? value) 1065void IList.RemoveAt(int index)
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (16)
11/// Implements the <see cref="IList" /> interface using an array whose size is dynamically increased as required. 142public static ArrayList Adapter(IList list) 293public static IList FixedSize(IList list) 485public static IList ReadOnly(IList list) 647public static IList Synchronized(IList list) 709private readonly IList _list; 711internal IListWrapper(IList list) 1473private readonly IList _list; 1476internal SyncIList(IList list) 1590private readonly IList _list; 1592internal FixedSizeList(IList l) 1849private readonly IList _list; 1851internal ReadOnlyList(IList l)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (8)
129bool IList.IsFixedSize => false; 134bool IList.IsReadOnly => false; 173object? IList.this[int index] 223int IList.Add(object? item) 355bool IList.Contains(object? item) 721int IList.IndexOf(object? item) 790void IList.Insert(int index, object? item) 952void IList.Remove(object? item)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (9)
241object? IList.this[int index] 263bool IList.IsReadOnly => items.IsReadOnly; 265bool IList.IsFixedSize 273if (items is IList list) 281int IList.Add(object? value) 305bool IList.Contains(object? value) 314int IList.IndexOf(object? value) 323void IList.Insert(int index, object? value) 345void IList.Remove(object? value)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (10)
172bool IList.IsFixedSize => true; 174bool IList.IsReadOnly => true; 176object? IList.this[int index] 182int IList.Add(object? value) 188void IList.Clear() 200bool IList.Contains(object? value) 209int IList.IndexOf(object? value) 218void IList.Insert(int index, object? value) 223void IList.Remove(object? value) 228void IList.RemoveAt(int index)
System.Private.DataContractSerialization (4)
System\Runtime\Serialization\Globals.cs (1)
250s_typeOfIList ??= typeof(IList);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
677((IList)Globals.TypeOfNullable.GetInterfaces()).Contains(memberType))
System\Runtime\Serialization\ReflectionReader.cs (1)
599((IList)resultCollection).Add(collectionItem);
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
690((IList)Globals.TypeOfNullable.GetInterfaces()).Contains(memberType))
System.Private.Windows.Core (6)
System\Collections\Generic\ListConverter.cs (2)
17private readonly IList _values; 20public ListConverter(IList values, Func<TIn, TOut> converter)
System\Private\Windows\BinaryFormat\BinaryFormatWriter.cs (3)
401public static bool TryWritePrimitiveList(Stream stream, IList list) 408static bool Write(Stream stream, IList list) 719&& TryWritePrimitiveList(stream, (IList)value);
System\Private\Windows\BinaryFormat\Support\ListConverter.cs (1)
12IList values,
System.Private.Windows.Core.Tests (6)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (6)
65public static TheoryData<IList> PrimitiveListObjects_TheoryData => 154public static TheoryData<IList> Lists_UnsupportedTestData => 215public void RoundTrip_PrimitiveList(IList value) 223public void RoundTrip_PredefinedFormat_PrimitiveList(IList value) 348public void RoundTrip_Unsupported(IList value) 376public void RoundTrip_PredefinedFormat_Unsupported(IList value)
System.Private.Xml (52)
System\Xml\Schema\XmlSchema.cs (1)
527internal static void GetExternalSchemasList(IList extList, XmlSchema schema)
System\Xml\Schema\XmlValueConverter.cs (6)
297protected static readonly Type IListType = typeof(IList); 3038IList? listSrc = list as IList; 3063private IList ToList(object list, IXmlNamespaceResolver? nsResolver) 3066IList? listSrc = list as IList;
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
573if (targetCollection is IList targetList)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (2)
155var arr = o as IList;
System\Xml\Serialization\SourceInfo.cs (2)
28return typeof(IList).GetMethod( 112if (get_Item == null && typeof(IList).IsAssignableFrom(varType))
System\Xml\Serialization\XmlSchemas.cs (11)
43IList values = (IList)SchemaSet.Schemas(ns); 53public IList GetSchemas(string? ns) 55return (IList)SchemaSet.Schemas(ns); 222IList values = (IList)SchemaSet.Schemas(name.Namespace); 327IList originals = (IList)SchemaSet.Schemas(schema.TargetNamespace); 340private static void AddImport(IList schemas, string? ns) 364private void Merge(IList originals, XmlSchema schema) 597internal static XmlSchemaObject? Find(XmlSchemaObject o, IList originals)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
1689WriteDefaultIndexerInit(typeof(IList), typeof(Array).FullName!, false, false);
System\Xml\XPath\Internal\XPathArrayIterator.cs (3)
16protected IList list; 19public XPathArrayIterator(IList list) 40public IList AsList
System\Xml\Xsl\ListBase.cs (7)
131object? System.Collections.IList.this[int index] 143int System.Collections.IList.Add(object? value) 152void System.Collections.IList.Clear() 157bool System.Collections.IList.Contains(object? value) 165int System.Collections.IList.IndexOf(object? value) 173void System.Collections.IList.Insert(int index, object? value) 181void System.Collections.IList.Remove(object? value)
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (8)
168public IList? DebugGetGlobalValue(string name) 176return (IList)_globalValues[idx]; 204public object? DebugGetXsltValue(IList? seq) 504value = new XPathArrayIterator((IList)value); 541value = new XPathArrayIterator((IList)value); 552value = new XPathArrayIterator((IList)value); 606IList? list = value as IList;
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (10)
228bool System.Collections.IList.IsFixedSize 236bool System.Collections.IList.IsReadOnly 244object? System.Collections.IList.this[int index] 258int System.Collections.IList.Add(object? value) 266void System.Collections.IList.Clear() 274bool System.Collections.IList.Contains(object? value) 282int System.Collections.IList.IndexOf(object? value) 290void System.Collections.IList.Insert(int index, object? value) 298void System.Collections.IList.Remove(object? value) 306void System.Collections.IList.RemoveAt(int index)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
103[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.IList))]
System.Runtime.Serialization.Schema (3)
System\Runtime\Serialization\Schema\CodeExporter.cs (3)
294((IList)collection).Remove(codeTypeDeclaration); 296((IList)collection).Add(newCodeTypeDeclaration); 325private CodeTypeReference? GetCodeTypeReference(Type type, IList? parameters)
System.Security.Cryptography.Xml (15)
System\Security\Cryptography\Xml\CanonicalXmlNodeList.cs (1)
83object? IList.this[int index]
System\Security\Cryptography\Xml\EncryptionPropertyCollection.cs (8)
28int IList.Add(object? value) 47bool IList.Contains(object? value) 61int IList.IndexOf(object? value) 75void IList.Insert(int index, object? value) 89void IList.Remove(object? value) 127return (EncryptionProperty)((IList)this)[index]!; 131((IList)this)[index] = value; 136object? IList.this[int index]
System\Security\Cryptography\Xml\ReferenceList.cs (4)
89((IList)this)[index] = value; 94object? IList.this[int index] 114bool IList.IsFixedSize 119bool IList.IsReadOnly
System\Security\Cryptography\Xml\Signature.cs (2)
17private IList _embeddedObjects; 70public IList ObjectList
System.Security.Permissions (5)
System\Security\Policy\CodeGroup.cs (1)
12public IList Children { get; set; }
System\Security\Policy\PolicyLevel.cs (4)
11[Obsolete("Because all GAC assemblies always get full trust, the full trust list is no longer meaningful. You should install any assemblies that are used in security policy in the GAC to ensure they are trusted.")] public IList FullTrustAssemblies { get { return default(IList); } } 13public IList NamedPermissionSets { get { return default(IList); } }
System.ServiceModel.Primitives (8)
netstandard.cs (8)
42object IList.this[int index] { get { return default; } set { } } 43bool IList.IsReadOnly { get { return default; } } 44bool IList.IsFixedSize { get { return default; } } 45int IList.Add(object value) { return default; } 46bool IList.Contains(object value) { return default; } 47int IList.IndexOf(object value) { return default; } 48void IList.Insert(int index, object value) { } 49void IList.Remove(object value) { }
System.Text.Json (9)
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactory.cs (4)
23private static readonly IListConverter<IList> s_converterForIList = new IListConverter<IList>(); 157else if (typeof(IList).IsAssignableFrom(typeToConvert)) 159if (typeToConvert == typeof(IList))
System\Text\Json\Serialization\Converters\Collection\IListConverter.cs (2)
14where TCollection : IList 41IList list = value;
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Collections.cs (3)
162/// Creates serialization metadata for types assignable to <see cref="IList"/>. 172where TCollection : IList 410/// Creates serialization metadata for types assignable to <see cref="IList"/>.
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
70public INamedTypeSymbol? IListType => GetOrResolveType(typeof(IList), ref _IListType);
System.Text.RegularExpressions (27)
System\Text\RegularExpressions\CaptureCollection.cs (9)
151int IList.Add(object? value) => 154void IList.Clear() => 157bool IList.Contains(object? value) => 160int IList.IndexOf(object? value) => 163void IList.Insert(int index, object? value) => 166bool IList.IsFixedSize => true; 168void IList.Remove(object? value) => 171void IList.RemoveAt(int index) => 174object? IList.this[int index]
System\Text\RegularExpressions\GroupCollection.cs (9)
165int IList.Add(object? value) => 168void IList.Clear() => 171bool IList.Contains(object? value) => 174int IList.IndexOf(object? value) => 177void IList.Insert(int index, object? value) => 180bool IList.IsFixedSize => true; 182void IList.Remove(object? value) => 185void IList.RemoveAt(int index) => 188object? IList.this[int index]
System\Text\RegularExpressions\MatchCollection.cs (9)
164int IList.Add(object? value) => 167void IList.Clear() => 170bool IList.Contains(object? value) => 173int IList.IndexOf(object? value) => 176void IList.Insert(int index, object? value) => 179bool IList.IsFixedSize => true; 181void IList.Remove(object? value) => 184void IList.RemoveAt(int index) => 187object? IList.this[int index]
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (2)
2305IList items = markupProp.PropertyDescriptor.GetValue(clone) as IList;
System.Windows.Forms (433)
System\Drawing\Design\UITypeEditor.cs (1)
41[typeof(IList)] = $"System.ComponentModel.Design.CollectionEditor, {Assemblies.SystemDesign}",
System\Windows\Forms\AutoCompleteStringCollection.cs (14)
44bool IList.IsReadOnly => ((IList)_data).IsReadOnly; 46bool IList.IsFixedSize => ((IList)_data).IsFixedSize; 71int index = ((IList)_data).Add(value); 149public bool IsReadOnly => ((IList)_data).IsReadOnly; 155public bool IsSynchronized => ((IList)_data).IsSynchronized; 179public object SyncRoot => ((IList)_data).SyncRoot; 181object? IList.this[int index] 187int IList.Add(object? value) => Add((string)value!); 189bool IList.Contains(object? value) => Contains((string)value!); 191int IList.IndexOf(object? value) => IndexOf((string)value!); 193void IList.Insert(int index, object? value) => Insert(index, (string)value!); 195void IList.Remove(object? value) => Remove((string)value!);
System\Windows\Forms\Control.ControlCollection.cs (4)
125int IList.Add(object? control) 166public bool Contains(Control? control) => ((IList)InnerList).Contains(control); 232public int IndexOf(Control? control) => ((IList)InnerList).IndexOf(control); 312void IList.Remove(object? control)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3273protected override void SetItemsCore(IList value)
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (3)
79bool IList.IsFixedSize 172int IList.Add(object? item) 191internal void AddRangeInternal(IList items)
System\Windows\Forms\Controls\DataGridView\DataGridView.ControlCollection.cs (1)
27((IList)this).Insert(index, value);
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (3)
120public IList? List => CurrencyManager?.List; 940if (typeof(IList).IsAssignableFrom(_props[i].PropertyType)) 1207Debug.Assert(!_props[i].IsBrowsable || typeof(IList).IsAssignableFrom(_props[i].PropertyType), "if the DGV does not have any columns then the properties in the currency manager should be Browsable(false) or point to sub lists");
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
25536IList? list = DataConnection.List;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (15)
20int IList.Add(object? value) => Add((DataGridViewCell)value!); 22void IList.Clear() => Clear(); 24bool IList.Contains(object? value) => ((IList)_items).Contains(value); 26int IList.IndexOf(object? value) => ((IList)_items).IndexOf(value); 28void IList.Insert(int index, object? value) => Insert(index, (DataGridViewCell)value!); 30void IList.Remove(object? value) => Remove((DataGridViewCell)value!); 32void IList.RemoveAt(int index) => RemoveAt(index); 34bool IList.IsFixedSize => ((IList)_items).IsFixedSize; 36bool IList.IsReadOnly => ((IList)_items).IsReadOnly; 38object? IList.this[int index] 175int index = ((IList)_items).Add(dataGridViewCell);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (10)
27bool IList.IsFixedSize => false; 29bool IList.IsReadOnly => false; 31object? IList.this[int index] 37int IList.Add(object? value) => Add((DataGridViewColumn)value!); 39void IList.Clear() => Clear(); 41bool IList.Contains(object? value) => _items.Contains(value); 43int IList.IndexOf(object? value) => _items.IndexOf((DataGridViewColumn)value!); 45void IList.Insert(int index, object? value) => Insert(index, (DataGridViewColumn)value!); 47void IList.Remove(object? value) => Remove((DataGridViewColumn)value!); 49void IList.RemoveAt(int index) => RemoveAt(index);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
136if (value is not null and not (IList or IListSource))
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (5)
43bool IList.IsFixedSize => ((IList)InnerArray).IsFixedSize; 45public bool IsReadOnly => ((IList)InnerArray).IsReadOnly; 60int index = ((IList)InnerArray).Add(item); 84int IList.Add(object? item) => Add(item!);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (10)
39int IList.Add(object? value) => Add((DataGridViewRow)value!); 41void IList.Clear() => Clear(); 43bool IList.Contains(object? value) => _items.Contains(value); 45int IList.IndexOf(object? value) => _items.IndexOf((DataGridViewRow)value!); 47void IList.Insert(int index, object? value) => Insert(index, (DataGridViewRow)value!); 49void IList.Remove(object? value) => Remove((DataGridViewRow)value!); 51void IList.RemoveAt(int index) => RemoveAt(index); 53bool IList.IsFixedSize => false; 55bool IList.IsReadOnly => false; 57object? IList.this[int index]
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (14)
18int IList.Add(object? value) 23void IList.Clear() 28bool IList.Contains(object? value) => ((IList)_items).Contains(value); 30int IList.IndexOf(object? value) => ((IList)_items).IndexOf(value); 32void IList.Insert(int index, object? value) 37void IList.Remove(object? value) 42void IList.RemoveAt(int index) 47bool IList.IsFixedSize => true; 49bool IList.IsReadOnly => true; 51object? IList.this[int index] 93return ((IList)_items).Add(dataGridViewCell); 118public bool Contains(DataGridViewCell dataGridViewCell) => ((IList)_items).Contains(dataGridViewCell);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (14)
14int IList.Add(object? value) 19void IList.Clear() 24bool IList.Contains(object? value) => ((IList)_items).Contains(value); 26int IList.IndexOf(object? value) => ((IList)_items).IndexOf(value); 28void IList.Insert(int index, object? value) 33void IList.Remove(object? value) 38void IList.RemoveAt(int index) 43bool IList.IsFixedSize => true; 45bool IList.IsReadOnly => true; 47object? IList.this[int index] 74internal int Add(DataGridViewColumn dataGridViewColumn) => ((IList)_items).Add(dataGridViewColumn); 85public bool Contains(DataGridViewColumn dataGridViewColumn) => ((IList)_items).Contains(dataGridViewColumn);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (14)
18int IList.Add(object? value) => throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 20void IList.Clear() => throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 22bool IList.Contains(object? value) => ((IList)_items).Contains(value); 24int IList.IndexOf(object? value) => ((IList)_items).IndexOf(value); 26void IList.Insert(int index, object? value) => throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 28void IList.Remove(object? value) => throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 30void IList.RemoveAt(int index) => throw new NotSupportedException(SR.DataGridView_ReadOnlyCollection); 32bool IList.IsFixedSize => true; 34bool IList.IsReadOnly => true; 36object? IList.this[int index] 63internal int Add(DataGridViewRow dataGridViewRow) => ((IList)_items).Add(dataGridViewRow); 71public bool Contains(DataGridViewRow dataGridViewRow) => ((IList)_items).Contains(dataGridViewRow);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (9)
114bool IList.IsFixedSize => false; 186object? IList.this[int index] 260int IList.Add(object? value) 316index = ((IList)_owner._originals).Add(original); 333index = ((IList)_owner._originals).Add(original); 432bool IList.Contains(object? value) 450int IList.IndexOf(object? value) 499void IList.Insert(int index, object? value) => throw new NotSupportedException(); 532void IList.Remove(object? value)
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (7)
41object? IList.this[int index] 95bool IList.IsFixedSize => false; 188int IList.Add(object? value) 200void IList.Insert(int index, object? value) 225bool IList.Contains(object? value) 242int IList.IndexOf(object? value) 380void IList.Remove(object? value)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedIndexCollection.cs (9)
47bool IList.IsFixedSize 77object? IList.this[int index] 89int IList.Add(object? value) 94void IList.Clear() 99void IList.Insert(int index, object? value) 104void IList.Remove(object? value) 109void IList.RemoveAt(int index) 119bool IList.Contains(object? index) 170int IList.IndexOf(object? index)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (6)
80bool IList.IsFixedSize 111int IList.Add(object? value) 116void IList.Clear() 121void IList.Insert(int index, object? value) 126void IList.Remove(object? value) 131void IList.RemoveAt(int index)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2096protected override void SetItemsCore(IList value)
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (10)
50bool IList.IsFixedSize 58bool IList.IsReadOnly 71bool IList.Contains(object? item) 108int IList.IndexOf(object? item) 151int IList.Add(object? item) 221void IList.Clear() 226void IList.Insert(int index, object? value) 231void IList.Remove(object? value) 241void IList.RemoveAt(int index) 298object? IList.this[int index]
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (7)
72bool IList.IsFixedSize => false; 161int IList.Add(object? item) => Add(item!); 222object? IList.this[int index] 266bool IList.Contains(object? value) => Contains(value!); 305int IList.IndexOf(object? value) => IndexOf(value!); 363void IList.Insert(int index, object? item) => Insert(index, item!); 380void IList.Remove(object? value) => Remove(value!);
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.cs (9)
48bool IList.IsFixedSize 69bool IList.Contains(object? selectedIndex) 97int IList.IndexOf(object? selectedIndex) 109int IList.Add(object? value) 114void IList.Clear() 119void IList.Insert(int index, object? value) 124void IList.Remove(object? value) 129void IList.RemoveAt(int index) 146object? IList.this[int index]
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (6)
89bool IList.IsFixedSize 152int IList.Add(object? value) 157void IList.Clear() 162void IList.Insert(int index, object? value) 167void IList.Remove(object? value) 172void IList.RemoveAt(int index)
System\Windows\Forms\Controls\ListControl\ListControl.cs (6)
52if (value is not null and not (IList or IListSource)) 266if (typeof(IList).IsAssignableFrom(props[i].PropertyType)) 279if (typeof(IList).IsAssignableFrom(props[i].PropertyType)) 471private protected int FindStringInternal(string? str, IList? items, int startIndex, bool exact, bool ignoreCase) 686IList? currentList = DataManager?.List; 816protected abstract void SetItemsCore(IList items);
System\Windows\Forms\Controls\ListView\ListView.CheckedIndexCollection.cs (9)
99object? IList.this[int index] 127bool IList.IsFixedSize 155bool IList.Contains(object? checkedIndex) 181int IList.IndexOf(object? checkedIndex) 193int IList.Add(object? value) 198void IList.Clear() 203void IList.Insert(int index, object? value) 208void IList.Remove(object? value) 213void IList.RemoveAt(int index)
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (9)
79object? IList.this[int index] 143bool IList.IsFixedSize 176bool IList.Contains(object? item) 273int IList.IndexOf(object? item) 290int IList.Add(object? value) 295void IList.Clear() 300void IList.Insert(int index, object? value) 305void IList.Remove(object? value) 310void IList.RemoveAt(int index)
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (7)
27object? IList.this[int index] 93bool IList.IsFixedSize 291int IList.Add(object? value) 351bool IList.Contains(object? value) 390int IList.IndexOf(object? value) 408void IList.Insert(int index, object? value) 576void IList.Remove(object? value)
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (7)
51bool IList.IsFixedSize => false; 84object? IList.this[int index] 132int IList.Add(object? item) 245bool IList.Contains(object? item) 329int IList.IndexOf(object? item) 394void IList.Insert(int index, object? item) 456void IList.Remove(object? item)
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (9)
124object? IList.this[int index] 152bool IList.IsFixedSize 178bool IList.Contains(object? selectedIndex) 204int IList.IndexOf(object? selectedIndex) 216int IList.Add(object? value) 228void IList.Clear() 233void IList.Insert(int index, object? value) 238void IList.Remove(object? value) 250void IList.RemoveAt(int index)
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (8)
179object? IList.this[int index] 197bool IList.IsFixedSize 229int IList.Add(object? value) 235void IList.Insert(int index, object? value) 249void IList.Remove(object? value) 255void IList.RemoveAt(int index) 301bool IList.Contains(object? item) 368int IList.IndexOf(object? item)
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (9)
30bool IList.IsFixedSize => false; 32bool IList.IsReadOnly => false; 100object? IList.this[int index] 124int index = ((IList)List).Add(group); 141int IList.Add(object? value) 211bool IList.Contains(object? value) 227int IList.IndexOf(object? value) 257void IList.Insert(int index, object? value) 294void IList.Remove(object? value)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (7)
36bool IList.IsFixedSize => false; 69object? IList.this[int index] 184int IList.Add(object? item) 213bool IList.Contains(object? item) 255int IList.IndexOf(object? subItem) 317void IList.Insert(int index, object? item) 336void IList.Remove(object? item)
System\Windows\Forms\Controls\PropertyGrid\GridItemCollection.cs (1)
58((IList)dest)[index + i] = _entries[i];
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (4)
274private void SetCollectionValues(Array a, IList listValue) 287if (_descriptors[i].GetValue(GetPropertyOwnerForComponent(a, i)) is not IList properties) 309if (value is IList list && typeof(IList).IsAssignableFrom(PropertyType))
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (7)
32object? IList.this[int index] 77bool IList.IsFixedSize => false; 88int IList.Add(object? value) 141bool IList.Contains(object? page) 174int IList.IndexOf(object? page) 238void IList.Insert(int index, object? tabPage) 326void IList.Remove(object? value)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (11)
105int retVal = ((IList)InnerList).Add(value); 297void IList.Clear() { Clear(); } 298bool IList.IsFixedSize { get { return ((IList)InnerList).IsFixedSize; } } 299bool IList.Contains(object? value) { return InnerList.Contains(value); } 300void IList.RemoveAt(int index) { RemoveAt(index); } 301void IList.Remove(object? value) { Remove((ToolStripItem)value!); } 302int IList.Add(object? value) { return Add((ToolStripItem)value!); } 303int IList.IndexOf(object? value) { return IndexOf((ToolStripItem)value!); } 304void IList.Insert(int index, object? value) { Insert(index, (ToolStripItem)value!); } 306object? IList.this[int index]
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelRowCollection.cs (13)
43int retVal = ((IList)InnerList).Add(value); 111void IList.Clear() { Clear(); } 112bool IList.IsFixedSize { get { return ((IList)InnerList).IsFixedSize; } } 113bool IList.Contains(object? value) { return InnerList.Contains(value); } 114bool IList.IsReadOnly { get { return ((IList)InnerList).IsReadOnly; } } 115void IList.RemoveAt(int index) { RemoveAt(index); } 116void IList.Remove(object? value) { Remove((ToolStripPanelRow)value!); } 117int IList.Add(object? value) { return Add((ToolStripPanelRow)value!); } 118int IList.IndexOf(object? value) { return IndexOf((ToolStripPanelRow)value!); } 119void IList.Insert(int index, object? value) { Insert(index, (ToolStripPanelRow)value!); } 121object? IList.this[int index]
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (4)
104((IList)_parent.Cells).Remove(this); 241((IList)_parent.Cells).Remove(this); 400_restoreOnVisibleChanged = (ToolStripPanelRow is not null && ((IList)ToolStripPanelRow.Cells).Contains(this)); 407if (ToolStripPanelRow is not null && ((IList)ToolStripPanelRow.Cells).Contains(this))
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
377((IList)Row.Cells).RemoveAt(index);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (12)
81int index = ((IList)InnerList).Add(control.ToolStripPanelCell); 172void IList.Clear() { Clear(); } 174bool IList.IsFixedSize { get { return ((IList)InnerList).IsFixedSize; } } 176bool IList.Contains(object? value) { return InnerList.Contains(value); } 178bool IList.IsReadOnly { get { return ((IList)InnerList).IsReadOnly; } } 180void IList.RemoveAt(int index) { RemoveAt(index); } 182void IList.Remove(object? value) { Remove((Control)value!); } 184int IList.Add(object? value) { return Add((Control)value!); } 186int IList.IndexOf(object? value) { return IndexOf((Control)value!); } 188void IList.Insert(int index, object? value) { Insert(index, (Control)value!); }
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (1)
587((IList)Row.Cells).RemoveAt(index);
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (7)
70object? IList.this[int index] 120bool IList.IsFixedSize => false; 355int IList.Add(object? node) 376bool IList.Contains(object? node) => node is TreeNode treeNode && Contains(treeNode); 391int IList.IndexOf(object? node) => 474void IList.Insert(int index, object? node) 595void IList.Remove(object? node)
System\Windows\Forms\Controls\Unsupported\ContextMenu\Menu.MenuItemCollection.cs (7)
30object IList.this[int index] 44bool IList.IsFixedSize => throw null; 60int IList.Add(object value) => throw null; 64bool IList.Contains(object value) => throw null; 78int IList.IndexOf(object value) => throw null; 80void IList.Insert(int index, object value) { } 90void IList.Remove(object value) { }
System\Windows\Forms\Controls\Unsupported\DataGrid\GridColumnStylesCollection.cs (10)
28int IList.Add(object value) => throw null; 30void IList.Clear() { } 32bool IList.Contains(object value) => throw null; 34int IList.IndexOf(object value) => throw null; 36void IList.Insert(int index, object value) { } 38void IList.Remove(object value) { } 40void IList.RemoveAt(int index) { } 42bool IList.IsFixedSize => throw null; 44bool IList.IsReadOnly => throw null; 46object IList.this[int index]
System\Windows\Forms\Controls\Unsupported\DataGrid\GridTableStylesCollection.cs (10)
26int IList.Add(object value) => throw null; 28void IList.Clear() { } 30bool IList.Contains(object value) => throw null; 32int IList.IndexOf(object value) => throw null; 34void IList.Insert(int index, object value) { } 36void IList.Remove(object value) { } 38void IList.RemoveAt(int index) { } 40bool IList.IsFixedSize => throw null; 42bool IList.IsReadOnly => throw null; 44object IList.this[int index]
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBar.StatusBarPanelCollection.cs (7)
34object IList.this[int index] 50bool IList.IsFixedSize => throw null; 58int IList.Add(object value) => throw null; 64bool IList.Contains(object panel) => throw null; 70int IList.IndexOf(object panel) => throw null; 76void IList.Insert(int index, object value) { } 82void IList.Remove(object value) { }
System\Windows\Forms\Controls\Unsupported\ToolBar\ToolBar.ToolBarButtonCollection.cs (7)
33object IList.this[int index] 48bool IList.IsFixedSize => throw null; 56int IList.Add(object button) => throw null; 64bool IList.Contains(object button) => throw null; 72int IList.IndexOf(object button) => throw null; 78void IList.Insert(int index, object button) { } 86void IList.Remove(object button) { }
System\Windows\Forms\DataBinding\BindingContext.cs (2)
246if (dataSource is IList or IListSource) 269bindingManagerBase = typeof(IList).IsAssignableFrom(prop.PropertyType)
System\Windows\Forms\DataBinding\BindingManagerBase.cs (7)
78IList? list = null; 107if (!typeof(IList).IsAssignableFrom(listType)) 121if (dataSources[offset - 1] is IList list && list.Count > 0) 129if (typeof(IList).IsAssignableFrom(listType)) 147IList? list; 150list = DataSource as IList; 154list = dataSources[offset - 1] as IList;
System\Windows\Forms\DataBinding\BindingSource.cs (20)
47private IList _innerList; // ...DON'T access this directly. ALWAYS use the List property. 348public IList List 517private static IList CreateBindingList(Type type) 522return (IList)Activator.CreateInstance(bindingType)!; 662private static IList GetListFromType(Type type) 664if (typeof(ITypedList).IsAssignableFrom(type) && typeof(IList).IsAssignableFrom(type)) 666return (IList)CreateInstanceOfType(type)!; 683private static IList? GetListFromEnumerable(IEnumerable enumerable) 685IList? list = null; 759Debug.Assert(index == ((IList)this).IndexOf(sender), "BindingSource.ListItem_PropertyChanged - unexpected current item."); 763index = ((IList)this).IndexOf(sender); 899IList? currentList = null; 909currentList = currentValue as IList; 1088IList? bindingList = null; 1089if (list is IList iList) 1142private void SetList(IList list, bool metaDataChanged, bool applySortAndFilter) 1157if (ListBindingHelper.GetList(list) is not IList listInternal) 1218private static IList WrapObjectInBindingList(object obj) 1220IList list = CreateBindingList(obj.GetType()); 1506int index = ((IList)this).IndexOf(value);
System\Windows\Forms\DataBinding\CurrencyManager.cs (5)
16private IList _list; 165if (tempList is IList list) 203public IList List 997internal void UnwireEvents(IList list) 1075internal void WireEvents(IList list)
System\Windows\Forms\DataBinding\ListBindingHelper.cs (4)
323else if (typeof(IList).IsAssignableFrom(type)) 494if (typeof(IList).IsAssignableFrom(type) || 641if (!(enumerable is IList) && pdc.Count == 0) 656if (enumerable is IList list)
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (1)
36if (_fieldInfo is null || !typeof(IList).IsAssignableFrom(_fieldInfo.PropertyType))
System\Windows\Forms\Layout\ArrangedElementCollection.cs (17)
120void IList.Clear() => ((IList)InnerList).Clear(); 122bool IList.IsFixedSize => ((IList)InnerList).IsFixedSize; 124bool IList.Contains(object? value) => ((IList)InnerList).Contains(value); 126public virtual bool IsReadOnly => ((IList)InnerList).IsReadOnly; 128void IList.RemoveAt(int index) => ((IList)InnerList).RemoveAt(index); 130void IList.Remove(object? value) => ((IList)InnerList).Remove(value); 132int IList.Add(object? value) => ((IList)InnerList).Add(value); 134int IList.IndexOf(object? value) => ((IList)InnerList).IndexOf(value); 136void IList.Insert(int index, object? value) => throw new NotSupportedException(); 138object? IList.this[int index]
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutColumnStyleCollection.cs (7)
19public int Add(ColumnStyle columnStyle) => ((IList)this).Add(columnStyle); 21public void Insert(int index, ColumnStyle columnStyle) => ((IList)this).Insert(index, columnStyle); 25get => (ColumnStyle)((IList)this)[index]!; 26set => ((IList)this)[index] = value; 29public void Remove(ColumnStyle columnStyle) => ((IList)this).Remove(columnStyle); 31public bool Contains(ColumnStyle columnStyle) => ((IList)this).Contains(columnStyle); 33public int IndexOf(ColumnStyle columnStyle) => ((IList)this).IndexOf(columnStyle);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutRowStyleCollection.cs (7)
19public int Add(RowStyle rowStyle) => ((IList)this).Add(rowStyle); 21public void Insert(int index, RowStyle rowStyle) => ((IList)this).Insert(index, rowStyle); 25get => (RowStyle)((IList)this)[index]!; 26set => ((IList)this)[index] = value; 29public void Remove(RowStyle rowStyle) => ((IList)this).Remove(rowStyle); 31public bool Contains(RowStyle rowStyle) => ((IList)this).Contains(rowStyle); 33public int IndexOf(RowStyle rowStyle) => ((IList)this).IndexOf(rowStyle);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (15)
26int IList.Add(object? style) => Add((TableLayoutStyle)style!); 38int index = ((IList)_innerList).Add(tableLayoutStyle); 43void IList.Insert(int index, object? style) 57object? IList.this[int index] 77get => (TableLayoutStyle)((IList)this)[index]!; 78set => ((IList)this)[index] = value; 81void IList.Remove(object? style) 121bool IList.Contains(object? style) => ((IList)_innerList).Contains(style); 123int IList.IndexOf(object? style) => ((IList)_innerList).IndexOf(style); 125bool IList.IsFixedSize => ((IList)_innerList).IsFixedSize; 127bool IList.IsReadOnly => ((IList)_innerList).IsReadOnly;
System.Windows.Forms.Design (94)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
127private void AddItems(IList instances) 298IList multipleInstance = _editor.GetObjectsFromInstance(instance);
System\ComponentModel\Design\CollectionEditor.CollectionForm.cs (2)
52bool editable = typeof(IList).IsAssignableFrom(_editor.CollectionType); 56if (EditValue is IList list)
System\ComponentModel\Design\CollectionEditor.cs (2)
133protected virtual IList GetObjectsFromInstance(object? instance) => new ArrayList { instance }; 387if (editValue is IList list)
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (1)
177protected override void FillAttributes(IList attributeList)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (2)
460internal void SetupVariableReferences(IDesignerSerializationManager manager, IContainer container, Dictionary<object, ObjectData> objectData, IList shimObjectNames) 490internal void Serialize(IDesignerSerializationManager manager, Dictionary<object, ObjectData> objectData, Dictionary<string, CodeDomComponentSerializationState> objectState, IList shimObjectNames)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
895((IList)members).RemoveAt(i);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (1)
87public IList Errors
System\Windows\Forms\Design\AdapterHelpers.cs (7)
14/// Provides an extension method to safely extract the underlying non-generic <see cref="IList"/> 20/// The underlying non-generic <see cref="IList"/> if available; otherwise, the original <see cref="IList&lt;T&gt;"/>. 22internal static IList Unwrap<T>(this IList<T> list) => list is IWrapper<IList> wrapper ? wrapper.Unwrap() : (IList)list; 29/// <param name="list">The non-generic <see cref="IList"/> to adapt.</param> 34internal static IList<T> Adapt<T>(this IList list) => list is IList<T> iList ? iList : new ListAdapter<T>(list);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
196IList snapLines = controlDesigner.SnapLines; 661internal Point OffsetToNearestSnapLocation(Control targetControl, IList targetSnaplines, Point directionOffset)
System\Windows\Forms\Design\ButtonBaseDesigner.cs (1)
41public override IList SnapLines
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
26public override IList SnapLines
System\Windows\Forms\Design\ControlDesigner.cs (1)
339public virtual IList SnapLines => EdgeAndMarginSnapLines().Unwrap();
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (15)
28bool IList.IsFixedSize => false; 32int IList.Add(object control) => ((IList)_realCollection).Add(control); 38bool IList.Contains(object control) => ((IList)_realCollection).Contains(control); 48int IList.IndexOf(object control) => ((IList)_realCollection).IndexOf(control); 50void IList.Insert(int index, object value) => ((IList)_realCollection).Insert(index, value); 52void IList.Remove(object control) => ((IList)_realCollection).Remove(control); 54void IList.RemoveAt(int index) => ((IList)_realCollection).RemoveAt(index); 56object IList.this[int index] 58get => ((IList)_realCollection)[index];
System\Windows\Forms\Design\DataGridViewDesigner.cs (3)
429else if (typeof(IList).IsAssignableFrom(dataFieldProperty.PropertyType)) 490else if (typeof(IList).IsAssignableFrom(dataFieldProperty.PropertyType)) 631if (typeof(IList).IsAssignableFrom(propType))
System\Windows\Forms\Design\DateTimePickerDesigner.cs (1)
20public override IList SnapLines
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
1478if (dataSource is not (IListSource or IList or Array)) 1530if (typeof(IList).IsAssignableFrom(property.PropertyType)) 2146else if (dataSource is IList)
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\Design\FlowPanelDesigner.cs (1)
13public override IList SnapLines
System\Windows\Forms\Design\FormDocumentDesigner.cs (2)
185public override IList SnapLines 226return (IList)snapLines;
System\Windows\Forms\Design\ImageCollectionEditor.cs (1)
86protected override IList GetObjectsFromInstance(object array) => array as ArrayList;
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (7)
45bool IList.IsFixedSize => false; 69object? IList.this[int index] 111int IList.Add(object? value) => value is ImageListImage image ? Add(image) : throw new ArgumentException(null, nameof(value)); 137bool IList.Contains(object? value) => value is ImageListImage image && Contains(image); 143int IList.IndexOf(object? value) => value is ImageListImage image ? IndexOf(image) : -1; 145void IList.Insert(int index, object? value) => throw new NotSupportedException(); 169void IList.Remove(object? value)
System\Windows\Forms\Design\LabelDesigner.cs (1)
26public override IList SnapLines
System\Windows\Forms\Design\ListAdapter.cs (4)
15internal sealed class ListAdapter<T> : IList<T>, IWrapper<IList> 17private readonly IList _list; 18internal ListAdapter(IList list) => _list = list.OrThrowIfNull(); 62public IList Unwrap() => _list;
System\Windows\Forms\Design\ListViewSubItemCollectionEditor.cs (2)
104IList list = editValue as IList;
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
1040if (comps is not IList) 1045IList compList = (IList)comps;
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
331public override IList SnapLines
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
74public override IList SnapLines =>
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
243public override IList SnapLines
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (15)
2159bool IList.IsFixedSize => false; 2163int IList.Add(object control) => ((IList)_realCollection).Add(control); 2169bool IList.Contains(object control) => ((IList)_realCollection).Contains(control); 2179int IList.IndexOf(object control) => ((IList)_realCollection).IndexOf(control); 2181void IList.Insert(int index, object value) => ((IList)_realCollection).Insert(index, value); 2183void IList.Remove(object control) => ((IList)_realCollection).Remove(control); 2185void IList.RemoveAt(int index) => ((IList)_realCollection).RemoveAt(index); 2187object IList.this[int index] 2191return ((IList)_realCollection)[index];
System\Windows\Forms\Design\TabOrder.cs (1)
406private void GetTabbing(Control control, IList tabs)
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
25public override IList SnapLines
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (4)
1022private readonly IList _listBoxList; 1024private readonly IList _targetCollectionList; 1031internal EditorItemCollection(ToolStripItemEditorForm owner, IList displayList, IList componentList)
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (1)
118public override IList SnapLines
System\Windows\Forms\Design\ToolStripContentPanelDesigner.cs (1)
40public override IList SnapLines
System\Windows\Forms\Design\UpDownBaseDesigner.cs (1)
38public override IList SnapLines
System.Windows.Forms.Design.Tests (26)
EnsureEditorsTests.cs (1)
44[InlineData(typeof(IList), typeof(CollectionEditor))]
System\ComponentModel\Design\ArrayEditorTests.cs (1)
34[InlineData(typeof(IList))]
System\ComponentModel\Design\CollectionEditorTests.cs (3)
23[InlineData(typeof(IList), typeof(object))] 834IList objects = editor.GetObjectsFromInstance(instance); 999public new IList GetObjectsFromInstance(object instance) => base.GetObjectsFromInstance(instance);
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (6)
146IList errors = manager.Errors; 149Assert.IsAssignableFrom<IList>(errors); 540IList errors1 = manager.Errors; 550IList errors2 = manager.Errors; 1721IList errors1 = manager.Errors; 1731IList errors2 = manager.Errors;
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (12)
48((IList)_collection).IsFixedSize.Should().BeFalse(); 61((IList)_collection).Add(control); 79((IList)_collection).Add(control); 80((IList)_collection).Contains(control).Should().BeTrue(); 106((IList)_collection).Add(control); 107((IList)_collection).IndexOf(control).Should().Be(_control.Controls.IndexOf(control)); 115((IList)_collection).Add(anotherControl); 116((IList)_collection).Add(control); 125((IList)_collection).Add(control); 126((IList)_collection).Remove(control); 134((IList)_collection).Add(control); 135((IList)_collection).RemoveAt(0);
System\Windows\Forms\Design\ListAdapterTests.cs (1)
16IList unwrappedList = adapter.Unwrap();
System\Windows\Forms\Design\SplitterPanelDesignerTests.cs (1)
53IList snapLines = splitterPanelDesigner.SnapLines;
System\Windows\Forms\Design\TableLayoutPanelDesignerTests.cs (1)
182_collection.Should().BeAssignableTo<IList>();
System.Windows.Forms.Primitives (16)
System\Windows\Forms\NonNullCollection.cs (16)
85int IList.Add(object? value) 87int index = ((IList)_list).Add(value ?? ThrowArgumentNull(nameof(value))); 92bool IList.Contains(object? value) => ((IList)_list).Contains(value); 94int IList.IndexOf(object? value) => ((IList)_list).IndexOf(value); 96void IList.Insert(int index, object? value) 98((IList)_list).Insert(index, value ?? ThrowArgumentNull(nameof(value))); 102void IList.Remove(object? value) => ((IList)_list).Remove(value); 104object? IList.this[int index] 106get => ((IList)_list)[index]; 109((IList)_list)[index] = value ?? ThrowArgumentNull(nameof(value)); 114void ICollection.CopyTo(Array array, int index) => ((IList)_list).CopyTo(array, index); 118bool IList.IsFixedSize => ((IList)_list).IsFixedSize;
System.Windows.Forms.Primitives.Tests (6)
System\Windows\Forms\NonNullCollectionTests.cs (6)
43Assert.Throws<ArgumentNullException>("value", () => ((IList)collection).Add(null)); 51((IList)collection).Add(item); 77Assert.Throws<ArgumentNullException>("value", () => ((IList)collection)[0] = null); 85((IList)collection)[0] = item; 111Assert.Throws<ArgumentNullException>("value", () => ((IList)collection).Insert(0, null)); 119((IList)collection).Insert(0, item);
System.Windows.Forms.Tests (458)
System\Windows\Forms\AutoCompleteStringCollectionTests.cs (12)
77IList collection = new AutoCompleteStringCollection(); 88IList collection = new AutoCompleteStringCollection(); 117IList collection = new AutoCompleteStringCollection(); 128IList collection = new AutoCompleteStringCollection(); 173IList collection = new AutoCompleteStringCollection(); 184IList collection = new AutoCompleteStringCollection(); 194IList collection = new AutoCompleteStringCollection(); 201IList collection = new AutoCompleteStringCollection(); 227IList collection = new AutoCompleteStringCollection(); 243IList collection = new AutoCompleteStringCollection(); 319IList collection = new AutoCompleteStringCollection(); 341IList collection = new AutoCompleteStringCollection();
System\Windows\Forms\BindingContextTests.cs (8)
470.Returns((IList)null); 637Mock<IList> mockIList = mockIListSource.As<IList>(); 680.Returns((IList)null); 681Mock<IList> mockIList = mockIListSource.As<IList>(); 699.Returns((IList)null); 1032public IList Property { get; set; }
System\Windows\Forms\BindingSourceTests.cs (16)
139public void Ctor_Object_String_Empty(object dataSource, string dataMember, bool expectedAllowRemove, bool expectedIsFixedSize, IList expected) 225public void Ctor_Object_String(object dataSource, string dataMember, bool expectedAllowEdit, bool expectedAllowNew, bool expectedAllowRemove, bool expectedIsFixedSize, bool expectedReadOnly, bool expectedIsSynchronized, IList expected) 295public void Ctor_Object_String_BindingList(object dataSource, string dataMember, bool expectedAllowEdit, bool expectedAllowNew, bool expectedAllowRemove, bool expectedIsFixedSize, bool expectedReadOnly, bool expectedIsSynchronized, IList expected, Type expectedType) 774public object SyncRoot => ((IList)_innerList).SyncRoot; 776public virtual bool IsSynchronized => ((IList)_innerList).IsSynchronized; 778public virtual bool IsReadOnly => ((IList)_innerList).IsReadOnly; 780public virtual bool IsFixedSize => ((IList)_innerList).IsFixedSize; 784public int Add(object item) => ((IList)_innerList).Add(item); 790public bool Contains(object item) => ((IList)_innerList).Contains(item); 794public void CopyTo(Array array, int arrayIndex) => ((IList)_innerList).CopyTo(array, arrayIndex); 798public void Remove(object item) => ((IList)_innerList).Remove(item); 806object IList.this[int index] 808get => ((IList)_innerList)[index]; 809set => ((IList)_innerList)[index] = value; 814public int IndexOf(object item) => ((IList)_innerList).IndexOf(item); 818public void Insert(int index, object item) => ((IList)_innerList).Insert(index, item);
System\Windows\Forms\CheckedListBox.CheckedIndexCollectionTests.cs (10)
40((IList)_collection).IsFixedSize.Should().BeTrue(); 48((Action)(() => ((IList)_collection)[0] = 1)).Should().Throw<NotSupportedException>(); 49((IList)_collection).Invoking(c => c.Add(1)).Should().Throw<NotSupportedException>(); 50((IList)_collection).Invoking(c => c.Clear()).Should().Throw<NotSupportedException>(); 51((IList)_collection).Invoking(c => c.Insert(0, 1)).Should().Throw<NotSupportedException>(); 52((IList)_collection).Invoking(c => c.Remove(1)).Should().Throw<NotSupportedException>(); 53((IList)_collection).Invoking(c => c.RemoveAt(0)).Should().Throw<NotSupportedException>(); 76((IList)_collection).Contains(index).Should().Be(expected); 99((IList)_collection).IndexOf(index).Should().Be(expected); 156int result = (int)((IList)_collection)[index];
System\Windows\Forms\CheckedListBox.CheckedItemCollectionTests.cs (7)
34((IList)_collection).IsFixedSize.Should().BeTrue(); 42((Action)(() => ((IList)_collection)[0] = 1)).Should().Throw<NotSupportedException>(); 43((IList)_collection).Invoking(c => c.Add(1)).Should().Throw<NotSupportedException>(); 44((IList)_collection).Invoking(c => c.Clear()).Should().Throw<NotSupportedException>(); 45((IList)_collection).Invoking(c => c.Insert(0, 1)).Should().Throw<NotSupportedException>(); 46((IList)_collection).Invoking(c => c.Remove(1)).Should().Throw<NotSupportedException>(); 47((IList)_collection).Invoking(c => c.RemoveAt(0)).Should().Throw<NotSupportedException>();
System\Windows\Forms\ColumnHeaderCollectionTests.cs (16)
31IList collection = new ListView.ColumnHeaderCollection(listView); 68IList collection = new ListView.ColumnHeaderCollection(listView); 82IList collection = new ListView.ColumnHeaderCollection(listView) 96IList collection = new ListView.ColumnHeaderCollection(listView) 351IList collection = new ListView.ColumnHeaderCollection(listView); 597IList collection = new ListView.ColumnHeaderCollection(listView); 611IList collection = new ListView.ColumnHeaderCollection(listView); 682IList collection = new ListView.ColumnHeaderCollection(listView); 696IList collection = new ListView.ColumnHeaderCollection(listView); 840IList collection = new ListView.ColumnHeaderCollection(listView); 855IList collection = new ListView.ColumnHeaderCollection(listView); 866IList collection = new ListView.ColumnHeaderCollection(listView); 900IList collection = new ListView.ColumnHeaderCollection(listView); 924IList collection = new ListView.ColumnHeaderCollection(listView); 1100IList collection = new ListView.ColumnHeaderCollection(listView); 1113IList collection = new ListView.ColumnHeaderCollection(listView);
System\Windows\Forms\ControlTests.ControlCollection.cs (4)
3436IList collection = owner.Controls; 3508IList collection = new Control.ControlCollection(owner); 3519IList collection = new Control.ControlCollection(owner) 3579IList collection = new Control.ControlCollection(owner);
System\Windows\Forms\DataGridViewSelectedCellCollectionTests.cs (19)
187IList iList = collection; 209IList iList = collection; 231IList iList = collection; 244IList iList = collection; 264IList iList = collection; 281IList iList = collection; 298IList iList = collection; 307IList iList = collection; 316IList iList = collection; 336IList iList = collection; 355IList iList = collection; 373IList iList = collection; 386IList iList = collection; 414IList iList = collection; 447IList iList = collection; 465IList iList = collection; 489IList iList = collection; 506IList iList = collection; 518IList iList = collection;
System\Windows\Forms\DataGridViewSelectedColumnCollectionTests.cs (19)
207IList iList = collection; 233IList iList = collection; 259IList iList = collection; 272IList iList = collection; 296IList iList = collection; 313IList iList = collection; 330IList iList = collection; 339IList iList = collection; 348IList iList = collection; 372IList iList = collection; 391IList iList = collection; 413IList iList = collection; 426IList iList = collection; 458IList iList = collection; 491IList iList = collection; 513IList iList = collection; 537IList iList = collection; 554IList iList = collection; 566IList iList = collection;
System\Windows\Forms\DataGridViewSelectedRowCollectionTests.cs (19)
182IList iList = collection; 203IList iList = collection; 224IList iList = collection; 237IList iList = collection; 256IList iList = collection; 273IList iList = collection; 290IList iList = collection; 299IList iList = collection; 308IList iList = collection; 327IList iList = collection; 346IList iList = collection; 363IList iList = collection; 376IList iList = collection; 403IList iList = collection; 436IList iList = collection; 453IList iList = collection; 477IList iList = collection; 494IList iList = collection; 506IList iList = collection;
System\Windows\Forms\ImageList.ImageCollectionTests.cs (14)
1610IList collection = list.Images; 1640IList collection = list.Images; 1662IList collection = list.Images; 1679IList collection = list.Images; 1693IList collection = list.Images; 1712IList collection = list.Images; 1723IList collection = list.Images; 1740IList collection = list.Images; 1756IList collection = list.Images; 1771IList collection = list.Images; 1787IList collection = list.Images; 1808IList collection = list.Images; 1823IList collection = list.Images; 1839IList collection = list.Images;
System\Windows\Forms\LinkCollectionTests.cs (2)
53Action act = () => ((IList)_linkCollection)[0] = "InvalidLink"; 124((IList)_linkCollection).Remove(value);
System\Windows\Forms\ListBindingHelperTests.cs (12)
131yield return new object[] { typeof(IList), typeof(IList) }; 489yield return new object[] { typeof(IList), null, "IList" }; 528public IList GetList() => throw new NotImplementedException(); 540public IList GetList() => throw new NotImplementedException(); 610public IList GetList() => new int[] { 1 }; 621public IList GetList() => new int[] { 1 }; 633public IList GetList() => new int[] { 1 }; 640public IList GetList() => new int[] { 1 }; 647public IList GetList() => null; 653public IEnumerableWrapper(IList list) 658private IList List { get; }
System\Windows\Forms\ListBox.IntegerCollectionTests.cs (41)
41IList collection = new ListBox.IntegerCollection(owner); 1516IList collection = new ListBox.IntegerCollection(owner) 1536IList collection = new ListBox.IntegerCollection(owner); 1547IList collection = new ListBox.IntegerCollection(owner) 1558IList collection = new ListBox.IntegerCollection(owner) 1589IList collection = owner.CustomTabOffsets; 1618IList collection = new ListBox.IntegerCollection(owner) 1665IList collection = owner.CustomTabOffsets; 1713IList collection = new ListBox.IntegerCollection(owner); 1724IList collection = new ListBox.IntegerCollection(owner) 1741IList collection = new ListBox.IntegerCollection(owner); 1757IList collection = new ListBox.IntegerCollection(owner); 1800IList collection = owner.CustomTabOffsets; 1843IList collection = new ListBox.IntegerCollection(owner); 1905IList collection = owner.CustomTabOffsets; 1961IList collection = new ListBox.IntegerCollection(owner); 1969IList collection = new ListBox.IntegerCollection(owner); 1981IList collection = new ListBox.IntegerCollection(owner) 2007IList collection = new ListBox.IntegerCollection(owner); 2028IList collection = owner.CustomTabOffsets; 2049IList collection = new ListBox.IntegerCollection(owner) 2074IList collection = owner.CustomTabOffsets; 2097IList collection = new ListBox.IntegerCollection(owner); 2132IList collection = owner.CustomTabOffsets; 2167IList collection = new ListBox.IntegerCollection(owner); 2203IList collection = owner.CustomTabOffsets; 2239IList collection = new ListBox.IntegerCollection(owner); 2262IList collection = new ListBox.IntegerCollection(owner) 2291IList collection = new ListBox.IntegerCollection(owner); 2303IList collection = new ListBox.IntegerCollection(owner) 2337IList collection = new ListBox.IntegerCollection(owner) 2386IList collection = owner.CustomTabOffsets; 2433IList collection = new ListBox.IntegerCollection(owner) 2501IList collection = owner.CustomTabOffsets; 2561IList collection = new ListBox.IntegerCollection(owner); 2577IList collection = new ListBox.IntegerCollection(owner) 2619IList collection = owner.CustomTabOffsets; 2659IList collection = new ListBox.IntegerCollection(owner) 2717IList collection = owner.CustomTabOffsets; 2768IList collection = new ListBox.IntegerCollection(owner); 2779IList collection = new ListBox.IntegerCollection(owner)
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (125)
98IList collection = new ListBox.ObjectCollection(owner); 6885IList collection = new ListBox.ObjectCollection(owner) 6906IList collection = new ListBox.ObjectCollection(owner) 6927IList collection = new ListBox.ObjectCollection(owner); 6938IList collection = new ListBox.ObjectCollection(owner) 6949IList collection = new ListBox.ObjectCollection(owner) 6994IList collection = new ListBox.ObjectCollection(owner) 7036IList collection = owner.Items; 7079IList collection = owner.Items; 7300IList collection = owner.Items; 7391IList collection = owner.Items; 7479IList collection = owner.Items; 7528IList collection = owner.Items; 7579IList collection = owner.Items; 7649IList collection = owner.Items; 7713IList collection = owner.Items; 7786IList collection = owner.Items; 7861IList collection = owner.Items; 7961IList collection = owner.Items; 8059IList collection = new ListBox.ObjectCollection(owner); 8071IList collection = new ListBox.ObjectCollection(owner) 8085IList collection = new ListBox.ObjectCollection(owner); 8096IList collection = new ListBox.ObjectCollection(owner) 8107IList collection = new ListBox.ObjectCollection(owner); 8148IList collection = owner.Items; 8192IList collection = new ListBox.ObjectCollection(owner); 8236IList collection = owner.Items; 8277IList collection = new ListBox.ObjectCollection(owner); 8356IList collection = owner.Items; 8438IList collection = new ListBox.ObjectCollection(owner); 8520IList collection = owner.Items; 8599IList collection = owner.Items; 8631IList collection = owner.Items; 8665IList collection = owner.Items; 8710IList collection = owner.Items; 8745IList collection = owner.Items; 8790IList collection = owner.Items; 8837IList collection = owner.Items; 8898IList collection = owner.Items; 8952IList collection = new ListBox.ObjectCollection(owner) 8968IList collection = owner.Items; 8990IList collection = new ListBox.ObjectCollection(owner); 9001IList collection = new ListBox.ObjectCollection(owner); 9017IList collection = new ListBox.ObjectCollection(owner); 9026IList collection = new ListBox.ObjectCollection(owner); 9047IList collection = owner.Items; 9068IList collection = new ListBox.ObjectCollection(owner) 9093IList collection = owner.Items; 9116IList collection = new ListBox.ObjectCollection(owner); 9153IList collection = owner.Items; 9190IList collection = new ListBox.ObjectCollection(owner); 9228IList collection = owner.Items; 9266IList collection = new ListBox.ObjectCollection(owner); 9277IList collection = new ListBox.ObjectCollection(owner) 9301IList collection = new ListBox.ObjectCollection(owner); 9309IList collection = new ListBox.ObjectCollection(owner); 9319IList collection = new ListBox.ObjectCollection(owner) 9333IList collection = new ListBox.ObjectCollection(owner); 9341IList collection = new ListBox.ObjectCollection(owner) 9352IList collection = new ListBox.ObjectCollection(owner); 9375IList collection = new ListBox.ObjectCollection(owner) 9404IList collection = new ListBox.ObjectCollection(owner); 9415IList collection = new ListBox.ObjectCollection(owner) 9439IList collection = new ListBox.ObjectCollection(owner); 9447IList collection = new ListBox.ObjectCollection(owner); 9488IList collection = owner.Items; 9532IList collection = new ListBox.ObjectCollection(owner); 9576IList collection = owner.Items; 9617IList collection = new ListBox.ObjectCollection(owner); 9696IList collection = owner.Items; 9778IList collection = new ListBox.ObjectCollection(owner); 9860IList collection = owner.Items; 9939IList collection = owner.Items; 9971IList collection = owner.Items; 9999IList collection = owner.Items; 10044IList collection = owner.Items; 10077IList collection = owner.Items; 10122IList collection = owner.Items; 10169IList collection = owner.Items; 10230IList collection = owner.Items; 10284IList collection = new ListBox.ObjectCollection(owner); 10298IList collection = owner.Items; 10323IList collection = new ListBox.ObjectCollection(owner); 10334IList collection = new ListBox.ObjectCollection(owner) 10345IList collection = new ListBox.ObjectCollection(owner); 10356IList collection = new ListBox.ObjectCollection(owner); 10372IList collection = new ListBox.ObjectCollection(owner); 10381IList collection = new ListBox.ObjectCollection(owner) 10427IList collection = owner.Items; 10471IList collection = new ListBox.ObjectCollection(owner) 10520IList collection = owner.Items; 10561IList collection = new ListBox.ObjectCollection(owner); 10633IList collection = owner.Items; 10713IList collection = new ListBox.ObjectCollection(owner); 10788IList collection = owner.Items; 10865IList collection = owner.Items; 10906IList collection = owner.Items; 10949IList collection = owner.Items; 11002IList collection = owner.Items; 11048IList collection = owner.Items; 11110IList collection = owner.Items; 11174IList collection = owner.Items; 11243IList collection = owner.Items; 11308IList collection = new ListBox.ObjectCollection(owner); 11319IList collection = new ListBox.ObjectCollection(owner); 11328IList collection = new ListBox.ObjectCollection(owner) 11366IList collection = owner.Items; 11403IList collection = new ListBox.ObjectCollection(owner) 11444IList collection = owner.Items; 11478IList collection = new ListBox.ObjectCollection(owner); 11535IList collection = owner.Items; 11599IList collection = new ListBox.ObjectCollection(owner); 11659IList collection = owner.Items; 11720IList collection = owner.Items; 11761IList collection = owner.Items; 11804IList collection = owner.Items; 11857IList collection = owner.Items; 11903IList collection = owner.Items; 11965IList collection = owner.Items; 12029IList collection = owner.Items; 12098IList collection = owner.Items; 12163IList collection = new ListBox.ObjectCollection(owner); 12174IList collection = new ListBox.ObjectCollection(owner) 12188IList collection = new ListBox.ObjectCollection(owner); 12199IList collection = new ListBox.ObjectCollection(owner);
System\Windows\Forms\ListBox.SelectedIndexCollectionTests.cs (7)
40IList collection = new ListBox.SelectedIndexCollection(owner); 61IList collection = new ListBox.SelectedIndexCollection(owner); 72IList collection = new ListBox.SelectedIndexCollection(owner); 80IList collection = new ListBox.SelectedIndexCollection(owner); 97IList collection = new ListBox.SelectedIndexCollection(owner); 108IList collection = new ListBox.SelectedIndexCollection(owner); 119IList collection = new ListBox.SelectedIndexCollection(owner);
System\Windows\Forms\ListBox.SelectedObjectCollectionTests.cs (10)
40Assert.True(((IList)_collection).IsFixedSize); 41Assert.True(((IList)_collection).IsReadOnly); 42Assert.False(((IList)_collection).IsSynchronized); 43Assert.Same(_collection, ((IList)_collection).SyncRoot); 57=> Assert.Throws<NotSupportedException>(() => ((IList)_collection)[index] = value); 64=> Assert.Throws<NotSupportedException>(() => ((IList)_collection).Add(value)); 68=> Assert.Throws<NotSupportedException>(() => ((IList)_collection).Clear()); 81=> Assert.Throws<NotSupportedException>(() => ((IList)_collection).Insert(index, value)); 88=> Assert.Throws<NotSupportedException>(() => ((IList)_collection).Remove(value)); 95=> Assert.Throws<NotSupportedException>(() => ((IList)_collection).RemoveAt(index));
System\Windows\Forms\ListBoxTests.cs (1)
6516public new void SetItemsCore(IList value) => base.SetItemsCore(value);
System\Windows\Forms\ListControlTests.cs (3)
2867public IList ListValue { get; set; } 3021public Action<IList> SetItemsCoreHandler { get; set; } 3023protected override void SetItemsCore(IList items)
System\Windows\Forms\ListView.CheckedIndexCollectionTests.cs (8)
159IList ilist = _collection; 183IList ilist = _collection; 191IList ilist = _collection; 214bool isFixedSize = ((IList)_collection).IsFixedSize; 231IList ilist = _collection; 249IList ilist = _collection; 264IList ilist = _collection; 279IList ilist = _collection;
System\Windows\Forms\ListViewGroupCollectionTests.cs (20)
16IList collection = listView.Groups; 195IList collection = listView.Groups; 208IList collection = listView.Groups; 217IList collection = listView.Groups; 229IList collection = listView.Groups; 246IList collection = listView.Groups; 257IList collection = listView.Groups; 520IList collection = listView.Groups; 533IList collection = listView.Groups; 669IList collection = listView.Groups; 683IList collection = listView.Groups; 717IList collection = listView.Groups; 731IList collection = listView.Groups; 883IList collection = listView.Groups; 898IList collection = listView.Groups; 910IList collection = listView.Groups; 918IList collection = listView.Groups; 942IList collection = listView.Groups; 964IList collection = listView.Groups; 984IList collection = listView.Groups;
System\Windows\Forms\ListViewSubItemCollectionTests.cs (23)
32IList collection = new ListViewItem.ListViewSubItemCollection(item); 106IList collection = new ListViewItem.ListViewSubItemCollection(item); 119IList collection = new ListViewItem.ListViewSubItemCollection(item) 130IList collection = new ListViewItem.ListViewSubItemCollection(item) 146IList collection = new ListViewItem.ListViewSubItemCollection(item) 159IList collection = new ListViewItem.ListViewSubItemCollection(item); 293IList collection = new ListViewItem.ListViewSubItemCollection(item); 306IList collection = new ListViewItem.ListViewSubItemCollection(item); 512IList collection = new ListViewItem.ListViewSubItemCollection(item); 526IList collection = new ListViewItem.ListViewSubItemCollection(item); 597IList collection = new ListViewItem.ListViewSubItemCollection(item); 611IList collection = new ListViewItem.ListViewSubItemCollection(item); 671IList collection = new ListViewItem.ListViewSubItemCollection(item); 686IList collection = new ListViewItem.ListViewSubItemCollection(item); 696IList collection = new ListViewItem.ListViewSubItemCollection(item); 726IList collection = new ListViewItem.ListViewSubItemCollection(item); 746IList collection = new ListViewItem.ListViewSubItemCollection(item); 858IList collection = new ListViewItem.ListViewSubItemCollection(item); 871IList collection = new ListViewItem.ListViewSubItemCollection(item); 979((IList)listViewItem.SubItems).Add(subItem); 999((IList)listViewItem.SubItems).Insert(0, subItem1); 1000((IList)listViewItem.SubItems).Insert(1, subItem2); 1044((IList)listViewItem.SubItems)[0] = subItem;
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (35)
982IList iList = collection; 1095IList iList = collection; 1171IList iList = collection; 1191IList iList = collection; 1206IList iList = collection; 1221IList iList = collection; 1233IList iList = collection; 1245IList iList = collection; 1258IList iList = collection; 1273IList iList = collection; 1289IList iList = collection; 1583IList iList = collection; 1600IList iList = collection; 1888IList iList = collection; 1905IList iList = collection; 3022IList iList = collection; 3144IList iList = collection; 3153IList iList = collection; 3164IList iList = collection; 3179IList iList = collection; 3191IList iList = collection; 3207IList iList = collection; 3223IList iList = collection; 3723IList iList = collection; 3738IList iList = collection; 3751IList iList = collection; 3767IList iList = collection; 3811IList iList = collection; 3842IList iList = collection; 3897IList iList = collection; 3942IList iList = collection; 3956IList iList = collection; 3970IList iList = collection; 4706IList iList = collection; 4806IList iList = collection;
System\Windows\Forms\TableLayoutStyleCollectionTests.cs (19)
17IList collection = settings.RowStyles; 42IList collection = settings.RowStyles; 56Assert.Throws<ArgumentNullException>("style", () => ((IList)collection).Add(null)); 64IList collection = settings.RowStyles; 77Assert.Throws<ArgumentException>("style", () => ((IList)collection).Add(style)); 85IList collection = settings.RowStyles; 100Assert.Throws<ArgumentNullException>("style", () => ((IList)collection).Insert(index, null)); 108IList collection = settings.RowStyles; 120Assert.Throws<ArgumentException>("style", () => ((IList)collection).Insert(0, style)); 142IList collection = settings.RowStyles; 161Assert.Throws<ArgumentNullException>("value", () => ((IList)collection)[index] = null); 169IList collection = settings.RowStyles; 183Assert.Throws<ArgumentException>("style", () => ((IList)collection)[0] = style); 191IList collection = settings.RowStyles; 206IList collection = settings.RowStyles; 218IList collection = settings.RowStyles; 260IList collection = settings.RowStyles; 274IList collection = settings.RowStyles; 288IList collection = settings.RowStyles;
System\Windows\Forms\TreeNodeConverterTests.cs (8)
39var arguments = descriptor!.Arguments as IList; 69var args = (IList)descriptor.Arguments!; 86var args = (IList)descriptor.Arguments!; 113var args = (IList)descriptor.Arguments!;
System.Xaml (6)
System\Windows\Markup\ArrayExtension.cs (1)
73public IList Items => _arrayList;
System\Xaml\Schema\CollectionReflector.cs (3)
58if (typeof(IList).IsAssignableFrom(type)) 151if (addMethod is null && typeof(IList).IsAssignableFrom(type)) 424s_listAddMethod = typeof(IList).GetMethod(KnownStrings.Add);
System\Xaml\Schema\XamlTypeInvoker.cs (1)
60if (instance is IList list)
System\Xaml\XamlObjectReader.cs (1)
1649IList constructorArguments = new List<object>(constructorParameters.Length);
System.Xaml.Tests (3)
System\Xaml\XamlTypeTests.cs (3)
1751yield return new object?[] { new SubXamlType(typeof(IList), new XamlSchemaContext()), XamlCollectionKind.Collection }; 2990yield return new object?[] { new SubXamlType(typeof(IList), new XamlSchemaContext()), new XamlType(typeof(object), new XamlSchemaContext()) }; 3045yield return new object?[] { new SubXamlType(typeof(IList), new XamlSchemaContext()), null };
Test.Utilities (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
Text.Analyzers (65)
src\Dependencies\Collections\Internal\IListCalls.cs (10)
12/// Provides static methods to invoke <see cref="IList"/> members on value types that explicitly implement the 23where TList : IList 27where TList : IList 31where TList : IList 35where TList : IList 39where TList : IList 45where TList : IList 51where TList : IList 57where TList : IList 63where TList : IList
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (13)
92bool IList.IsFixedSize => true; 94bool IList.IsReadOnly => true; 108object? IList.this[int index] 660int IList.Add(object? value) 663void IList.Clear() 666bool IList.Contains(object? value) 668IList backingList = _list; 672int IList.IndexOf(object? value) 674IList backingList = _list; 678void IList.Insert(int index, object? value) 681void IList.Remove(object? value) 684void IList.RemoveAt(int index) 689IList backingList = _list;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (8)
30bool IList.IsFixedSize => IListCalls.IsFixedSize(ref _builder); 32bool IList.IsReadOnly => IListCalls.IsReadOnly(ref _builder); 44object? IList.this[int index] 232int IList.Add(object? value) 235bool IList.Contains(object? value) 238int IList.IndexOf(object? value) 241void IList.Insert(int index, object? value) 244void IList.Remove(object? value)
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (15)
41readonly bool IList.IsFixedSize => false; 43readonly bool IList.IsReadOnly => false; 55object? IList.this[int index] 57readonly get => ((IList)ReadOnlyList)[index]; 58set => ((IList)GetOrCreateMutableList())[index] = value; 341int IList.Add(object? value) 342=> ((IList)GetOrCreateMutableList()).Add(value); 344readonly bool IList.Contains(object? value) 345=> ((IList)ReadOnlyList).Contains(value); 347readonly int IList.IndexOf(object? value) 348=> ((IList)ReadOnlyList).IndexOf(value); 350void IList.Insert(int index, object? value) 351=> ((IList)GetOrCreateMutableList()).Insert(index, value); 353void IList.Remove(object? value) 354=> ((IList)GetOrCreateMutableList()).Remove(value);
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (11)
138object? IList.this[int index] 191int IList.Add(object? value) 201void IList.Clear() 205foreach (IList list in _items) 217bool IList.Contains(object? value) 219foreach (IList list in _items) 239int IList.IndexOf(object? value) 243IList list = _items[i]; 269void IList.Insert(int index, object? value) 279void IList.Remove(object? value) 289void IList.RemoveAt(int index)
src\Dependencies\Collections\Segmented\SegmentedList`1.cs (8)
183bool IList.IsFixedSize => false; 188bool IList.IsReadOnly => false; 227object? IList.this[int index] 277int IList.Add(object? item) 422bool IList.Contains(object? item) 795int IList.IndexOf(object? item) 873void IList.Insert(int index, object? item) 1076void IList.Remove(object? item)
WindowsBase.Tests (10)
System\ComponentModel\SortDescriptionCollectionTests.cs (6)
17Assert.False(((IList)collection).IsFixedSize); 18Assert.False(((IList)collection).IsReadOnly); 19Assert.False(((IList)collection).IsSynchronized); 782Assert.True(((IList)collection).IsFixedSize); 783Assert.True(((IList)collection).IsReadOnly); 784Assert.False(((IList)collection).IsSynchronized);
System\Windows\Markup\Primitives\MarkupObjectTests.cs (2)
334Assert.Equal(typeof(IList), properties[0].PropertyType); 513public IList? Property { get; set; }
System\Windows\Markup\Primitives\MarkupPropertyTests.cs (2)
321Assert.Equal(typeof(IList), properties[0].PropertyType); 599public IList? Property { get; set; }
xunit.assert (1)
Sdk\ArgumentFormatter.cs (1)
645 collection is IList ||