3 interfaces inheriting from ICollection
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\IProducerConsumerCollection.cs (1)
18public interface IProducerConsumerCollection<T> : IEnumerable<T>, ICollection
src\libraries\System.Private.CoreLib\src\System\Collections\IDictionary.cs (1)
10public interface IDictionary : ICollection
src\libraries\System.Private.CoreLib\src\System\Collections\IList.cs (1)
9public interface IList : ICollection
156 implementations of ICollection
dotnet-svcutil-lib (6)
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (1)
29public class TempFileCollection : ICollection, IDisposable
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlAttributeCollection.cs (1)
13public sealed class XmlAttributeCollection : XmlNamedNodeMap, ICollection
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaCollection.cs (1)
25public sealed class XmlSchemaCollection : ICollection
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (2)
183internal class NamesCollection : ICollection 238internal class ValuesCollection : ICollection
Shared\Options\ListValue.cs (1)
19internal class ListValue<TValue> : ICollection, IList<TValue>, IList
Microsoft.Build (3)
Construction\ProjectElementContainer.cs (1)
786internal sealed class ProjectElementSiblingSubTypeCollection<T> : ICollection<T>, ICollection
ReadOnlyCollection.cs (1)
23internal sealed class ReadOnlyCollection<T> : ICollection<T>, ICollection
ReadOnlyEmptyCollection.cs (1)
20internal class ReadOnlyEmptyCollection<T> : ICollection<T>, ICollection
Microsoft.Build.Framework (6)
ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
16public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
16public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
13public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
13public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
SegmentedDictionary`2.cs (2)
1258public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1458public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
Microsoft.Build.Tasks.Core (2)
ReadOnlyCollection.cs (1)
23internal sealed class ReadOnlyCollection<T> : ICollection<T>, ICollection
ReadOnlyEmptyCollection.cs (1)
20internal class ReadOnlyEmptyCollection<T> : ICollection<T>, ICollection
Microsoft.Build.Utilities.Core (1)
ReadOnlyEmptyCollection.cs (1)
20internal class ReadOnlyEmptyCollection<T> : ICollection<T>, ICollection
Microsoft.CodeAnalysis (7)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
16public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
16public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
13public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
13public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\SegmentedDictionary`2.cs (2)
1292public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1500public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
Microsoft.CodeAnalysis.CodeStyle (7)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
16public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
16public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
13public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
13public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\SegmentedDictionary`2.cs (2)
1292public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1500public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
Microsoft.CodeAnalysis.Collections.Package (7)
ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
16public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
16public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
13public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
13public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
SegmentedDictionary`2.cs (2)
1292public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1500public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
Microsoft.CodeAnalysis.Workspaces (7)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
16public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
16public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
13public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
13public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\SegmentedDictionary`2.cs (2)
1292public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1500public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (7)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
16public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
16public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
13public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
13public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (1)
64internal readonly partial struct ImmutableSegmentedHashSet<T> : IImmutableSet<T>, ISet<T>, ICollection, IEquatable<ImmutableSegmentedHashSet<T>>
src\Dependencies\Collections\SegmentedDictionary`2.cs (2)
1292public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1500public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\Collection.vb (1)
17Public NotInheritable Class Collection : Implements ICollection, IList
MSBuild (1)
ReadOnlyEmptyCollection.cs (1)
20internal class ReadOnlyEmptyCollection<T> : ICollection<T>, ICollection
MSBuildTaskHost (1)
ReadOnlyEmptyCollection.cs (1)
20internal class ReadOnlyEmptyCollection<T> : ICollection<T>, ICollection
PresentationCore (3)
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (1)
12public class TabletDeviceCollection : ICollection, IEnumerable
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
428private abstract class BaseCollection : SC.ICollection
System\Windows\Media\VisualCollection.cs (1)
29public sealed class VisualCollection : ICollection
PresentationFramework (3)
System\Windows\Controls\MultipleCopiesCollection.cs (1)
20ICollection,
System\Windows\ResourceDictionary.cs (1)
2230private class ResourceValuesCollection : ICollection
System\Windows\WindowCollection.cs (1)
22public sealed class WindowCollection : ICollection
System.CodeDom (1)
src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
22class TempFileCollection : ICollection, IDisposable
System.Collections (9)
System\Collections\BitArray.cs (1)
18public sealed class BitArray : ICollection, ICloneable
System\Collections\Generic\LinkedList.cs (1)
15public class LinkedList<T> : ICollection<T>, ICollection, IReadOnlyCollection<T>, ISerializable, IDeserializationCallback
System\Collections\Generic\PriorityQueue.cs (1)
944public sealed class UnorderedItemsCollection : IReadOnlyCollection<(TElement Element, TPriority Priority)>, ICollection
System\Collections\Generic\SortedDictionary.cs (2)
517public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 678public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
System\Collections\Generic\SortedList.cs (2)
1002public sealed class KeyList : IList<TKey>, ICollection 1116public sealed class ValueList : IList<TValue>, ICollection
System\Collections\Generic\SortedSet.cs (1)
49public partial class SortedSet<T> : ISet<T>, ICollection<T>, ICollection, IReadOnlyCollection<T>, IReadOnlySet<T>, ISerializable, IDeserializationCallback
System\Collections\Generic\Stack.cs (1)
26System.Collections.ICollection,
System.Collections.Concurrent (1)
System\Collections\Concurrent\BlockingCollection.cs (1)
45public class BlockingCollection<T> : IEnumerable<T>, ICollection, IDisposable, IReadOnlyCollection<T>
System.Collections.Immutable (6)
System\Collections\Frozen\FrozenSet.cs (1)
244IReadOnlyCollection<T>, ICollection
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
19public sealed partial class ImmutableHashSet<T> : IImmutableSet<T>, IReadOnlyCollection<T>, ICollection<T>, ISet<T>, IReadOnlySet<T>, ICollection, IStrongEnumerable<T, ImmutableHashSet<T>.Enumerator>
System\Collections\Immutable\ImmutableHashSet_1.HashBucketByRefEqualityComparer.cs (1)
11public sealed partial class ImmutableHashSet<T> : IImmutableSet<T>, IReadOnlyCollection<T>, ICollection<T>, ISet<T>, ICollection, IStrongEnumerable<T, ImmutableHashSet<T>.Enumerator>
System\Collections\Immutable\ImmutableHashSet_1.HashBucketByValueEqualityComparer.cs (1)
11public sealed partial class ImmutableHashSet<T> : IImmutableSet<T>, IReadOnlyCollection<T>, ICollection<T>, ISet<T>, ICollection, IStrongEnumerable<T, ImmutableHashSet<T>.Enumerator>
System\Collections\Immutable\ImmutableSortedSet_1.Builder.cs (1)
31public sealed class Builder : IReadOnlyCollection<T>, ISet<T>, ICollection
System\Collections\Immutable\KeysOrValuesCollectionAccessor.cs (1)
15internal abstract class KeysOrValuesCollectionAccessor<TKey, TValue, T> : ICollection<T>, ICollection where TKey : notnull
System.Collections.NonGeneric (3)
System\Collections\Queue.cs (1)
23public class Queue : ICollection, ICloneable
System\Collections\ReadOnlyCollectionBase.cs (1)
17public abstract class ReadOnlyCollectionBase : ICollection
System\Collections\Stack.cs (1)
24public class Stack : ICollection, ICloneable
System.Collections.Specialized (3)
System\Collections\Specialized\ListDictionary.cs (1)
351private sealed class NodeKeyValueCollection : ICollection
System\Collections\Specialized\NameObjectCollectionBase.cs (2)
25public abstract class NameObjectCollectionBase : ICollection, ISerializable, IDeserializationCallback 543public class KeysCollection : ICollection
System.ComponentModel.TypeConverter (5)
System\ComponentModel\AttributeCollection.cs (1)
14public class AttributeCollection : ICollection, IEnumerable
System\ComponentModel\Design\DesignerCollection.cs (1)
11public class DesignerCollection : ICollection
System\ComponentModel\EventDescriptorCollection.cs (1)
14public class EventDescriptorCollection : ICollection, IList
System\ComponentModel\PropertyDescriptorCollection.cs (1)
14public class PropertyDescriptorCollection : ICollection, IList, IDictionary
System\ComponentModel\TypeConverter.cs (1)
417public class StandardValuesCollection : ICollection
System.Configuration.ConfigurationManager (7)
src\libraries\Common\src\System\IO\TempFileCollection.cs (1)
22class TempFileCollection : ICollection, IDisposable
System\Configuration\ConfigurationElementCollection.cs (1)
11public abstract class ConfigurationElementCollection : ConfigurationElement, ICollection
System\Configuration\ConfigurationLockCollection.cs (1)
10public sealed class ConfigurationLockCollection : ICollection
System\Configuration\ConfigurationPropertyCollection.cs (1)
8public class ConfigurationPropertyCollection : ICollection
System\Configuration\Provider\ProviderCollection.cs (1)
8public class ProviderCollection : ICollection
System\Configuration\SettingsPropertyCollection.cs (1)
8public class SettingsPropertyCollection : IEnumerable, ICloneable, ICollection
System\Configuration\SettingsPropertyValueCollection.cs (1)
8public class SettingsPropertyValueCollection : IEnumerable, ICloneable, ICollection
System.Data.Common (2)
System\Data\BaseCollection.cs (1)
13public class InternalDataCollectionBase : ICollection
System\Data\DataViewSettingCollection.cs (1)
12public class DataViewSettingCollection : ICollection
System.Data.Odbc (1)
System\Data\Odbc\OdbcErrorCollection.cs (1)
10public sealed class OdbcErrorCollection : ICollection
System.Data.OleDb (1)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (1)
246public sealed partial class OleDbErrorCollection : System.Collections.ICollection, System.Collections.IEnumerable
System.Diagnostics.EventLog (1)
artifacts\obj\System.Diagnostics.EventLog\Debug\net10.0\System.Diagnostics.EventLog.notsupported.cs (1)
123public partial class EventLogEntryCollection : System.Collections.ICollection, System.Collections.IEnumerable
System.DirectoryServices (3)
artifacts\obj\System.DirectoryServices\Debug\net10.0\System.DirectoryServices.notsupported.cs (3)
365public partial class PropertyCollection : System.Collections.ICollection, System.Collections.IDictionary, System.Collections.IEnumerable 437public partial class SchemaNameCollection : System.Collections.ICollection, System.Collections.IEnumerable, System.Collections.IList 472public partial class SearchResultCollection : System.MarshalByRefObject, System.Collections.ICollection, System.Collections.IEnumerable, System.IDisposable
System.DirectoryServices.AccountManagement (2)
artifacts\obj\System.DirectoryServices.AccountManagement\Debug\net10.0\System.DirectoryServices.AccountManagement.notsupported.cs (2)
226public partial class PrincipalCollection : System.Collections.Generic.ICollection<System.DirectoryServices.AccountManagement.Principal>, System.Collections.Generic.IEnumerable<System.DirectoryServices.AccountManagement.Principal>, System.Collections.ICollection, System.Collections.IEnumerable 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.Drawing.Common (4)
Special\NotSupported.cs (4)
3047public partial class PaperSizeCollection : System.Collections.ICollection, System.Collections.IEnumerable 3063public partial class PaperSourceCollection : System.Collections.ICollection, System.Collections.IEnumerable 3079public partial class PrinterResolutionCollection : System.Collections.ICollection, System.Collections.IEnumerable 3095public partial class StringCollection : System.Collections.ICollection, System.Collections.IEnumerable
System.Management (4)
artifacts\obj\System.Management\Debug\net10.0\System.Management.notsupported.cs (4)
332public partial class ManagementObjectCollection : System.Collections.ICollection, System.Collections.IEnumerable, System.IDisposable 555public partial class MethodDataCollection : System.Collections.ICollection, System.Collections.IEnumerable 624public partial class PropertyDataCollection : System.Collections.ICollection, System.Collections.IEnumerable 675public partial class QualifierDataCollection : System.Collections.ICollection, System.Collections.IEnumerable
System.Net.Primitives (1)
System\Net\CookieCollection.cs (1)
15public class CookieCollection : ICollection<Cookie>, IReadOnlyCollection<Cookie>, ICollection
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (2)
1885public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 2080public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (1)
21ICollection,
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (2)
1180private sealed class KeyCollection : ICollection 1215private sealed class ValueCollection : ICollection
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (1)
292private sealed class NodeKeyValueCollection : ICollection
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (2)
247public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 303public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (1)
14public class ReadOnlySet<T> : IReadOnlySet<T>, ISet<T>, ICollection
src\libraries\System.Private.CoreLib\src\System\Security\PermissionSet.cs (1)
13public partial class PermissionSet : ICollection, IEnumerable, IDeserializationCallback, ISecurityEncodable, IStackWalk
System.Private.Xml (4)
System\Xml\Dom\XmlAttributeCollection.cs (1)
11public sealed class XmlAttributeCollection : XmlNamedNodeMap, ICollection
System\Xml\Schema\XmlSchemaCollection.cs (1)
23public sealed class XmlSchemaCollection : ICollection
System\Xml\Schema\XmlSchemaObjectTable.cs (2)
157internal sealed class NamesCollection : ICollection 210internal sealed class ValuesCollection : ICollection
System.Security.AccessControl (2)
artifacts\obj\System.Security.AccessControl\Debug\net10.0\System.Security.AccessControl.notsupported.cs (2)
279public abstract partial class GenericAcl : System.Collections.ICollection, System.Collections.IEnumerable 538public sealed partial class Evidence : System.Collections.ICollection, System.Collections.IEnumerable
System.Security.Cryptography (5)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
19sealed class CryptographicAttributeObjectCollection : ICollection
System\Security\Cryptography\AsnEncodedDataCollection.cs (1)
11public sealed class AsnEncodedDataCollection : ICollection
System\Security\Cryptography\OidCollection.cs (1)
9public sealed class OidCollection : ICollection
System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs (1)
10public sealed class X509ChainElementCollection : ICollection, IEnumerable<X509ChainElement>
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (1)
16public sealed class X509ExtensionCollection : ICollection, IEnumerable<X509Extension>
System.Security.Cryptography.Pkcs (4)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
19sealed class CryptographicAttributeObjectCollection : ICollection
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (1)
12public sealed class CmsRecipientCollection : ICollection
System\Security\Cryptography\Pkcs\RecipientInfoCollection.cs (1)
11public sealed class RecipientInfoCollection : ICollection
System\Security\Cryptography\Pkcs\SignerInfoCollection.cs (1)
11public sealed class SignerInfoCollection : ICollection, IEnumerable
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\SignedInfo.cs (1)
12public class SignedInfo : ICollection
System.Security.Permissions (2)
System\Security\Permissions\KeyContainerPermissionAccessEntryCollection.cs (1)
11public sealed class KeyContainerPermissionAccessEntryCollection : ICollection
System\Security\Policy\ApplicationTrustCollection.cs (1)
8public sealed partial class ApplicationTrustCollection : ICollection, IEnumerable
System.Windows.Forms (8)
System\Windows\Forms\BaseCollection.cs (1)
12public class BaseCollection : MarshalByRefObject, ICollection
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (1)
17public partial class DataGridViewRowCollection : ICollection, IList
System\Windows\Forms\Controls\PropertyGrid\GridItemCollection.cs (1)
11public class GridItemCollection : ICollection
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyTabCollection.cs (1)
12public class PropertyTabCollection : ICollection
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.MultiMergeCollection.cs (1)
10private class MultiMergeCollection : ICollection
System\Windows\Forms\Controls\WebBrowser\HtmlElementCollection.cs (1)
11public sealed unsafe class HtmlElementCollection : ICollection
System\Windows\Forms\Controls\WebBrowser\HtmlWindowCollection.cs (1)
12public unsafe class HtmlWindowCollection : ICollection
System\Windows\Forms\DataBinding\BindingContext.cs (1)
14public partial class BindingContext : ICollection
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignSurfaceCollection.cs (1)
11public sealed class DesignSurfaceCollection : ICollection
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.Xaml.Tests (1)
System\Xaml\XamlTypeTests.cs (1)
3201private class AmbiguousICollection : ICollection
UIAutomationClient (1)
System\Windows\Automation\AutomationElementCollection.cs (1)
18public class AutomationElementCollection: ICollection
2282 references to ICollection
DesignSurfaceExt (5)
DesignerSerializationServiceImpl.cs (3)
19public ICollection Deserialize(object serializationData) 25ICollection collection = componentSerializationService.Deserialize(serializationStore); 32public object Serialize(ICollection objects)
TypeDiscoveryService.cs (2)
21public ICollection GetTypes(Type baseType, bool excludeGlobalTypes) 25: (ICollection)_discoveredTypesCache.GetOrAdd(baseType, type => FindTypes(type, AppDomain.CurrentDomain.GetAssemblies()));
dotnet-svcutil-lib (136)
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (4)
138void ICollection.CopyTo(Array array, int start) 163int ICollection.Count 169object ICollection.SyncRoot 175bool ICollection.IsSynchronized
FrameworkFork\Microsoft.CodeDom\System\CodeNamespaceImportCollection.cs (4)
159int ICollection.Count 168bool ICollection.IsSynchronized 177object ICollection.SyncRoot 186void ICollection.CopyTo(Array array, int index)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlAttributeCollection.cs (4)
265void ICollection.CopyTo(Array array, int index) 271bool ICollection.IsSynchronized 276object ICollection.SyncRoot 281int ICollection.Count
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (2)
146public ICollection GetNamespaceListSymbols(NamespaceList list) 391public virtual ICollection GetResolvedSymbols(SymbolsDictionary symbols)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (5)
307ICollection searchCollectionPrimary, searchCollectionSecondary; 1317ICollection sourceCollection; 1334internal XmlSchemaAttribute FindAttribute(ICollection attributes, string attrName) 1352ICollection col = _schemaSet.Schemas(namespaceURI); 1384internal XmlSchemaAttribute FindAttributeRef(ICollection attributes, string attributeName, string nsURI)
FrameworkFork\Microsoft.Xml\Xml\schema\NamespaceList.cs (1)
90public ICollection Enumerate
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaCollection.cs (4)
263void ICollection.CopyTo(Array array, int index) 301bool ICollection.IsSynchronized 308object ICollection.SyncRoot 315int ICollection.Count
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (6)
126public ICollection Names 135public ICollection Values 203return ((ICollection)_entries).SyncRoot; 211return ((ICollection)_entries).IsSynchronized; 258return ((ICollection)_entries).SyncRoot; 266return ((ICollection)_entries).IsSynchronized;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (3)
812public ICollection Schemas() 821public ICollection Schemas(String targetNamespace) 1488ICollection chameleonKeys = _chameleonSchemas.Keys;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (1)
993ICollection elements = _schemaSet.GlobalElements.Values;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (1)
342protected static readonly Type ICollectionType = typeof(ICollection);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (2)
332CodeGenerator.AssertHasInterface(varType, typeof(ICollection)); 334MethodInfo ICollection_get_Count = typeof(ICollection).GetMethod(
FrameworkFork\Microsoft.Xml\Xml\Serialization\NameTable.cs (1)
88internal ICollection Values
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (4)
851else if (typeof(ICollection).IsAssignableFrom(type) && !IsArraySegment(type)) 1063else if (typeof(ICollection).IsAssignableFrom(type)) 1437internal ICollection Types 1447internal ICollection TypeMappings
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
811ICollection values = mapping.BaseMapping.LocalAttributes.Values;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (1)
1320ICollection namespaces = list.Enumerate;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (6)
1322int arrayLength = typeof(ICollection).IsAssignableFrom(type) ? ((ICollection)o).Count : -1; 2650Writer.Write(typeof(ICollection).FullName); 2868Writer.Write(typeof(ICollection).FullName); 3260Writer.Write(typeof(ICollection).FullName); 4316typeName = typeof(ICollection).FullName;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
326((ICollection)collection).CopyTo(objects, 0);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (1)
730s_typeOfICollection = typeof(ICollection);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaHelper.cs (3)
58ICollection currentSchemas = schemas.Schemas(); 82ICollection currentSchemas = schemas.Schemas(); 102ICollection currentSchemas = schemas.Schemas();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (3)
75ICollection schemaList = _schemaSet.Schemas(); 244ICollection schemaList = _schemaSet.Schemas(); 338ICollection schemaList = _schemaSet.Schemas();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (1)
733s_incrementCollectionCountMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("IncrementCollectionCount", Globals.ScanAllMembers, new Type[] { typeof(XmlWriterDelegator), typeof(ICollection) });
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
467internal void IncrementCollectionCount(XmlWriterDelegator xmlWriter, ICollection collection)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (1)
1173ICollection schemas = schemaSet.Schemas(ns);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataSet.cs (3)
287for (int i = 0; i < ((System.Collections.ICollection)a).Count; i++) 298for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 339for (int i = 0; i < ((System.Collections.ICollection)a).Count; i++)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SchemaHelper.cs (1)
78ICollection schemas = schemaSet.Schemas();
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (3)
224bool ICollection.IsSynchronized 229object ICollection.SyncRoot 234void ICollection.CopyTo(Array array, int index)
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (5)
168bool ICollection.IsSynchronized 173object ICollection.SyncRoot 178void ICollection.CopyTo(Array array, int index) 180ICollection asCollection = _items as ICollection;
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (54)
66for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 83for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 94for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 104for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 114for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 124for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 177for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 194for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 248for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 419for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 462for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 515for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 560for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 613for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 793for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 883for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 920for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 998for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1047for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1403for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1783for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1800for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1857for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1874for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1901for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 1955for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2016for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2077for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2137for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2154for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2209for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2268for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2285for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2349for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2380for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2467for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2713for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2894for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 2964for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 3054for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 3104for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 3255for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 3880for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4016for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4279for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4328for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4485for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4576for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4697for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4764for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4830for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 4936for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 5078for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++) 5161for (int ia = 0; ia < ((System.Collections.ICollection)a).Count; ia++)
Shared\Options\ListValue.cs (4)
69int ICollection.Count { get { return this.Count; } } 73bool ICollection.IsSynchronized { get { return this.IsSynchronized; } } 77object ICollection.SyncRoot { get { return this.SyncRoot; } } 187void ICollection.CopyTo(Array array, int index)
Shared\Options\ListValueOption.cs (2)
107var collection = value as ICollection;
Shared\Options\OptionsSerializer.cs (1)
223if (value is ICollection collection)
Shared\Options\OptionValueParser.cs (2)
137else if (value is ICollection collection) 196else if (value is ICollection collection)
InteropClient (1)
Assert.cs (1)
100public static void Contains(object expected, ICollection actual)
Microsoft.AspNetCore.Mvc.Core (5)
Infrastructure\AsyncEnumerableReader.cs (5)
34private readonly ConcurrentDictionary<Type, Func<object, CancellationToken, Task<ICollection>>?> _asyncEnumerableConverters = new(); 52public bool TryGetReader(Type type, [NotNullWhen(true)] out Func<object, CancellationToken, Task<ICollection>>? reader) 67var converter = (Func<object, CancellationToken, Task<ICollection>>)Converter 69.CreateDelegate(typeof(Func<object, CancellationToken, Task<ICollection>>), this); 79private async Task<ICollection> ReadInternal<T>(object value, CancellationToken cancellationToken)
Microsoft.AspNetCore.Mvc.Core.Test (3)
Infrastructure\AsyncEnumerableReaderTest.cs (3)
42var readCollection = await reader(asyncEnumerable, default); 60var readCollection = await reader(asyncEnumerable, default); 165var readCollection = await reader(asyncEnumerable, default);
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
ValidationIntegrationTests.cs (1)
2134return value is ICollection collection && collection.Count >= _length;
ValidationWithRecordIntegrationTests.cs (1)
1925return value is ICollection collection && collection.Count >= _length;
Microsoft.AspNetCore.Mvc.NewtonsoftJson (5)
src\Mvc\Mvc.Core\src\Infrastructure\AsyncEnumerableReader.cs (5)
34private readonly ConcurrentDictionary<Type, Func<object, CancellationToken, Task<ICollection>>?> _asyncEnumerableConverters = new(); 52public bool TryGetReader(Type type, [NotNullWhen(true)] out Func<object, CancellationToken, Task<ICollection>>? reader) 67var converter = (Func<object, CancellationToken, Task<ICollection>>)Converter 69.CreateDelegate(typeof(Func<object, CancellationToken, Task<ICollection>>), this); 79private async Task<ICollection> ReadInternal<T>(object value, CancellationToken cancellationToken)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
src\Mvc\Mvc.Core\test\Infrastructure\AsyncEnumerableReaderTest.cs (3)
42var readCollection = await reader(asyncEnumerable, default); 60var readCollection = await reader(asyncEnumerable, default); 165var readCollection = await reader(asyncEnumerable, default);
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
DefaultDisplayTemplates.cs (2)
106var collection = model as ICollection;
DefaultEditorTemplates.cs (2)
88var collection = model as ICollection;
Microsoft.Build (33)
Collections\ArrayDictionary.cs (5)
74ICollection IDictionary.Keys => keys; 78ICollection IDictionary.Values => values; 90object ICollection.SyncRoot => this; 92bool ICollection.IsSynchronized => false; 155void ICollection.CopyTo(Array array, int index)
Collections\CopyOnReadEnumerable.cs (1)
69if (_backingEnumerable is ICollection backingCollection)
Construction\ProjectElementContainer.cs (3)
805bool ICollection.IsSynchronized => false; 807object ICollection.SyncRoot => this; 865void ICollection.CopyTo(Array array, int index)
CopyOnWriteDictionary.cs (8)
144ICollection IDictionary.Keys => (ICollection)Keys; 149ICollection IDictionary.Values => (ICollection)Values; 154int ICollection.Count => Count; 159bool ICollection.IsSynchronized => false; 164object ICollection.SyncRoot => this; 358void ICollection.CopyTo(Array array, int index)
Instance\ProjectItemInstance.cs (2)
315ICollection ITaskItem.MetadataNames 941public ICollection MetadataNames
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
882if (items is ICollection arrayList)
ReadOnlyCollection.cs (3)
65bool ICollection.IsSynchronized 73object ICollection.SyncRoot 186void ICollection.CopyTo(Array array, int index)
ReadOnlyEmptyCollection.cs (3)
69bool ICollection.IsSynchronized 77object ICollection.SyncRoot 141void ICollection.CopyTo(Array array, int index)
ReadOnlyEmptyDictionary.cs (4)
117ICollection IDictionary.Keys 119get { return (ICollection)((IDictionary<K, V>)this).Keys; } 125ICollection IDictionary.Values 127get { return (ICollection)((IDictionary<K, V>)this).Values; }
TaskParameter.cs (1)
789public ICollection MetadataNames
Utilities\Utilities.cs (2)
600ICollection collection = enumerable as ICollection;
Microsoft.Build.Engine.UnitTests (7)
BackEnd\TaskRegistry_Tests.cs (1)
2273public ICollection MetadataNames
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (4)
46public ICollection MetadataNames => throw new NotImplementedException(); 50ICollection ITaskItem.MetadataNames => throw new NotImplementedException(); 102public ICollection Keys => _keys; 104public ICollection Values => _values;
MockTask.cs (1)
430public ICollection MetadataNames
TaskThatReturnsMinimalItem.cs (1)
32public ICollection MetadataNames => throw new NotImplementedException();
Microsoft.Build.Framework (65)
ICollectionCalls.cs (3)
11/// Provides static methods to invoke <see cref="ICollection"/> members on value types that explicitly implement the 22where TCollection : ICollection 26where TCollection : ICollection
ImmutableSegmentedDictionary`2.cs (6)
106ICollection IDictionary.Keys => Keys; 108ICollection IDictionary.Values => Values; 114object ICollection.SyncRoot => _dictionary; 116bool ICollection.IsSynchronized => true; 354void ICollection.CopyTo(Array array, int index) 355=> ((ICollection)_dictionary).CopyTo(array, index);
ImmutableSegmentedDictionary`2+Builder.cs (6)
72ICollection IDictionary.Keys => Keys; 74ICollection IDictionary.Values => Values; 80object ICollection.SyncRoot => this; 82bool ICollection.IsSynchronized => false; 243void ICollection.CopyTo(Array array, int index) 244=> ((ICollection)ReadOnlyDictionary).CopyTo(array, index);
ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (5)
30bool ICollection.IsSynchronized => false; 32object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 52void ICollection.CopyTo(Array array, int index) 53=> ((ICollection)_dictionary.ReadOnlyDictionary.Keys).CopyTo(array, index);
ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (5)
30bool ICollection.IsSynchronized => false; 32object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 52void ICollection.CopyTo(Array array, int index) 53=> ((ICollection)_dictionary.ReadOnlyDictionary.Values).CopyTo(array, index);
ImmutableSegmentedDictionary`2+KeyCollection.cs (5)
26bool ICollection.IsSynchronized => true; 28object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 45void ICollection.CopyTo(Array array, int index) 46=> ((ICollection)_dictionary._dictionary.Keys).CopyTo(array, index);
ImmutableSegmentedDictionary`2+ValueCollection.cs (5)
26bool ICollection.IsSynchronized => true; 28object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 45void ICollection.CopyTo(Array array, int index) 46=> ((ICollection)_dictionary._dictionary.Values).CopyTo(array, index);
ImmutableSegmentedList`1.cs (3)
94bool ICollection.IsSynchronized => true; 96object ICollection.SyncRoot => _list; 685void ICollection.CopyTo(Array array, int index)
ImmutableSegmentedList`1+Builder.cs (3)
32bool ICollection.IsSynchronized => ICollectionCalls.IsSynchronized(ref _builder); 34object ICollection.SyncRoot => this; 245void ICollection.CopyTo(Array array, int index)
ImmutableSegmentedList`1+ValueBuilder.cs (4)
43bool ICollection.IsSynchronized => false; 45object ICollection.SyncRoot => throw new NotSupportedException(); 354void ICollection.CopyTo(Array array, int index) 355=> ((ICollection)ReadOnlyList).CopyTo(array, index);
ITaskItem.cs (1)
38ICollection MetadataNames
SegmentedArray`1.cs (1)
125int ICollection.Count => Length;
SegmentedDictionary`2.cs (13)
845void ICollection.CopyTo(Array array, int index) 1005bool ICollection.IsSynchronized => false; 1007object ICollection.SyncRoot => this; 1013ICollection IDictionary.Keys => Keys; 1015ICollection IDictionary.Values => Values; 1326void ICollection.CopyTo(Array array, int index) 1382bool ICollection.IsSynchronized => false; 1384object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 1526void ICollection.CopyTo(Array array, int index) 1582bool ICollection.IsSynchronized => false; 1584object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot;
SegmentedList`1.cs (3)
162bool ICollection.IsSynchronized => false; 165object ICollection.SyncRoot => this; 381void ICollection.CopyTo(Array array, int arrayIndex)
TaskItemData.cs (2)
57public ICollection MetadataNames => (ICollection)Metadata.Keys;
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (1)
TestUtilities\SimpleTaskItem.cs (1)
18public ICollection MetadataNames => Metadata.Keys;
Microsoft.Build.Tasks.Core (18)
CopyOnWriteDictionary.cs (8)
144ICollection IDictionary.Keys => (ICollection)Keys; 149ICollection IDictionary.Values => (ICollection)Values; 154int ICollection.Count => Count; 159bool ICollection.IsSynchronized => false; 164object ICollection.SyncRoot => this; 358void ICollection.CopyTo(Array array, int index)
ReadOnlyCollection.cs (3)
65bool ICollection.IsSynchronized 73object ICollection.SyncRoot 186void ICollection.CopyTo(Array array, int index)
ReadOnlyEmptyCollection.cs (3)
69bool ICollection.IsSynchronized 77object ICollection.SyncRoot 141void ICollection.CopyTo(Array array, int index)
ReadOnlyEmptyDictionary.cs (4)
117ICollection IDictionary.Keys 119get { return (ICollection)((IDictionary<K, V>)this).Keys; } 125ICollection IDictionary.Values 127get { return (ICollection)((IDictionary<K, V>)this).Values; }
Microsoft.Build.Tasks.UnitTests (1)
GenerateBindingRedirects_Tests.cs (1)
390ICollection ITaskItem.MetadataNames { get; }
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
1167if (enumerable is ICollection c)
Microsoft.Build.Utilities.Core (16)
CopyOnWriteDictionary.cs (8)
144ICollection IDictionary.Keys => (ICollection)Keys; 149ICollection IDictionary.Values => (ICollection)Values; 154int ICollection.Count => Count; 159bool ICollection.IsSynchronized => false; 164object ICollection.SyncRoot => this; 358void ICollection.CopyTo(Array array, int index)
ReadOnlyEmptyCollection.cs (3)
69bool ICollection.IsSynchronized 77object ICollection.SyncRoot 141void ICollection.CopyTo(Array array, int index)
ReadOnlyEmptyDictionary.cs (4)
117ICollection IDictionary.Keys 119get { return (ICollection)((IDictionary<K, V>)this).Keys; } 125ICollection IDictionary.Values 127get { return (ICollection)((IDictionary<K, V>)this).Values; }
TaskItem.cs (1)
210public ICollection MetadataNames
Microsoft.CodeAnalysis (71)
InternalUtilities\EnumerableExtensions.cs (1)
289if (source is ICollection collection)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (6)
106ICollection IDictionary.Keys => Keys; 108ICollection IDictionary.Values => Values; 114object ICollection.SyncRoot => _dictionary; 116bool ICollection.IsSynchronized => true; 345void ICollection.CopyTo(Array array, int index) 346=> ((ICollection)_dictionary).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (5)
49ICollection IDictionary.Keys => Keys; 51ICollection IDictionary.Values => Values; 57object ICollection.SyncRoot => this; 59bool ICollection.IsSynchronized => ICollectionCalls.IsSynchronized(ref _builder); 144void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (5)
30bool ICollection.IsSynchronized => false; 32object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 52void ICollection.CopyTo(Array array, int index) 53=> ((ICollection)_dictionary.ReadOnlyDictionary.Keys).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (5)
30bool ICollection.IsSynchronized => false; 32object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 52void ICollection.CopyTo(Array array, int index) 53=> ((ICollection)_dictionary.ReadOnlyDictionary.Values).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+KeyCollection.cs (5)
26bool ICollection.IsSynchronized => true; 28object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 45void ICollection.CopyTo(Array array, int index) 46=> ((ICollection)_dictionary._dictionary.Keys).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (6)
70readonly ICollection IDictionary.Keys => throw new NotSupportedException(); 72readonly ICollection IDictionary.Values => throw new NotSupportedException(); 78readonly object ICollection.SyncRoot => throw new NotSupportedException(); 80readonly bool ICollection.IsSynchronized => false; 255readonly void ICollection.CopyTo(Array array, int index) 256=> ((ICollection)ReadOnlyDictionary).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueCollection.cs (5)
26bool ICollection.IsSynchronized => true; 28object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 45void ICollection.CopyTo(Array array, int index) 46=> ((ICollection)_dictionary._dictionary.Values).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (3)
89bool ICollection.IsSynchronized => true; 91object ICollection.SyncRoot => _set; 347void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (3)
94bool ICollection.IsSynchronized => true; 96object ICollection.SyncRoot => _list; 685void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (3)
32bool ICollection.IsSynchronized => ICollectionCalls.IsSynchronized(ref _builder); 34object ICollection.SyncRoot => this; 245void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (4)
43readonly bool ICollection.IsSynchronized => false; 45readonly object ICollection.SyncRoot => throw new NotSupportedException(); 354readonly void ICollection.CopyTo(Array array, int index) 355=> ((ICollection)ReadOnlyList).CopyTo(array, index);
src\Dependencies\Collections\Internal\ICollectionCalls.cs (3)
11/// Provides static methods to invoke <see cref="ICollection"/> members on value types that explicitly implement the 22where TCollection : ICollection 26where TCollection : ICollection
src\Dependencies\Collections\SegmentedArray`1.cs (1)
122int ICollection.Count => Length;
src\Dependencies\Collections\SegmentedDictionary`2.cs (13)
873void ICollection.CopyTo(Array array, int index) 1039bool ICollection.IsSynchronized => false; 1041object ICollection.SyncRoot => this; 1047ICollection IDictionary.Keys => Keys; 1049ICollection IDictionary.Values => Values; 1368void ICollection.CopyTo(Array array, int index) 1424bool ICollection.IsSynchronized => false; 1426object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 1576void ICollection.CopyTo(Array array, int index) 1632bool ICollection.IsSynchronized => false; 1634object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot;
src\Dependencies\Collections\SegmentedList`1.cs (3)
189bool ICollection.IsSynchronized => false; 192object ICollection.SyncRoot => this; 452void ICollection.CopyTo(Array array, int arrayIndex)
Microsoft.CodeAnalysis.CodeStyle (71)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
289if (source is ICollection collection)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (6)
106ICollection IDictionary.Keys => Keys; 108ICollection IDictionary.Values => Values; 114object ICollection.SyncRoot => _dictionary; 116bool ICollection.IsSynchronized => true; 345void ICollection.CopyTo(Array array, int index) 346=> ((ICollection)_dictionary).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (5)
49ICollection IDictionary.Keys => Keys; 51ICollection IDictionary.Values => Values; 57object ICollection.SyncRoot => this; 59bool ICollection.IsSynchronized => ICollectionCalls.IsSynchronized(ref _builder); 144void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (5)
30bool ICollection.IsSynchronized => false; 32object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 52void ICollection.CopyTo(Array array, int index) 53=> ((ICollection)_dictionary.ReadOnlyDictionary.Keys).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (5)
30bool ICollection.IsSynchronized => false; 32object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 52void ICollection.CopyTo(Array array, int index) 53=> ((ICollection)_dictionary.ReadOnlyDictionary.Values).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+KeyCollection.cs (5)
26bool ICollection.IsSynchronized => true; 28object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 45void ICollection.CopyTo(Array array, int index) 46=> ((ICollection)_dictionary._dictionary.Keys).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (6)
70readonly ICollection IDictionary.Keys => throw new NotSupportedException(); 72readonly ICollection IDictionary.Values => throw new NotSupportedException(); 78readonly object ICollection.SyncRoot => throw new NotSupportedException(); 80readonly bool ICollection.IsSynchronized => false; 255readonly void ICollection.CopyTo(Array array, int index) 256=> ((ICollection)ReadOnlyDictionary).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueCollection.cs (5)
26bool ICollection.IsSynchronized => true; 28object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 45void ICollection.CopyTo(Array array, int index) 46=> ((ICollection)_dictionary._dictionary.Values).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (3)
89bool ICollection.IsSynchronized => true; 91object ICollection.SyncRoot => _set; 347void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (3)
94bool ICollection.IsSynchronized => true; 96object ICollection.SyncRoot => _list; 685void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (3)
32bool ICollection.IsSynchronized => ICollectionCalls.IsSynchronized(ref _builder); 34object ICollection.SyncRoot => this; 245void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (4)
43readonly bool ICollection.IsSynchronized => false; 45readonly object ICollection.SyncRoot => throw new NotSupportedException(); 354readonly void ICollection.CopyTo(Array array, int index) 355=> ((ICollection)ReadOnlyList).CopyTo(array, index);
src\Dependencies\Collections\Internal\ICollectionCalls.cs (3)
11/// Provides static methods to invoke <see cref="ICollection"/> members on value types that explicitly implement the 22where TCollection : ICollection 26where TCollection : ICollection
src\Dependencies\Collections\SegmentedArray`1.cs (1)
122int ICollection.Count => Length;
src\Dependencies\Collections\SegmentedDictionary`2.cs (13)
873void ICollection.CopyTo(Array array, int index) 1039bool ICollection.IsSynchronized => false; 1041object ICollection.SyncRoot => this; 1047ICollection IDictionary.Keys => Keys; 1049ICollection IDictionary.Values => Values; 1368void ICollection.CopyTo(Array array, int index) 1424bool ICollection.IsSynchronized => false; 1426object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 1576void ICollection.CopyTo(Array array, int index) 1632bool ICollection.IsSynchronized => false; 1634object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot;
src\Dependencies\Collections\SegmentedList`1.cs (3)
189bool ICollection.IsSynchronized => false; 192object ICollection.SyncRoot => this; 452void ICollection.CopyTo(Array array, int arrayIndex)
Microsoft.CodeAnalysis.Collections.Package (70)
ImmutableSegmentedDictionary`2.cs (6)
106ICollection IDictionary.Keys => Keys; 108ICollection IDictionary.Values => Values; 114object ICollection.SyncRoot => _dictionary; 116bool ICollection.IsSynchronized => true; 345void ICollection.CopyTo(Array array, int index) 346=> ((ICollection)_dictionary).CopyTo(array, index);
ImmutableSegmentedDictionary`2+Builder.cs (5)
49ICollection IDictionary.Keys => Keys; 51ICollection IDictionary.Values => Values; 57object ICollection.SyncRoot => this; 59bool ICollection.IsSynchronized => ICollectionCalls.IsSynchronized(ref _builder); 144void ICollection.CopyTo(Array array, int index)
ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (5)
30bool ICollection.IsSynchronized => false; 32object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 52void ICollection.CopyTo(Array array, int index) 53=> ((ICollection)_dictionary.ReadOnlyDictionary.Keys).CopyTo(array, index);
ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (5)
30bool ICollection.IsSynchronized => false; 32object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 52void ICollection.CopyTo(Array array, int index) 53=> ((ICollection)_dictionary.ReadOnlyDictionary.Values).CopyTo(array, index);
ImmutableSegmentedDictionary`2+KeyCollection.cs (5)
26bool ICollection.IsSynchronized => true; 28object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 45void ICollection.CopyTo(Array array, int index) 46=> ((ICollection)_dictionary._dictionary.Keys).CopyTo(array, index);
ImmutableSegmentedDictionary`2+ValueBuilder.cs (6)
70readonly ICollection IDictionary.Keys => throw new NotSupportedException(); 72readonly ICollection IDictionary.Values => throw new NotSupportedException(); 78readonly object ICollection.SyncRoot => throw new NotSupportedException(); 80readonly bool ICollection.IsSynchronized => false; 255readonly void ICollection.CopyTo(Array array, int index) 256=> ((ICollection)ReadOnlyDictionary).CopyTo(array, index);
ImmutableSegmentedDictionary`2+ValueCollection.cs (5)
26bool ICollection.IsSynchronized => true; 28object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 45void ICollection.CopyTo(Array array, int index) 46=> ((ICollection)_dictionary._dictionary.Values).CopyTo(array, index);
ImmutableSegmentedHashSet`1.cs (3)
89bool ICollection.IsSynchronized => true; 91object ICollection.SyncRoot => _set; 347void ICollection.CopyTo(Array array, int index)
ImmutableSegmentedList`1.cs (3)
94bool ICollection.IsSynchronized => true; 96object ICollection.SyncRoot => _list; 685void ICollection.CopyTo(Array array, int index)
ImmutableSegmentedList`1+Builder.cs (3)
32bool ICollection.IsSynchronized => ICollectionCalls.IsSynchronized(ref _builder); 34object ICollection.SyncRoot => this; 245void ICollection.CopyTo(Array array, int index)
ImmutableSegmentedList`1+ValueBuilder.cs (4)
43readonly bool ICollection.IsSynchronized => false; 45readonly object ICollection.SyncRoot => throw new NotSupportedException(); 354readonly void ICollection.CopyTo(Array array, int index) 355=> ((ICollection)ReadOnlyList).CopyTo(array, index);
Internal\ICollectionCalls.cs (3)
11/// Provides static methods to invoke <see cref="ICollection"/> members on value types that explicitly implement the 22where TCollection : ICollection 26where TCollection : ICollection
SegmentedArray`1.cs (1)
122int ICollection.Count => Length;
SegmentedDictionary`2.cs (13)
873void ICollection.CopyTo(Array array, int index) 1039bool ICollection.IsSynchronized => false; 1041object ICollection.SyncRoot => this; 1047ICollection IDictionary.Keys => Keys; 1049ICollection IDictionary.Values => Values; 1368void ICollection.CopyTo(Array array, int index) 1424bool ICollection.IsSynchronized => false; 1426object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 1576void ICollection.CopyTo(Array array, int index) 1632bool ICollection.IsSynchronized => false; 1634object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot;
SegmentedList`1.cs (3)
189bool ICollection.IsSynchronized => false; 192object ICollection.SyncRoot => this; 452void ICollection.CopyTo(Array array, int arrayIndex)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
23TryGetNoArgInt32Property(namedType, nameof(ICollection.Count));
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\Helpers.cs (1)
23TryGetNoArgInt32Property(namedType, nameof(ICollection.Count));
Microsoft.CodeAnalysis.Scripting (3)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (3)
156ICollection collection; 157if ((collection = obj as ICollection) != null) 540private void FormatCollectionHeader(Builder result, ICollection collection)
Microsoft.CodeAnalysis.Scripting.TestUtilities (2)
ObjectFormatterFixtures\Custom.cs (2)
395public ICollection Keys 404public ICollection Values
Microsoft.CodeAnalysis.UnitTests (46)
Collections\ImmutableDictionaryBuilderTestBase.cs (2)
238var collection = (ICollection)builder;
Collections\ImmutableDictionaryTestBase.cs (3)
140((ICollection)Empty<string, int>()).CopyTo(Array.Empty<object>(), 0); 142var dictionary = (ICollection)Empty<string, int>().Add("a", 1);
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (2)
293var nonGeneric = (ICollection)collection;
Collections\ImmutableListTestBase.cs (4)
77((ICollection)this.GetListQuery(ImmutableSegmentedList<int>.Empty)).CopyTo(array, 0); 107((ICollection)GetListQuery(list)).CopyTo(array, 0); 512var collection = (ICollection)this.GetEnumerableOf<int>();
Collections\ImmutableSegmentedListBuilderTest.cs (1)
304ICollection collection = ImmutableSegmentedList.Create<int>().ToBuilder();
Collections\ImmutableSegmentedListTest.cs (1)
738ICollection collection = ImmutableSegmentedList.Create<int>();
Collections\ImmutableSetTest.cs (3)
192ICollection builder = (ICollection)this.Empty<string>(); 196builder = (ICollection)this.Empty<string>().Add("a");
Collections\List\CollectionAsserts.cs (4)
20public static void Equal(ICollection expected, ICollection actual) 72public static void EqualUnordered(ICollection expected, ICollection actual)
Collections\List\ICollection.NonGeneric.Tests.cs (21)
31protected abstract ICollection NonGenericICollectionFactory(); 38protected virtual ICollection NonGenericICollectionFactory(int count) 40ICollection collection = NonGenericICollectionFactory(); 51protected abstract void AddToCollection(ICollection collection, int numberOfItemsToAdd); 122ICollection collection = NonGenericICollectionFactory(count); 134ICollection collection = NonGenericICollectionFactory(count); 146ICollection collection = NonGenericICollectionFactory(count); 164ICollection collection1 = NonGenericICollectionFactory(count); 165ICollection collection2 = NonGenericICollectionFactory(count); 181ICollection collection = NonGenericICollectionFactory(count); 191ICollection collection = NonGenericICollectionFactory(count); 202ICollection collection = NonGenericICollectionFactory(count); 215ICollection collection = NonGenericICollectionFactory(count); 228ICollection collection = NonGenericICollectionFactory(count); 241ICollection collection = NonGenericICollectionFactory(count); 250ICollection collection = NonGenericICollectionFactory(count); 260ICollection collection = NonGenericICollectionFactory(count); 272ICollection collection = NonGenericICollectionFactory(count); 284ICollection collection = NonGenericICollectionFactory(count); 294ICollection collection = NonGenericICollectionFactory(count); 306ICollection collection = NonGenericICollectionFactory(count);
Collections\List\IList.NonGeneric.Tests.cs (3)
99protected override ICollection NonGenericICollectionFactory() => NonGenericIListFactory(); 101protected override ICollection NonGenericICollectionFactory(int count) => NonGenericIListFactory(count); 185protected override void AddToCollection(ICollection collection, int numberOfItemsToAdd) => AddToCollection((IList)collection, numberOfItemsToAdd);
Collections\SegmentedArrayTests.cs (2)
59Assert.Equal(0, ((ICollection)data).Count); 131Assert.Equal(length, ((ICollection)data).Count);
Microsoft.CodeAnalysis.Workspaces (71)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
289if (source is ICollection collection)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (6)
106ICollection IDictionary.Keys => Keys; 108ICollection IDictionary.Values => Values; 114object ICollection.SyncRoot => _dictionary; 116bool ICollection.IsSynchronized => true; 345void ICollection.CopyTo(Array array, int index) 346=> ((ICollection)_dictionary).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (5)
49ICollection IDictionary.Keys => Keys; 51ICollection IDictionary.Values => Values; 57object ICollection.SyncRoot => this; 59bool ICollection.IsSynchronized => ICollectionCalls.IsSynchronized(ref _builder); 144void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (5)
30bool ICollection.IsSynchronized => false; 32object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 52void ICollection.CopyTo(Array array, int index) 53=> ((ICollection)_dictionary.ReadOnlyDictionary.Keys).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (5)
30bool ICollection.IsSynchronized => false; 32object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 52void ICollection.CopyTo(Array array, int index) 53=> ((ICollection)_dictionary.ReadOnlyDictionary.Values).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+KeyCollection.cs (5)
26bool ICollection.IsSynchronized => true; 28object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 45void ICollection.CopyTo(Array array, int index) 46=> ((ICollection)_dictionary._dictionary.Keys).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (6)
70readonly ICollection IDictionary.Keys => throw new NotSupportedException(); 72readonly ICollection IDictionary.Values => throw new NotSupportedException(); 78readonly object ICollection.SyncRoot => throw new NotSupportedException(); 80readonly bool ICollection.IsSynchronized => false; 255readonly void ICollection.CopyTo(Array array, int index) 256=> ((ICollection)ReadOnlyDictionary).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueCollection.cs (5)
26bool ICollection.IsSynchronized => true; 28object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 45void ICollection.CopyTo(Array array, int index) 46=> ((ICollection)_dictionary._dictionary.Values).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (3)
89bool ICollection.IsSynchronized => true; 91object ICollection.SyncRoot => _set; 347void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (3)
94bool ICollection.IsSynchronized => true; 96object ICollection.SyncRoot => _list; 685void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (3)
32bool ICollection.IsSynchronized => ICollectionCalls.IsSynchronized(ref _builder); 34object ICollection.SyncRoot => this; 245void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (4)
43readonly bool ICollection.IsSynchronized => false; 45readonly object ICollection.SyncRoot => throw new NotSupportedException(); 354readonly void ICollection.CopyTo(Array array, int index) 355=> ((ICollection)ReadOnlyList).CopyTo(array, index);
src\Dependencies\Collections\Internal\ICollectionCalls.cs (3)
11/// Provides static methods to invoke <see cref="ICollection"/> members on value types that explicitly implement the 22where TCollection : ICollection 26where TCollection : ICollection
src\Dependencies\Collections\SegmentedArray`1.cs (1)
122int ICollection.Count => Length;
src\Dependencies\Collections\SegmentedDictionary`2.cs (13)
873void ICollection.CopyTo(Array array, int index) 1039bool ICollection.IsSynchronized => false; 1041object ICollection.SyncRoot => this; 1047ICollection IDictionary.Keys => Keys; 1049ICollection IDictionary.Values => Values; 1368void ICollection.CopyTo(Array array, int index) 1424bool ICollection.IsSynchronized => false; 1426object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 1576void ICollection.CopyTo(Array array, int index) 1632bool ICollection.IsSynchronized => false; 1634object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot;
src\Dependencies\Collections\SegmentedList`1.cs (3)
189bool ICollection.IsSynchronized => false; 192object ICollection.SyncRoot => this; 452void ICollection.CopyTo(Array array, int arrayIndex)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (71)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
289if (source is ICollection collection)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2.cs (6)
106ICollection IDictionary.Keys => Keys; 108ICollection IDictionary.Values => Values; 114object ICollection.SyncRoot => _dictionary; 116bool ICollection.IsSynchronized => true; 345void ICollection.CopyTo(Array array, int index) 346=> ((ICollection)_dictionary).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder.cs (5)
49ICollection IDictionary.Keys => Keys; 51ICollection IDictionary.Values => Values; 57object ICollection.SyncRoot => this; 59bool ICollection.IsSynchronized => ICollectionCalls.IsSynchronized(ref _builder); 144void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (5)
30bool ICollection.IsSynchronized => false; 32object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 52void ICollection.CopyTo(Array array, int index) 53=> ((ICollection)_dictionary.ReadOnlyDictionary.Keys).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (5)
30bool ICollection.IsSynchronized => false; 32object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 52void ICollection.CopyTo(Array array, int index) 53=> ((ICollection)_dictionary.ReadOnlyDictionary.Values).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+KeyCollection.cs (5)
26bool ICollection.IsSynchronized => true; 28object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 45void ICollection.CopyTo(Array array, int index) 46=> ((ICollection)_dictionary._dictionary.Keys).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueBuilder.cs (6)
70readonly ICollection IDictionary.Keys => throw new NotSupportedException(); 72readonly ICollection IDictionary.Values => throw new NotSupportedException(); 78readonly object ICollection.SyncRoot => throw new NotSupportedException(); 80readonly bool ICollection.IsSynchronized => false; 255readonly void ICollection.CopyTo(Array array, int index) 256=> ((ICollection)ReadOnlyDictionary).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedDictionary`2+ValueCollection.cs (5)
26bool ICollection.IsSynchronized => true; 28object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 45void ICollection.CopyTo(Array array, int index) 46=> ((ICollection)_dictionary._dictionary.Values).CopyTo(array, index);
src\Dependencies\Collections\ImmutableSegmentedHashSet`1.cs (3)
89bool ICollection.IsSynchronized => true; 91object ICollection.SyncRoot => _set; 347void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedList`1.cs (3)
94bool ICollection.IsSynchronized => true; 96object ICollection.SyncRoot => _list; 685void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedList`1+Builder.cs (3)
32bool ICollection.IsSynchronized => ICollectionCalls.IsSynchronized(ref _builder); 34object ICollection.SyncRoot => this; 245void ICollection.CopyTo(Array array, int index)
src\Dependencies\Collections\ImmutableSegmentedList`1+ValueBuilder.cs (4)
43readonly bool ICollection.IsSynchronized => false; 45readonly object ICollection.SyncRoot => throw new NotSupportedException(); 354readonly void ICollection.CopyTo(Array array, int index) 355=> ((ICollection)ReadOnlyList).CopyTo(array, index);
src\Dependencies\Collections\Internal\ICollectionCalls.cs (3)
11/// Provides static methods to invoke <see cref="ICollection"/> members on value types that explicitly implement the 22where TCollection : ICollection 26where TCollection : ICollection
src\Dependencies\Collections\SegmentedArray`1.cs (1)
122int ICollection.Count => Length;
src\Dependencies\Collections\SegmentedDictionary`2.cs (13)
873void ICollection.CopyTo(Array array, int index) 1039bool ICollection.IsSynchronized => false; 1041object ICollection.SyncRoot => this; 1047ICollection IDictionary.Keys => Keys; 1049ICollection IDictionary.Values => Values; 1368void ICollection.CopyTo(Array array, int index) 1424bool ICollection.IsSynchronized => false; 1426object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 1576void ICollection.CopyTo(Array array, int index) 1632bool ICollection.IsSynchronized => false; 1634object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot;
src\Dependencies\Collections\SegmentedList`1.cs (3)
189bool ICollection.IsSynchronized => false; 192object ICollection.SyncRoot => this; 452void ICollection.CopyTo(Array array, int arrayIndex)
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
177|| sysType == typeof(System.Collections.ICollection)
Microsoft.Extensions.Compliance.Redaction (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
119case ICollection c:
Microsoft.Extensions.Diagnostics.Probes (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
119case ICollection c:
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
119case ICollection c:
Microsoft.Extensions.FileSystemGlobbing (1)
MatcherExtensions.cs (1)
61List<string> result = matches is ICollection matchCollection ? new(matchCollection.Count) : new();
Microsoft.Extensions.Http.Resilience (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
119case ICollection c:
Microsoft.Extensions.Telemetry (1)
src\Shared\Data.Validation\LengthAttribute.cs (1)
119case ICollection c:
Microsoft.Maui.Controls (9)
IndicatorView\IndicatorView.cs (1)
175 if (sender is ICollection collection)
ListProxy.cs (5)
15 readonly ICollection _collection; 38 _collection = enumerable as ICollection; 428 bool ICollection.IsSynchronized 433 object ICollection.SyncRoot 438 void ICollection.CopyTo(Array array, int index)
TemplatedItemsList.cs (3)
221 void ICollection.CopyTo(Array array, int arrayIndex) 226 bool ICollection.IsSynchronized 231 object ICollection.SyncRoot
Microsoft.VisualBasic.Core (5)
Microsoft\VisualBasic\Collection.vb (5)
605Private Function ICollectionGetEnumerator() As IEnumerator Implements ICollection.GetEnumerator 609Private ReadOnly Property ICollectionCount() As Integer Implements ICollection.Count 615Private ReadOnly Property ICollectionIsSynchronized() As Boolean Implements ICollection.IsSynchronized 621Private ReadOnly Property ICollectionSyncRoot() As Object Implements ICollection.SyncRoot 639Private Sub ICollectionCopyTo(ByVal [array] As System.Array, ByVal index As Integer) Implements ICollection.CopyTo
MSBuild (16)
CopyOnWriteDictionary.cs (8)
144ICollection IDictionary.Keys => (ICollection)Keys; 149ICollection IDictionary.Values => (ICollection)Values; 154int ICollection.Count => Count; 159bool ICollection.IsSynchronized => false; 164object ICollection.SyncRoot => this; 358void ICollection.CopyTo(Array array, int index)
ReadOnlyEmptyCollection.cs (3)
69bool ICollection.IsSynchronized 77object ICollection.SyncRoot 141void ICollection.CopyTo(Array array, int index)
ReadOnlyEmptyDictionary.cs (4)
117ICollection IDictionary.Keys 119get { return (ICollection)((IDictionary<K, V>)this).Keys; } 125ICollection IDictionary.Values 127get { return (ICollection)((IDictionary<K, V>)this).Values; }
TaskParameter.cs (1)
789public ICollection MetadataNames
MSBuildTaskHost (19)
CopyOnWriteDictionary.cs (8)
144ICollection IDictionary.Keys => (ICollection)Keys; 149ICollection IDictionary.Values => (ICollection)Values; 154int ICollection.Count => Count; 159bool ICollection.IsSynchronized => false; 164object ICollection.SyncRoot => this; 358void ICollection.CopyTo(Array array, int index)
Immutable\ImmutableDictionary.cs (3)
44ICollection IDictionary.Keys => _backing.Keys; 45ICollection IDictionary.Values => _backing.Values; 101void ICollection.CopyTo(Array array, int arrayIndex)
ReadOnlyEmptyCollection.cs (3)
69bool ICollection.IsSynchronized 77object ICollection.SyncRoot 141void ICollection.CopyTo(Array array, int index)
ReadOnlyEmptyDictionary.cs (4)
117ICollection IDictionary.Keys 119get { return (ICollection)((IDictionary<K, V>)this).Keys; } 125ICollection IDictionary.Values 127get { return (ICollection)((IDictionary<K, V>)this).Values; }
TaskParameter.cs (1)
789public ICollection MetadataNames
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
104[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.ICollection))]
netstandard (1)
netstandard.cs (1)
135[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.ICollection))]
PresentationBuildTasks (3)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\ParserStack.cs (1)
49private ParserStack(ICollection collection) : base(collection)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (2)
488public ICollection Keys 513public ICollection Values
PresentationCore (252)
MS\Internal\Ink\ExtendedPropertyCollection.cs (2)
194/// <seealso cref="System.Collections.ICollection.Count"/> 289/// <seealso cref="System.Collections.ICollection.Count"/>
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
35lock (((ICollection)_fileExtensionToMimeType).SyncRoot)
System\Windows\FreezableCollection.cs (5)
468void ICollection.CopyTo(Array array, int index) 501bool ICollection.IsSynchronized 511object ICollection.SyncRoot 651ICollection collectionAsICollection = enumerable as ICollection;
System\Windows\Generated\TextDecorationCollection.cs (5)
376void ICollection.CopyTo(Array array, int index) 409bool ICollection.IsSynchronized 419object ICollection.SyncRoot 897ICollection icollection = collection as ICollection;
System\Windows\Input\Command\CommandBindingCollection.cs (3)
65void ICollection.CopyTo(System.Array array, int index) 67((ICollection)_innerCBList)?.CopyTo(array, index); 180public void AddRange(ICollection collection)
System\Windows\Input\Command\InputBindingCollection.cs (4)
43this.AddRange(inputBindings as ICollection); 73void ICollection.CopyTo(System.Array array, int index) 77((ICollection)_innerBindingList).CopyTo(array, index); 242public void AddRange(ICollection collection)
System\Windows\Input\Command\InputGestureCollection.cs (4)
43this.AddRange(inputGestures as ICollection); 64void ICollection.CopyTo(System.Array array, int index) 67((ICollection)_innerGestureList).CopyTo(array, index); 268public void AddRange(ICollection collection)
System\Windows\Input\InputManager.cs (2)
246public ICollection InputProviders 258internal ICollection UnsecureInputProviders
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (2)
49void ICollection.CopyTo(Array array, int index) 82/// <seealso cref="System.Collections.ICollection.SyncRoot"/>
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\TimelineCollection.cs (5)
375void ICollection.CopyTo(Array array, int index) 408bool ICollection.IsSynchronized 418object ICollection.SyncRoot 905ICollection icollection = collection as ICollection;
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (5)
219/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 232/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 240return ((ICollection)_keyFrames).SyncRoot; 248void ICollection.CopyTo(Array array, int index) 252((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\CharacterMetricsDictionary.cs (5)
162bool SC.ICollection.IsSynchronized 167object SC.ICollection.SyncRoot 172void SC.ICollection.CopyTo(Array array, int index) 284SC.ICollection SC.IDictionary.Keys 289SC.ICollection SC.IDictionary.Values
System\Windows\Media\CultureSpecificStringDictionary.cs (5)
131bool SC.ICollection.IsSynchronized 136object SC.ICollection.SyncRoot 141void SC.ICollection.CopyTo(Array array, int index) 257SC.ICollection SC.IDictionary.Keys 265SC.ICollection SC.IDictionary.Values
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (5)
375void ICollection.CopyTo(Array array, int index) 408bool ICollection.IsSynchronized 418object ICollection.SyncRoot 896ICollection icollection = collection as ICollection;
System\Windows\Media\FamilyMapCollection.cs (3)
87void SC.ICollection.CopyTo(Array array, int index) 108bool SC.ICollection.IsSynchronized 113object SC.ICollection.SyncRoot
System\Windows\Media\FamilyTypefaceCollection.cs (3)
90void SC.ICollection.CopyTo(Array array, int index) 95bool SC.ICollection.IsSynchronized 100object SC.ICollection.SyncRoot
System\Windows\Media\Generated\DoubleCollection.cs (5)
343void ICollection.CopyTo(Array array, int index) 376bool ICollection.IsSynchronized 386object ICollection.SyncRoot 920ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\DrawingCollection.cs (5)
388void ICollection.CopyTo(Array array, int index) 421bool ICollection.IsSynchronized 431object ICollection.SyncRoot 936ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\GeneralTransformCollection.cs (5)
373void ICollection.CopyTo(Array array, int index) 406bool ICollection.IsSynchronized 416object ICollection.SyncRoot 894ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\GeometryCollection.cs (5)
388void ICollection.CopyTo(Array array, int index) 421bool ICollection.IsSynchronized 431object ICollection.SyncRoot 936ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\GradientStopCollection.cs (5)
374void ICollection.CopyTo(Array array, int index) 407bool ICollection.IsSynchronized 417object ICollection.SyncRoot 998ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\Int32Collection.cs (5)
342void ICollection.CopyTo(Array array, int index) 375bool ICollection.IsSynchronized 385object ICollection.SyncRoot 919ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\PathFigureCollection.cs (5)
379void ICollection.CopyTo(Array array, int index) 412bool ICollection.IsSynchronized 422object ICollection.SyncRoot 989ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\PathSegmentCollection.cs (5)
373void ICollection.CopyTo(Array array, int index) 406bool ICollection.IsSynchronized 416object ICollection.SyncRoot 894ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\PointCollection.cs (5)
342void ICollection.CopyTo(Array array, int index) 375bool ICollection.IsSynchronized 385object ICollection.SyncRoot 921ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\TextEffectCollection.cs (5)
373void ICollection.CopyTo(Array array, int index) 406bool ICollection.IsSynchronized 416object ICollection.SyncRoot 894ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\TransformCollection.cs (5)
388void ICollection.CopyTo(Array array, int index) 421bool ICollection.IsSynchronized 431object ICollection.SyncRoot 936ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\VectorCollection.cs (5)
342void ICollection.CopyTo(Array array, int index) 375bool ICollection.IsSynchronized 385object ICollection.SyncRoot 921ICollection icollection = collection as ICollection;
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (5)
373void ICollection.CopyTo(Array array, int index) 406bool ICollection.IsSynchronized 416object ICollection.SyncRoot 894ICollection icollection = collection as ICollection;
System\Windows\Media3D\Generated\MaterialCollection.cs (5)
388void ICollection.CopyTo(Array array, int index) 421bool ICollection.IsSynchronized 431object ICollection.SyncRoot 936ICollection icollection = collection as ICollection;
System\Windows\Media3D\Generated\Model3DCollection.cs (5)
388void ICollection.CopyTo(Array array, int index) 421bool ICollection.IsSynchronized 431object ICollection.SyncRoot 936ICollection icollection = collection as ICollection;
System\Windows\Media3D\Generated\Point3DCollection.cs (5)
343void ICollection.CopyTo(Array array, int index) 376bool ICollection.IsSynchronized 386object ICollection.SyncRoot 923ICollection icollection = collection as ICollection;
System\Windows\Media3D\Generated\Transform3DCollection.cs (5)
388void ICollection.CopyTo(Array array, int index) 421bool ICollection.IsSynchronized 431object ICollection.SyncRoot 936ICollection icollection = collection as ICollection;
System\Windows\Media3D\Generated\Vector3DCollection.cs (5)
343void ICollection.CopyTo(Array array, int index) 376bool ICollection.IsSynchronized 386object ICollection.SyncRoot 923ICollection icollection = collection as ICollection;
System\Windows\Media3D\Visual3DCollection.cs (3)
145void ICollection.CopyTo(Array array, int index) 270bool ICollection.IsSynchronized 281object ICollection.SyncRoot
PresentationFramework (194)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
340ICollection nodes = null; 345nodes = (ICollection)selProcessor.GetSelectedNodes(selection);
MS\Internal\Annotations\Anchoring\PathNode.cs (1)
140internal static PathNode BuildPathForElements(ICollection nodes)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
480ICollection contents = cargo.Contents;
MS\Internal\Controls\InnerItemCollectionView.cs (3)
331bool ICollection.IsSynchronized 340object ICollection.SyncRoot 348void ICollection.CopyTo(Array array, int index)
MS\Internal\Data\CollectionViewGroupRoot.cs (8)
247ICollection ic = name as ICollection; 479ICollection nameList; 497else if ((nameList = name as ICollection) == null) 577ICollection nameList; 584else if ((nameList = name as ICollection) == null) 685ICollection nameList; 692else if ((nameList = name as ICollection) == null)
MS\Internal\Data\IndexedEnumerable.cs (5)
263internal ICollection Collection 301ICollection ic = collection as ICollection; 470_collection = collection as ICollection; 687private ICollection _collection;
MS\Internal\Data\StaticPropertyChangedEventManager.cs (1)
457ICollection ic = _dict.Keys;
MS\Internal\Data\ValueChangedEventManager.cs (1)
151ICollection ic = dict.Keys;
MS\Internal\Data\ValueTable.cs (1)
267ICollection keys = _table.Keys;
MS\Internal\Data\XmlBindingWorker.cs (1)
65if (CollectionView == null && DataItem is ICollection)
MS\Internal\Documents\ContentElementCollection.cs (15)
52/// <see cref="ICollection.CopyTo"/> 55/// <see cref="ICollection.CopyTo"/> 58/// <see cref="ICollection.CopyTo"/> 61/// <see cref="ICollection.CopyTo"/> 63/// <param name="array"><see cref="ICollection.CopyTo"/></param> 64/// <param name="index"><see cref="ICollection.CopyTo"/></param> 88/// <see cref="ICollection.CopyTo"/> 91/// <see cref="ICollection.CopyTo"/> 94/// <see cref="ICollection.CopyTo"/> 96/// <param name="array"><see cref="ICollection.CopyTo"/></param> 97/// <param name="index"><see cref="ICollection.CopyTo"/></param> 99/// <see cref="ICollection.CopyTo"/> 535/// <see cref="ICollection.Count"/> 558/// <see cref="ICollection.IsSynchronized"/> 572/// <see cref="ICollection.SyncRoot"/>
MS\Internal\IO\Packaging\XamlFilter.cs (2)
313ICollection keys = _xamlElementContentDescriptorDictionary.Keys; 314ICollection values = _xamlElementContentDescriptorDictionary.Values;
MS\Internal\IWeakHashtable.cs (1)
14ICollection Keys { get; }
MS\Internal\TraceData.cs (1)
260ICollection ic => string.Create(TypeConverterHelper.InvariantEnglishUS, $"{type.Name} (hash={AvTrace.GetHashCodeHelper(o)} Count={ic.Count})"),
System\Windows\Controls\ColumnDefinition.cs (12)
72/// <see cref="ICollection.CopyTo"/> 74void ICollection.CopyTo(Array array, int index) 98/// <see cref="ICollection<T>.CopyTo"/> 135/// <see cref="ICollection<T>.Add"/> 145/// <see cref="ICollection<T>.Clear"/> 180/// <see cref="ICollection<T>.Contains"/> 266/// <see cref="ICollection<T>.Remove"/> 369/// <see cref="ICollection<T>.Count"/> 370/// <seealso cref="ICollection.Count"/> 390/// <see cref="ICollection<T>.IsReadOnly"/> 403/// <see cref="ICollection.IsSynchronized"/> 411/// <see cref="ICollection.SyncRoot"/>
System\Windows\Controls\CustomDictionarySources.cs (7)
272void ICollection.CopyTo(Array array, int index) 274((ICollection)_uriList).CopyTo(array, index); 277int ICollection.Count 282bool ICollection.IsSynchronized 286return ((ICollection)_uriList).IsSynchronized; 290object ICollection.SyncRoot 294return ((ICollection)_uriList).SyncRoot;
System\Windows\Controls\ItemCollection.cs (2)
728bool ICollection.IsSynchronized 744object ICollection.SyncRoot
System\Windows\Controls\RowDefinition.cs (12)
67/// <see cref="ICollection.CopyTo"/> 69void ICollection.CopyTo(Array array, int index) 93/// <see cref="ICollection<T>.CopyTo"/> 130/// <see cref="ICollection<T>.Add"/> 140/// <see cref="ICollection<T>.Clear"/> 175/// <see cref="ICollection<T>.Contains"/> 261/// <see cref="ICollection<T>.Remove"/> 364/// <see cref="ICollection<T>.Count"/> 365/// <seealso cref="ICollection.Count"/> 385/// <see cref="ICollection<T>.IsReadOnly"/> 398/// <see cref="ICollection.IsSynchronized"/> 406/// <see cref="ICollection.SyncRoot"/>
System\Windows\Data\CollectionContainer.cs (6)
90ICollection collection = Collection as ICollection; 134ICollection coll = View as ICollection; 157ICollection coll = View as ICollection;
System\Windows\Data\CompositeCollection.cs (2)
328bool ICollection.IsSynchronized 340object ICollection.SyncRoot
System\Windows\Data\ListCollectionView.cs (3)
49ShadowCollection = new ArrayList((ICollection)SourceCollection); 103ShadowCollection = new ArrayList((ICollection)SourceCollection); 1620ShadowCollection = new ArrayList((ICollection)SourceCollection);
System\Windows\Documents\AdornerLayer.cs (1)
790ICollection keyCollection = ElementMap.Keys;
System\Windows\Documents\LinkTarget.cs (1)
98((ICollection)this).CopyTo(array, index);
System\Windows\Documents\TableCellCollection.cs (15)
47/// <see cref="ICollection.CopyTo"/> 50/// <see cref="ICollection.CopyTo"/> 53/// <see cref="ICollection.CopyTo"/> 56/// <see cref="ICollection.CopyTo"/> 58/// <param name="array"><see cref="ICollection.CopyTo"/></param> 59/// <param name="index"><see cref="ICollection.CopyTo"/></param> 69/// <see cref="ICollection.CopyTo"/> 72/// <see cref="ICollection.CopyTo"/> 75/// <see cref="ICollection.CopyTo"/> 77/// <param name="array"><see cref="ICollection.CopyTo"/></param> 78/// <param name="index"><see cref="ICollection.CopyTo"/></param> 80/// <see cref="ICollection.CopyTo"/> 349/// <see cref="ICollection.Count"/> 371/// <see cref="ICollection.IsSynchronized"/> 385/// <see cref="ICollection.SyncRoot"/>
System\Windows\Documents\TableColumnCollection.cs (15)
47/// <see cref="ICollection.CopyTo"/> 50/// <see cref="ICollection.CopyTo"/> 53/// <see cref="ICollection.CopyTo"/> 56/// <see cref="ICollection.CopyTo"/> 58/// <param name="array"><see cref="ICollection.CopyTo"/></param> 59/// <param name="index"><see cref="ICollection.CopyTo"/></param> 69/// <see cref="ICollection.CopyTo"/> 72/// <see cref="ICollection.CopyTo"/> 75/// <see cref="ICollection.CopyTo"/> 77/// <param name="array"><see cref="ICollection.CopyTo"/></param> 78/// <param name="index"><see cref="ICollection.CopyTo"/></param> 80/// <see cref="ICollection.CopyTo"/> 356/// <see cref="ICollection.Count"/> 379/// <see cref="ICollection.IsSynchronized"/> 393/// <see cref="ICollection.SyncRoot"/>
System\Windows\Documents\TableRowCollection.cs (15)
47/// <see cref="ICollection.CopyTo"/> 50/// <see cref="ICollection.CopyTo"/> 53/// <see cref="ICollection.CopyTo"/> 56/// <see cref="ICollection.CopyTo"/> 58/// <param name="array"><see cref="ICollection.CopyTo"/></param> 59/// <param name="index"><see cref="ICollection.CopyTo"/></param> 69/// <see cref="ICollection.CopyTo"/> 72/// <see cref="ICollection.CopyTo"/> 75/// <see cref="ICollection.CopyTo"/> 77/// <param name="array"><see cref="ICollection.CopyTo"/></param> 78/// <param name="index"><see cref="ICollection.CopyTo"/></param> 80/// <see cref="ICollection.CopyTo"/> 349/// <see cref="ICollection.Count"/> 371/// <see cref="ICollection.IsSynchronized"/> 385/// <see cref="ICollection.SyncRoot"/>
System\Windows\Documents\TableRowGroupCollection.cs (15)
47/// <see cref="ICollection.CopyTo"/> 50/// <see cref="ICollection.CopyTo"/> 53/// <see cref="ICollection.CopyTo"/> 56/// <see cref="ICollection.CopyTo"/> 58/// <param name="array"><see cref="ICollection.CopyTo"/></param> 59/// <param name="index"><see cref="ICollection.CopyTo"/></param> 69/// <see cref="ICollection.CopyTo"/> 72/// <see cref="ICollection.CopyTo"/> 75/// <see cref="ICollection.CopyTo"/> 77/// <param name="array"><see cref="ICollection.CopyTo"/></param> 78/// <param name="index"><see cref="ICollection.CopyTo"/></param> 80/// <see cref="ICollection.CopyTo"/> 349/// <see cref="ICollection.Count"/> 371/// <see cref="ICollection.IsSynchronized"/> 384/// <see cref="ICollection.SyncRoot"/>
System\Windows\Documents\TextElementCollection.cs (5)
144((ICollection)this).CopyTo(array, arrayIndex); 594void ICollection.CopyTo(Array array, int arrayIndex) 624int ICollection.Count 632bool ICollection.IsSynchronized 641object ICollection.SyncRoot
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (6)
188public ICollection Keys 197public ICollection Values 355void ICollection.CopyTo(Array array, int index) 365int ICollection.Count 370object ICollection.SyncRoot 375bool ICollection.IsSynchronized
System\Windows\Markup\ParserStack.cs (1)
49private ParserStack(ICollection collection) : base(collection)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (4)
78ICollection arguments; 114ICollection collection = value as ICollection; 352private bool TryGetConstructorInfoArguments(object instance, out ParameterInfo[] parameters, out ICollection arguments)
System\Windows\Markup\XmlnsDictionary.cs (2)
488public ICollection Keys 513public ICollection Values
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (5)
218/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 231/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 239return ((ICollection)_keyFrames).SyncRoot; 247void ICollection.CopyTo(Array array, int index) 251((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\ResourceDictionary.cs (15)
75lock(((ICollection)this).SyncRoot) 398lock(((ICollection)this).SyncRoot) 482lock(((ICollection)this).SyncRoot) 576public ICollection Keys 590public ICollection Values 611lock(((ICollection)this).SyncRoot) 672lock(((ICollection)this).SyncRoot) 803lock(((ICollection)this).SyncRoot) 853bool ICollection.IsSynchronized 861object ICollection.SyncRoot 902void ICollection.CopyTo(Array array, int arrayIndex) 2239int ICollection.Count 2247bool ICollection.IsSynchronized 2255object ICollection.SyncRoot 2263void ICollection.CopyTo(Array array, int index)
System\Windows\SystemResources.cs (2)
1882lock (((ICollection)Application.Current.Resources).SyncRoot) 1891lock (((ICollection)Application.Current.Resources).SyncRoot)
System\Windows\TriggerActionCollection.cs (4)
236void ICollection.CopyTo(Array array, int index) 238((ICollection)_rawList).CopyTo(array, index); 241object ICollection.SyncRoot 249bool ICollection.IsSynchronized
System\Windows\WindowCollection.cs (1)
90void ICollection.CopyTo(Array array, int index)
Shared (1)
Data.Validation\LengthAttribute.cs (1)
119case ICollection c:
Shared.Tests (2)
Data.Validation\LengthAttributeTests.cs (2)
203public ICollection? Names { get; set; } 206public ICollection? Addresses { get; set; }
System.CodeDom (8)
src\libraries\Common\src\System\IO\TempFileCollection.cs (4)
100void ICollection.CopyTo(Array array, int start) => _files.Keys.CopyTo(array, start); 106int ICollection.Count => _files.Count; 108object ICollection.SyncRoot => null; 110bool ICollection.IsSynchronized => false;
System\CodeDom\CodeNamespaceImportCollection.cs (4)
79int ICollection.Count => Count; 81bool ICollection.IsSynchronized => false; 83object ICollection.SyncRoot => null; 85void ICollection.CopyTo(Array array, int index) => _data.CopyTo(array, index);
System.Collections (57)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
51if (collection is ICollection nonGenericCollection)
System\Collections\Generic\LinkedList.cs (3)
440bool ICollection.IsSynchronized 445object ICollection.SyncRoot => this; 447void ICollection.CopyTo(Array array, int index)
System\Collections\Generic\OrderedDictionary.cs (13)
270ICollection IDictionary.Keys => Keys; 282ICollection IDictionary.Values => Values; 285bool ICollection.IsSynchronized => false; 288object ICollection.SyncRoot => this; 1276void ICollection.CopyTo(Array array, int index) 1485bool ICollection.IsSynchronized => false; 1488object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 1519void ICollection.CopyTo(Array array, int index) 1680bool ICollection.IsSynchronized => false; 1683object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 1828void ICollection.CopyTo(Array array, int index)
System\Collections\Generic\PriorityQueue.cs (3)
951object ICollection.SyncRoot => this; 952bool ICollection.IsSynchronized => false; 954void ICollection.CopyTo(Array array, int index)
System\Collections\Generic\SortedDictionary.cs (15)
271void ICollection.CopyTo(Array array, int index) 273((ICollection)_set).CopyTo(array, index); 286ICollection IDictionary.Keys 291ICollection IDictionary.Values 392bool ICollection.IsSynchronized 397object ICollection.SyncRoot 399get { return ((ICollection)_set).SyncRoot; } 550void ICollection.CopyTo(Array array, int index) 619bool ICollection.IsSynchronized 624object ICollection.SyncRoot 626get { return ((ICollection)_dictionary).SyncRoot; } 711void ICollection.CopyTo(Array array, int index) 780bool ICollection.IsSynchronized 785object ICollection.SyncRoot 787get { return ((ICollection)_dictionary).SyncRoot; }
System\Collections\Generic\SortedList.cs (13)
309ICollection IDictionary.Keys 345ICollection IDictionary.Values 380bool ICollection.IsSynchronized 386object ICollection.SyncRoot => this; 452void ICollection.CopyTo(Array array, int index) 1021bool ICollection.IsSynchronized 1026object ICollection.SyncRoot 1028get { return ((ICollection)_dict).SyncRoot; } 1052void ICollection.CopyTo(Array array, int arrayIndex) 1135bool ICollection.IsSynchronized 1140object ICollection.SyncRoot 1142get { return ((ICollection)_dict).SyncRoot; } 1166void ICollection.CopyTo(Array array, int index)
System\Collections\Generic\SortedSet.cs (6)
279bool ICollection.IsSynchronized => false; 281object ICollection.SyncRoot => this; 540void ICollection.CopyTo(Array array, int index) 1212if (other is ICollection c) 1236if (other is ICollection c && c.Count == 0) 1266if (other is ICollection c && c.Count == 0)
System\Collections\Generic\Stack.cs (3)
66bool ICollection.IsSynchronized => false; 68object ICollection.SyncRoot => this; 120void ICollection.CopyTo(Array array, int arrayIndex)
System.Collections.Concurrent (42)
System\Collections\Concurrent\BlockingCollection.cs (6)
112/// <summary>Gets a value indicating whether access to the <see cref="System.Collections.ICollection"/> is synchronized.</summary> 115bool ICollection.IsSynchronized 126/// cref="System.Collections.ICollection"/>. This property is not supported. 129object ICollection.SyncRoot 1539((ICollection)this).CopyTo(array, index); 1556void ICollection.CopyTo(Array array, int index)
System\Collections\Concurrent\ConcurrentBag.cs (9)
332/// Copies the elements of the <see cref="System.Collections.ICollection"/> to an <see 350/// -or- The number of elements in the source <see cref="System.Collections.ICollection"/> is 353/// cref="System.Collections.ICollection"/> cannot be cast automatically to the type of the 356void ICollection.CopyTo(Array array, int index) 582/// Gets a value indicating whether access to the <see cref="System.Collections.ICollection"/> is 585/// <value>true if access to the <see cref="System.Collections.ICollection"/> is synchronized 588bool ICollection.IsSynchronized => false; 592/// cref="System.Collections.ICollection"/>. This property is not supported. 595object ICollection.SyncRoot
System\Collections\Concurrent\ConcurrentDictionary.cs (17)
741/// cref="KeyValuePair{TKey,TValue}"/> elements copied from the <see cref="ICollection"/>. The array must have zero-based indexing. 748/// elements in the source <see cref="ICollection"/> is greater than the available space from <paramref name="index"/> to 1765/// Gets an <see cref="ICollection"/> containing the keys of the <see 1768/// <value>An <see cref="ICollection"/> containing the keys of the <see 1770ICollection IDictionary.Keys => GetKeys(); 1793/// Gets an <see cref="ICollection"/> containing the values in the <see 1796/// <value>An <see cref="ICollection"/> containing the values in the <see 1798ICollection IDictionary.Values => GetValues(); 1873/// Copies the elements of the <see cref="ICollection"/> to an array, starting 1877/// the <see cref="ICollection"/>. The array must have zero-based 1887/// cref="ICollection"/> 1890void ICollection.CopyTo(Array array, int index) 1939/// Gets a value indicating whether access to the <see cref="ICollection"/> is 1942/// <value>true if access to the <see cref="ICollection"/> is synchronized 1946bool ICollection.IsSynchronized => false; 1950/// cref="ICollection"/>. This property is not supported. 1953object ICollection.SyncRoot => throw new NotSupportedException(SR.ConcurrentCollection_SyncRoot_NotSupported);
System\Collections\Concurrent\ConcurrentStack.cs (10)
160/// Gets a value indicating whether access to the <see cref="System.Collections.ICollection"/> is 163/// <value>true if access to the <see cref="System.Collections.ICollection"/> is synchronized 166bool ICollection.IsSynchronized 177/// cref="System.Collections.ICollection"/>. This property is not supported. 180object ICollection.SyncRoot 201/// Copies the elements of the <see cref="System.Collections.ICollection"/> to an <see 219/// -or- The number of elements in the source <see cref="System.Collections.ICollection"/> is 222/// cref="System.Collections.ICollection"/> cannot be cast automatically to the type of the 225void ICollection.CopyTo(Array array, int index) 233((ICollection)ToList()).CopyTo(array, index);
System.Collections.Immutable (109)
System\Collections\Frozen\FrozenDictionary.cs (5)
297ICollection IDictionary.Keys => Keys; 314ICollection IDictionary.Values => Values; 355void ICollection.CopyTo(Array array, int index) 424bool ICollection.IsSynchronized => false; 427object ICollection.SyncRoot => this;
System\Collections\Frozen\FrozenSet.cs (3)
284void ICollection.CopyTo(Array array, int index) 299bool ICollection.IsSynchronized => false; 302object ICollection.SyncRoot => this;
System\Collections\Immutable\ImmutableArray_1.cs (7)
1293int ICollection.Count 1304/// See the <see cref="ICollection"/> interface. 1307bool ICollection.IsSynchronized 1320object ICollection.SyncRoot 1367/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 1369/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 1371void ICollection.CopyTo(Array array, int index)
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (11)
229ICollection IDictionary.Keys 240ICollection IDictionary.Values 250/// Gets an object that can be used to synchronize access to the <see cref="ICollection"/>. 252/// <returns>An object that can be used to synchronize access to the <see cref="ICollection"/>.</returns> 254object ICollection.SyncRoot 268/// Gets a value indicating whether access to the <see cref="ICollection"/> is synchronized (thread safe). 270/// <returns>true if access to the <see cref="ICollection"/> is synchronized (thread safe); otherwise, false.</returns> 272bool ICollection.IsSynchronized 339/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 341/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 343void ICollection.CopyTo(Array array, int arrayIndex)
System\Collections\Immutable\ImmutableDictionary_2.cs (11)
650ICollection IDictionary.Keys 661ICollection IDictionary.Values 745/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 747/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 749void ICollection.CopyTo(Array array, int arrayIndex) 766/// Gets an object that can be used to synchronize access to the <see cref="ICollection"/>. 768/// <returns>An object that can be used to synchronize access to the <see cref="ICollection"/>.</returns> 770object ICollection.SyncRoot 776/// Gets a value indicating whether access to the <see cref="ICollection"/> is synchronized (thread safe). 778/// <returns>true if access to the <see cref="ICollection"/> is synchronized (thread safe); otherwise, false.</returns> 780bool ICollection.IsSynchronized
System\Collections\Immutable\ImmutableExtensions.Minimal.cs (1)
35if (sequence is ICollection collection)
System\Collections\Immutable\ImmutableHashSet_1.cs (7)
128/// See <see cref="ICollection"/>. 131object ICollection.SyncRoot 137/// See the <see cref="ICollection"/> interface. 140bool ICollection.IsSynchronized 533/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 535/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 537void ICollection.CopyTo(Array array, int arrayIndex)
System\Collections\Immutable\ImmutableList_1.Builder.cs (9)
1138/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 1140/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 1142void ICollection.CopyTo(Array array, int arrayIndex) 1148/// Gets a value indicating whether access to the <see cref="ICollection"/> is synchronized (thread safe). 1150/// <returns>true if access to the <see cref="ICollection"/> is synchronized (thread safe); otherwise, false.</returns> 1152bool ICollection.IsSynchronized 1158/// Gets an object that can be used to synchronize access to the <see cref="ICollection"/>. 1160/// <returns>An object that can be used to synchronize access to the <see cref="ICollection"/>.</returns> 1162object ICollection.SyncRoot
System\Collections\Immutable\ImmutableList_1.cs (6)
149/// See <see cref="ICollection"/>. 152object ICollection.SyncRoot => this; 155/// See the <see cref="ICollection"/> interface. 161bool ICollection.IsSynchronized => true; 983/// See the <see cref="ICollection"/> interface. 985void System.Collections.ICollection.CopyTo(Array array, int arrayIndex) => _root.CopyTo(array, arrayIndex);
System\Collections\Immutable\ImmutableList_1.Node.cs (2)
905/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 907/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param>
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (11)
240ICollection IDictionary.Keys 251ICollection IDictionary.Values 261/// Gets an object that can be used to synchronize access to the <see cref="ICollection"/>. 263/// <returns>An object that can be used to synchronize access to the <see cref="ICollection"/>.</returns> 265object ICollection.SyncRoot 279/// Gets a value indicating whether access to the <see cref="ICollection"/> is synchronized (thread safe). 281/// <returns>true if access to the <see cref="ICollection"/> is synchronized (thread safe); otherwise, false.</returns> 283bool ICollection.IsSynchronized 414/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 416/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 418void ICollection.CopyTo(Array array, int index)
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (11)
562ICollection IDictionary.Keys 573ICollection IDictionary.Values 649/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 651/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 653void ICollection.CopyTo(Array array, int index) 663/// Gets an object that can be used to synchronize access to the <see cref="ICollection"/>. 665/// <returns>An object that can be used to synchronize access to the <see cref="ICollection"/>.</returns> 667object ICollection.SyncRoot 673/// Gets a value indicating whether access to the <see cref="ICollection"/> is synchronized (thread safe). 675/// <returns>true if access to the <see cref="ICollection"/> is synchronized (thread safe); otherwise, false.</returns> 677bool ICollection.IsSynchronized
System\Collections\Immutable\ImmutableSortedSet_1.Builder.cs (9)
484/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 486/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 488void ICollection.CopyTo(Array array, int arrayIndex) 494/// Gets a value indicating whether access to the <see cref="ICollection"/> is synchronized (thread safe). 496/// <returns>true if access to the <see cref="ICollection"/> is synchronized (thread safe); otherwise, false.</returns> 498bool ICollection.IsSynchronized 504/// Gets an object that can be used to synchronize access to the <see cref="ICollection"/>. 506/// <returns>An object that can be used to synchronize access to the <see cref="ICollection"/>.</returns> 508object ICollection.SyncRoot
System\Collections\Immutable\ImmutableSortedSet_1.cs (7)
802/// See <see cref="ICollection"/>. 805object ICollection.SyncRoot 811/// See the <see cref="ICollection"/> interface. 814bool ICollection.IsSynchronized 938/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 940/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 942void ICollection.CopyTo(Array array, int index)
System\Collections\Immutable\KeysOrValuesCollectionAccessor.cs (9)
127/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 129/// <param name="array">The one-dimensional <see cref="Array"/> that is the destination of the elements copied from <see cref="ICollection"/>. The <see cref="Array"/> must have zero-based indexing.</param> 131void ICollection.CopyTo(Array array, int arrayIndex) 144/// Gets a value indicating whether access to the <see cref="ICollection"/> is synchronized (thread safe). 146/// <returns>true if access to the <see cref="ICollection"/> is synchronized (thread safe); otherwise, false.</returns> 148bool ICollection.IsSynchronized 154/// Gets an object that can be used to synchronize access to the <see cref="ICollection"/>. 156/// <returns>An object that can be used to synchronize access to the <see cref="ICollection"/>.</returns> 158object ICollection.SyncRoot
System.Collections.NonGeneric (14)
System\Collections\CollectionBase.cs (3)
100bool ICollection.IsSynchronized 105object ICollection.SyncRoot 110void ICollection.CopyTo(Array array, int index)
System\Collections\DictionaryBase.cs (4)
44bool ICollection.IsSynchronized 49ICollection IDictionary.Keys 54object ICollection.SyncRoot 59ICollection IDictionary.Values
System\Collections\Queue.cs (1)
68public Queue(ICollection col) : this(col?.Count ?? throw new ArgumentNullException(nameof(col)))
System\Collections\ReadOnlyCollectionBase.cs (3)
28bool ICollection.IsSynchronized 33object ICollection.SyncRoot 38void ICollection.CopyTo(Array array, int index)
System\Collections\SortedList.cs (2)
241public virtual ICollection Keys 253public virtual ICollection Values
System\Collections\Stack.cs (1)
55public Stack(ICollection col) : this(col?.Count ?? throw new ArgumentNullException(nameof(col)))
System.Collections.Specialized (26)
System\Collections\Specialized\HybridDictionary.cs (2)
164public ICollection Keys 211public ICollection Values
System\Collections\Specialized\ListDictionary.cs (6)
109public ICollection Keys 143public ICollection Values 362void ICollection.CopyTo(Array array, int index) 375int ICollection.Count 388bool ICollection.IsSynchronized 396object ICollection.SyncRoot
System\Collections\Specialized\NameObjectCollectionBase.cs (7)
371void ICollection.CopyTo(Array array, int index) 391object ICollection.SyncRoot => this; 393bool ICollection.IsSynchronized 595void ICollection.CopyTo(Array array, int index) 615object ICollection.SyncRoot 617get { return ((ICollection)_coll).SyncRoot; } 621bool ICollection.IsSynchronized
System\Collections\Specialized\OrderedDictionary.cs (8)
118bool ICollection.IsSynchronized 129public ICollection Keys 146object ICollection.SyncRoot => this; 212public ICollection Values 556void ICollection.CopyTo(Array array, int index) 569int ICollection.Count => _objects.Count; 571bool ICollection.IsSynchronized => false; 573object ICollection.SyncRoot => _objects.SyncRoot;
System\Collections\Specialized\StringCollection.cs (1)
224void ICollection.CopyTo(Array array, int index)
System\Collections\Specialized\StringDictionary.cs (2)
84public virtual ICollection Keys 107public virtual ICollection Values
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MaxLengthAttribute.cs (1)
121if (value is ICollection collection)
System.ComponentModel.Composition (1)
Microsoft\Internal\Collections\CollectionServices.cs (1)
170if (source is ICollection collection)
System.ComponentModel.TypeConverter (80)
System\ComponentModel\AttributeCollection.cs (3)
331bool ICollection.IsSynchronized => false; 333object ICollection.SyncRoot => this; 335int ICollection.Count => Count;
System\ComponentModel\CollectionConverter.cs (1)
21if (destinationType == typeof(string) && value is ICollection)
System\ComponentModel\Design\DesignerCollection.cs (4)
57int ICollection.Count => Count; 59bool ICollection.IsSynchronized => false; 61object ICollection.SyncRoot => null!; 63void ICollection.CopyTo(Array array, int index) => _designers.CopyTo(array, index);
System\ComponentModel\Design\DesignerOptionService.cs (2)
327bool ICollection.IsSynchronized => false; 332object ICollection.SyncRoot => this;
System\ComponentModel\Design\IComponentDiscoveryService.cs (1)
19ICollection GetComponentTypes(IDesignerHost? designerHost, Type? baseType);
System\ComponentModel\Design\IEventPropertyService.cs (1)
24ICollection GetCompatibleMethods(EventDescriptor e);
System\ComponentModel\Design\ISelectionService.cs (3)
41ICollection GetSelectedComponents(); 46void SetSelectedComponents(ICollection? components); 51void SetSelectedComponents(ICollection? components, SelectionTypes selectionType);
System\ComponentModel\Design\ITreeDesigner.cs (1)
18ICollection Children { get; }
System\ComponentModel\Design\ITypeDiscoveryService.cs (1)
21ICollection GetTypes(Type? baseType, bool excludeGlobalTypes);
System\ComponentModel\Design\Serialization\ComponentSerializationService.cs (2)
83public abstract ICollection Deserialize(SerializationStore store); 90public abstract ICollection Deserialize(SerializationStore store, IContainer container);
System\ComponentModel\Design\Serialization\IDesignerLoaderHost.cs (1)
25void EndLoad(string baseClassName, bool successful, ICollection? errorCollection);
System\ComponentModel\Design\Serialization\IDesignerLoaderService.cs (1)
34void DependentLoadComplete(bool successful, ICollection? errorCollection);
System\ComponentModel\Design\Serialization\IDesignerSerializationManager.cs (1)
74object CreateInstance(Type type, ICollection? arguments, string? name, bool addToContainer);
System\ComponentModel\Design\Serialization\IDesignerSerializationService.cs (2)
29ICollection Deserialize(object serializationData); 36object Serialize(ICollection objects);
System\ComponentModel\Design\Serialization\InstanceDescriptor.cs (3)
19public InstanceDescriptor(MemberInfo? member, ICollection? arguments) : this(member, arguments, true) 26public InstanceDescriptor(MemberInfo? member, ICollection? arguments, bool isComplete) 93public ICollection Arguments { get; }
System\ComponentModel\Design\Serialization\SerializationStore.cs (1)
26public abstract ICollection Errors { get; }
System\ComponentModel\EventDescriptorCollection.cs (4)
117void ICollection.CopyTo(Array array, int index) 368bool ICollection.IsSynchronized => false; 370object ICollection.SyncRoot => null!; 372int ICollection.Count => Count;
System\ComponentModel\ListSortDescriptionCollection.cs (2)
64bool ICollection.IsSynchronized => true; 66object ICollection.SyncRoot => this;
System\ComponentModel\PropertyDescriptorCollection.cs (6)
402bool ICollection.IsSynchronized => false; 404object ICollection.SyncRoot => null!; 406int ICollection.Count => Count; 506ICollection IDictionary.Keys 519ICollection IDictionary.Values 532return (ICollection)_properties.Clone();
System\ComponentModel\ReflectTypeDescriptionProvider.cs (4)
184[typeof(ICollection)] = new IntrinsicTypeConverterData((type) => new CollectionConverter()), 684private static IExtenderProvider[] GetExtenders(ICollection components, object instance, IDictionary? cache) 1578else if (typeof(ICollection).IsAssignableFrom(callingType)) 1580converterData = IntrinsicTypeConverters[typeof(ICollection)];
System\ComponentModel\TypeConverter.cs (5)
267public ICollection? GetStandardValues() => GetStandardValues(null); 419private readonly ICollection _values; 427public StandardValuesCollection(ICollection? values) 496bool ICollection.IsSynchronized => false; 502object ICollection.SyncRoot => null!;
System\ComponentModel\TypeDescriptor.cs (29)
730ICollection results = typeDesc.GetAttributes(); 749ICollection extResults = extDesc.GetAttributes(); 767ICollection extResults = extDesc.GetAttributes(); 1205ICollection results; 1225ICollection extResults = extDesc.GetEvents(attributes); 1243ICollection extResults = extDesc.GetEvents(attributes); 1462ICollection results; 1482ICollection extResults = noAttributes ? extDesc.GetProperties() : extDesc.GetProperties(attributes); 1500ICollection extResults = noAttributes ? extDesc.GetProperties() : extDesc.GetProperties(attributes); 1555ICollection results; 1570ICollection extResults = extDesc.GetPropertiesFromRegisteredType(); 1874private static ICollection PipelineAttributeFilter(int pipelineType, ICollection members, Attribute[]? filter, IDictionary? cache) 1912ICollection cacheValue; 1949private static ICollection PipelineFilter(int pipelineType, ICollection members, object instance, IDictionary? cache) 2083ICollection cacheValue; 2144private static ICollection PipelineInitialize(int pipelineType, ICollection members, IDictionary? cache) 2150if (cache[s_pipelineInitializeKeys[pipelineType]] is ICollection cachedMembers && cachedMembers.Count == members.Count) 2184private static ICollection PipelineMerge(int pipelineType, ICollection primary, ICollection secondary, IDictionary? cache) 2193if (cache?[s_pipelineMergeKeys[pipelineType]] is ICollection mergeCache && mergeCache.Count == (primary.Count + secondary.Count)) 2245ICollection cacheValue; 2972internal readonly ICollection FilteredMembers; 2974internal AttributeFilterCacheItem(Attribute[] filter, ICollection filteredMembers) 3003internal readonly ICollection FilteredMembers; 3005internal FilterCacheItem(ITypeDescriptorFilterService filterService, ICollection filteredMembers)
System\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicyTypeConverter.cs (2)
40parameterTypes = new Type[] { typeof(PolicyEnforcement), typeof(ProtectionScenario), typeof(ICollection) }; 46((ICollection)policy.CustomServiceNames).CopyTo(customServiceNames, 0);
System.Configuration.ConfigurationManager (15)
src\libraries\Common\src\System\IO\TempFileCollection.cs (4)
100void ICollection.CopyTo(Array array, int start) => _files.Keys.CopyTo(array, start); 106int ICollection.Count => _files.Count; 108object ICollection.SyncRoot => null; 110bool ICollection.IsSynchronized => false;
System\Configuration\ConfigurationElementCollection.cs (2)
128void ICollection.CopyTo(Array arr, int index) 489((ICollection)this).CopyTo(array, index);
System\Configuration\ConfigurationErrorsException.cs (1)
165public ICollection Errors
System\Configuration\ConfigurationLocationCollection.cs (1)
10internal ConfigurationLocationCollection(ICollection col)
System\Configuration\ConfigurationLockCollection.cs (2)
110void ICollection.CopyTo(Array array, int index) 313((ICollection)this).CopyTo(array, index);
System\Configuration\ConfigurationPropertyCollection.cs (2)
34void ICollection.CopyTo(Array array, int index) 46((ICollection)this).CopyTo(array, index);
System\Configuration\ElementInformation.cs (1)
55public ICollection Errors => _errors ??= GetReadOnlyErrorsList();
System\Configuration\Provider\ProviderCollection.cs (2)
31void ICollection.CopyTo(Array array, int index) 73((ICollection)this).CopyTo(array, index);
System.Data.Common (26)
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (3)
310internal static ArgumentException CollectionRemoveInvalidObject(Type itemType, ICollection collection) 396internal static ArgumentException ParametersIsNotParent(Type parameterType, ICollection collection) 400internal static ArgumentException ParametersIsParent(Type parameterType, ICollection collection)
System\Data\Common\AdapterUtil.Common.cs (4)
374internal static Exception ColumnsIsNotParent(ICollection collection) 378internal static Exception ColumnsIsParent(ICollection collection) 410internal static Exception TablesIsNotParent(ICollection collection) 414internal static Exception TablesIsParent(ICollection collection)
System\Data\Common\DataColumnMappingCollection.cs (3)
21bool ICollection.IsSynchronized 25object ICollection.SyncRoot 230((ICollection)ArrayList()).CopyTo(array, index);
System\Data\Common\DataTableMappingCollection.cs (3)
22bool ICollection.IsSynchronized => false; 23object ICollection.SyncRoot => this; 174public void CopyTo(Array array, int index) => ((ICollection)ArrayList()).CopyTo(array, index);
System\Data\Common\DbConnectionStringBuilder.cs (6)
47private ICollection Collection 210bool ICollection.IsSynchronized 216public virtual ICollection Keys 233object ICollection.SyncRoot 239public virtual ICollection Values 305void ICollection.CopyTo(Array array, int index)
System\Data\DataView.cs (2)
298bool ICollection.IsSynchronized => false; 462object ICollection.SyncRoot => this;
System\Data\DataViewManager.cs (5)
144((ICollection)this).CopyTo(items, 0); 148int ICollection.Count => 1; 150object ICollection.SyncRoot => this; 152bool ICollection.IsSynchronized => false; 158void ICollection.CopyTo(Array array, int index)
System.Data.Odbc (11)
Common\System\Data\Common\DbConnectionOptions.cs (1)
107public ICollection Keys
src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (3)
310internal static ArgumentException CollectionRemoveInvalidObject(Type itemType, ICollection collection) 396internal static ArgumentException ParametersIsNotParent(Type parameterType, ICollection collection) 400internal static ArgumentException ParametersIsParent(Type parameterType, ICollection collection)
System\Data\Odbc\OdbcConnectionStringbuilder.cs (1)
120public override ICollection Keys
System\Data\Odbc\OdbcErrorCollection.cs (2)
18object System.Collections.ICollection.SyncRoot 23bool System.Collections.ICollection.IsSynchronized
System\Data\Odbc\OdbcParameterCollectionHelper.cs (4)
58return ((System.Collections.ICollection)InnerList).IsSynchronized; 66return ((System.Collections.ICollection)InnerList).SyncRoot; 129((System.Collections.ICollection)InnerList).CopyTo(array, index); 134return ((System.Collections.ICollection)InnerList).GetEnumerator();
System.Data.OleDb (3)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (3)
143public override System.Collections.ICollection Keys { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } } 251bool System.Collections.ICollection.IsSynchronized { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } } 252object System.Collections.ICollection.SyncRoot { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } }
System.Diagnostics.EventLog (3)
artifacts\obj\System.Diagnostics.EventLog\Debug\net10.0\System.Diagnostics.EventLog.notsupported.cs (3)
128bool System.Collections.ICollection.IsSynchronized { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } 129object System.Collections.ICollection.SyncRoot { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); } } 132void System.Collections.ICollection.CopyTo(System.Array array, int index) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_EventLog); }
System.Diagnostics.PerformanceCounter (4)
artifacts\obj\System.Diagnostics.PerformanceCounter\Debug\net10.0\System.Diagnostics.PerformanceCounter.notsupported.cs (4)
79public System.Collections.ICollection Keys { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_PerfCounters); } } 80public System.Collections.ICollection Values { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_PerfCounters); } } 89public System.Collections.ICollection Keys { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_PerfCounters); } } 90public System.Collections.ICollection Values { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_PerfCounters); } }
System.Diagnostics.Process (4)
System\Collections\Specialized\DictionaryWrapper.cs (2)
32ICollection IDictionary.Keys => _contents.Keys; 33ICollection IDictionary.Values => _contents.Values;
System\Collections\Specialized\StringDictionaryWrapper.cs (2)
28public override ICollection Keys => ((IDictionary)_contents).Keys; 29public override ICollection Values => ((IDictionary)_contents).Values;
System.Diagnostics.TraceSource (5)
System\Diagnostics\TraceListeners.cs (5)
136((ICollection)this).CopyTo((Array)listeners, index); 297object ICollection.SyncRoot 306bool ICollection.IsSynchronized 315void ICollection.CopyTo(Array array, int index) 317((ICollection)_list).CopyTo(array, index);
System.DirectoryServices (14)
artifacts\obj\System.DirectoryServices\Debug\net10.0\System.DirectoryServices.notsupported.cs (14)
370public System.Collections.ICollection PropertyNames { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 371bool System.Collections.ICollection.IsSynchronized { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 372object System.Collections.ICollection.SyncRoot { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 376System.Collections.ICollection System.Collections.IDictionary.Keys { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 377public System.Collections.ICollection Values { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 381void System.Collections.ICollection.CopyTo(System.Array array, int index) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 424public System.Collections.ICollection PropertyNames { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 425public System.Collections.ICollection Values { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 442bool System.Collections.ICollection.IsSynchronized { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 443object System.Collections.ICollection.SyncRoot { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 458void System.Collections.ICollection.CopyTo(System.Array? array, int index) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } 479bool System.Collections.ICollection.IsSynchronized { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 480object System.Collections.ICollection.SyncRoot { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); } } 488void System.Collections.ICollection.CopyTo(System.Array array, int index) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServices_PlatformNotSupported); }
System.DirectoryServices.AccountManagement (8)
artifacts\obj\System.DirectoryServices.AccountManagement\Debug\net10.0\System.DirectoryServices.AccountManagement.notsupported.cs (8)
233int System.Collections.ICollection.Count { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } } 234bool System.Collections.ICollection.IsSynchronized { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } } 235object System.Collections.ICollection.SyncRoot { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } } 254void System.Collections.ICollection.CopyTo(System.Array array, int index) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } 362int System.Collections.ICollection.Count { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } } 363bool System.Collections.ICollection.IsSynchronized { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } } 364object System.Collections.ICollection.SyncRoot { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } } 377void System.Collections.ICollection.CopyTo(System.Array array, int index) { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); }
System.DirectoryServices.Protocols (2)
artifacts\obj\System.DirectoryServices.Protocols\Debug\net10.0\System.DirectoryServices.Protocols.notsupported.cs (2)
601public System.Collections.ICollection AttributeNames { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } } 603public System.Collections.ICollection Values { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesProtocols_PlatformNotSupported); } }
System.Drawing.Common (16)
Special\NotSupported.cs (16)
3052int System.Collections.ICollection.Count { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3053bool System.Collections.ICollection.IsSynchronized { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3054object System.Collections.ICollection.SyncRoot { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3059void System.Collections.ICollection.CopyTo(System.Array array, int index) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 3068int System.Collections.ICollection.Count { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3069bool System.Collections.ICollection.IsSynchronized { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3070object System.Collections.ICollection.SyncRoot { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3075void System.Collections.ICollection.CopyTo(System.Array array, int index) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 3084int System.Collections.ICollection.Count { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3085bool System.Collections.ICollection.IsSynchronized { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3086object System.Collections.ICollection.SyncRoot { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3091void System.Collections.ICollection.CopyTo(System.Array array, int index) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 3100int System.Collections.ICollection.Count { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3101bool System.Collections.ICollection.IsSynchronized { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3102object System.Collections.ICollection.SyncRoot { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3107void System.Collections.ICollection.CopyTo(System.Array array, int index) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Drawing.Common.Tests (2)
System\Drawing\FontConverterTests.cs (1)
224var values = converter.GetStandardValues();
System\Drawing\ImageFormatConverterTests.cs (1)
164private static void CheckStandardValues(ICollection values)
System.Linq (9)
System\Linq\AnyAll.cs (1)
35if (source is ICollection ngc)
System\Linq\Cast.cs (3)
28if (source is ICollection collection) 45private sealed partial class CastICollectionIterator<TResult>(ICollection source) : Iterator<TResult> 47private readonly ICollection _source = source;
System\Linq\Count.cs (3)
28if (source is ICollection collection) 98/// <see cref="ICollection"/> as well as internal types used in the LINQ implementation. 126if (source is ICollection collection)
System\Linq\DefaultIfEmpty.SpeedOpt.cs (1)
33if (!onlyIfCheap || _source is ICollection<TSource> || _source is ICollection)
System\Linq\OrderedEnumerable.SpeedOpt.cs (1)
61return !onlyIfCheap || _source is ICollection<TElement> || _source is ICollection ? _source.Count() : -1;
System.Linq.Expressions (3)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (3)
351void ICollection.CopyTo(Array array, int index) 361bool ICollection.IsSynchronized => false; 363object ICollection.SyncRoot => this;
System.Net.Http (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
141if (value is ICollection c)
System.Net.HttpListener (22)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
141if (value is ICollection c)
System\Net\HttpListener.cs (1)
31internal ICollection PrefixCollection => _uriPrefixes.Keys;
System\Net\Managed\HttpEndPointManager.cs (5)
51lock ((s_ipEndPoints as ICollection).SyncRoot) 72lock ((s_ipEndPoints as ICollection).SyncRoot) 171lock ((s_ipEndPoints as ICollection).SyncRoot) 186lock ((s_ipEndPoints as ICollection).SyncRoot) 197lock ((s_ipEndPoints as ICollection).SyncRoot)
System\Net\Managed\HttpListener.Managed.cs (15)
160lock ((_listenerContexts as ICollection).SyncRoot) 164lock ((_contextQueue as ICollection).SyncRoot) 174lock ((_connections as ICollection).SyncRoot) 182lock ((_connections as ICollection).SyncRoot) 190lock ((_listenerContexts as ICollection).SyncRoot) 196lock ((_asyncWaitQueue as ICollection).SyncRoot) 200lock ((_contextQueue as ICollection).SyncRoot) 215lock ((_listenerContexts as ICollection).SyncRoot) 228lock ((_connections as ICollection).SyncRoot) 237lock ((_contextQueue as ICollection).SyncRoot) 245lock ((_asyncWaitQueue as ICollection).SyncRoot) 259lock ((_contextQueue as ICollection).SyncRoot) 284lock ((_asyncWaitQueue as ICollection).SyncRoot) 286lock ((_contextQueue as ICollection).SyncRoot) 322lock ((_asyncWaitQueue as ICollection).SyncRoot)
System.Net.Mail (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
141if (value is ICollection c)
System.Net.NameResolution (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
141if (value is ICollection c)
System.Net.Primitives (3)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
141if (value is ICollection c)
System\Net\CookieCollection.cs (1)
147((ICollection)m_list).CopyTo(array, index);
System\Net\CookieContainer.cs (1)
1059internal ICollection Values
System.Net.Quic (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
141if (value is ICollection c)
System.Net.Requests (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
141if (value is ICollection c)
System.Net.Security (3)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
141if (value is ICollection c)
System\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicy.cs (1)
44ICollection? customServiceNames)
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (1)
15public ServiceNameCollection(ICollection items)
System.Net.Sockets (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
141if (value is ICollection c)
System.Net.WebProxy (4)
System\Net\WebProxy.cs (4)
226public ChangeTrackingArrayList(ICollection c) : base(c) { } 254public override void AddRange(ICollection c) 266public override void InsertRange(int index, ICollection c) 272public override void SetRange(int index, ICollection c)
System.Net.WebSockets (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
141if (value is ICollection c)
System.Private.CoreLib (91)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
624int ICollection.Count => Length;
src\libraries\System.Private.CoreLib\src\System\Collections\ArrayList.cs (19)
51public ArrayList(ICollection c) 165public virtual void AddRange(ICollection c) 404public virtual void InsertRange(int index, ICollection c) 589public virtual void SetRange(int index, ICollection c) 754public override void AddRange(ICollection c) 891public override void InsertRange(int index, ICollection c) 1003public override void SetRange(int index, ICollection c) 1212public override void AddRange(ICollection c) 1340public override void InsertRange(int index, ICollection c) 1404public override void SetRange(int index, ICollection c) 1694public override void AddRange(ICollection c) 1767public override void InsertRange(int index, ICollection c) 1802public override void SetRange(int index, ICollection c) 1948public override void AddRange(ICollection c) 2022public override void InsertRange(int index, ICollection c) 2057public override void SetRange(int index, ICollection c) 2200public override void AddRange(ICollection c) 2397public override void InsertRange(int index, ICollection c) 2482public override void SetRange(int index, ICollection c)
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (9)
110/// Copies the elements of the <see cref="ICollection"/> to an <see 127/// -or- The number of elements in the source <see cref="ICollection"/> is 130/// cref="ICollection"/> cannot be cast automatically to the type of the 133void ICollection.CopyTo(Array array, int index) 154/// Gets a value indicating whether access to the <see cref="ICollection"/> is 157/// <value>true if access to the <see cref="ICollection"/> is synchronized 160bool ICollection.IsSynchronized => false; // always false, as true implies synchronization via SyncRoot 164/// cref="ICollection"/>. This property is not supported. 167object ICollection.SyncRoot { get { ThrowHelper.ThrowNotSupportedException(ExceptionResource.ConcurrentCollection_SyncRoot_NotSupported); return default; } }
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (13)
1462void ICollection.CopyTo(Array array, int index) 1631bool ICollection.IsSynchronized => false; 1633object ICollection.SyncRoot => this; 1639ICollection IDictionary.Keys => Keys; 1641ICollection IDictionary.Values => Values; 1951void ICollection.CopyTo(Array array, int index) 2006bool ICollection.IsSynchronized => false; 2008object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 2145void ICollection.CopyTo(Array array, int index) 2200bool ICollection.IsSynchronized => false; 2202object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (3)
137bool ICollection.IsSynchronized => false; 140object ICollection.SyncRoot => this; 387void ICollection.CopyTo(Array array, int arrayIndex)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (3)
63bool ICollection.IsSynchronized => false; 65object ICollection.SyncRoot => this; 121void ICollection.CopyTo(Array array, int index)
src\libraries\System.Private.CoreLib\src\System\Collections\Hashtable.cs (6)
150private ICollection? _keys; 151private ICollection? _values; 813public virtual ICollection Keys => _keys ??= new KeyCollection(this); 825public virtual ICollection Values => _values ??= new ValueCollection(this); 1348public override ICollection Keys 1359public override ICollection Values
src\libraries\System.Private.CoreLib\src\System\Collections\IDictionary.cs (2)
22ICollection Keys { get; } 25ICollection Values { get; }
src\libraries\System.Private.CoreLib\src\System\Collections\ListDictionaryInternal.cs (6)
85public ICollection Keys => new NodeKeyValueCollection(this, true); 95public ICollection Values => new NodeKeyValueCollection(this, false); 303void ICollection.CopyTo(Array array, int index) 319int ICollection.Count 332bool ICollection.IsSynchronized => false; 334object ICollection.SyncRoot => list.SyncRoot;
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (4)
166bool ICollection.IsSynchronized => false; 168object ICollection.SyncRoot => items is ICollection coll ? coll.SyncRoot : this; 170void ICollection.CopyTo(Array array, int index)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\CollectionHelpers.cs (1)
51if (collection is ICollection nonGenericCollection)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (4)
97bool ICollection.IsSynchronized => false; 99object ICollection.SyncRoot => list is ICollection coll ? coll.SyncRoot : this; 101void ICollection.CopyTo(Array array, int index)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (14)
145ICollection IDictionary.Keys => Keys; 152ICollection IDictionary.Values => Values; 175void ICollection.CopyTo(Array array, int index) 210bool ICollection.IsSynchronized => false; 212object ICollection.SyncRoot => (m_dictionary is ICollection coll) ? coll.SyncRoot : this; 291void ICollection.CopyTo(Array array, int index) 296bool ICollection.IsSynchronized => false; 298object ICollection.SyncRoot => (_collection is ICollection coll) ? coll.SyncRoot : this; 343void ICollection.CopyTo(Array array, int index) 348bool ICollection.IsSynchronized => false; 350object ICollection.SyncRoot => (_collection is ICollection coll) ? coll.SyncRoot : this;
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (4)
69void ICollection.CopyTo(Array array, int index) => CollectionHelpers.CopyTo(_set, array, index); 75bool ICollection.IsSynchronized => false; 78object ICollection.SyncRoot => _set is ICollection c ? c.SyncRoot : this;
src\System\Collections\EmptyReadOnlyDictionaryInternal.cs (2)
75public ICollection Keys => Array.Empty<object>(); 77public ICollection Values => Array.Empty<object>();
System.Private.DataContractSerialization (13)
System\Runtime\Serialization\CollectionDataContract.cs (1)
759c.IncrementCollectionCount(x, (ICollection)o);
System\Runtime\Serialization\Globals.cs (1)
258s_typeOfICollection ??= typeof(ICollection);
System\Runtime\Serialization\SchemaHelper.cs (6)
64ICollection currentSchemas = schemas.Schemas(); 96ICollection currentSchemas = schemas.Schemas(); 119ICollection currentSchemas = schemas.Schemas(); 182ICollection currentSchemas = schemas.Schemas(); 196ICollection currentSchemas = schemas.Schemas(); 212ICollection currentSchemas = schemas.Schemas();
System\Runtime\Serialization\SchemaImporter.cs (3)
71ICollection schemaList = _schemaSet.Schemas(); 244ICollection schemaList = _schemaSet.Schemas(); 332ICollection schemaList = _schemaSet.Schemas();
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (1)
736s_incrementCollectionCountMethod = typeof(XmlObjectSerializerWriteContext).GetMethod("IncrementCollectionCount", Globals.ScanAllMembers, new Type[] { typeof(XmlWriterDelegator), typeof(ICollection) });
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
421internal void IncrementCollectionCount(XmlWriterDelegator xmlWriter, ICollection collection)
System.Private.Xml (51)
System\Xml\Dom\XmlAttributeCollection.cs (4)
269void ICollection.CopyTo(Array array, int index) 277bool ICollection.IsSynchronized 282object ICollection.SyncRoot 287int ICollection.Count
System\Xml\Schema\ContentValidator.cs (2)
132public ICollection GetNamespaceListSymbols(NamespaceList list) 357public ICollection GetResolvedSymbols(SymbolsDictionary symbols)
System\Xml\Schema\Inference\Infer.cs (6)
284ICollection searchCollectionPrimary; 285ICollection? searchCollectionSecondary; 1294ICollection sourceCollection; 1312internal static XmlSchemaAttribute? FindAttribute(ICollection attributes, string attrName) 1330ICollection col = _schemaSet!.Schemas(namespaceURI); 1363internal static XmlSchemaAttribute? FindAttributeRef(ICollection attributes, string attributeName, string nsURI)
System\Xml\Schema\NamespaceList.cs (1)
85public ICollection Enumerate
System\Xml\Schema\XmlSchemaCollection.cs (4)
227void ICollection.CopyTo(Array array, int index) 255bool ICollection.IsSynchronized 260object ICollection.SyncRoot 265int ICollection.Count
System\Xml\Schema\XmlSchemaObjectTable.cs (6)
117public ICollection Names 125public ICollection Values 177return ((ICollection)_entries).SyncRoot; 185return ((ICollection)_entries).IsSynchronized; 230return ((ICollection)_entries).SyncRoot; 238return ((ICollection)_entries).IsSynchronized;
System\Xml\Schema\XmlSchemaSet.cs (3)
674public ICollection Schemas() 679public ICollection Schemas(string? targetNamespace) 1321ICollection chameleonKeys = _chameleonSchemas.Keys;
System\Xml\Schema\XmlSchemaValidator.cs (1)
945ICollection elements = _schemaSet.GlobalElements.Values;
System\Xml\Schema\XmlValueConverter.cs (1)
295protected static readonly Type ICollectionType = typeof(ICollection);
System\Xml\Serialization\CodeGenerator.cs (2)
299CodeGenerator.AssertHasInterface(varType, typeof(ICollection)); 301MethodInfo ICollection_get_Count = typeof(ICollection).GetMethod(
System\Xml\Serialization\NameTable.cs (2)
92internal ICollection Values 101((ICollection)_table.Values).CopyTo(a, 0);
System\Xml\Serialization\Types.cs (4)
812else if (typeof(ICollection).IsAssignableFrom(type) && !IsArraySegment(type)) 1014else if (typeof(ICollection).IsAssignableFrom(type)) 1407internal ICollection Types 1417internal ICollection TypeMappings
System\Xml\Serialization\XmlReflectionImporter.cs (1)
814ICollection values = mapping.BaseMapping.LocalAttributes.Values;
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1214ICollection namespaces = list.Enumerate;
System\Xml\Serialization\XmlSerializationWriter.cs (6)
1287int arrayLength = typeof(ICollection).IsAssignableFrom(type) ? ((ICollection)o).Count : -1; 2096typeName = typeof(ICollection).FullName!; 3386Writer.Write(typeof(ICollection).FullName); 3605Writer.Write(typeof(ICollection).FullName); 4000Writer.Write(typeof(ICollection).FullName);
System\Xml\Xsl\ListBase.cs (3)
115bool System.Collections.ICollection.IsSynchronized 120object System.Collections.ICollection.SyncRoot 125void System.Collections.ICollection.CopyTo(Array array, int index)
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (3)
142bool System.Collections.ICollection.IsSynchronized 150object System.Collections.ICollection.SyncRoot 158void System.Collections.ICollection.CopyTo(Array array, int index)
System\Xml\Xsl\XsltOld\RootAction.cs (1)
169private void CheckAttributeSets_RecurceInList(Hashtable markTable, ICollection setQNames)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
95[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.ICollection))]
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
284((ICollection)collection).CopyTo(objects, 0);
System.Security.AccessControl (1)
artifacts\obj\System.Security.AccessControl\Debug\net10.0\System.Security.AccessControl.notsupported.cs (1)
294void System.Collections.ICollection.CopyTo(System.Array array, int index) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); }
System.Security.Cryptography (7)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
142void ICollection.CopyTo(Array array, int index)
System\Security\Cryptography\AsnEncodedDataCollection.cs (1)
66void ICollection.CopyTo(Array array, int index)
System\Security\Cryptography\OidCollection.cs (1)
72void ICollection.CopyTo(Array array, int index)
System\Security\Cryptography\X509Certificates\X509ChainElementCollection.cs (2)
55((ICollection)this).CopyTo(array, index); 58void ICollection.CopyTo(Array array, int index)
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (2)
74((ICollection)this).CopyTo(array, index); 77void ICollection.CopyTo(Array array, int index)
System.Security.Cryptography.Pkcs (2)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (1)
142void ICollection.CopyTo(Array array, int index)
System\Security\Cryptography\Pkcs\SignerInfoCollection.cs (1)
76public void CopyTo(SignerInfo[] array, int index) => ((ICollection)this).CopyTo(array, index);
System.Security.Permissions (1)
System\Security\Policy\ApplicationTrustCollection.cs (1)
27void ICollection.CopyTo(Array array, int index) { }
System.ServiceModel.Primitives (3)
netstandard.cs (3)
39bool ICollection.IsSynchronized { get { return default; } } 40object ICollection.SyncRoot { get { return default; } } 41void ICollection.CopyTo(Array array, int index) { }
System.Text.Json (1)
System\Text\Json\Serialization\ReadStack.cs (1)
307if (enumerable is ICollection collection)
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\MatchCollection.cs (1)
122((ICollection)_matches).CopyTo(array, arrayIndex);
System.Threading.Tasks.Parallel (2)
System\Threading\Tasks\Parallel.cs (2)
2806private static OperationCanceledException? ReduceToSingleCancellationException(ICollection exceptions, 2843private static void ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions,
System.Windows.Forms (149)
System\Drawing\Design\UITypeEditor.cs (1)
42[typeof(ICollection)] = $"System.ComponentModel.Design.CollectionEditor, {AssemblyRef.SystemDesign}",
System\Windows\Forms\AutoCompleteStringCollection.cs (2)
197void ICollection.CopyTo(Array array, int index) => ((ICollection)_data).CopyTo(array, index);
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (3)
63object ICollection.SyncRoot 71bool ICollection.IsSynchronized 279void ICollection.CopyTo(Array destination, int index)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (7)
44void ICollection.CopyTo(Array array, int index) => ((ICollection)_items).CopyTo(array, index); 46int ICollection.Count => _items.Count; 48bool ICollection.IsSynchronized => ((ICollection)_items).IsSynchronized; 50object ICollection.SyncRoot => ((ICollection)_items).SyncRoot;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (5)
53int ICollection.Count => _items.Count; 55bool ICollection.IsSynchronized => false; 57object ICollection.SyncRoot => this; 59void ICollection.CopyTo(Array array, int index) => ((ICollection)_items).CopyTo(array, index);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (7)
39object ICollection.SyncRoot => ((ICollection)InnerArray).SyncRoot; 41bool ICollection.IsSynchronized => ((ICollection)InnerArray).IsSynchronized; 192((ICollection)InnerArray).CopyTo(destination, arrayIndex); 194void ICollection.CopyTo(Array destination, int index) => 195((ICollection)InnerArray).CopyTo(destination, index);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (5)
65void ICollection.CopyTo(Array array, int index) 67((ICollection)_items).CopyTo(array, index); 70int ICollection.Count => Count; 72bool ICollection.IsSynchronized => false; 74object ICollection.SyncRoot => this;
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (5)
57void ICollection.CopyTo(Array array, int index) => ((ICollection)_items).CopyTo(array, index); 59int ICollection.Count => _items.Count; 61bool ICollection.IsSynchronized => false; 63object ICollection.SyncRoot => this;
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (5)
53void ICollection.CopyTo(Array array, int index) => ((ICollection)_items).CopyTo(array, index); 55int ICollection.Count => _items.Count; 57bool ICollection.IsSynchronized => false; 59object ICollection.SyncRoot => this;
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (5)
42void ICollection.CopyTo(Array array, int index) => ((ICollection)_items).CopyTo(array, index); 44int ICollection.Count => _items.Count; 46bool ICollection.IsSynchronized => false; 48object ICollection.SyncRoot => this;
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (3)
110object ICollection.SyncRoot => this; 112bool ICollection.IsSynchronized => false; 506void ICollection.CopyTo(Array dest, int index)
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (4)
91object ICollection.SyncRoot => this; 93bool ICollection.IsSynchronized => false; 317void ICollection.CopyTo(Array dest, int index) 319((ICollection)_owner._links).CopyTo(dest, index);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedIndexCollection.cs (2)
31object ICollection.SyncRoot 39bool ICollection.IsSynchronized
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedItemCollection.cs (2)
64object ICollection.SyncRoot 72bool ICollection.IsSynchronized
System\Windows\Forms\Controls\ListBoxes\ListBox.IntegerCollection.cs (3)
34object ICollection.SyncRoot 42bool ICollection.IsSynchronized 174private void AddRangeInternal(ICollection items)
System\Windows\Forms\Controls\ListBoxes\ListBox.ObjectCollection.cs (4)
68object ICollection.SyncRoot => this; 70bool ICollection.IsSynchronized => false; 179internal void AddRangeInternal(ICollection items) 282void ICollection.CopyTo(Array destination, int index)
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedIndexCollection.cs (2)
32object ICollection.SyncRoot 40bool ICollection.IsSynchronized
System\Windows\Forms\Controls\ListBoxes\ListBox.SelectedObjectCollection.cs (2)
73object ICollection.SyncRoot 81bool ICollection.IsSynchronized
System\Windows\Forms\Controls\ListView\ListView.CheckedIndexCollection.cs (3)
111object ICollection.SyncRoot 119bool ICollection.IsSynchronized 218void ICollection.CopyTo(Array dest, int index)
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (2)
127object ICollection.SyncRoot 135bool ICollection.IsSynchronized
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (3)
77object ICollection.SyncRoot 85bool ICollection.IsSynchronized 369void ICollection.CopyTo(Array dest, int index)
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (2)
47object ICollection.SyncRoot => this; 49bool ICollection.IsSynchronized => true;
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (2)
136object ICollection.SyncRoot 144bool ICollection.IsSynchronized
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (2)
214object ICollection.SyncRoot 222bool ICollection.IsSynchronized
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (3)
26object ICollection.SyncRoot => this; 28bool ICollection.IsSynchronized => true; 221public void CopyTo(Array array, int index) => ((ICollection)List).CopyTo(array, index);
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (1)
84public void CopyTo(Array dest, int index) => ((ICollection)Items).CopyTo(dest, index);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (4)
32object ICollection.SyncRoot => this; 34bool ICollection.IsSynchronized => true; 373void ICollection.CopyTo(Array dest, int index) 377((ICollection)_owner._subItems).CopyTo(dest, index);
System\Windows\Forms\Controls\ListView\ListViewItemConverter.cs (2)
58((ICollection)item.SubItems).CopyTo(subItemArray, 0); 66((ICollection)item.SubItems).CopyTo(subItemArray, 0);
System\Windows\Forms\Controls\PropertyGrid\GridItemCollection.cs (3)
27object ICollection.SyncRoot => this; 29bool ICollection.IsSynchronized => false; 52void ICollection.CopyTo(Array dest, int index)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyTabCollection.cs (3)
37object ICollection.SyncRoot => this; 39bool ICollection.IsSynchronized => false; 91void ICollection.CopyTo(Array dest, int index)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.cs (2)
205if (@object is ICollection collection) 227if (!_collection.ReinitializeIfNotEqual((ICollection)currentObject!))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MergePropertyDescriptor.MultiMergeCollection.cs (5)
14public MultiMergeCollection(ICollection original) 24bool ICollection.IsSynchronized => false; 31object ICollection.SyncRoot => this; 54public bool ReinitializeIfNotEqual(ICollection collection) 82public void SetItems(ICollection collection)
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (3)
73object ICollection.SyncRoot => this; 75bool ICollection.IsSynchronized => false; 296void ICollection.CopyTo(Array dest, int index)
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (2)
116object ICollection.SyncRoot => this; 118bool ICollection.IsSynchronized => false;
System\Windows\Forms\Controls\Unsupported\ContextMenu\Menu.MenuItemCollection.cs (2)
40object ICollection.SyncRoot => throw null; 42bool ICollection.IsSynchronized => throw null;
System\Windows\Forms\Controls\Unsupported\DataGrid\GridColumnStylesCollection.cs (4)
52void ICollection.CopyTo(Array array, int index) { } 54int ICollection.Count => throw null; 56bool ICollection.IsSynchronized => throw null; 58object ICollection.SyncRoot => throw null;
System\Windows\Forms\Controls\Unsupported\DataGrid\GridTableStylesCollection.cs (4)
50void ICollection.CopyTo(Array array, int index) { } 52int ICollection.Count => throw null; 54bool ICollection.IsSynchronized => throw null; 56object ICollection.SyncRoot => throw null;
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBar.StatusBarPanelCollection.cs (3)
46object ICollection.SyncRoot => throw null; 48bool ICollection.IsSynchronized => throw null; 88void ICollection.CopyTo(Array dest, int index) { }
System\Windows\Forms\Controls\Unsupported\ToolBar\ToolBar.ToolBarButtonCollection.cs (3)
44object ICollection.SyncRoot => throw null; 46bool ICollection.IsSynchronized => throw null; 68void ICollection.CopyTo(Array dest, int index) { }
System\Windows\Forms\Controls\WebBrowser\HtmlElementCollection.cs (4)
156bool ICollection.IsSynchronized => false; 158object ICollection.SyncRoot => this; 160void ICollection.CopyTo(Array dest, int index) 172((ICollection)this).CopyTo(htmlElements, 0);
System\Windows\Forms\Controls\WebBrowser\HtmlWindowCollection.cs (4)
93bool ICollection.IsSynchronized => false; 95object ICollection.SyncRoot => this; 97void ICollection.CopyTo(Array dest, int index) 109((ICollection)this).CopyTo(htmlWindows, 0);
System\Windows\Forms\DataBinding\BindingContext.cs (4)
30int ICollection.Count 43void ICollection.CopyTo(Array ar, int index) 66bool ICollection.IsSynchronized => false; 71object ICollection.SyncRoot => this;
System\Windows\Forms\Layout\ArrangedElementCollection.cs (5)
146object ICollection.SyncRoot => ((ICollection)InnerList).SyncRoot; 148public void CopyTo(Array array, int index) => ((ICollection)InnerList).CopyTo(array, index); 150bool ICollection.IsSynchronized => ((ICollection)InnerList).IsSynchronized;
System\Windows\Forms\Layout\LayoutUtils.cs (1)
43public static Size OldGetLargestStringSizeInCollection(Font? font, ICollection? objects)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (6)
129void ICollection.CopyTo(Array array, int startIndex) => ((ICollection)_innerList).CopyTo(array, startIndex); 133bool ICollection.IsSynchronized => ((ICollection)_innerList).IsSynchronized; 135object ICollection.SyncRoot => ((ICollection)_innerList).SyncRoot;
System.Windows.Forms.Design (157)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
1121private readonly ICollection _collection; 1125public SelectionWrapper(Type collectionType, Type collectionItemType, Control control, ICollection collection)
System\ComponentModel\Design\CollectionEditor.cs (1)
333if (editValue is ICollection collection)
System\ComponentModel\Design\ComponentDesigner.CDDesignerCommandSet.cs (1)
19public override ICollection? GetCommands(string name) => name switch
System\ComponentModel\Design\ComponentDesigner.cs (5)
34public virtual ICollection AssociatedComponents => Array.Empty<IComponent>(); 191ICollection ITreeDesigner.Children 195ICollection comps = AssociatedComponents; 256ICollection components = selectionService.GetSelectedComponents(); 316ICollection methods = ebs.GetCompatibleMethods(defaultEvent);
System\ComponentModel\Design\DesignerCommandSet.cs (1)
13public virtual ICollection? GetCommands(string name) => null;
System\ComponentModel\Design\DesignerHost.cs (1)
1051void IDesignerLoaderHost.EndLoad(string? rootClassName, bool successful, ICollection? errorCollection)
System\ComponentModel\Design\DesignSurface.cs (3)
17private ICollection? _loadErrors; 90public ICollection LoadErrors => _loadErrors ?? Array.Empty<object>(); 436internal void OnLoaded(bool successful, ICollection? errors)
System\ComponentModel\Design\DesignSurfaceCollection.cs (5)
50int ICollection.Count => Count; 52bool ICollection.IsSynchronized => false; 54object ICollection.SyncRoot => null!; 56void ICollection.CopyTo(Array array, int index) 64public void CopyTo(DesignSurface[] array, int index) => ((ICollection)this).CopyTo(array, index);
System\ComponentModel\Design\EventBindingService.cs (2)
55protected abstract ICollection GetCompatibleMethods(EventDescriptor e); 120ICollection IEventBindingService.GetCompatibleMethods(EventDescriptor e)
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
364ICollection methods = ebs.GetCompatibleMethods(_evt);
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (3)
36if (typeof(ICollection).IsAssignableFrom(propertyDescriptor.PropertyType) && 39if (propertyDescriptor.GetValue(component) is ICollection { Count: > 0 } collection) 253if (value is ICollection collection)
System\ComponentModel\Design\LoadedEventArgs.cs (2)
16public LoadedEventArgs(bool succeeded, ICollection? errors) 31public ICollection Errors { get; }
System\ComponentModel\Design\MenuCommandService.cs (1)
381protected ICollection? GetCommandList(Guid guid)
System\ComponentModel\Design\SelectionService.cs (3)
339ICollection ISelectionService.GetSelectedComponents() 350void ISelectionService.SetSelectedComponents(ICollection? components) 357void ISelectionService.SetSelectedComponents(ICollection? components, SelectionTypes selectionType)
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (4)
319ICollection errors = _serializationManager.Errors; 623protected virtual void OnEndLoad(bool successful, ICollection? errors) 847protected virtual void ReportFlushErrors(ICollection errors) 921void IDesignerLoaderService.DependentLoadComplete(bool successful, ICollection? errorCollection)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.cs (2)
50private ICollection? _errors; 71public override ICollection Errors
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.LocalDesignerSerializationManager.cs (1)
34protected override object CreateInstance(Type type, ICollection? arguments, string? name, bool addToContainer)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.PassThroughSerializationManager.cs (1)
56object IDesignerSerializationManager.CreateInstance(Type type, ICollection? arguments, string? name, bool addToContainer)
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.cs (2)
135public override ICollection Deserialize(SerializationStore store) 151public override ICollection Deserialize(SerializationStore store, IContainer container)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
762protected override void OnEndLoad(bool successful, ICollection? errors) 967ICollection IDesignerSerializationService.Deserialize(object serializationData) 988object IDesignerSerializationService.Serialize(ICollection? objects)
System\ComponentModel\Design\Serialization\CodeDomSerializationProvider.cs (1)
80if (typeof(ICollection).IsAssignableFrom(objectType))
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (13)
33private static ICollection? GetCollectionDelta(ICollection? original, ICollection? modified) 164if (value is ICollection collection) 166ICollection subset = collection; 184subset = GetCollectionDelta(inheritedDesc.OriginalValue as ICollection, collection); 228private static MethodInfo? ChooseMethodByType(TypeDescriptionProvider provider, List<MethodInfo> methods, ICollection values) 296protected virtual object? SerializeCollection(IDesignerSerializationManager manager, CodeExpression? targetExpression, Type targetType, ICollection originalCollection, ICollection valuesToSerialize) 386private CodeArrayCreateExpression? SerializeArray(IDesignerSerializationManager manager, Type targetType, Array array, ICollection valuesToSerialize) 472ICollection valuesToSerialize) 557ICollection valuesToSerialize) 655private bool ShouldClearCollection(IDesignerSerializationManager manager, ICollection collection)
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (2)
219protected virtual object CreateInstance(Type type, ICollection? arguments, string? name, bool addToContainer) 741object IDesignerSerializationManager.CreateInstance(Type type, ICollection? arguments, string? name, bool addToContainer)
System\ComponentModel\Design\Serialization\StatementContext.cs (1)
151public void Populate(ICollection statementOwners)
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (2)
408public virtual CodeTypeDeclaration Serialize(IDesignerSerializationManager manager, object root, ICollection? members) 478private void IntegrateStatements(IDesignerSerializationManager manager, object root, ICollection? members, StatementContext statementCtx, CodeTypeDeclaration typeDecl)
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (1)
34ICollection selection = ss.GetSelectedComponents();
System\Drawing\Design\IToolboxService.cs (1)
112bool IsSupported(object serializedObject, ICollection filterAttributes);
System\Drawing\Design\ToolboxItem.cs (5)
133public ICollection Filter 135get => (ICollection)Properties["Filter"]!; 783ValidatePropertyType(propertyName, value, typeof(ICollection), true); 785ICollection? col = (ICollection?)value;
System\Windows\Forms\Design\Behavior\BehaviorDragDropEventArgs.cs (2)
13public BehaviorDragDropEventArgs(ICollection dragComponents) => DragComponents = dragComponents; 18public ICollection DragComponents { get; }
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
194ICollection dragComponents = ((DropSourceBehavior.BehaviorDataObject)dropSourceBehavior.DataObject).DragComponents;
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (1)
217ICollection selComps = selSvc.GetSelectedComponents();
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
185(Collections.ICollection)control,
System\Windows\Forms\Design\CollectionEditVerbManager.cs (1)
35if (prop is not null && typeof(ICollection).IsAssignableFrom(prop.PropertyType))
System\Windows\Forms\Design\CommandSet.cs (18)
478protected virtual ICollection GetCopySelection() 480ICollection selectedComponents = SelectionService!.GetSelectedComponents(); 983ICollection comps = SelectionService.GetSelectedComponents(); 1130ICollection selectedComponents = SelectionService.GetSelectedComponents(); 1251ICollection selectedComponents = SelectionService.GetSelectedComponents(); 1400ICollection selectedComponents = GetCopySelection(); 1445ICollection selectedComponents = GetCopySelection(); 1595ICollection comps = SelectionService.GetSelectedComponents(); 1839ICollection? associatedCompsOfFailedControl = null; 1850ICollection? components = null; 2014ICollection? designerComps = cDesigner.AssociatedComponents; 2288ICollection sel = SelectionService.GetSelectedComponents(); 2389ICollection sel = SelectionService.GetSelectedComponents(); 2530ICollection sel = SelectionService.GetSelectedComponents(); 2919ICollection selection = SelectionService.GetSelectedComponents(); 2998ICollection selectedComponents = selSvc.GetSelectedComponents(); 3051ICollection selectedComponents = selSvc.GetSelectedComponents(); 3154private static object[] PrependComponentNames(ICollection objects)
System\Windows\Forms\Design\ComponentTray.cs (2)
46private ICollection _selectedObjects; 2907ICollection comps = null;
System\Windows\Forms\Design\ControlCommandSet.cs (3)
295ICollection sel = SelectionService.GetSelectedComponents(); 992ICollection sel = SelectionService.GetSelectedComponents(); 1314ICollection selectedComponents = SelectionService.GetSelectedComponents();
System\Windows\Forms\Design\ControlDesigner.cs (2)
110public override ICollection AssociatedComponents 1410ICollection selComps = selectionService.GetSelectedComponents();
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (2)
24object ICollection.SyncRoot => this; 26bool ICollection.IsSynchronized => false;
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionCodeDomSerializer.cs (2)
21ICollection originalCollection, 22ICollection valuesToSerialize)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
672ICollection columnTypes = DesignerUtils.FilterGenericTypes(discoveryService.GetTypes(typeof(DataGridViewColumn), excludeGlobalTypes: false));
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
83ICollection columnTypes = DesignerUtils.FilterGenericTypes(discoveryService.GetTypes(s_dataGridViewColumnType, excludeGlobalTypes: false));
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
32public override ICollection AssociatedComponents => Control.Columns;
System\Windows\Forms\Design\DataGridViewRowCollectionCodeDomSerializer.cs (2)
26protected override object SerializeCollection(IDesignerSerializationManager manager, CodeExpression? targetExpression, Type targetType, ICollection originalCollection, ICollection valuesToSerialize)
System\Windows\Forms\Design\DesignerUtils.cs (3)
700public static ICollection? FilterGenericTypes(ICollection? types) 751ICollection copyObjects = GetCopySelection(objects, host);
System\Windows\Forms\Design\DocumentDesigner.cs (2)
604ICollection sels = s.GetSelectedComponents(); 1153ICollection selComponents = svc.GetSelectedComponents();
System\Windows\Forms\Design\EditorServiceContext.cs (1)
28if (prop is not null && typeof(ICollection).IsAssignableFrom(prop.PropertyType))
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (6)
190int ICollection.Count => Count; 192bool ICollection.IsSynchronized => false; 194object ICollection.SyncRoot => ((ICollection)_items).SyncRoot; 196void ICollection.CopyTo(Array array, int index) => ((ICollection)_items).CopyTo(array, index);
System\Windows\Forms\Design\ListViewDesigner.cs (1)
29public override ICollection AssociatedComponents
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
373ICollection descriptors = DesignerUtils.FilterGenericTypes(discoveryService.GetTypes(typeof(MaskDescriptor), false /* excludeGlobalTypes */));
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
83ICollection objects = ds.Deserialize(_serializationData);
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (2)
93ICollection selectedComponents; 240ICollection objects = ds.Deserialize(_serializationData);
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
103ICollection objects = ds.Deserialize(serializationData); 298private static void DisableDragDropChildren(ICollection controls, List<Control> allowDropCache) 1037private static object[] GetTopLevelComponents(ICollection comps)
System\Windows\Forms\Design\SelectionUIService.cs (2)
396ICollection selection = _selSvc!.GetSelectedComponents(); 972ICollection col = _selSvc.GetSelectedComponents();
System\Windows\Forms\Design\SplitContainerDesigner.cs (2)
141public override ICollection AssociatedComponents 406ICollection selComponents = svc.GetSelectedComponents();
System\Windows\Forms\Design\TabControlDesigner.cs (2)
406ICollection selComponents = svc.GetSelectedComponents(); 438ICollection selComponents = svc.GetSelectedComponents();
System\Windows\Forms\Design\TableLayoutControlCollectionCodeDomSerializer.cs (2)
20protected override object SerializeCollection(IDesignerSerializationManager manager, CodeExpression? targetExpression, Type targetType, ICollection originalCollection, ICollection valuesToSerialize)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (5)
1475ICollection selectedComps = selSvc.GetSelectedComponents(); 2155object ICollection.SyncRoot => this; 2157bool ICollection.IsSynchronized => false; 2224protected override object SerializeCollection(IDesignerSerializationManager manager, CodeExpression targetExpression, Type targetType, ICollection originalCollection, ICollection valuesToSerialize)
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (3)
146public override ICollection AssociatedComponents 245ICollection selComponents = _selectionService!.GetSelectedComponents(); 464ICollection selectedComponents = _selectionService.GetSelectedComponents();
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
142public override ICollection AssociatedComponents 1347ICollection selComponents = SelectionService.GetSelectedComponents();
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
251ICollection itemTypes = discoveryService.GetTypes(s_toolStripItemType, false /*excludeGlobalTypes*/);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
78public override ICollection AssociatedComponents 201ICollection selComponents = selectionService.GetSelectedComponents();
System\Windows\Forms\Design\ToolStripDropDownItemDesigner.cs (1)
24public override Collections.ICollection AssociatedComponents
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
297ICollection originalSelComps = null; 586ICollection selComps = selSvc.GetSelectedComponents();
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (1)
2046ICollection originalSelComps = selSvc.GetSelectedComponents();
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
81public override ICollection AssociatedComponents 2176ICollection originalSelComps = null;
System.Windows.Forms.Design.Tests (20)
EnsureEditorsTests.cs (1)
43[InlineData(typeof(ICollection), typeof(CollectionEditor))]
System\ComponentModel\Design\ComponentDesignerTests.cs (8)
174foreach (ICollection associatedComponents in new object[] { null, Array.Empty<object>(), new object[] { new Component() } }) 183public void ComponentDesigner_Children_GetWithInvalidDesignerHost_ReturnsEmpty(ICollection associatedComponents, object host) 761public void ComponentDesigner_DoDefaultAction_InvokeWithComponentWithHostValidProperty_Success(string property, ICollection compatibleMethods, int expectedSetCallCount, string uniqueMethodName) 980public void ComponentDesigner_DoDefaultAction_InvokeWithComponentWithHostValidPropertyWithTransaction_Success(string property, ICollection compatibleMethods, int expectedSetCallCount, string uniqueMethodName) 1683public void ComponentDesigner_DoDefaultAction_InvokeWithComponentWithHostInvalidSelectedComponents_Success(ICollection selectedComponents) 2966private readonly ICollection _associatedComponents; 2968public CustomAssociatedComponentsComponentDesigner(ICollection associatedComponents) 2973public override ICollection AssociatedComponents => _associatedComponents;
System\ComponentModel\Design\DesignerActionServiceTests.cs (2)
414.Returns((ICollection)null); 417.Returns((ICollection)null);
System\ComponentModel\Design\DesignerHostTests.cs (1)
2219public void DesignerHost_EndLoad_NotCalledBeginLoad_Success(string baseClassName, bool successful, ICollection errorCollection)
System\ComponentModel\Design\LoadedEventArgsTests.cs (1)
19public void Ctor_Bool_ICollection(bool succeeded, ICollection errors)
System\ComponentModel\Design\Serialization\DesignerSerializationManagerTests.cs (1)
1992public new object CreateInstance(Type type, ICollection arguments, string name, bool addToContainer)
System\Drawing\Design\ToolboxItemTests.cs (2)
262public void ToolboxItem_Filter_Set_GetReturnsExpected(ICollection value, ICollection expected)
System\Windows\Forms\Design\Behavior\BehaviorDragDropEventArgsTests.cs (1)
19public void Ctor_ICollection(ICollection components)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (2)
38((ICollection)_collection).SyncRoot.Should().Be(_collection); 44((ICollection)_collection).IsSynchronized.Should().BeFalse();
System\Windows\Forms\Design\TextBoxDesignerTests.cs (1)
23actionLists.Should().BeAssignableTo<ICollection>();
System.Windows.Forms.Primitives (5)
System\Windows\Forms\NonNullCollection.cs (5)
114void ICollection.CopyTo(Array array, int index) => ((IList)_list).CopyTo(array, index); 120object ICollection.SyncRoot => ((ICollection)_list).SyncRoot; 122bool ICollection.IsSynchronized => ((ICollection)_list).IsSynchronized;
System.Windows.Forms.Tests (33)
System\Windows\Forms\BindingContextTests.cs (19)
25ICollection context = new BindingContext(); 41((ICollection)context).CopyTo(array, 0); 53Assert.Equal(2, ((ICollection)context).Count); 96Assert.Equal(2, ((ICollection)context).Count); 141Assert.Equal(2, ((ICollection)context).Count); 171((ICollection)context).CopyTo(array, 1); 187((ICollection)context).CopyTo(array, 0); 200((ICollection)context).CopyTo(destArray, 1); 216((ICollection)context).CopyTo(array, 0); 228IEnumerator enumerator = ((ICollection)context).GetEnumerator(); 526Assert.Equal(expectedCount, ((ICollection)context).Count); 584Assert.Equal(2, ((ICollection)context).Count); 602Assert.Equal(2, ((ICollection)context).Count); 621Assert.Equal(2, ((ICollection)context).Count); 643Assert.Equal(2, ((ICollection)context).Count); 663Assert.Equal(2, ((ICollection)context).Count); 704Assert.Equal(2, ((ICollection)context).Count); 838Assert.Equal(2, ((ICollection)context).Count); 857Assert.Equal(2, ((ICollection)context).Count);
System\Windows\Forms\CheckedListBox.CheckedIndexCollectionTests.cs (2)
36((ICollection)_collection).SyncRoot.Should().BeSameAs(_collection); 37((ICollection)_collection).IsSynchronized.Should().BeFalse();
System\Windows\Forms\CheckedListBox.CheckedItemCollectionTests.cs (3)
30((ICollection)_collection).SyncRoot.Should().BeSameAs(_collection); 31((ICollection)_collection).IsSynchronized.Should().BeFalse(); 97((ICollection)_collection).CopyTo(array, 0);
System\Windows\Forms\GridItemCollectionTests.cs (2)
23ICollection collection = GridItemCollection.Empty; 35ICollection collection = GridItemCollection.Empty;
System\Windows\Forms\ImageList.ImageCollectionTests.cs (2)
1616ICollection collection = list.Images; 1624ICollection collection = list.Images;
System\Windows\Forms\KeysConverterTests.cs (1)
153var standardValuesCollection = new KeysConverter().GetStandardValues();
System\Windows\Forms\ListBox.IntegerCollectionTests.cs (1)
29ICollection collection = new ListBox.IntegerCollection(owner);
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (1)
86ICollection collection = new ListBox.ObjectCollection(owner);
System\Windows\Forms\ListBox.SelectedIndexCollectionTests.cs (1)
30ICollection collection = new ListBox.SelectedIndexCollection(owner);
System\Windows\Forms\ListBox.SelectedObjectCollectionTests.cs (1)
30ICollection collection = new ListBox.SelectedObjectCollection(owner);
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
227public bool IsSupported(object serializedObject, ICollection filterAttributes)
System.Xaml (11)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (2)
1294public ArrayItemList(ICollection collection) 1971public FrugalStructList(ICollection collection)
System\Xaml\XamlObjectReader.cs (9)
1225void AddFactoryMethodAndValidateArguments(Type valueType, MemberInfo memberInfo, ICollection arguments, SerializerContext context, out ParameterInfo[] methodParams) 1301void AddArgumentsMembers(ICollection arguments, SerializerContext context) 1324bool TryAddPositionalParameters(XamlType xamlType, MemberInfo member, ICollection arguments, SerializerContext context) 1395bool TryGetInstanceDescriptorInfo(object value, SerializerContext context, TypeConverter converter, out MemberInfo member, out ICollection arguments, out bool isComplete) 1413out MemberInfo member, out ICollection arguments, out bool isComplete) 1423bool TryGetDefaultConstructorInfo(XamlType type, out MemberInfo member, out ICollection arguments, out bool isComplete) 1518ICollection arguments = null; 1553ICollection instanceDescriptorArguments = arguments; 1610void GetConstructorInfo(object value, XamlType valueXamlType, SerializerContext context, out MemberInfo member, out ICollection arguments, out bool isComplete)
System.Xaml.Tests (3)
System\Xaml\XamlTypeTests.cs (3)
1749yield return new object?[] { new SubXamlType(typeof(ICollection), new XamlSchemaContext()), XamlCollectionKind.None }; 3257public ICollection Keys => throw new NotImplementedException(); 3259public ICollection Values => throw new NotImplementedException();
UIAutomationClient (1)
System\Windows\Automation\AutomationElementCollection.cs (1)
81((ICollection)this).CopyTo(array, index);
WindowsFormsIntegration (2)
System\Windows\Integration\PropertyMap.cs (2)
99public ICollection Keys 111public ICollection Values