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
89 implementations of ICollection
AssemblyStripper (4)
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Binary\SectionCollection.cs (1)
34 internal sealed class SectionCollection : ICollection, IBinaryVisitable {
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Metadata\MetadataStreamCollection.cs (1)
34 internal class MetadataStreamCollection : ICollection, IMetadataVisitable {
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Metadata\RowCollection.cs (1)
34 internal class RowCollection : ICollection, IMetadataRowVisitable {
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil.Metadata\TableCollection.cs (1)
34 internal class TableCollection : ICollection, IMetadataTableVisitable {
Microsoft.Build (3)
Construction\ProjectElementContainer.cs (1)
769internal 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.Engine (5)
Engine\ImportCollection.cs (1)
20public class ImportCollection : IEnumerable, ICollection
Engine\TargetCollection.cs (1)
24public class TargetCollection : IEnumerable, ICollection
Engine\UsingTaskCollection.cs (1)
19public class UsingTaskCollection : IEnumerable, ICollection
Items\BuildItemGroupCollection.cs (1)
25public class BuildItemGroupCollection : IEnumerable, ICollection
Properties\BuildPropertyGroupCollection.cs (1)
23public class BuildPropertyGroupCollection : ICollection, IEnumerable
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.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)
15public class TabletDeviceCollection : ICollection, IEnumerable
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
442private abstract class BaseCollection : SC.ICollection
System\Windows\Media\VisualCollection.cs (1)
48public sealed class VisualCollection : ICollection
PresentationFramework (3)
System\Windows\Controls\MultipleCopiesCollection.cs (1)
23ICollection,
System\Windows\ResourceDictionary.cs (1)
2180private class ResourceValuesCollection : ICollection
System\Windows\WindowCollection.cs (1)
23public sealed class WindowCollection : ICollection
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)
925public sealed class UnorderedItemsCollection : IReadOnlyCollection<(TElement Element, TPriority Priority)>, ICollection
System\Collections\Generic\SortedDictionary.cs (2)
523public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 684public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
System\Collections\Generic\SortedList.cs (2)
1001public sealed class KeyList : IList<TKey>, ICollection 1115public 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)
208IReadOnlyCollection<T>, ICollection
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
19public sealed partial class ImmutableHashSet<T> : IImmutableSet<T>, IHashKeyCollection<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>, IHashKeyCollection<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>, IHashKeyCollection<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 : ISortKeyCollection<T>, 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.Data.Common (2)
System\Data\BaseCollection.cs (1)
13public class InternalDataCollectionBase : ICollection
System\Data\DataViewSettingCollection.cs (1)
12public class DataViewSettingCollection : ICollection
System.DirectoryServices (3)
artifacts\obj\System.DirectoryServices\Debug\net9.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\net9.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.Management (4)
artifacts\obj\System.Management\Debug\net9.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 (9)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (2)
1461public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1656public 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)
252public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 308public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
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\net9.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 (4)
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>
UIAutomationClient (1)
System\Windows\Automation\AutomationElementCollection.cs (1)
20public class AutomationElementCollection: ICollection
1275 references to ICollection
AssemblyStripper (6)
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\BaseReflectionVisitor.cs (1)
179 protected void VisitCollection (ICollection coll)
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\BaseStructureVisitor.cs (1)
87 protected void VisitCollection (ICollection coll)
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Cecil\MetadataResolver.cs (2)
87 static FieldDefinition GetField (ICollection collection, FieldReference reference) 131 static MethodDefinition GetMethod (ICollection collection, MethodReference reference)
.packages\microsoft.dotnet.cilstrip.sources\9.0.0-beta.24256.1\contentFiles\cs\netstandard2.0\Mono.Xml\SmallXmlParser.cs (1)
168 (elementNames as ICollection).CopyTo (arr, 0);
AssemblyStripper.cs (1)
73static void ClearMethodBodies(ICollection methods)
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)
788bool ICollection.IsSynchronized => false; 790object ICollection.SyncRoot => this; 848void 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)
302ICollection ITaskItem.MetadataNames 908public ICollection MetadataNames
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
828if (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)
803public ICollection MetadataNames
Utilities\Utilities.cs (2)
591ICollection collection = enumerable as ICollection;
Microsoft.Build.Engine (7)
Collections\CopyOnWriteHashtable.cs (2)
163public ICollection Keys { get { return ReadOperation.Keys; } } 164public ICollection Values { get { return ReadOperation.Values; } }
Engine\ItemBucket.cs (1)
65ICollection itemNames,
Items\BuildItem.cs (2)
681public ICollection MetadataNames 713public ICollection CustomMetadataNames
Items\TaskItem.cs (2)
80public ICollection MetadataNames 106public ICollection CustomMetadataNames
Microsoft.Build.Engine.UnitTests (7)
BackEnd\TaskRegistry_Tests.cs (1)
2269public 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)
440public 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.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)
1158if (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)
188public ICollection MetadataNames
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
177|| sysType == typeof(System.Collections.ICollection)
Microsoft.Extensions.FileSystemGlobbing (1)
MatcherExtensions.cs (1)
61List<string> result = matches is ICollection matchCollection ? new(matchCollection.Count) : new();
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)
803public 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)
803public 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)
64private ParserStack(ICollection collection) : base(collection)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XmlnsDictionary.cs (2)
492public ICollection Keys 517public ICollection Values
PresentationCore (252)
MS\Internal\Ink\ExtendedPropertyCollection.cs (2)
209/// <seealso cref="System.Collections.ICollection.Count"/> 304/// <seealso cref="System.Collections.ICollection.Count"/>
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\MimeTypeMapper.cs (1)
40lock (((ICollection)_fileExtensionToMimeType).SyncRoot)
System\Windows\FreezableCollection.cs (5)
495void ICollection.CopyTo(Array array, int index) 528bool ICollection.IsSynchronized 538object ICollection.SyncRoot 678ICollection collectionAsICollection = enumerable as ICollection;
System\Windows\Generated\TextDecorationCollection.cs (5)
396void ICollection.CopyTo(Array array, int index) 429bool ICollection.IsSynchronized 439object ICollection.SyncRoot 917ICollection icollection = collection as ICollection;
System\Windows\Input\Command\CommandBindingCollection.cs (3)
78void ICollection.CopyTo(System.Array array, int index) 80((ICollection)_innerCBList)?.CopyTo(array, index); 193public void AddRange(ICollection collection)
System\Windows\Input\Command\InputBindingCollection.cs (4)
58this.AddRange(inputBindings as ICollection); 88void ICollection.CopyTo(System.Array array, int index) 92((ICollection)_innerBindingList).CopyTo(array, index); 266public void AddRange(ICollection collection)
System\Windows\Input\Command\InputGestureCollection.cs (4)
54this.AddRange(inputGestures as ICollection); 75void ICollection.CopyTo(System.Array array, int index) 78((ICollection)_innerGestureList).CopyTo(array, index); 280public void AddRange(ICollection collection)
System\Windows\Input\InputManager.cs (2)
259public ICollection InputProviders 271internal ICollection UnsecureInputProviders
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (2)
52void ICollection.CopyTo(Array array, int index) 85/// <seealso cref="System.Collections.ICollection.SyncRoot"/>
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\TimelineCollection.cs (5)
406void ICollection.CopyTo(Array array, int index) 439bool ICollection.IsSynchronized 449object ICollection.SyncRoot 936ICollection icollection = collection as ICollection;
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (5)
226/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 239/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 247return ((ICollection)_keyFrames).SyncRoot; 255void ICollection.CopyTo(Array array, int index) 259((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\Media\CharacterMetricsDictionary.cs (5)
179bool SC.ICollection.IsSynchronized 184object SC.ICollection.SyncRoot 189void SC.ICollection.CopyTo(Array array, int index) 301SC.ICollection SC.IDictionary.Keys 306SC.ICollection SC.IDictionary.Values
System\Windows\Media\CultureSpecificStringDictionary.cs (5)
145bool SC.ICollection.IsSynchronized 150object SC.ICollection.SyncRoot 155void SC.ICollection.CopyTo(Array array, int index) 271SC.ICollection SC.IDictionary.Keys 279SC.ICollection SC.IDictionary.Values
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (5)
402void ICollection.CopyTo(Array array, int index) 435bool ICollection.IsSynchronized 445object ICollection.SyncRoot 923ICollection icollection = collection as ICollection;
System\Windows\Media\FamilyMapCollection.cs (3)
99void SC.ICollection.CopyTo(Array array, int index) 120bool SC.ICollection.IsSynchronized 125object SC.ICollection.SyncRoot
System\Windows\Media\FamilyTypefaceCollection.cs (3)
103void SC.ICollection.CopyTo(Array array, int index) 108bool SC.ICollection.IsSynchronized 113object SC.ICollection.SyncRoot
System\Windows\Media\Generated\DoubleCollection.cs (5)
368void ICollection.CopyTo(Array array, int index) 401bool ICollection.IsSynchronized 411object ICollection.SyncRoot 945ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\DrawingCollection.cs (5)
418void ICollection.CopyTo(Array array, int index) 451bool ICollection.IsSynchronized 461object ICollection.SyncRoot 966ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\GeneralTransformCollection.cs (5)
404void ICollection.CopyTo(Array array, int index) 437bool ICollection.IsSynchronized 447object ICollection.SyncRoot 925ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\GeometryCollection.cs (5)
418void ICollection.CopyTo(Array array, int index) 451bool ICollection.IsSynchronized 461object ICollection.SyncRoot 966ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\GradientStopCollection.cs (5)
404void ICollection.CopyTo(Array array, int index) 437bool ICollection.IsSynchronized 447object ICollection.SyncRoot 1028ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\Int32Collection.cs (5)
368void ICollection.CopyTo(Array array, int index) 401bool ICollection.IsSynchronized 411object ICollection.SyncRoot 945ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\PathFigureCollection.cs (5)
405void ICollection.CopyTo(Array array, int index) 438bool ICollection.IsSynchronized 448object ICollection.SyncRoot 1015ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\PathSegmentCollection.cs (5)
404void ICollection.CopyTo(Array array, int index) 437bool ICollection.IsSynchronized 447object ICollection.SyncRoot 925ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\PointCollection.cs (5)
368void ICollection.CopyTo(Array array, int index) 401bool ICollection.IsSynchronized 411object ICollection.SyncRoot 947ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\TextEffectCollection.cs (5)
404void ICollection.CopyTo(Array array, int index) 437bool ICollection.IsSynchronized 447object ICollection.SyncRoot 925ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\TransformCollection.cs (5)
418void ICollection.CopyTo(Array array, int index) 451bool ICollection.IsSynchronized 461object ICollection.SyncRoot 966ICollection icollection = collection as ICollection;
System\Windows\Media\Generated\VectorCollection.cs (5)
368void ICollection.CopyTo(Array array, int index) 401bool ICollection.IsSynchronized 411object ICollection.SyncRoot 947ICollection icollection = collection as ICollection;
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (5)
400void ICollection.CopyTo(Array array, int index) 433bool ICollection.IsSynchronized 443object ICollection.SyncRoot 921ICollection icollection = collection as ICollection;
System\Windows\Media3D\Generated\MaterialCollection.cs (5)
414void ICollection.CopyTo(Array array, int index) 447bool ICollection.IsSynchronized 457object ICollection.SyncRoot 962ICollection icollection = collection as ICollection;
System\Windows\Media3D\Generated\Model3DCollection.cs (5)
414void ICollection.CopyTo(Array array, int index) 447bool ICollection.IsSynchronized 457object ICollection.SyncRoot 962ICollection icollection = collection as ICollection;
System\Windows\Media3D\Generated\Point3DCollection.cs (5)
364void ICollection.CopyTo(Array array, int index) 397bool ICollection.IsSynchronized 407object ICollection.SyncRoot 944ICollection icollection = collection as ICollection;
System\Windows\Media3D\Generated\Transform3DCollection.cs (5)
414void ICollection.CopyTo(Array array, int index) 447bool ICollection.IsSynchronized 457object ICollection.SyncRoot 962ICollection icollection = collection as ICollection;
System\Windows\Media3D\Generated\Vector3DCollection.cs (5)
364void ICollection.CopyTo(Array array, int index) 397bool ICollection.IsSynchronized 407object ICollection.SyncRoot 944ICollection icollection = collection as ICollection;
System\Windows\Media3D\Visual3DCollection.cs (3)
158void ICollection.CopyTo(Array array, int index) 285bool ICollection.IsSynchronized 296object ICollection.SyncRoot
PresentationFramework (197)
MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
362ICollection nodes = null; 367nodes = (ICollection)selProcessor.GetSelectedNodes(selection);
MS\Internal\Annotations\Anchoring\PathNode.cs (1)
155internal static PathNode BuildPathForElements(ICollection nodes)
MS\Internal\Annotations\Component\HighlightComponent.cs (1)
488ICollection contents = cargo.Contents;
MS\Internal\Controls\InnerItemCollectionView.cs (3)
332bool ICollection.IsSynchronized 341object ICollection.SyncRoot 349void ICollection.CopyTo(Array array, int index)
MS\Internal\Data\CollectionViewGroupRoot.cs (8)
250ICollection ic = name as ICollection; 482ICollection nameList; 503else if ((nameList = name as ICollection) == null) 583ICollection nameList; 590else if ((nameList = name as ICollection) == null) 691ICollection nameList; 698else if ((nameList = name as ICollection) == null)
MS\Internal\Data\IndexedEnumerable.cs (5)
274internal ICollection Collection 312ICollection ic = collection as ICollection; 484_collection = collection as ICollection; 701private ICollection _collection;
MS\Internal\Data\StaticPropertyChangedEventManager.cs (1)
460ICollection ic = _dict.Keys;
MS\Internal\Data\ValueChangedEventManager.cs (1)
156ICollection ic = dict.Keys;
MS\Internal\Data\ValueTable.cs (1)
271ICollection keys = _table.Keys;
MS\Internal\Data\XmlBindingWorker.cs (1)
71if (CollectionView == null && DataItem is ICollection)
MS\Internal\Documents\ContentElementCollection.cs (15)
57/// <see cref="ICollection.CopyTo"/> 60/// <see cref="ICollection.CopyTo"/> 63/// <see cref="ICollection.CopyTo"/> 66/// <see cref="ICollection.CopyTo"/> 68/// <param name="array"><see cref="ICollection.CopyTo"/></param> 69/// <param name="index"><see cref="ICollection.CopyTo"/></param> 93/// <see cref="ICollection.CopyTo"/> 96/// <see cref="ICollection.CopyTo"/> 99/// <see cref="ICollection.CopyTo"/> 101/// <param name="array"><see cref="ICollection.CopyTo"/></param> 102/// <param name="index"><see cref="ICollection.CopyTo"/></param> 104/// <see cref="ICollection.CopyTo"/> 540/// <see cref="ICollection.Count"/> 563/// <see cref="ICollection.IsSynchronized"/> 577/// <see cref="ICollection.SyncRoot"/>
MS\Internal\IO\Packaging\XamlFilter.cs (2)
319ICollection keys = _xamlElementContentDescriptorDictionary.Keys; 320ICollection values = _xamlElementContentDescriptorDictionary.Values;
MS\Internal\IWeakHashtable.cs (1)
15ICollection Keys { get; }
MS\Internal\TraceData.cs (1)
265ICollection ic => string.Create(TypeConverterHelper.InvariantEnglishUS, $"{type.Name} (hash={AvTrace.GetHashCodeHelper(o)} Count={ic.Count})"),
System\Windows\Controls\ColumnDefinition.cs (12)
84/// <see cref="ICollection.CopyTo"/> 86void ICollection.CopyTo(Array array, int index) 110/// <see cref="ICollection<T>.CopyTo"/> 147/// <see cref="ICollection<T>.Add"/> 157/// <see cref="ICollection<T>.Clear"/> 192/// <see cref="ICollection<T>.Contains"/> 278/// <see cref="ICollection<T>.Remove"/> 381/// <see cref="ICollection<T>.Count"/> 382/// <seealso cref="ICollection.Count"/> 402/// <see cref="ICollection<T>.IsReadOnly"/> 415/// <see cref="ICollection.IsSynchronized"/> 423/// <see cref="ICollection.SyncRoot"/>
System\Windows\Controls\CustomDictionarySources.cs (7)
296void ICollection.CopyTo(Array array, int index) 298((ICollection)_uriList).CopyTo(array, index); 301int ICollection.Count 306bool ICollection.IsSynchronized 310return ((ICollection)_uriList).IsSynchronized; 314object ICollection.SyncRoot 318return ((ICollection)_uriList).SyncRoot;
System\Windows\Controls\ItemCollection.cs (2)
740bool ICollection.IsSynchronized 757object ICollection.SyncRoot
System\Windows\Controls\RowDefinition.cs (12)
84/// <see cref="ICollection.CopyTo"/> 86void ICollection.CopyTo(Array array, int index) 110/// <see cref="ICollection<T>.CopyTo"/> 147/// <see cref="ICollection<T>.Add"/> 157/// <see cref="ICollection<T>.Clear"/> 192/// <see cref="ICollection<T>.Contains"/> 278/// <see cref="ICollection<T>.Remove"/> 381/// <see cref="ICollection<T>.Count"/> 382/// <seealso cref="ICollection.Count"/> 402/// <see cref="ICollection<T>.IsReadOnly"/> 415/// <see cref="ICollection.IsSynchronized"/> 423/// <see cref="ICollection.SyncRoot"/>
System\Windows\Data\CollectionContainer.cs (6)
98ICollection collection = Collection as ICollection; 145ICollection coll = View as ICollection; 168ICollection coll = View as ICollection;
System\Windows\Data\CollectionView.cs (3)
1824private void DeferProcessing(ICollection changeLog) 1861private ICollection ProcessChangeLog(ArrayList changeLog, bool processAll=false) 1966ICollection unprocessedChanges = ProcessChangeLog(_tempChangeLog);
System\Windows\Data\CompositeCollection.cs (2)
337bool ICollection.IsSynchronized 349object ICollection.SyncRoot
System\Windows\Data\ListCollectionView.cs (3)
55ShadowCollection = new ArrayList((ICollection)SourceCollection); 109ShadowCollection = new ArrayList((ICollection)SourceCollection); 1644ShadowCollection = new ArrayList((ICollection)SourceCollection);
System\Windows\Documents\AdornerLayer.cs (1)
792ICollection keyCollection = ElementMap.Keys;
System\Windows\Documents\LinkTarget.cs (1)
105((ICollection)this).CopyTo(array, index);
System\Windows\Documents\TableCellCollection.cs (15)
49/// <see cref="ICollection.CopyTo"/> 52/// <see cref="ICollection.CopyTo"/> 55/// <see cref="ICollection.CopyTo"/> 58/// <see cref="ICollection.CopyTo"/> 60/// <param name="array"><see cref="ICollection.CopyTo"/></param> 61/// <param name="index"><see cref="ICollection.CopyTo"/></param> 71/// <see cref="ICollection.CopyTo"/> 74/// <see cref="ICollection.CopyTo"/> 77/// <see cref="ICollection.CopyTo"/> 79/// <param name="array"><see cref="ICollection.CopyTo"/></param> 80/// <param name="index"><see cref="ICollection.CopyTo"/></param> 82/// <see cref="ICollection.CopyTo"/> 351/// <see cref="ICollection.Count"/> 373/// <see cref="ICollection.IsSynchronized"/> 387/// <see cref="ICollection.SyncRoot"/>
System\Windows\Documents\TableColumnCollection.cs (15)
49/// <see cref="ICollection.CopyTo"/> 52/// <see cref="ICollection.CopyTo"/> 55/// <see cref="ICollection.CopyTo"/> 58/// <see cref="ICollection.CopyTo"/> 60/// <param name="array"><see cref="ICollection.CopyTo"/></param> 61/// <param name="index"><see cref="ICollection.CopyTo"/></param> 71/// <see cref="ICollection.CopyTo"/> 74/// <see cref="ICollection.CopyTo"/> 77/// <see cref="ICollection.CopyTo"/> 79/// <param name="array"><see cref="ICollection.CopyTo"/></param> 80/// <param name="index"><see cref="ICollection.CopyTo"/></param> 82/// <see cref="ICollection.CopyTo"/> 358/// <see cref="ICollection.Count"/> 381/// <see cref="ICollection.IsSynchronized"/> 395/// <see cref="ICollection.SyncRoot"/>
System\Windows\Documents\TableRowCollection.cs (15)
49/// <see cref="ICollection.CopyTo"/> 52/// <see cref="ICollection.CopyTo"/> 55/// <see cref="ICollection.CopyTo"/> 58/// <see cref="ICollection.CopyTo"/> 60/// <param name="array"><see cref="ICollection.CopyTo"/></param> 61/// <param name="index"><see cref="ICollection.CopyTo"/></param> 71/// <see cref="ICollection.CopyTo"/> 74/// <see cref="ICollection.CopyTo"/> 77/// <see cref="ICollection.CopyTo"/> 79/// <param name="array"><see cref="ICollection.CopyTo"/></param> 80/// <param name="index"><see cref="ICollection.CopyTo"/></param> 82/// <see cref="ICollection.CopyTo"/> 351/// <see cref="ICollection.Count"/> 373/// <see cref="ICollection.IsSynchronized"/> 387/// <see cref="ICollection.SyncRoot"/>
System\Windows\Documents\TableRowGroupCollection.cs (15)
49/// <see cref="ICollection.CopyTo"/> 52/// <see cref="ICollection.CopyTo"/> 55/// <see cref="ICollection.CopyTo"/> 58/// <see cref="ICollection.CopyTo"/> 60/// <param name="array"><see cref="ICollection.CopyTo"/></param> 61/// <param name="index"><see cref="ICollection.CopyTo"/></param> 71/// <see cref="ICollection.CopyTo"/> 74/// <see cref="ICollection.CopyTo"/> 77/// <see cref="ICollection.CopyTo"/> 79/// <param name="array"><see cref="ICollection.CopyTo"/></param> 80/// <param name="index"><see cref="ICollection.CopyTo"/></param> 82/// <see cref="ICollection.CopyTo"/> 351/// <see cref="ICollection.Count"/> 373/// <see cref="ICollection.IsSynchronized"/> 386/// <see cref="ICollection.SyncRoot"/>
System\Windows\Documents\TextElementCollection.cs (5)
146((ICollection)this).CopyTo(array, arrayIndex); 596void ICollection.CopyTo(Array array, int arrayIndex) 626int ICollection.Count 634bool ICollection.IsSynchronized 643object ICollection.SyncRoot
System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (6)
178public ICollection Keys 189public ICollection Values 359void ICollection.CopyTo(Array array, int index) 374int ICollection.Count 382object ICollection.SyncRoot 390bool ICollection.IsSynchronized
System\Windows\Markup\ParserStack.cs (1)
64private ParserStack(ICollection collection) : base(collection)
System\Windows\Markup\Primitives\ElementMarkupObject.cs (4)
89ICollection arguments; 125ICollection collection = value as ICollection; 363private bool TryGetConstructorInfoArguments(object instance, out ParameterInfo[] parameters, out ICollection arguments)
System\Windows\Markup\XmlnsDictionary.cs (2)
492public ICollection Keys 517public ICollection Values
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (5)
225/// See <see cref="System.Collections.ICollection.IsSynchronized">ICollection.IsSynchronized</see>. 238/// See <see cref="System.Collections.ICollection.SyncRoot">ICollection.SyncRoot</see>. 246return ((ICollection)_keyFrames).SyncRoot; 254void ICollection.CopyTo(Array array, int index) 258((ICollection)_keyFrames).CopyTo(array, index);
System\Windows\ResourceDictionary.cs (15)
85lock(((ICollection)this).SyncRoot) 408lock(((ICollection)this).SyncRoot) 492lock(((ICollection)this).SyncRoot) 586public ICollection Keys 600public ICollection Values 621lock(((ICollection)this).SyncRoot) 682lock(((ICollection)this).SyncRoot) 813lock(((ICollection)this).SyncRoot) 863bool ICollection.IsSynchronized 871object ICollection.SyncRoot 912void ICollection.CopyTo(Array array, int arrayIndex) 2189int ICollection.Count 2197bool ICollection.IsSynchronized 2205object ICollection.SyncRoot 2213void ICollection.CopyTo(Array array, int index)
System\Windows\SystemResources.cs (2)
1887lock (((ICollection)Application.Current.Resources).SyncRoot) 1896lock (((ICollection)Application.Current.Resources).SyncRoot)
System\Windows\TriggerActionCollection.cs (4)
238void ICollection.CopyTo(Array array, int index) 240((ICollection)_rawList).CopyTo(array, index); 243object ICollection.SyncRoot 251bool ICollection.IsSynchronized
System\Windows\WindowCollection.cs (1)
91void ICollection.CopyTo(Array array, int index)
System.Collections (43)
System\Collections\Generic\LinkedList.cs (3)
440bool ICollection.IsSynchronized 445object ICollection.SyncRoot => this; 447void ICollection.CopyTo(Array array, int index)
System\Collections\Generic\PriorityQueue.cs (3)
932object ICollection.SyncRoot => this; 933bool ICollection.IsSynchronized => false; 935void ICollection.CopyTo(Array array, int index)
System\Collections\Generic\SortedDictionary.cs (15)
277void ICollection.CopyTo(Array array, int index) 279((ICollection)_set).CopyTo(array, index); 292ICollection IDictionary.Keys 297ICollection IDictionary.Values 398bool ICollection.IsSynchronized 403object ICollection.SyncRoot 405get { return ((ICollection)_set).SyncRoot; } 556void ICollection.CopyTo(Array array, int index) 625bool ICollection.IsSynchronized 630object ICollection.SyncRoot 632get { return ((ICollection)_dictionary).SyncRoot; } 717void ICollection.CopyTo(Array array, int index) 786bool ICollection.IsSynchronized 791object ICollection.SyncRoot 793get { 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) 1020bool ICollection.IsSynchronized 1025object ICollection.SyncRoot 1027get { return ((ICollection)_dict).SyncRoot; } 1051void ICollection.CopyTo(Array array, int arrayIndex) 1134bool ICollection.IsSynchronized 1139object ICollection.SyncRoot 1141get { return ((ICollection)_dict).SyncRoot; } 1165void 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)
696/// cref="KeyValuePair{TKey,TValue}"/> elements copied from the <see cref="ICollection"/>. The array must have zero-based indexing. 703/// elements in the source <see cref="ICollection"/> is greater than the available space from <paramref name="index"/> to 1718/// Gets an <see cref="ICollection"/> containing the keys of the <see 1721/// <value>An <see cref="ICollection"/> containing the keys of the <see 1723ICollection IDictionary.Keys => GetKeys(); 1746/// Gets an <see cref="ICollection"/> containing the values in the <see 1749/// <value>An <see cref="ICollection"/> containing the values in the <see 1751ICollection IDictionary.Values => GetValues(); 1826/// Copies the elements of the <see cref="ICollection"/> to an array, starting 1830/// the <see cref="ICollection"/>. The array must have zero-based 1840/// cref="ICollection"/> 1843void ICollection.CopyTo(Array array, int index) 1892/// Gets a value indicating whether access to the <see cref="ICollection"/> is 1895/// <value>true if access to the <see cref="ICollection"/> is synchronized 1899bool ICollection.IsSynchronized => false; 1903/// cref="ICollection"/>. This property is not supported. 1906object 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)
290ICollection IDictionary.Keys => Keys; 307ICollection IDictionary.Values => Values; 348void ICollection.CopyTo(Array array, int index) 417bool ICollection.IsSynchronized => false; 420object ICollection.SyncRoot => this;
System\Collections\Frozen\FrozenSet.cs (3)
248void ICollection.CopyTo(Array array, int index) 263bool ICollection.IsSynchronized => false; 266object 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)
132/// See <see cref="ICollection"/>. 135object ICollection.SyncRoot 141/// See the <see cref="ICollection"/> interface. 144bool ICollection.IsSynchronized 545/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 547/// <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> 549void ICollection.CopyTo(Array array, int arrayIndex)
System\Collections\Immutable\ImmutableList_1.Builder.cs (9)
1149/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 1151/// <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> 1153void ICollection.CopyTo(Array array, int arrayIndex) 1159/// Gets a value indicating whether access to the <see cref="ICollection"/> is synchronized (thread safe). 1161/// <returns>true if access to the <see cref="ICollection"/> is synchronized (thread safe); otherwise, false.</returns> 1163bool ICollection.IsSynchronized 1169/// Gets an object that can be used to synchronize access to the <see cref="ICollection"/>. 1171/// <returns>An object that can be used to synchronize access to the <see cref="ICollection"/>.</returns> 1173object ICollection.SyncRoot
System\Collections\Immutable\ImmutableList_1.cs (6)
147/// See <see cref="ICollection"/>. 150object ICollection.SyncRoot => this; 153/// See the <see cref="ICollection"/> interface. 159bool ICollection.IsSynchronized => true; 990/// See the <see cref="ICollection"/> interface. 992void System.Collections.ICollection.CopyTo(Array array, int arrayIndex) => _root.CopyTo(array, arrayIndex);
System\Collections\Immutable\ImmutableList_1.Node.cs (2)
925/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 927/// <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)
570ICollection IDictionary.Keys 581ICollection IDictionary.Values 657/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 659/// <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> 661void ICollection.CopyTo(Array array, int index) 671/// Gets an object that can be used to synchronize access to the <see cref="ICollection"/>. 673/// <returns>An object that can be used to synchronize access to the <see cref="ICollection"/>.</returns> 675object ICollection.SyncRoot 681/// Gets a value indicating whether access to the <see cref="ICollection"/> is synchronized (thread safe). 683/// <returns>true if access to the <see cref="ICollection"/> is synchronized (thread safe); otherwise, false.</returns> 685bool 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)
814/// See <see cref="ICollection"/>. 817object ICollection.SyncRoot 823/// See the <see cref="ICollection"/> interface. 826bool ICollection.IsSynchronized 950/// Copies the elements of the <see cref="ICollection"/> to an <see cref="Array"/>, starting at a particular <see cref="Array"/> index. 952/// <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> 954void 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()), 685private static IExtenderProvider[] GetExtenders(ICollection components, object instance, IDictionary? cache) 1597else if (typeof(ICollection).IsAssignableFrom(callingType)) 1599converterData = 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)
725ICollection results = typeDesc.GetAttributes(); 744ICollection extResults = extDesc.GetAttributes(); 762ICollection extResults = extDesc.GetAttributes(); 1200ICollection results; 1220ICollection extResults = extDesc.GetEvents(attributes); 1238ICollection extResults = extDesc.GetEvents(attributes); 1457ICollection results; 1477ICollection extResults = noAttributes ? extDesc.GetProperties() : extDesc.GetProperties(attributes); 1495ICollection extResults = noAttributes ? extDesc.GetProperties() : extDesc.GetProperties(attributes); 1550ICollection results; 1565ICollection extResults = extDesc.GetPropertiesFromRegisteredType(); 1869private static ICollection PipelineAttributeFilter(int pipelineType, ICollection members, Attribute[]? filter, IDictionary? cache) 1907ICollection cacheValue; 1944private static ICollection PipelineFilter(int pipelineType, ICollection members, object instance, IDictionary? cache) 2078ICollection cacheValue; 2139private static ICollection PipelineInitialize(int pipelineType, ICollection members, IDictionary? cache) 2145if (cache[s_pipelineInitializeKeys[pipelineType]] is ICollection cachedMembers && cachedMembers.Count == members.Count) 2179private static ICollection PipelineMerge(int pipelineType, ICollection primary, ICollection secondary, IDictionary? cache) 2188if (cache?[s_pipelineMergeKeys[pipelineType]] is ICollection mergeCache && mergeCache.Count == (primary.Count + secondary.Count)) 2240ICollection cacheValue; 2967internal readonly ICollection FilteredMembers; 2969internal AttributeFilterCacheItem(Attribute[] filter, ICollection filteredMembers) 2998internal readonly ICollection FilteredMembers; 3000internal FilterCacheItem(ITypeDescriptorFilterService filterService, ICollection filteredMembers)
System\Security\Authentication\ExtendedProtection\ExtendedProtectionPolicyTypeConverter.cs (2)
38parameterTypes = new Type[] { typeof(PolicyEnforcement), typeof(ProtectionScenario), typeof(ICollection) }; 44((ICollection)policy.CustomServiceNames).CopyTo(customServiceNames, 0);
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.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\net9.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\net9.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\net9.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.Linq (9)
System\Linq\AnyAll.cs (1)
37if (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)
30if (source is ICollection collection) 92/// <see cref="ICollection"/> as well as internal types used in the LINQ implementation. 122if (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)
228public ChangeTrackingArrayList(ICollection c) : base(c) { } 256public override void AddRange(ICollection c) 268public override void InsertRange(int index, ICollection c) 274public override void SetRange(int index, ICollection c)
System.Private.CoreLib (87)
src\libraries\System.Private.CoreLib\src\System\Array.cs (1)
626int 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)
1038void ICollection.CopyTo(Array array, int index) 1207bool ICollection.IsSynchronized => false; 1209object ICollection.SyncRoot => this; 1215ICollection IDictionary.Keys => Keys; 1217ICollection IDictionary.Values => Values; 1527void ICollection.CopyTo(Array array, int index) 1582bool ICollection.IsSynchronized => false; 1584object ICollection.SyncRoot => ((ICollection)_dictionary).SyncRoot; 1721void ICollection.CopyTo(Array array, int index) 1776bool ICollection.IsSynchronized => false; 1778object 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)
37if (collection is ICollection nonGenericCollection)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (4)
96bool ICollection.IsSynchronized => false; 98object ICollection.SyncRoot => list is ICollection coll ? coll.SyncRoot : this; 100void 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) 215bool ICollection.IsSynchronized => false; 217object ICollection.SyncRoot => (m_dictionary is ICollection coll) ? coll.SyncRoot : this; 296void ICollection.CopyTo(Array array, int index) 301bool ICollection.IsSynchronized => false; 303object ICollection.SyncRoot => (_collection is ICollection coll) ? coll.SyncRoot : this; 348void ICollection.CopyTo(Array array, int index) 353bool ICollection.IsSynchronized => false; 355object ICollection.SyncRoot => (_collection is ICollection coll) ? coll.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 100((ICollection)_table.Values).CopyTo(a, 0);
System\Xml\Serialization\Types.cs (4)
822else if (typeof(ICollection).IsAssignableFrom(type) && !IsArraySegment(type)) 1024else if (typeof(ICollection).IsAssignableFrom(type)) 1414internal ICollection Types 1424internal ICollection TypeMappings
System\Xml\Serialization\XmlReflectionImporter.cs (1)
796ICollection values = mapping.BaseMapping.LocalAttributes.Values;
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1183ICollection namespaces = list.Enumerate;
System\Xml\Serialization\XmlSerializationWriter.cs (6)
1285int arrayLength = typeof(ICollection).IsAssignableFrom(type) ? ((ICollection)o).Count : -1; 2094typeName = typeof(ICollection).FullName!; 3384Writer.Write(typeof(ICollection).FullName); 3603Writer.Write(typeof(ICollection).FullName); 3998Writer.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\net9.0\System.Runtime.Forwards.cs (1)
93[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.ICollection))]
System.Security.AccessControl (1)
artifacts\obj\System.Security.AccessControl\Debug\net9.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 (6)
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.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.Xaml (11)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Utility\FrugalList.cs (2)
1277public ArrayItemList(ICollection collection) 1949public FrugalStructList(ICollection collection)
System\Xaml\XamlObjectReader.cs (9)
1226void AddFactoryMethodAndValidateArguments(Type valueType, MemberInfo memberInfo, ICollection arguments, SerializerContext context, out ParameterInfo[] methodParams) 1303void AddArgumentsMembers(ICollection arguments, SerializerContext context) 1326bool 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) 1412out 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; 1607void GetConstructorInfo(object value, XamlType valueXamlType, SerializerContext context, out MemberInfo member, out ICollection arguments, out bool isComplete)
UIAutomationClient (1)
System\Windows\Automation\AutomationElementCollection.cs (1)
83((ICollection)this).CopyTo(array, index);
WindowsFormsIntegration (2)
System\Windows\Integration\PropertyMap.cs (2)
119public ICollection Keys 131public ICollection Values