4 interfaces inheriting from IReadOnlyCollection
System.Collections.Immutable (1)
System\Collections\Immutable\IImmutableSet.cs (1)
18public interface IImmutableSet<T> : IReadOnlyCollection<T>
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\IReadOnlyDictionary.cs (1)
9public interface IReadOnlyDictionary<TKey, TValue> : IReadOnlyCollection<KeyValuePair<TKey, TValue>>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\IReadOnlyList.cs (1)
11public interface IReadOnlyList<out T> : IReadOnlyCollection<T>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\IReadOnlySet.cs (1)
10public interface IReadOnlySet<T> : IReadOnlyCollection<T>
58 implementations of IReadOnlyCollection
Microsoft.AspNetCore.SignalR.Core (1)
Internal\HubGroupList.cs (1)
9internal sealed class HubGroupList : IReadOnlyCollection<ConcurrentDictionary<string, HubConnectionContext>>
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>
SignalRSamples (1)
ConnectionList.cs (1)
10internal class ConnectionList : IReadOnlyCollection<ConnectionContext>
SocialWeather (1)
ConnectionList.cs (1)
10internal class ConnectionList : IReadOnlyCollection<ConnectionContext>
System.Collections (6)
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\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)
27IReadOnlyCollection<T>
System.Collections.Concurrent (3)
System\Collections\Concurrent\BlockingCollection.cs (1)
45public class BlockingCollection<T> : IEnumerable<T>, ICollection, IDisposable, IReadOnlyCollection<T>
System\Collections\Concurrent\ConcurrentBag.cs (1)
33public class ConcurrentBag<T> : IProducerConsumerCollection<T>, IReadOnlyCollection<T>
System\Collections\Concurrent\ConcurrentStack.cs (1)
39public class ConcurrentStack<T> : IProducerConsumerCollection<T>, IReadOnlyCollection<T>
System.Collections.Immutable (6)
System\Collections\Frozen\FrozenSet.cs (1)
208IReadOnlyCollection<T>, ICollection
System\Collections\Immutable\ImmutableHashSet_1.Builder.cs (1)
30public sealed class Builder : IReadOnlyCollection<T>, ISet<T>
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.Linq (2)
System\Linq\Lookup.cs (2)
262internal sealed class CollectionLookup<TKey, TElement> : Lookup<TKey, TElement>, ICollection<IGrouping<TKey, TElement>>, IReadOnlyCollection<IGrouping<TKey, TElement>> 302internal sealed class EmptyLookup<TKey, TElement> : ILookup<TKey, TElement>, ICollection<IGrouping<TKey, TElement>>, IReadOnlyCollection<IGrouping<TKey, TElement>>
System.Net.Http (1)
System\Net\Http\Headers\HeaderStringValues.cs (1)
10public readonly struct HeaderStringValues : IReadOnlyCollection<string>
System.Net.Primitives (1)
System\Net\CookieCollection.cs (1)
15public class CookieCollection : ICollection<Cookie>, IReadOnlyCollection<Cookie>, ICollection
System.Private.CoreLib (7)
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (1)
22public class ConcurrentQueue<T> : IProducerConsumerCollection<T>, IReadOnlyCollection<T>
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\HashSet.cs (1)
16public class HashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>, IReadOnlySet<T>, ISerializable, IDeserializationCallback
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (1)
22IReadOnlyCollection<T>
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>
System.Reflection.Metadata (23)
System\Reflection\Metadata\PortablePdb\HandleCollections.Debug.cs (7)
11public readonly struct DocumentHandleCollection : IReadOnlyCollection<DocumentHandle> 110public readonly struct MethodDebugInformationHandleCollection : IReadOnlyCollection<MethodDebugInformationHandle> 209public readonly struct LocalScopeHandleCollection : IReadOnlyCollection<LocalScopeHandle> 417public readonly struct LocalVariableHandleCollection : IReadOnlyCollection<LocalVariableHandle> 523public readonly struct LocalConstantHandleCollection : IReadOnlyCollection<LocalConstantHandle> 629public readonly struct ImportScopeCollection : IReadOnlyCollection<ImportScopeHandle> 728public readonly struct CustomDebugInformationHandleCollection : IReadOnlyCollection<CustomDebugInformationHandle>
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (16)
228public readonly struct CustomAttributeHandleCollection : IReadOnlyCollection<CustomAttributeHandle> 348public readonly struct DeclarativeSecurityAttributeHandleCollection : IReadOnlyCollection<DeclarativeSecurityAttributeHandle> 455public readonly struct MethodDefinitionHandleCollection : IReadOnlyCollection<MethodDefinitionHandle> 575public readonly struct FieldDefinitionHandleCollection : IReadOnlyCollection<FieldDefinitionHandle> 695public readonly struct PropertyDefinitionHandleCollection : IReadOnlyCollection<PropertyDefinitionHandle> 815public readonly struct EventDefinitionHandleCollection : IReadOnlyCollection<EventDefinitionHandle> 935public readonly struct MethodImplementationHandleCollection : IReadOnlyCollection<MethodImplementationHandle> 1038public readonly struct ParameterHandleCollection : IReadOnlyCollection<ParameterHandle> 1150public readonly struct InterfaceImplementationHandleCollection : IReadOnlyCollection<InterfaceImplementationHandle> 1251public readonly struct TypeDefinitionHandleCollection : IReadOnlyCollection<TypeDefinitionHandle> 1341public readonly struct TypeReferenceHandleCollection : IReadOnlyCollection<TypeReferenceHandle> 1431public readonly struct ExportedTypeHandleCollection : IReadOnlyCollection<ExportedTypeHandle> 1521public readonly struct MemberReferenceHandleCollection : IReadOnlyCollection<MemberReferenceHandle> 1654public readonly struct AssemblyReferenceHandleCollection : IReadOnlyCollection<AssemblyReferenceHandle> 1765public readonly struct ManifestResourceHandleCollection : IReadOnlyCollection<ManifestResourceHandle> 1855public readonly struct AssemblyFileHandleCollection : IReadOnlyCollection<AssemblyFileHandle>
222 references to IReadOnlyCollection
KeyManagementSample (1)
Program.cs (1)
37var allKeys = keyManager.GetAllKeys();
KeyManagementSimulator (2)
Program.cs (2)
400public void UpdateMetrics(DateTimeOffset now, IReadOnlyCollection<Guid> defaultKeyIds) 530IReadOnlyCollection<XElement> IXmlRepository.GetAllElements()
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerHandler.cs (1)
371IReadOnlyCollection<Exception> exceptions;
Microsoft.AspNetCore.Components.Endpoints (3)
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (3)
85var _ when type == (typeof(IReadOnlyCollection<TElement>)) => true, 191var _ when type.IsAssignableTo(typeof(IReadOnlyCollection<TElement>)) => 192CreateConverter<IReadOnlyCollection<TElement>, List<TElement>>(elementTypeConverter),
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Binding\FormDataMapperTests.cs (1)
674CanDeserialize_Collection<IReadOnlyCollection<int>, List<int>, int>(expected);
Microsoft.AspNetCore.Components.QuickGrid (4)
Columns\GridSort.cs (3)
23private IReadOnlyCollection<SortedProperty>? _cachedPropertyListAscending; 24private IReadOnlyCollection<SortedProperty>? _cachedPropertyListDescending; 103internal IReadOnlyCollection<SortedProperty> ToPropertyList(bool ascending)
GridItemsProviderRequest.cs (1)
68public IReadOnlyCollection<SortedProperty> GetSortByProperties() =>
Microsoft.AspNetCore.DataProtection (9)
KeyManagement\IKeyManager.cs (1)
32IReadOnlyCollection<IKey> GetAllKeys();
KeyManagement\KeyRing.cs (1)
51internal IReadOnlyCollection<Guid> GetAllKeyIds()
KeyManagement\KeyRingProvider.cs (1)
85var allKeys = _keyManager.GetAllKeys();
KeyManagement\XmlKeyManager.cs (2)
164public IReadOnlyCollection<IKey> GetAllKeys() 166var allElements = KeyRepository.GetAllElements();
Repositories\EphemeralXmlRepository.cs (1)
27public IReadOnlyCollection<XElement> GetAllElements()
Repositories\FileSystemXmlRepository.cs (1)
68public virtual IReadOnlyCollection<XElement> GetAllElements()
Repositories\IXmlRepository.cs (1)
20IReadOnlyCollection<XElement> GetAllElements();
Repositories\RegistryXmlRepository.cs (1)
56public virtual IReadOnlyCollection<XElement> GetAllElements()
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (1)
EntityFrameworkCoreXmlRepository.cs (1)
41public virtual IReadOnlyCollection<XElement> GetAllElements()
Microsoft.AspNetCore.DataProtection.StackExchangeRedis (1)
RedisXmlRepository.cs (1)
33public IReadOnlyCollection<XElement> GetAllElements()
Microsoft.AspNetCore.DataProtection.Tests (11)
KeyManagement\KeyRingProviderTests.cs (1)
753IEnumerable<IReadOnlyCollection<IKey>> getAllKeysReturnValues,
KeyManagement\XmlKeyManagerTests.cs (6)
328var keys = RunGetAllKeysCore(xml, activator); 595private static IReadOnlyCollection<IKey> RunGetAllKeysCore(string xml, IActivator activator, ILoggerFactory loggerFactory = null) 818var fetchedKeys = keyManager.GetAllKeys(); 832var fetchedKeys2 = keyManager.GetAllKeys(); 908var fetchedKeys = keyManager.GetAllKeys(); 920var fetchedKeys2 = keyManager.GetAllKeys();
Repositories\FileSystemXmlRepositoryTests.cs (2)
55var allElements = repository.GetAllElements(); 133var allElements = repository.GetAllElements();
Repositories\RegistryXmlRepositoryTests.cs (2)
42var allElements = repository.GetAllElements(); 120var allElements = repository.GetAllElements();
Microsoft.AspNetCore.Http.Connections.Tests (1)
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (1)
17 public IReadOnlyCollection<XElement> GetAllElements()
Microsoft.AspNetCore.Http.Extensions (3)
src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (3)
85var _ when type == (typeof(IReadOnlyCollection<TElement>)) => true, 191var _ when type.IsAssignableTo(typeof(IReadOnlyCollection<TElement>)) => 192CreateConverter<IReadOnlyCollection<TElement>, List<TElement>>(elementTypeConverter),
Microsoft.AspNetCore.Mvc.Core (1)
Diagnostics\EventData.cs (1)
26int IReadOnlyCollection<KeyValuePair<string, object>>.Count => Count;
Microsoft.AspNetCore.Mvc.Core.Test (3)
ModelBinding\Binders\CollectionModelBinderProviderTest.cs (1)
34[InlineData(typeof(IReadOnlyCollection<int>))]
ModelBinding\ModelBindingHelperTest.cs (2)
1335[InlineData(typeof(IReadOnlyCollection<int>))] 1359[InlineData(typeof(IReadOnlyCollection<int>))]
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
CollectionModelBinderIntegrationTest.cs (1)
750typeof(IReadOnlyCollection<string>),
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (11)
DefaultHtmlGeneratorTest.cs (11)
536public static TheoryData<string[], bool, IReadOnlyCollection<string>> GetCurrentValues_CollectionData 540return new TheoryData<string[], bool, IReadOnlyCollection<string>> 581IReadOnlyCollection<string> expected) 609IReadOnlyCollection<string> expected) 657IReadOnlyCollection<string> expected) 685IReadOnlyCollection<string> expected) 709public void GetCurrentValues_WithModel_ReturnsModel(string[] rawValue, IReadOnlyCollection<string> expected) 763IReadOnlyCollection<string> expected) 792IReadOnlyCollection<string> expected) 818IReadOnlyCollection<string> expected) 933IReadOnlyCollection<string> expected)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
RequestHeaderBenchmarks.cs (1)
85private unsafe Span<byte> SetUnknownHeaders(Span<byte> nativeMemory, ref HTTP_REQUEST_V1 requestStructure, IReadOnlyCollection<(string Key, string Value)> headerNames)
Microsoft.AspNetCore.Server.HttpSys.Tests (2)
RequestHeaderTests.cs (2)
400private static unsafe Span<byte> SetUnknownHeaders(Span<byte> nativeMemory, ref HTTP_REQUEST_V1 requestStructure, IReadOnlyCollection<(string Key, string Value)> headerNames) 438private static unsafe Span<byte> SetInvalidUnknownHeaders(Span<byte> nativeMemory, ref HTTP_REQUEST_V1 requestStructure, IReadOnlyCollection<string> headerNames)
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\AddressBinder.cs (6)
168public OverrideWithAddressesStrategy(IReadOnlyCollection<string> addresses, Func<ListenOptions, ListenOptions> useHttps) 189public OverrideWithEndpointsStrategy(IReadOnlyCollection<ListenOptions> endpoints, string[] originalAddresses) 208private readonly IReadOnlyCollection<ListenOptions> _endpoints; 210public EndpointsStrategy(IReadOnlyCollection<ListenOptions> endpoints) 226protected readonly IReadOnlyCollection<string> _addresses; 229public AddressesStrategy(IReadOnlyCollection<string> addresses, Func<ListenOptions, ListenOptions> useHttps)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (1)
17 public IReadOnlyCollection<XElement> GetAllElements()
Microsoft.AspNetCore.SignalR.Tests (1)
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (1)
17 public IReadOnlyCollection<XElement> GetAllElements()
Microsoft.Build (53)
BackEnd\Components\ProjectCache\CacheContext.cs (5)
23public IReadOnlyCollection<ProjectGraphEntryPoint>? GraphEntryPoints { get; } 26public IReadOnlyCollection<string> RequestedTargets { get; } 32IReadOnlyCollection<ProjectGraphEntryPoint>? graphEntryPoints = null) 40IReadOnlyCollection<string> requestedTargets, 42IReadOnlyCollection<ProjectGraphEntryPoint>? graphEntryPoints = null)
BackEnd\Components\ProjectCache\CacheResult.cs (2)
90public static CacheResult IndicateCacheHit(IReadOnlyCollection<PluginTargetResult> targetResults) 108private static BuildResult ConstructBuildResult(IReadOnlyCollection<PluginTargetResult> targetResults)
BackEnd\Components\ProjectCache\PluginTargetResult.cs (2)
17public IReadOnlyCollection<ITaskItem2> TaskItems { get; } 22IReadOnlyCollection<ITaskItem2> taskItems,
BackEnd\Components\ProjectCache\ProjectCacheService.cs (3)
246IReadOnlyCollection<ProjectGraphEntryPoint>? graphEntryPoints = buildRequestConfiguration != null 620private IReadOnlyCollection<ProjectGraphEntryPoint> GetGraphEntryPoints(BuildRequestConfiguration configuration) 653static IReadOnlyCollection<ProjectGraphEntryPoint> GenerateGraphEntryPointsFromSolutionConfigurationXml(
BackEnd\Shared\BuildRequestConfiguration.cs (1)
146internal IReadOnlyCollection<string> RequestedTargets { get; }
BackEnd\Shared\BuildResult.cs (1)
521internal void KeepSpecificTargetResults(IReadOnlyCollection<string> targetsToKeep)
Construction\Solution\SolutionProjectGenerator.cs (4)
146private readonly IReadOnlyCollection<string> _targetNames = new Collection<string>(); 177IReadOnlyCollection<string> targetNames, 215IReadOnlyCollection<string> targetNames = default(IReadOnlyCollection<string>),
ErrorUtilities.cs (2)
500internal static void VerifyThrowArgumentLength<T>(IReadOnlyCollection<T> parameter, string parameterName) 513internal static void VerifyThrowArgumentLengthIfNotNull<T>(IReadOnlyCollection<T> parameter, string parameterName)
Graph\GraphBuilder.cs (12)
33public IReadOnlyCollection<ProjectGraphNode> ProjectNodes { get; private set; } 35public IReadOnlyCollection<ProjectGraphNode> RootNodes { get; private set; } 37public IReadOnlyCollection<ProjectGraphNode> EntryPointNodes { get; private set; } 52private IReadOnlyDictionary<string, IReadOnlyCollection<string>> _solutionDependencies; 103private static IReadOnlyCollection<ProjectGraphNode> GetGraphRoots(IReadOnlyCollection<ProjectGraphNode> entryPointNodes) 200private static void AddEdgesFromSolution(IReadOnlyDictionary<ConfigurationMetadata, ParsedProject> allParsedProjects, IReadOnlyDictionary<string, IReadOnlyCollection<string>> solutionDependencies, GraphEdges edges) 247private (IReadOnlyCollection<ProjectGraphEntryPoint> NewEntryPoints, IReadOnlyDictionary<string, IReadOnlyCollection<string>> SolutionDependencies) ExpandSolutionIfPresent(IReadOnlyCollection<ProjectGraphEntryPoint> entryPoints) 312Dictionary<string, IReadOnlyCollection<string>> solutionDependencies = new(); 440IReadOnlyCollection<ProjectGraphNode> entryPointNodes,
Graph\ProjectGraph.cs (9)
60private readonly Lazy<IReadOnlyCollection<ProjectGraphNode>> _projectNodesTopologicallySorted; 92public IReadOnlyCollection<ProjectGraphNode> EntryPointNodes { get; } 97public IReadOnlyCollection<ProjectGraphNode> ProjectNodes { get; } 103public IReadOnlyCollection<ProjectGraphNode> ProjectNodesTopologicallySorted => _projectNodesTopologicallySorted.Value; 105public IReadOnlyCollection<ProjectGraphNode> GraphRoots { get; } 449_projectNodesTopologicallySorted = new Lazy<IReadOnlyCollection<ProjectGraphNode>>(() => TopologicalSort(GraphRoots, ProjectNodes)); 559private static IReadOnlyCollection<ProjectGraphNode> TopologicalSort( 560IReadOnlyCollection<ProjectGraphNode> graphRoots, 561IReadOnlyCollection<ProjectGraphNode> graphNodes)
Graph\ProjectGraphNode.cs (2)
39public IReadOnlyCollection<ProjectGraphNode> ProjectReferences => _projectReferences; 44public IReadOnlyCollection<ProjectGraphNode> ReferencingProjects => _referencingProjects;
Graph\ProjectInterpretation.cs (4)
317var globalPropertiesToRemove = SplitPropertyNames(projectReference.GetMetadataValue(GlobalPropertiesToRemoveMetadataName)); 394var undefineProperties = SplitPropertyNames(projectReference.GetMetadataValue(ItemMetadataNames.UndefinePropertiesMetadataName)); 451private static IReadOnlyCollection<string> SplitPropertyNames(string propertyNamesString) 463IReadOnlyCollection<string> propertyNamesToRemove)
Instance\ProjectInstance.cs (2)
2391IReadOnlyCollection<string> targetNames, 2698IReadOnlyCollection<string> targetNames,
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (2)
91public abstract IReadOnlyCollection<XmlAttributeLink> Attributes { get; } 145public static IReadOnlyCollection<XmlAttributeLink> GetAttributes(ProjectElement xml)
ObjectModelRemoting\LinkedObjectFactory.cs (2)
72public static IReadOnlyCollection<Project> GetLocalProjects(ProjectCollection collection, string projectFile = null) 74return (IReadOnlyCollection<Project>)collection.GetLoadedProjects(false, projectFile);
Microsoft.Build.Engine.OM.UnitTests (31)
ErrorUtilities.cs (2)
500internal static void VerifyThrowArgumentLength<T>(IReadOnlyCollection<T> parameter, string parameterName) 513internal static void VerifyThrowArgumentLengthIfNotNull<T>(IReadOnlyCollection<T> parameter, string parameterName)
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\InheritanceImplementationHelpers.cs (1)
97public static IReadOnlyCollection<XmlAttributeLink> GetAttributes(this IProjectElementLinkHelper xml)
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectChooseElementLink.cs (1)
51public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectElementContainerLink.cs (1)
77public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectElementLink.cs (2)
39public IReadOnlyCollection<XmlAttributeLink> Attributes => ProjectItemElementLink.GetAttributes(this.Source); 99public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectExtensionsElementLink.cs (1)
63public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectImportElementLink.cs (1)
60public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectImportGroupElementLink.cs (1)
51public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectItemDefinitionElementLink.cs (1)
51public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectItemDefinitionGroupElementLink.cs (1)
51public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectItemElementLink.cs (1)
62public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectItemGroupElementLink.cs (1)
51public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectMetadataElementLink.cs (1)
62public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectOnErrorElementLink.cs (1)
50public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectOtherwiseElementLink.cs (1)
51public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectOutputElementLink.cs (1)
51public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectPropertyElementLink.cs (1)
62public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectPropertyGroupElementLink.cs (1)
51public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (1)
174public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectSdkElementLink.cs (1)
51public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectTargetElementLink.cs (1)
62public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectTaskElementLink.cs (1)
78public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectUsingTaskBodyElementLink.cs (1)
58public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectUsingTaskElementLink.cs (1)
50public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectUsingTaskParameterElementLink.cs (1)
54public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectWhenElementLink.cs (1)
51public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockUsingTaskParameterGroupElementLink.cs (1)
51public override IReadOnlyCollection<XmlAttributeLink> Attributes => EImpl.GetAttributes();
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (2)
355private IReadOnlyCollection<MockProjectLinkRemoter> ExportLoadedProjects(string filePath) 358var toRemote = LinkedObjectsFactory.GetLocalProjects(this.Collection, filePath);
Microsoft.Build.Engine.UnitTests (16)
Graph\GraphLoadedFromSolution_tests.cs (3)
197IReadOnlyCollection<SolutionConfigurationInSolution> solutionConfigurations) 207IReadOnlyCollection<SolutionConfigurationInSolution> solutionConfigurations) 684IReadOnlyCollection<SolutionConfigurationInSolution> solutionConfigurations,
Graph\GraphTestingUtilities.cs (1)
146internal static IReadOnlyCollection<ProjectGraphNode> GetInnerBuilds(ProjectGraph graph, int projectNumber)
Graph\ParallelWorkSet_Tests.cs (1)
273_workSet.CompletedWork.ShouldBeSameIgnoringOrder((IReadOnlyCollection<KeyValuePair<string, string>>)tt.ExpectedCompletedWork);
Graph\ProjectGraph_Tests.cs (5)
2537var innerBuilds1 = GetInnerBuilds(graph, 1); 2549var innerBuilds4 = GetInnerBuilds(graph, 4); 2624var innerBuildsFor1 = GetInnerBuilds(graph, 1); 2637var innerBuildsFor2 = GetInnerBuilds(graph, 2); 2651var innerBuildsFor3 = GetInnerBuilds(graph, 3);
Graph\ResultCacheBasedBuilds_Tests.cs (1)
425IReadOnlyCollection<ProjectGraphNode> topoSortedNodes,
ProjectCache\ProjectCacheTests.cs (1)
628private static string CreateSolutionConfigurationProperty(IReadOnlyCollection<ProjectGraphNode> projectNodes)
SolutionFileBuilder.cs (4)
26public static readonly IReadOnlyCollection<SolutionConfigurationInSolution> SolutionConfigurationPlatformsDefaults = new[] 37public IReadOnlyCollection<SolutionConfigurationInSolution> SolutionConfigurationPlatforms { get; set; } = SolutionConfigurationPlatformsDefaults; 53public IReadOnlyCollection<ProjectInfo> Dependencies => _dependencies; 55public IReadOnlyCollection<string> DependencyGuids => _dependencyGuids;
Microsoft.Build.Framework (1)
SegmentedArray`1.cs (1)
129int IReadOnlyCollection<T>.Count => Length;
Microsoft.Build.Tasks.Core (6)
AssemblyDependency\ResolveAssemblyReference.cs (4)
2465IReadOnlyCollection<DependentAssembly> allRemappedAssemblies = CombineRemappedAssemblies(appConfigRemappedAssemblies, autoUnifiedRemappedAssemblies); 2704private static IReadOnlyCollection<DependentAssembly> CombineRemappedAssemblies(IReadOnlyCollection<DependentAssembly> first, IReadOnlyCollection<DependentAssembly> second)
ErrorUtilities.cs (2)
500internal static void VerifyThrowArgumentLength<T>(IReadOnlyCollection<T> parameter, string parameterName) 513internal static void VerifyThrowArgumentLengthIfNotNull<T>(IReadOnlyCollection<T> parameter, string parameterName)
Microsoft.Build.Utilities.Core (2)
ErrorUtilities.cs (2)
500internal static void VerifyThrowArgumentLength<T>(IReadOnlyCollection<T> parameter, string parameterName) 513internal static void VerifyThrowArgumentLengthIfNotNull<T>(IReadOnlyCollection<T> parameter, string parameterName)
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
171|| genType == typeof(IReadOnlyCollection<>)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
175new PredefinedTypeInfo(PredefinedType.PT_G_IREADONLYCOLLECTION, typeof(IReadOnlyCollection<>), "System.Collections.Generic.IReadOnlyCollection`1"),
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\NuGetVersionUpdater.cs (1)
375private static void ThrowExceptions(IReadOnlyCollection<Exception> exceptions)
Microsoft.Extensions.Caching.Hybrid (5)
Internal\DefaultHybridCache.cs (2)
111public override ValueTask<T> GetOrCreateAsync<TState, T>(string key, TState state, Func<TState, CancellationToken, ValueTask<T>> underlyingDataCallback, HybridCacheEntryOptions? options = null, IReadOnlyCollection<string>? tags = null, CancellationToken token = default) 156public override ValueTask SetAsync<T>(string key, T value, HybridCacheEntryOptions? options = null, IReadOnlyCollection<string>? tags = null, CancellationToken token = default)
Runtime\HybridCache.cs (3)
33HybridCacheEntryOptions? options = null, IReadOnlyCollection<string>? tags = null, CancellationToken token = default); 47HybridCacheEntryOptions? options = null, IReadOnlyCollection<string>? tags = null, CancellationToken token = default) 65public abstract ValueTask SetAsync<T>(string key, T value, HybridCacheEntryOptions? options = null, IReadOnlyCollection<string>? tags = null, CancellationToken token = default);
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
945|| genericTypeDefinition == typeof(IReadOnlyCollection<>)
Microsoft.Extensions.DependencyModel (1)
DependencyContextWriter.cs (1)
196private static void AddDependencies(IReadOnlyCollection<Dependency> dependencies, Utf8JsonWriter jsonWriter)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
HealthCheckLogScope.cs (1)
14int IReadOnlyCollection<KeyValuePair<string, object>>.Count { get; } = 1;
Microsoft.Extensions.Logging.Console (2)
JsonConsoleFormatter.cs (2)
40logEntry.State != null, logEntry.State?.ToString(), logEntry.State as IReadOnlyCollection<KeyValuePair<string, object>>); 44string category, int eventId, Exception? exception, bool hasState, string? stateMessage, IReadOnlyCollection<KeyValuePair<string, object>>? stateProperties)
MSBuild (2)
ErrorUtilities.cs (2)
500internal static void VerifyThrowArgumentLength<T>(IReadOnlyCollection<T> parameter, string parameterName) 513internal static void VerifyThrowArgumentLengthIfNotNull<T>(IReadOnlyCollection<T> parameter, string parameterName)
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
97[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlyCollection<>))]
netstandard (1)
netstandard.cs (1)
119[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlyCollection<>))]
PresentationFramework (7)
System\Windows\Controls\PopupControlService.cs (1)
880IReadOnlyCollection<Rect> ownerRects = ichParent.GetRectangles(ownerCE);
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (4)
277private static IReadOnlyCollection<ResourceDictionary> EmptyResourceDictionaries 320private static IReadOnlyCollection<FrameworkElement> EmptyFrameworkElementList 322private static IReadOnlyCollection<FrameworkContentElement> EmptyFrameworkContentElementList 324private static IReadOnlyCollection<Application> EmptyApplicationList
System\Windows\Documents\MsSpellCheckLib\SpellChecker\OptionDescription.cs (1)
37internal IReadOnlyCollection<string> Labels
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellingError.cs (1)
61internal IReadOnlyCollection<string> Suggestions
SignalR.Client.FunctionalTestApp (1)
src\SignalR\common\Shared\EphemeralDataProtectionProvider.cs (1)
17 public IReadOnlyCollection<XElement> GetAllElements()
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
239IReadOnlyCollection<KeyValuePair<TKey, TValue>> rc => Math.Max(DefaultCapacity, rc.Count),
System.Collections.Immutable (6)
System\Collections\Frozen\EmptyFrozenSet.cs (1)
45other is IReadOnlyCollection<T> s ? s.Count == 0 : // TODO https://github.com/dotnet/runtime/issues/42254: Remove if/when Any includes this check
System\Collections\Immutable\IImmutableListQueries.cs (3)
270/// no larger element, the bitwise complement of <see cref="IReadOnlyCollection{T}.Count"/>. 292/// no larger element, the bitwise complement of <see cref="IReadOnlyCollection{T}.Count"/>. 317/// no larger element, the bitwise complement of <see cref="IReadOnlyCollection{T}.Count"/>.
System\Collections\Immutable\ImmutableArray_1.cs (1)
67int IReadOnlyCollection<T>.Count
System\Collections\Immutable\ImmutableExtensions.Minimal.cs (1)
47if (sequence is IReadOnlyCollection<T> readOnlyCollection)
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\DistributedContextPropagator.cs (1)
42public abstract IReadOnlyCollection<string> Fields { get; }
System\Diagnostics\LegacyPropagator.cs (1)
14public override IReadOnlyCollection<string> Fields { get; } = new ReadOnlyCollection<string>(new[] { TraceParent, RequestId, TraceState, Baggage, CorrelationContext });
System\Diagnostics\NoOutputPropagator.cs (1)
12public override IReadOnlyCollection<string> Fields { get; } = LegacyPropagator.Instance.Fields;
System\Diagnostics\PassThroughPropagator.cs (1)
12public override IReadOnlyCollection<string> Fields { get; } = LegacyPropagator.Instance.Fields;
System.Net.Http (2)
System\Net\Http\DiagnosticsHandler.cs (1)
34if (autoRedirect && _propagator.Fields is IReadOnlyCollection<string> fields && fields.Count > 0)
System\Net\Http\HttpRequestOptions.cs (1)
50int IReadOnlyCollection<KeyValuePair<string, object?>>.Count => Options.Count;
System.Private.CoreLib (1)
src\System\RuntimeType.CoreCLR.cs (1)
1049AddSpecialInterface(ref list, filter, (RuntimeType)typeof(IReadOnlyCollection<>).MakeGenericType(arrayType), false);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net9.0\System.Runtime.Forwards.cs (1)
84[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlyCollection<>))]
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\E2ETesting\BrowserAssertFailedException.cs (2)
17public BrowserAssertFailedException(IReadOnlyCollection<string> logs, Exception innerException, string screenShotPath, string innerHTML) 22private static string BuildMessage(Exception exception, IReadOnlyCollection<string> logs, string screenShotPath, string innerHTML)
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\E2ETesting\BrowserAssertFailedException.cs (2)
17public BrowserAssertFailedException(IReadOnlyCollection<string> logs, Exception innerException, string screenShotPath, string innerHTML) 22private static string BuildMessage(Exception exception, IReadOnlyCollection<string> logs, string screenShotPath, string innerHTML)
Templates.Mvc.Tests (2)
src\Shared\E2ETesting\BrowserAssertFailedException.cs (2)
17public BrowserAssertFailedException(IReadOnlyCollection<string> logs, Exception innerException, string screenShotPath, string innerHTML) 22private static string BuildMessage(Exception exception, IReadOnlyCollection<string> logs, string screenShotPath, string innerHTML)
Templates.Tests (2)
src\Shared\E2ETesting\BrowserAssertFailedException.cs (2)
17public BrowserAssertFailedException(IReadOnlyCollection<string> logs, Exception innerException, string screenShotPath, string innerHTML) 22private static string BuildMessage(Exception exception, IReadOnlyCollection<string> logs, string screenShotPath, string innerHTML)