29 interfaces inheriting from IReadOnlyCollection
Metrics (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Metrics.Legacy (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.Build.Framework (1)
IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.Analyzers (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.CodeStyle (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.Collections.Package (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.Debugging.Package (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.Extensions.Package (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.InteractiveHost (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.PooledObjects.Package (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CodeAnalysis.Threading.Package (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
Roslyn.Diagnostics.Analyzers (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
SemanticSearch.BuildTask (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
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>
Text.Analyzers (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
23internal interface IReadOnlySet<T> : IReadOnlyCollection<T>
287 implementations of IReadOnlyCollection
GenerateDocumentationAndConfigFiles (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Metrics (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Metrics.Legacy (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.AspNetCore.SignalR.Core (1)
Internal\HubGroupList.cs (1)
9internal sealed class HubGroupList : IReadOnlyCollection<ConcurrentDictionary<string, HubConnectionContext>>
Microsoft.CodeAnalysis (14)
Operations\IOperation.OperationList.cs (1)
24public readonly partial struct OperationList : IReadOnlyCollection<IOperation>
Operations\IOperation.OperationList.Reversed.cs (1)
26public readonly struct Reversed : IReadOnlyCollection<IOperation>
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Syntax\SyntaxNodeOrTokenList.cs (1)
23public readonly struct SyntaxNodeOrTokenList : IEquatable<SyntaxNodeOrTokenList>, IReadOnlyCollection<SyntaxNodeOrToken>
Microsoft.CodeAnalysis.Analyzers (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis.AnalyzerUtilities (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis.BannedApiAnalyzers (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis.CodeStyle (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
src\Workspaces\CoreTestUtilities\OptionsCollection.cs (1)
28internal sealed class OptionsCollection(string languageName) : IReadOnlyCollection<KeyValuePair<OptionKey2, object?>>, IOptionsReader
Microsoft.CodeAnalysis.Collections.Package (11)
Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis.Debugging.Package (1)
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis.Extensions.Package (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis.InteractiveHost (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis.PooledObjects.Package (1)
ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis.PublicApiAnalyzers (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis.Threading.Package (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis.Workspaces (12)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Workspace\Solution\ChecksumCollection.cs (1)
20internal readonly struct ChecksumCollection(ImmutableArray<Checksum> children) : IReadOnlyCollection<Checksum>
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
OptionsCollection.cs (1)
28internal sealed class OptionsCollection(string languageName) : IReadOnlyCollection<KeyValuePair<OptionKey2, object?>>, IOptionsReader
Microsoft.Maui (1)
Primitives\LockableObservableListWrapper.cs (1)
12 public class LockableObservableListWrapper : IList<string>, ICollection<string>, INotifyCollectionChanged, INotifyPropertyChanged, IReadOnlyList<string>, IReadOnlyCollection<string>, IEnumerable<string>, IEnumerable
Roslyn.Diagnostics.Analyzers (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
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)
944public sealed class UnorderedItemsCollection : IReadOnlyCollection<(TElement Element, TPriority Priority)>, ICollection
System\Collections\Generic\SortedDictionary.cs (2)
515public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 676public 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)
244IReadOnlyCollection<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>, IReadOnlyCollection<T>, ICollection<T>, ISet<T>, IReadOnlySet<T>, ICollection, IStrongEnumerable<T, ImmutableHashSet<T>.Enumerator>
System\Collections\Immutable\ImmutableHashSet_1.HashBucketByRefEqualityComparer.cs (1)
11public sealed partial class ImmutableHashSet<T> : IImmutableSet<T>, IReadOnlyCollection<T>, ICollection<T>, ISet<T>, ICollection, IStrongEnumerable<T, ImmutableHashSet<T>.Enumerator>
System\Collections\Immutable\ImmutableHashSet_1.HashBucketByValueEqualityComparer.cs (1)
11public sealed partial class ImmutableHashSet<T> : IImmutableSet<T>, IReadOnlyCollection<T>, ICollection<T>, ISet<T>, ICollection, IStrongEnumerable<T, ImmutableHashSet<T>.Enumerator>
System\Collections\Immutable\ImmutableSortedSet_1.Builder.cs (1)
31public sealed class Builder : IReadOnlyCollection<T>, ISet<T>, ICollection
System.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.Linq.AsyncEnumerable (1)
System\Linq\ToLookupAsync.cs (1)
220private sealed class EmptyLookup<TKey, TElement> : ILookup<TKey, TElement>, IList<IGrouping<TKey, TElement>>, IReadOnlyCollection<IGrouping<TKey, TElement>>
System.Net.Http (3)
artifacts\obj\System.Net.Http\Debug\net10.0\System.Net.Http.notsupported.cs (3)
304public sealed partial class HttpRequestOptions : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, object?>>, System.Collections.Generic.IDictionary<string, object?>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, object?>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string, object?>>, System.Collections.Generic.IReadOnlyDictionary<string, object?>, System.Collections.IEnumerable 583public readonly partial struct HeaderStringValues : System.Collections.Generic.IEnumerable<string>, System.Collections.Generic.IReadOnlyCollection<string>, System.Collections.IEnumerable 635public readonly partial struct HttpHeadersNonValidated : System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, System.Net.Http.Headers.HeaderStringValues>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string, System.Net.Http.Headers.HeaderStringValues>>, System.Collections.Generic.IReadOnlyDictionary<string, System.Net.Http.Headers.HeaderStringValues>, System.Collections.IEnumerable
System.Net.Primitives (1)
artifacts\obj\System.Net.Primitives\Debug\net10.0\System.Net.Primitives.notsupported.cs (1)
49public partial class CookieCollection : System.Collections.Generic.ICollection<System.Net.Cookie>, System.Collections.Generic.IEnumerable<System.Net.Cookie>, System.Collections.Generic.IReadOnlyCollection<System.Net.Cookie>, System.Collections.ICollection, System.Collections.IEnumerable
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)
1885public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 2080public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (1)
17public 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)
247public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 303public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
System.Private.Windows.Core.TestUtilities (2)
XUnit\EnumerableTupleTheoryData.cs (2)
11public class EnumerableTupleTheoryData<T1, T2> : IReadOnlyCollection<object[]> 28public class EnumerableTupleTheoryData<T1, T2, T3> : IReadOnlyCollection<object[]>
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>
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
13: IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>
Test.Utilities (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
Text.Analyzers (11)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
18public readonly struct KeyCollection : ICollection<TKey>, IReadOnlyCollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
18public readonly struct ValueCollection : ICollection<TValue>, IReadOnlyCollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
15public readonly partial struct KeyCollection : IReadOnlyCollection<TKey>, ICollection<TKey>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
15public readonly partial struct ValueCollection : IReadOnlyCollection<TValue>, ICollection<TValue>, ICollection
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+Builder.cs (1)
16public sealed class Builder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\ImmutableSegmentedHashSet`1+ValueBuilder.cs (1)
18private struct ValueBuilder : ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (2)
1294public sealed class KeyCollection : ICollection<TKey>, ICollection, IReadOnlyCollection<TKey> 1502public sealed class ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26internal class SegmentedHashSet<T> : ICollection<T>, ISet<T>, IReadOnlyCollection<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
17internal sealed class List<T> : IReadOnlyList<T>, IList<T>, IReadOnlyCollection<T>
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
17internal sealed partial class ArrayBuilder<T> : IReadOnlyCollection<T>, IReadOnlyList<T>, ICollection<T>
663 references to IReadOnlyCollection
Aspire.Dashboard (2)
Components\Pages\StructuredLogs.razor.cs (1)
488public required IReadOnlyCollection<TelemetryFilter> Filters { get; set; }
Components\Pages\Traces.razor.cs (1)
381public required IReadOnlyCollection<TelemetryFilter> Filters { get; set; }
Aspire.Hosting (1)
Dcp\DcpKubernetesClient.cs (1)
42IReadOnlyCollection<(string name, string value)>? queryParams = null,
Aspire.Playground.Tests (5)
tests\Aspire.TestUtilities\QuarantinedTestAttribute.cs (1)
52public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
tests\Aspire.TestUtilities\RequiresDockerAttribute.cs (1)
31public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
tests\Aspire.TestUtilities\RequiresPlaywrightAttribute.cs (1)
25public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
tests\Aspire.TestUtilities\RequiresSSLCertificateAttribute.cs (1)
16public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
tests\Aspire.TestUtilities\RequiresToolsAttribute.cs (1)
23public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
Aspire.TestUtilities (5)
QuarantinedTestAttribute.cs (1)
52public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
RequiresDockerAttribute.cs (1)
31public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
RequiresPlaywrightAttribute.cs (1)
25public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
RequiresSSLCertificateAttribute.cs (1)
16public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
RequiresToolsAttribute.cs (1)
23public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Parser\KnownTypeSymbols.cs (1)
120IReadOnlyCollection_Unbound = compilation.GetBestTypeByMetadataName(typeof(IReadOnlyCollection<>))?.ConstructUnboundGenericType();
GenerateDocumentationAndConfigFiles (14)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (2)
53var disallowedCatchTypes = GetDisallowedCatchTypes(compilationStartAnalysisContext.Compilation); 100private static IReadOnlyCollection<INamedTypeSymbol> GetDisallowedCatchTypes(Compilation compilation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks)
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()
Metrics (14)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (2)
53var disallowedCatchTypes = GetDisallowedCatchTypes(compilationStartAnalysisContext.Compilation); 100private static IReadOnlyCollection<INamedTypeSymbol> GetDisallowedCatchTypes(Compilation compilation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks)
Metrics.Legacy (14)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (2)
53var disallowedCatchTypes = GetDisallowedCatchTypes(compilationStartAnalysisContext.Compilation); 100private static IReadOnlyCollection<INamedTypeSymbol> GetDisallowedCatchTypes(Compilation compilation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks)
Microsoft.Analyzers.Local.Tests (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.AspNetCore.AsyncState (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerHandler.cs (1)
371IReadOnlyCollection<Exception> exceptions;
Microsoft.AspNetCore.Components (1)
ResourceAssetCollection.cs (1)
68int IReadOnlyCollection<ResourceAsset>.Count => _resources.Count;
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.Components.QuickGrid.Tests (7)
GridSortTest.cs (7)
35var propertyList = gridSort.ToPropertyList(ascending: true); 51var propertyList = gridSort.ToPropertyList(ascending: true); 67var propertyList = gridSort.ToPropertyList(ascending: true); 83var propertyList = gridSort.ToPropertyList(ascending: true); 99var propertyList = gridSort.ToPropertyList(ascending: true); 115var propertyList = gridSort.ToPropertyList(ascending: true); 133var propertyList = gridSort.ToPropertyList(ascending: true);
Microsoft.AspNetCore.Components.WebAssembly (2)
.packages\microsoft.dotnet.hotreload.agent\10.0.100-preview.7.25358.102\contentFiles\cs\net6.0\AgentReporter.cs (1)
20public IReadOnlyCollection<(string message, AgentMessageSeverity severity)> GetAndClearLogEntries(ResponseLoggingLevel level)
.packages\microsoft.dotnet.hotreload.agent\10.0.100-preview.7.25358.102\contentFiles\cs\net6.0\HotReloadAgent.cs (1)
107public IReadOnlyCollection<(string message, AgentMessageSeverity severity)> GetAndClearLogEntries(ResponseLoggingLevel loggingLevel)
Microsoft.AspNetCore.DataProtection (14)
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 (3)
164public IReadOnlyCollection<IKey> GetAllKeys() 166var allElements = KeyRepository.GetAllElements(); 178private object?[] ProcessAllElements(IReadOnlyCollection<XElement> allElements, out DateTimeOffset? mostRecentMassRevocationDate)
Repositories\EphemeralXmlRepository.cs (2)
27public IReadOnlyCollection<XElement> GetAllElements() 59public bool DeleteElements(Action<IReadOnlyCollection<IDeletableElement>> chooseElements)
Repositories\FileSystemXmlRepository.cs (2)
69public virtual IReadOnlyCollection<XElement> GetAllElements() 180public virtual bool DeleteElements(Action<IReadOnlyCollection<IDeletableElement>> chooseElements)
Repositories\IDeletableXmlRepository.cs (1)
26bool DeleteElements(Action<IReadOnlyCollection<IDeletableElement>> chooseElements);
Repositories\IXmlRepository.cs (1)
20IReadOnlyCollection<XElement> GetAllElements();
Repositories\RegistryXmlRepository.cs (2)
56public virtual IReadOnlyCollection<XElement> GetAllElements() 160public virtual bool DeleteElements(Action<IReadOnlyCollection<IDeletableElement>> chooseElements)
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 (14)
KeyManagement\KeyRingProviderTests.cs (1)
755IEnumerable<IReadOnlyCollection<IKey>> getAllKeysReturnValues,
KeyManagement\XmlKeyManagerTests.cs (9)
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(); 1007IReadOnlyCollection<XElement> IXmlRepository.GetAllElements() => []; 1017IReadOnlyCollection<XElement> IXmlRepository.GetAllElements() => []; 1019bool IDeletableXmlRepository.DeleteElements(Action<IReadOnlyCollection<IDeletableElement>> chooseElements) => throw new InvalidOperationException();
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.Diagnostics.Middleware.Tests (4)
src\Shared\EmptyCollections\Empty.cs (1)
24public static IReadOnlyCollection<T> ReadOnlyCollection<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (3)
32public static IReadOnlyCollection<T> EmptyIfNull<T>(this IReadOnlyCollection<T>? collection) 106if (enumerable is IReadOnlyCollection<T> rc && rc.Count == 0)
Microsoft.AspNetCore.HeaderParsing (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
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)
190public OverrideWithAddressesStrategy(IReadOnlyCollection<string> addresses, Func<ListenOptions, ListenOptions> useHttps) 211public OverrideWithEndpointsStrategy(IReadOnlyCollection<ListenOptions> endpoints, string[] originalAddresses) 230private readonly IReadOnlyCollection<ListenOptions> _endpoints; 232public EndpointsStrategy(IReadOnlyCollection<ListenOptions> endpoints) 248protected readonly IReadOnlyCollection<string> _addresses; 251public 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.AspNetCore.Testing (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.CodeAnalysis (23)
Binding\BindingDiagnosticBag.cs (1)
151internal void AddDependencies(IReadOnlyCollection<TAssemblySymbol>? dependencies)
Binding\UseSiteInfo.cs (4)
197public IReadOnlyCollection<DiagnosticInfo>? Diagnostics 217public IReadOnlyCollection<TAssemblySymbol>? Dependencies 288public void AddDiagnostics(IReadOnlyCollection<DiagnosticInfo>? diagnostics) 370public void AddDependencies(IReadOnlyCollection<TAssemblySymbol>? dependencies)
Collections\CollectionsExtensions.cs (1)
18internal static bool IsNullOrEmpty<T>([NotNullWhen(returnValue: false)] this IReadOnlyCollection<T>? collection)
CommandLine\AnalyzerConfigSet.cs (2)
121public static AnalyzerConfigSet Create<TList>(TList analyzerConfigs) where TList : IReadOnlyCollection<AnalyzerConfig> 126public static AnalyzerConfigSet Create<TList>(TList analyzerConfigs, out ImmutableArray<Diagnostic> diagnostics) where TList : IReadOnlyCollection<AnalyzerConfig>
SpecialType.cs (1)
181/// Indicates that the type is <see cref="IReadOnlyCollection{T}"/>.
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (3)
83public void AddUsingGroups(IReadOnlyCollection<int> groupSizes) 141public void AddDynamicLocals(IReadOnlyCollection<(string LocalName, byte[] Flags, int Count, int SlotIndex)> dynamicLocals) 165public void AddTupleElementNames(IReadOnlyCollection<(string LocalName, int SlotIndex, int ScopeStart, int ScopeEnd, ImmutableArray<string> Names)> tupleLocals)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
Microsoft.CodeAnalysis.Analyzers (14)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (2)
53var disallowedCatchTypes = GetDisallowedCatchTypes(compilationStartAnalysisContext.Compilation); 100private static IReadOnlyCollection<INamedTypeSymbol> GetDisallowedCatchTypes(Compilation compilation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks)
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (2)
53var disallowedCatchTypes = GetDisallowedCatchTypes(compilationStartAnalysisContext.Compilation); 100private static IReadOnlyCollection<INamedTypeSymbol> GetDisallowedCatchTypes(Compilation compilation)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\DataFlowOperationVisitor.cs (1)
4192/// 3. <see cref="INamedTypeSymbol"/> for <see cref="System.Collections.Generic.IReadOnlyCollection{T}"/>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks)
Microsoft.CodeAnalysis.BannedApiAnalyzers (14)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (2)
53var disallowedCatchTypes = GetDisallowedCatchTypes(compilationStartAnalysisContext.Compilation); 100private static IReadOnlyCollection<INamedTypeSymbol> GetDisallowedCatchTypes(Compilation compilation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks)
Microsoft.CodeAnalysis.CodeStyle (12)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks)
Microsoft.CodeAnalysis.Collections.Package (11)
Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
Microsoft.CodeAnalysis.CSharp (8)
Errors\DiagnosticBagExtensions.cs (1)
84IReadOnlyCollection<DiagnosticInfo> useSiteDiagnostics)
Symbols\ConstraintsHelper.cs (1)
1318var useSiteDiagnostics = useSiteInfo.Diagnostics;
Symbols\Source\LambdaSymbol.cs (1)
306addTo.AddDependencies((IReadOnlyCollection<AssemblySymbol>)_declarationDependencies);
Symbols\Source\LocalFunctionSymbol.cs (1)
135addTo.AddDependencies((IReadOnlyCollection<AssemblySymbol>)_declarationDependencies);
Symbols\Source\SourceMemberContainerSymbol.cs (4)
3439public IReadOnlyCollection<Symbol> GetNonTypeMembers(SourceMemberContainerTypeSymbol container, DeclaredMembersAndInitializers declaredMembers) 3441return NonTypeMembers ?? (IReadOnlyCollection<Symbol>)declaredMembers.GetNonTypeMembers(container); 4777var membersSoFar = builder.GetNonTypeMembers(this, declaredMembersAndInitializers); 5414var membersSoFar = builder.GetNonTypeMembers(this, declaredMembersAndInitializers);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
53nameof(IReadOnlyCollection<>),
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
53nameof(IReadOnlyCollection<>),
Microsoft.CodeAnalysis.Debugging.Package (3)
CustomDebugInfoEncoder.cs (3)
83public void AddUsingGroups(IReadOnlyCollection<int> groupSizes) 141public void AddDynamicLocals(IReadOnlyCollection<(string LocalName, byte[] Flags, int Count, int SlotIndex)> dynamicLocals) 165public void AddTupleElementNames(IReadOnlyCollection<(string LocalName, int SlotIndex, int ScopeStart, int ScopeEnd, ImmutableArray<string> Names)> tupleLocals)
Microsoft.CodeAnalysis.EditorFeatures (4)
CodeDefinitionWindow\DefinitionContextTracker.cs (2)
73void ITextViewConnectionListener.SubjectBuffersConnected(ITextView textView, ConnectionReason reason, IReadOnlyCollection<ITextBuffer> subjectBuffers) 87void ITextViewConnectionListener.SubjectBuffersDisconnected(ITextView textView, ConnectionReason reason, IReadOnlyCollection<ITextBuffer> subjectBuffers)
Editor\TextBufferAssociatedViewService.cs (2)
44void ITextViewConnectionListener.SubjectBuffersConnected(ITextView textView, ConnectionReason reason, IReadOnlyCollection<ITextBuffer> subjectBuffers) 65void ITextViewConnectionListener.SubjectBuffersDisconnected(ITextView textView, ConnectionReason reason, IReadOnlyCollection<ITextBuffer> subjectBuffers)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Compilers\Core\Portable\SpecialType.cs (1)
181/// Indicates that the type is <see cref="IReadOnlyCollection{T}"/>.
Microsoft.CodeAnalysis.Extensions.Package (11)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
Microsoft.CodeAnalysis.Features (4)
EditAndContinue\CommittedSolution.cs (1)
461public void CommitChanges(Solution solution, ImmutableArray<ProjectId> projectsToStale, IReadOnlyCollection<ProjectId> projectsToUnstale)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (3)
83public void AddUsingGroups(IReadOnlyCollection<int> groupSizes) 141public void AddDynamicLocals(IReadOnlyCollection<(string LocalName, byte[] Flags, int Count, int SlotIndex)> dynamicLocals) 165public void AddTupleElementNames(IReadOnlyCollection<(string LocalName, int SlotIndex, int ScopeStart, int ScopeEnd, ImmutableArray<string> Names)> tupleLocals)
Microsoft.CodeAnalysis.InteractiveHost (11)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
Microsoft.CodeAnalysis.LanguageServer (6)
BrokeredServices\Services\BrokeredServiceBridgeManifest\BrokeredServiceBridgeManifestService.cs (3)
41public ValueTask<IReadOnlyCollection<ServiceMoniker>> GetAvailableServicesAsync(CancellationToken cancellationToken) 43var services = (IReadOnlyCollection<ServiceMoniker>)[.. _serviceBrokerFactory.GetRequiredServiceBrokerContainer().GetRegisteredServices()
BrokeredServices\Services\BrokeredServiceBridgeManifest\IBrokeredServiceBridgeManifest.cs (1)
22ValueTask<IReadOnlyCollection<ServiceMoniker>> GetAvailableServicesAsync(CancellationToken cancellationToken);
HostWorkspace\WorkspaceProjectFactoryService.cs (2)
68public Task<IReadOnlyCollection<string>> GetSupportedBuildSystemPropertiesAsync(CancellationToken _) 71return Task.FromResult((IReadOnlyCollection<string>)[]);
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Protocol\Internal\VSInternalKnownKindModifiers.cs (1)
62public static readonly IReadOnlyCollection<string> AllModifiers =
Protocol\Internal\VSInternalKnownKinds.cs (1)
222public static readonly IReadOnlyCollection<string> AllKinds =
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (14)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (2)
53var disallowedCatchTypes = GetDisallowedCatchTypes(compilationStartAnalysisContext.Compilation); 100private static IReadOnlyCollection<INamedTypeSymbol> GetDisallowedCatchTypes(Compilation compilation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks)
Microsoft.CodeAnalysis.PublicApiAnalyzers (14)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (2)
53var disallowedCatchTypes = GetDisallowedCatchTypes(compilationStartAnalysisContext.Compilation); 100private static IReadOnlyCollection<INamedTypeSymbol> GetDisallowedCatchTypes(Compilation compilation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
ProjectSystem\IWorkspaceProjectFactoryService.cs (1)
20Task<IReadOnlyCollection<string>> GetSupportedBuildSystemPropertiesAsync(CancellationToken cancellationToken);
Microsoft.CodeAnalysis.ResxSourceGenerator (14)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (2)
53var disallowedCatchTypes = GetDisallowedCatchTypes(compilationStartAnalysisContext.Compilation); 100private static IReadOnlyCollection<INamedTypeSymbol> GetDisallowedCatchTypes(Compilation compilation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks)
Microsoft.CodeAnalysis.Threading.Package (11)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
Microsoft.CodeAnalysis.UnitTests (2)
Collections\SegmentedArrayTests.cs (2)
61Assert.Equal(0, ((IReadOnlyCollection<IntPtr>)data).Count); 133Assert.Equal(length, ((IReadOnlyCollection<IntPtr>)data).Count);
Microsoft.CodeAnalysis.VisualBasic (8)
Binding\Binder_Imports.vb (4)
33Public MustOverride Sub AddMember(syntaxRef As SyntaxReference, member As NamespaceOrTypeSymbol, importsClausePosition As Integer, dependencies As IReadOnlyCollection(Of AssemblySymbol), isProjectImportsDeclaration As Boolean) 34Public MustOverride Sub AddAlias(syntaxRef As SyntaxReference, name As String, [alias] As AliasSymbol, importsClausePosition As Integer, dependencies As IReadOnlyCollection(Of AssemblySymbol)) 139data.AddAlias(binder.GetSyntaxReference(aliasImportSyntax), aliasText, aliasSymbol, aliasImportSyntax.SpanStart, DirectCast(diagBag.DependenciesBag, IReadOnlyCollection(Of AssemblySymbol))) 208data.AddMember(binder.GetSyntaxReference(importsName), importedSymbol, membersImportsSyntax.SpanStart, DirectCast(diagBag.DependenciesBag, IReadOnlyCollection(Of AssemblySymbol)), binder.BindingLocation = BindingLocation.ProjectImportsDeclaration)
Errors\DiagnosticBagExtensions.vb (4)
61useSiteDiagnostics As IReadOnlyCollection(Of DiagnosticInfo) 70useSiteDiagnostics As IReadOnlyCollection(Of DiagnosticInfo) 79useSiteDiagnostics As IReadOnlyCollection(Of DiagnosticInfo) 88useSiteDiagnostics As IReadOnlyCollection(Of DiagnosticInfo)
Microsoft.CodeAnalysis.Workspaces (26)
Diagnostics\Extensions.cs (1)
40public static ValueTask<ImmutableArray<Location>> ConvertLocationsAsync(this IReadOnlyCollection<DiagnosticDataLocation> locations, Project project, CancellationToken cancellationToken)
Rename\Renamer.SyncNamespaceDocumentAction.cs (1)
62private static AnalysisResult? Analyze(Document document, IReadOnlyCollection<string> newFolders)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks)
Workspace\Host\EventListener\ExportEventListenerAttribute.cs (1)
18public IReadOnlyCollection<string> WorkspaceKinds { get; }
Workspace\Solution\ProjectDependencyGraph_AddProjectReference.cs (1)
15internal ProjectDependencyGraph WithAdditionalProjectReferences(ProjectId projectId, IReadOnlyCollection<ProjectReference> projectReferences)
Workspace\Solution\Solution.cs (4)
626var collection = projectReferences?.ToCollection(); 723var collection = metadataReferences?.ToCollection(); 889var collection = analyzerReferences?.ToCollection(); 1853private void CheckCircularProjectReferences(ProjectId projectId, IReadOnlyCollection<ProjectReference> projectReferences)
Workspace\Solution\SolutionCompilationState.cs (3)
660ProjectId projectId, IReadOnlyCollection<ProjectReference> projectReferences) 689ProjectId projectId, IReadOnlyCollection<MetadataReference> metadataReferences) 716public SolutionCompilationState AddAnalyzerReferences(IReadOnlyCollection<AnalyzerReference> analyzerReferences)
Workspace\Solution\SolutionState.cs (3)
754public StateChange AddProjectReferences(ProjectId projectId, IReadOnlyCollection<ProjectReference> projectReferences) 863public StateChange AddMetadataReferences(ProjectId projectId, IReadOnlyCollection<MetadataReference> metadataReferences) 1228public SolutionState AddAnalyzerReferences(IReadOnlyCollection<AnalyzerReference> analyzerReferences)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
MEF\ExportProviderCache.cs (1)
148foreach (var errorCollection in _configuration.CompositionErrors)
MEF\TestComposition.cs (1)
220foreach (var errorGroup in configuration.CompositionErrors)
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\AggregateType.cs (1)
171|| genType == typeof(IReadOnlyCollection<>)
Microsoft\CSharp\RuntimeBinder\Semantics\Types\PredefinedTypes.cs (1)
177new PredefinedTypeInfo(PredefinedType.PT_G_IREADONLYCOLLECTION, typeof(IReadOnlyCollection<>), "System.Collections.Generic.IReadOnlyCollection`1"),
Microsoft.Data.Analysis (1)
DataFrame.Join.cs (1)
146private static bool IsAnyNullValueInColumns(IReadOnlyCollection<DataFrameColumn> columns, long index)
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\NuGetVersionUpdater.cs (1)
385private static void ThrowExceptions(IReadOnlyCollection<Exception> exceptions)
Microsoft.DotNet.XUnitAssert.Tests (4)
EqualityAssertsTests.cs (4)
847 Assert.Equal(expected, (IReadOnlyCollection<string>)actual); 872 assertFailure(() => Assert.Equal(expected, (IReadOnlyCollection<string>)actual)); 3169 assertFailure(() => Assert.NotEqual(expected, (IReadOnlyCollection<string>)actual)); 3179 Assert.NotEqual(expected, (IReadOnlyCollection<string>)actual);
Microsoft.DotNet.XUnitExtensions (2)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTheoryDiscoverer.cs (2)
123var result = skipReason != null ? 124(IReadOnlyCollection<IXunitTestCase>)skippedTestCase
Microsoft.DotNet.XUnitV3Extensions (10)
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\ActiveIssueAttribute.cs (1)
66public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\ConditionalClassAttribute.cs (1)
34public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\OuterLoopAttribute.cs (1)
80public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\PlatformSpecificAttribute.cs (1)
33public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\SkipOnCIAttribute.cs (1)
25public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\SkipOnCoreClrAttribute.cs (1)
34public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\SkipOnMonoAttribute.cs (1)
30public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\SkipOnPlatformAttribute.cs (1)
30public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\SkipOnTargetFrameworkAttribute.cs (1)
32public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
src\Microsoft.DotNet.XUnitExtensions.Shared\Attributes\TestCategoryAttribute.cs (1)
31public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
Microsoft.Extensions.AI (5)
src\Shared\EmptyCollections\Empty.cs (1)
24public static IReadOnlyCollection<T> ReadOnlyCollection<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (3)
32public static IReadOnlyCollection<T> EmptyIfNull<T>(this IReadOnlyCollection<T>? collection) 106if (enumerable is IReadOnlyCollection<T> rc && rc.Count == 0)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.AI.Abstractions (5)
src\Shared\EmptyCollections\Empty.cs (1)
24public static IReadOnlyCollection<T> ReadOnlyCollection<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (3)
32public static IReadOnlyCollection<T> EmptyIfNull<T>(this IReadOnlyCollection<T>? collection) 106if (enumerable is IReadOnlyCollection<T> rc && rc.Count == 0)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.AI.AzureAIInference (5)
src\Shared\EmptyCollections\Empty.cs (1)
24public static IReadOnlyCollection<T> ReadOnlyCollection<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (3)
32public static IReadOnlyCollection<T> EmptyIfNull<T>(this IReadOnlyCollection<T>? collection) 106if (enumerable is IReadOnlyCollection<T> rc && rc.Count == 0)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.AI.Evaluation (3)
CompositeEvaluator.cs (1)
24public IReadOnlyCollection<string> EvaluationMetricNames { get; }
IEvaluator.cs (1)
22IReadOnlyCollection<string> EvaluationMetricNames { get; }
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.AI.Evaluation.Console (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.AI.Evaluation.Integration.Tests (1)
TestEvaluator.cs (1)
18IReadOnlyCollection<string> IEvaluator.EvaluationMetricNames
Microsoft.Extensions.AI.Evaluation.NLP (4)
BLEUEvaluator.cs (1)
39public IReadOnlyCollection<string> EvaluationMetricNames { get; } = [BLEUMetricName];
F1Evaluator.cs (1)
39public IReadOnlyCollection<string> EvaluationMetricNames { get; } = [F1MetricName];
GLEUEvaluator.cs (1)
39public IReadOnlyCollection<string> EvaluationMetricNames { get; } = [GLEUMetricName];
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.AI.Evaluation.Quality (12)
CoherenceEvaluator.cs (1)
53public IReadOnlyCollection<string> EvaluationMetricNames { get; } = [CoherenceMetricName];
CompletenessEvaluator.cs (1)
49public IReadOnlyCollection<string> EvaluationMetricNames { get; } = [CompletenessMetricName];
EquivalenceEvaluator.cs (1)
49public IReadOnlyCollection<string> EvaluationMetricNames { get; } = [EquivalenceMetricName];
FluencyEvaluator.cs (1)
47public IReadOnlyCollection<string> EvaluationMetricNames { get; } = [FluencyMetricName];
GroundednessEvaluator.cs (1)
48public IReadOnlyCollection<string> EvaluationMetricNames { get; } = [GroundednessMetricName];
IntentResolutionEvaluator.cs (1)
61public IReadOnlyCollection<string> EvaluationMetricNames { get; } = [IntentResolutionMetricName];
RelevanceEvaluator.cs (1)
51public IReadOnlyCollection<string> EvaluationMetricNames { get; } = [RelevanceMetricName];
RelevanceTruthAndCompletenessEvaluator.cs (1)
67public IReadOnlyCollection<string> EvaluationMetricNames { get; } =
RetrievalEvaluator.cs (1)
57public IReadOnlyCollection<string> EvaluationMetricNames { get; } = [RetrievalMetricName];
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
TaskAdherenceEvaluator.cs (1)
60public IReadOnlyCollection<string> EvaluationMetricNames { get; } = [TaskAdherenceMetricName];
ToolCallAccuracyEvaluator.cs (1)
62public IReadOnlyCollection<string> EvaluationMetricNames { get; } = [ToolCallAccuracyMetricName];
Microsoft.Extensions.AI.Evaluation.Reporting (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.AI.Evaluation.Safety (2)
ContentSafetyEvaluator.cs (1)
40public IReadOnlyCollection<string> EvaluationMetricNames { get; } = [.. metricNames.Values];
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.AI.Integration.Tests (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.AI.Ollama (5)
src\Shared\EmptyCollections\Empty.cs (1)
24public static IReadOnlyCollection<T> ReadOnlyCollection<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (3)
32public static IReadOnlyCollection<T> EmptyIfNull<T>(this IReadOnlyCollection<T>? collection) 106if (enumerable is IReadOnlyCollection<T> rc && rc.Count == 0)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.AI.OpenAI (5)
src\Shared\EmptyCollections\Empty.cs (1)
24public static IReadOnlyCollection<T> ReadOnlyCollection<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (3)
32public static IReadOnlyCollection<T> EmptyIfNull<T>(this IReadOnlyCollection<T>? collection) 106if (enumerable is IReadOnlyCollection<T> rc && rc.Count == 0)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.AmbientMetadata.Application (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.AsyncState (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.Caching.Hybrid (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.Compliance.Abstractions (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.Compliance.Redaction (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.Compliance.Testing (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
1060|| genericTypeDefinition == typeof(IReadOnlyCollection<>)
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.DependencyModel (1)
DependencyContextWriter.cs (1)
196private static void AddDependencies(IReadOnlyCollection<Dependency> dependencies, Utf8JsonWriter jsonWriter)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.Diagnostics.HealthChecks (1)
HealthCheckLogScope.cs (1)
14int IReadOnlyCollection<KeyValuePair<string, object>>.Count { get; } = 1;
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
TelemetryHealthChecksPublisherTests.cs (1)
138private static long GetValue(IReadOnlyCollection<CollectedMeasurement<long>> counters, string healthy, string status)
Microsoft.Extensions.Diagnostics.Probes (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.Diagnostics.ResourceMonitoring (4)
Linux\IFileSystem.cs (1)
26IReadOnlyCollection<string> GetDirectoryNames(string directory, string pattern);
Linux\LinuxUtilizationParserCgroupV2.cs (1)
311IReadOnlyCollection<string> memoryUsageInBytesSlicesPath = _fileSystem.GetDirectoryNames("/sys/fs/cgroup/", pattern);
Linux\OSFileSystem.cs (1)
28public IReadOnlyCollection<string> GetDirectoryNames(string directory, string pattern)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (3)
Linux\OSFileSystemTests.cs (1)
21var directoryNames = fileSystem.GetDirectoryNames(
Linux\Resources\FileNamesOnlyFileSystem.cs (1)
21public IReadOnlyCollection<string> GetDirectoryNames(string directory, string pattern)
Linux\Resources\HardcodedValueFileSystem.cs (1)
36public IReadOnlyCollection<string> GetDirectoryNames(string directory, string pattern)
Microsoft.Extensions.Diagnostics.Testing (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.Hosting.Testing (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.Http.Diagnostics (4)
src\Shared\EmptyCollections\Empty.cs (1)
24public static IReadOnlyCollection<T> ReadOnlyCollection<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (3)
32public static IReadOnlyCollection<T> EmptyIfNull<T>(this IReadOnlyCollection<T>? collection) 106if (enumerable is IReadOnlyCollection<T> rc && rc.Count == 0)
Microsoft.Extensions.Http.Resilience (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.Options.Contextual (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.Resilience (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.Telemetry (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.Telemetry.Abstractions (2)
Logging\LoggerMessageState.ReadOnlyList.cs (1)
16int IReadOnlyCollection<KeyValuePair<string, object?>>.Count => TagsCount;
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Extensions.TimeProvider.Testing (1)
src\Shared\Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Microsoft.Gen.ComplianceReports (1)
Emitter.cs (1)
24public string Emit(IReadOnlyCollection<ClassifiedType> classifiedTypes, string assemblyName, bool includeName = true) // show or hide assemblyName in the report,defaulted to true.
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
src\Shared\EmptyCollections\Empty.cs (1)
24public static IReadOnlyCollection<T> ReadOnlyCollection<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (3)
32public static IReadOnlyCollection<T> EmptyIfNull<T>(this IReadOnlyCollection<T>? collection) 106if (enumerable is IReadOnlyCollection<T> rc && rc.Count == 0)
Microsoft.Gen.ContextualOptions.Unit.Tests (4)
src\Shared\EmptyCollections\Empty.cs (1)
24public static IReadOnlyCollection<T> ReadOnlyCollection<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (3)
32public static IReadOnlyCollection<T> EmptyIfNull<T>(this IReadOnlyCollection<T>? collection) 106if (enumerable is IReadOnlyCollection<T> rc && rc.Count == 0)
Microsoft.Gen.Logging (1)
Model\LoggingMethodParameterExtensions.cs (1)
35IReadOnlyCollection<LoggingProperty> propertiesToLog,
Microsoft.Gen.Logging.Unit.Tests (4)
src\Shared\EmptyCollections\Empty.cs (1)
24public static IReadOnlyCollection<T> ReadOnlyCollection<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (3)
32public static IReadOnlyCollection<T> EmptyIfNull<T>(this IReadOnlyCollection<T>? collection) 106if (enumerable is IReadOnlyCollection<T> rc && rc.Count == 0)
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Microsoft.Gen.ComplianceReports\Emitter.cs (1)
24public string Emit(IReadOnlyCollection<ClassifiedType> classifiedTypes, string assemblyName, bool includeName = true) // show or hide assemblyName in the report,defaulted to true.
Microsoft.Gen.MetadataExtractor.Unit.Tests (4)
src\Shared\EmptyCollections\Empty.cs (1)
24public static IReadOnlyCollection<T> ReadOnlyCollection<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (3)
32public static IReadOnlyCollection<T> EmptyIfNull<T>(this IReadOnlyCollection<T>? collection) 106if (enumerable is IReadOnlyCollection<T> rc && rc.Count == 0)
Microsoft.Gen.Metrics.Unit.Tests (4)
src\Shared\EmptyCollections\Empty.cs (1)
24public static IReadOnlyCollection<T> ReadOnlyCollection<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (3)
32public static IReadOnlyCollection<T> EmptyIfNull<T>(this IReadOnlyCollection<T>? collection) 106if (enumerable is IReadOnlyCollection<T> rc && rc.Count == 0)
Microsoft.Gen.MetricsReports.Unit.Tests (4)
src\Shared\EmptyCollections\Empty.cs (1)
24public static IReadOnlyCollection<T> ReadOnlyCollection<T>() => EmptyReadOnlyList<T>.Instance;
src\Shared\EmptyCollections\EmptyCollectionExtensions.cs (3)
32public static IReadOnlyCollection<T> EmptyIfNull<T>(this IReadOnlyCollection<T>? collection) 106if (enumerable is IReadOnlyCollection<T> rc && rc.Count == 0)
Microsoft.Maui (6)
Core\IVisualDiagnosticsOverlay.cs (1)
84 IReadOnlyCollection<IScrollView> ScrollViews { get; }
Core\IWindow.cs (1)
25 IReadOnlyCollection<IWindowOverlay> Overlays { get; }
Core\IWindowOverlay.cs (1)
43 IReadOnlyCollection<IWindowOverlayElement> WindowElements { get; }
PropertyMapper.cs (1)
150 public virtual IReadOnlyCollection<string> UpdateKeys => UpdatePropertiesKeys;
VisualDiagnostics\VisualDiagnosticsOverlay.cs (1)
26 public IReadOnlyCollection<IScrollView> ScrollViews => _scrollViews.Keys;
WindowOverlay\WindowOverlay.cs (1)
39 public IReadOnlyCollection<IWindowOverlayElement> WindowElements => _windowElements;
Microsoft.Maui.Controls (11)
ListProxy.cs (1)
40 if (_collection == null && enumerable is IReadOnlyCollection<object> coll)
ListProxyChangedEventArgs.cs (4)
11 public IReadOnlyCollection<object> OldList { get; } 13 public IReadOnlyCollection<object> NewList { get; } 16 public ListProxyChangedEventArgs(IReadOnlyCollection<object> oldList, IReadOnlyCollection<object> newList)
ReadOnlyListAdapter.cs (2)
12 readonly IReadOnlyCollection<object> _collection; 21 public ReadOnlyListAdapter(IReadOnlyCollection<object> collection)
Shell\ShellContentCollection.cs (1)
53 public IReadOnlyCollection<ShellContent> VisibleItemsReadOnly => collection.VisibleItemsReadOnly;
Shell\ShellElementCollection.cs (1)
74 public IReadOnlyCollection<BaseShellItem> VisibleItemsReadOnly
Shell\ShellSectionCollection.cs (1)
25 public IReadOnlyCollection<ShellSection> VisibleItemsReadOnly => collection.VisibleItemsReadOnly;
Window\Window.cs (1)
82 public IReadOnlyCollection<IWindowOverlay> Overlays => _overlays.ToList().AsReadOnly();
Microsoft.ML.Data (6)
Transforms\ColumnConcatenatingTransformer.cs (1)
223internal IReadOnlyCollection<(string outputColumnName, string[] inputColumnNames)> Columns
Transforms\ColumnCopying.cs (1)
102internal IReadOnlyCollection<(string outputColumnName, string inputColumnName)> Columns => ColumnPairs.AsReadOnly();
Transforms\Hashing.cs (1)
143internal IReadOnlyCollection<HashingEstimator.ColumnOptions> Columns => _columns;
Transforms\KeyToValue.cs (1)
69internal IReadOnlyCollection<(string outputColumnName, string inputColumnName)> Columns => ColumnPairs.AsReadOnly();
Transforms\KeyToVector.cs (1)
98internal IReadOnlyCollection<KeyToVectorMappingEstimator.ColumnOptions> Columns => _columns.AsReadOnly();
Transforms\TypeConverting.cs (1)
174internal IReadOnlyCollection<TypeConvertingEstimator.ColumnOptions> Columns => _columns.AsReadOnly();
Microsoft.ML.ImageAnalytics (5)
ImageGrayscale.cs (1)
81internal IReadOnlyCollection<(string outputColumnName, string inputColumnName)> Columns => ColumnPairs.AsReadOnly();
ImageLoader.cs (1)
83internal IReadOnlyCollection<(string outputColumnName, string inputColumnName)> Columns => ColumnPairs.AsReadOnly();
ImagePixelExtractor.cs (1)
148internal IReadOnlyCollection<ImagePixelExtractingEstimator.ColumnOptions> Columns => _columns.AsReadOnly();
ImageResizer.cs (1)
113internal IReadOnlyCollection<ImageResizingEstimator.ColumnOptions> Columns => _columns.AsReadOnly();
VectorToImageTransform.cs (1)
176internal IReadOnlyCollection<VectorToImageConvertingEstimator.ColumnOptions> Columns => _columns.AsReadOnly();
Microsoft.ML.Tests (3)
ImagesTests.cs (2)
94var newCols = ((ImageLoadingTransformer)transformerChain.First()).Columns; 95var oldCols = ((ImageLoadingTransformer)model.First()).Columns;
Transformers\ConcatTests.cs (1)
130var columns = concater.Columns;
Microsoft.ML.Transforms (11)
Dracula\CountTable.cs (2)
25IReadOnlyCollection<float> GarbageCounts { get; } 43public IReadOnlyCollection<float> GarbageCounts => _garbageCounts;
Dracula\MultiCountTable.cs (1)
374public IReadOnlyCollection<float> GarbageCounts => _table.GarbageCounts;
GcnTransform.cs (1)
186internal IReadOnlyCollection<LpNormNormalizingEstimatorBase.ColumnOptionsBase> Columns => _columns.AsReadOnly();
KeyToVectorMapping.cs (1)
62internal IReadOnlyCollection<(string outputColumnName, string inputColumnName)> Columns => ColumnPairs.AsReadOnly();
Text\StopWordsRemovingTransformer.cs (2)
133internal IReadOnlyCollection<StopWordsRemovingEstimator.ColumnOptions> Columns => _columns.AsReadOnly(); 901internal IReadOnlyCollection<(string outputColumnName, string inputColumnName)> Columns => ColumnPairs.AsReadOnly();
Text\TextFeaturizingEstimator.cs (1)
288private IReadOnlyCollection<string> InputColumns => _inputColumns.AsReadOnly();
Text\TextNormalizing.cs (1)
94internal IReadOnlyCollection<(string outputColumnName, string inputColumnName)> Columns => ColumnPairs.AsReadOnly();
Text\TokenizingByCharacters.cs (1)
118internal IReadOnlyCollection<(string outputColumnName, string inputColumnName)> Columns => ColumnPairs.AsReadOnly();
Text\WordTokenizing.cs (1)
107internal IReadOnlyCollection<WordTokenizingEstimator.ColumnOptions> Columns => _columns.AsReadOnly();
Microsoft.VisualStudio.LanguageServices (7)
CodeCleanup\AbstractCodeCleanupFixerProvider.cs (2)
27public IReadOnlyCollection<ICodeCleanUpFixer> GetFixers() 30public IReadOnlyCollection<ICodeCleanUpFixer> GetFixers(IContentType contentType)
EditAndContinue\EditAndContinueFeedbackDiagnosticFileProvider.cs (2)
99public IReadOnlyCollection<string> GetFiles() 102: (IReadOnlyCollection<string>)([GetZipFilePath()]);
NavigateTo\RoslynCodeSearchResult.cs (1)
28IReadOnlyCollection<PatternMatch> patternMatches,
ProjectSystem\BrokeredService\WorkspaceProjectFactoryService.cs (2)
37public Task<IReadOnlyCollection<string>> GetSupportedBuildSystemPropertiesAsync(CancellationToken cancellationToken) 39return Task.FromResult((IReadOnlyCollection<string>)_workspaceProjectContextFactory.EvaluationItemNames);
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\Projects\RemoteProjectInfoProvider.cs (1)
30public async Task<IReadOnlyCollection<ProjectInfo>> GetRemoteProjectInfosAsync(CancellationToken cancellationToken)
Client\RemoteLanguageServiceWorkspaceHost.cs (1)
116var projectInfos = await _remoteProjectInfoProvider.GetRemoteProjectInfosAsync(cancellationToken).ConfigureAwait(false);
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)
876IReadOnlyCollection<Rect> ownerRects = ichParent.GetRectangles(ownerCE);
System\Windows\Diagnostics\ResourceDictionaryDiagnostics.cs (4)
270private static IReadOnlyCollection<ResourceDictionary> EmptyResourceDictionaries 313private static IReadOnlyCollection<FrameworkElement> EmptyFrameworkElementList 315private static IReadOnlyCollection<FrameworkContentElement> EmptyFrameworkContentElementList 317private static IReadOnlyCollection<Application> EmptyApplicationList
System\Windows\Documents\MsSpellCheckLib\SpellChecker\OptionDescription.cs (1)
32internal IReadOnlyCollection<string> Labels
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellingError.cs (1)
56internal IReadOnlyCollection<string> Suggestions
Roslyn.Diagnostics.Analyzers (14)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (2)
53var disallowedCatchTypes = GetDisallowedCatchTypes(compilationStartAnalysisContext.Compilation); 100private static IReadOnlyCollection<INamedTypeSymbol> GetDisallowedCatchTypes(Compilation compilation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks)
Roslyn.VisualStudio.DiagnosticsWindow (1)
PerfMargin\ActivityLevel.cs (1)
90public IReadOnlyCollection<ActivityLevel> Children
Shared (5)
EmptyCollections\Empty.cs (1)
24public static IReadOnlyCollection<T> ReadOnlyCollection<T>() => EmptyReadOnlyList<T>.Instance;
EmptyCollections\EmptyCollectionExtensions.cs (3)
32public static IReadOnlyCollection<T> EmptyIfNull<T>(this IReadOnlyCollection<T>? collection) 106if (enumerable is IReadOnlyCollection<T> rc && rc.Count == 0)
Throw\Throw.cs (1)
274case IReadOnlyCollection<T> readOnlyCollection:
Shared.Tests (6)
EmptyCollections\EmptyCollectionExtensionsTests.cs (3)
18EmptyCollectionExtensions.EmptyIfNull((IReadOnlyCollection<T>?)null).Should().BeEmpty(); 27EmptyCollectionExtensions.EmptyIfNull((IReadOnlyCollection<T>)input).Should().BeEmpty().And.NotBeSameAs(input); 37EmptyCollectionExtensions.EmptyIfNull((IReadOnlyCollection<T>)nonempty).Should().BeSameAs(nonempty);
Throw\ThrowTest.cs (3)
325exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty((IReadOnlyCollection<int>?)null, "foo")); 343exception = Assert.Throws<ArgumentException>(() => Throw.IfNullOrEmpty((IReadOnlyCollection<int>?)list, "foo")); 365Assert.Equal(list, Throw.IfNullOrEmpty((IReadOnlyCollection<int>?)list, "foo"));
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)
289IReadOnlyCollection<KeyValuePair<TKey, TValue>> rc => Math.Max(DefaultCapacity, rc.Count),
System.Collections.Immutable (3)
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\ImmutableArray_1.cs (1)
67int IReadOnlyCollection<T>.Count
System\Collections\Immutable\ImmutableExtensions.Minimal.cs (1)
47if (sequence is IReadOnlyCollection<T> readOnlyCollection)
System.Diagnostics.DiagnosticSource (5)
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\Diagnostics\W3CPropagator.cs (1)
24public override IReadOnlyCollection<string> Fields { get; } = new ReadOnlyCollection<string>(new[] { TraceParent, TraceState, Baggage, CorrelationContext });
System.Net.Http (1)
artifacts\obj\System.Net.Http\Debug\net10.0\System.Net.Http.notsupported.cs (1)
312int System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<string, object?>>.Count { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_NetHttp); } }
System.Private.CoreLib (1)
src\System\RuntimeType.CoreCLR.cs (1)
1023AddSpecialInterface(ref list, filter, (RuntimeType)typeof(IReadOnlyCollection<>).MakeGenericType(arrayType), false);
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\Serializer\ArraySingleString.StringListAdapter.cs (1)
30int IReadOnlyCollection<string?>.Count => _recordList.Count;
System.Private.Windows.Core.TestUtilities (1)
XUnit\SkipOnArchitectureAttribute.cs (1)
29public IReadOnlyCollection<KeyValuePair<string, string>> GetTraits()
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
86[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)
Test.Utilities (14)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (2)
53var disallowedCatchTypes = GetDisallowedCatchTypes(compilationStartAnalysisContext.Compilation); 100private static IReadOnlyCollection<INamedTypeSymbol> GetDisallowedCatchTypes(Compilation compilation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks)
Text.Analyzers (14)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (10)
155public static IReadOnlyCollection<T> ToCollection<T>(this IEnumerable<T> sequence) 156=> (sequence is IReadOnlyCollection<T> collection) ? collection : sequence.ToList(); 196if (source is IReadOnlyCollection<T> readOnlyCollection) 224public static bool IsEmpty<T>(this IReadOnlyCollection<T> source) 240/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 248/// This method is necessary to avoid an ambiguity between <see cref="IsEmpty{T}(IReadOnlyCollection{T})"/> and <see cref="IsEmpty{T}(ICollection{T})"/>. 380public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector) 396public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg) 436public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector) 449public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
128int IReadOnlyCollection<T>.Count => Length;
src\RoslynAnalyzers\Utilities\Compiler\DoNotCatchGeneralUnlessRethrown.cs (2)
53var disallowedCatchTypes = GetDisallowedCatchTypes(compilationStartAnalysisContext.Compilation); 100private static IReadOnlyCollection<INamedTypeSymbol> GetDisallowedCatchTypes(Compilation compilation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
87public static async ValueTask<ImmutableArray<TResult>> WhenAll<TResult>(this IReadOnlyCollection<Task<TResult>> tasks)
xunit.assert (2)
Sdk\Exceptions\MultipleException.cs (2)
39 public IReadOnlyCollection<Exception> InnerExceptions { get; } 54 public static MultipleException ForFailures(IReadOnlyCollection<Exception> innerExceptions) =>