25 interfaces inheriting from IReadOnlyCollection
Metrics (1)
Metrics.Legacy (1)
Microsoft.Build.Framework (1)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (1)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.Debugging.Package (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.InteractiveHost (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
Microsoft.CodeAnalysis.PooledObjects.Package (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
Roslyn.Diagnostics.Analyzers (1)
System.Collections.Immutable (1)
System.Private.CoreLib (3)
Text.Analyzers (1)
285 implementations of IReadOnlyCollection
GenerateDocumentationAndConfigFiles (11)
Metrics (11)
Metrics.Legacy (11)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.CodeAnalysis (14)
Microsoft.CodeAnalysis.Analyzers (11)
Microsoft.CodeAnalysis.AnalyzerUtilities (11)
Microsoft.CodeAnalysis.BannedApiAnalyzers (11)
Microsoft.CodeAnalysis.CodeStyle (11)
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
Microsoft.CodeAnalysis.Collections.Package (11)
Microsoft.CodeAnalysis.Debugging.Package (1)
Microsoft.CodeAnalysis.Extensions.Package (11)
Microsoft.CodeAnalysis.InteractiveHost (11)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (11)
Microsoft.CodeAnalysis.PooledObjects.Package (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers (11)
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
Microsoft.CodeAnalysis.Threading.Package (11)
Microsoft.CodeAnalysis.Workspaces (12)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.Maui (1)
Roslyn.Diagnostics.Analyzers (11)
SignalRSamples (1)
SocialWeather (1)
System.Collections (6)
System.Collections.Concurrent (3)
System.Collections.Immutable (6)
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.Net.Http (1)
System.Net.Primitives (1)
System.Private.CoreLib (7)
System.Private.Windows.Core.TestUtilities (2)
System.Reflection.Metadata (23)
System.Windows.Forms.Primitives (1)
Test.Utilities (11)
Text.Analyzers (11)
655 references to IReadOnlyCollection
Aspire.Dashboard (2)
Aspire.Hosting (1)
Aspire.Playground.Tests (5)
Aspire.TestUtilities (5)
ConfigurationSchemaGenerator (1)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
KeyManagementSample (1)
KeyManagementSimulator (2)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
Microsoft.Analyzers.Local.Tests (1)
Microsoft.AspNetCore.AsyncState (1)
Microsoft.AspNetCore.Authentication.JwtBearer (1)
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Components.Endpoints (3)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Components.QuickGrid (4)
Microsoft.AspNetCore.Components.QuickGrid.Tests (7)
Microsoft.AspNetCore.DataProtection (14)
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (1)
Microsoft.AspNetCore.DataProtection.StackExchangeRedis (1)
Microsoft.AspNetCore.DataProtection.Tests (14)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (4)
Microsoft.AspNetCore.HeaderParsing (1)
Microsoft.AspNetCore.Http.Connections.Tests (1)
Microsoft.AspNetCore.Http.Extensions (3)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Core.Test (3)
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (11)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
Microsoft.AspNetCore.Server.HttpSys.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.Testing (1)
Microsoft.CodeAnalysis (23)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
Microsoft.CodeAnalysis.CSharp (8)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.Debugging.Package (3)
Microsoft.CodeAnalysis.EditorFeatures (4)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
Microsoft.CodeAnalysis.Features (4)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
Microsoft.CodeAnalysis.LanguageServer (6)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (14)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
Microsoft.CodeAnalysis.UnitTests (2)
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)
Microsoft.CodeAnalysis.Workspaces (26)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Microsoft.CSharp (2)
Microsoft.Data.Analysis (1)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.XUnitAssert.Tests (4)
Microsoft.DotNet.XUnitExtensions (2)
Microsoft.DotNet.XUnitV3Extensions (10)
Microsoft.Extensions.AI (5)
Microsoft.Extensions.AI.Abstractions (5)
Microsoft.Extensions.AI.AzureAIInference (5)
Microsoft.Extensions.AI.Evaluation (3)
Microsoft.Extensions.AI.Evaluation.Console (1)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (1)
Microsoft.Extensions.AI.Evaluation.NLP (4)
Microsoft.Extensions.AI.Evaluation.Quality (12)
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Microsoft.Extensions.AI.Evaluation.Safety (2)
Microsoft.Extensions.AI.Integration.Tests (1)
Microsoft.Extensions.AI.OpenAI (5)
Microsoft.Extensions.AmbientMetadata.Application (1)
Microsoft.Extensions.AsyncState (1)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Compliance.Abstractions (1)
Microsoft.Extensions.Compliance.Redaction (1)
Microsoft.Extensions.Compliance.Testing (1)
Microsoft.Extensions.Configuration.Binder (1)
Microsoft.Extensions.DependencyInjection.AutoActivation (1)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
Microsoft.Extensions.Diagnostics.Probes (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (3)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.Hosting.Testing (1)
Microsoft.Extensions.Http.Diagnostics (4)
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
Microsoft.Extensions.Options.Contextual (1)
Microsoft.Extensions.Resilience (1)
Microsoft.Extensions.Telemetry (1)
Microsoft.Extensions.Telemetry.Abstractions (2)
Microsoft.Extensions.TimeProvider.Testing (1)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
Microsoft.Gen.ContextualOptions.Unit.Tests (4)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Logging.Unit.Tests (4)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.MetadataExtractor.Unit.Tests (4)
Microsoft.Gen.Metrics.Unit.Tests (4)
Microsoft.Gen.MetricsReports.Unit.Tests (4)
Microsoft.Maui (6)
Microsoft.Maui.Controls (11)
Microsoft.ML.Data (6)
Microsoft.ML.ImageAnalytics (5)
Microsoft.ML.Tests (3)
Microsoft.ML.Transforms (11)
Microsoft.VisualStudio.LanguageServices (7)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
mscorlib (1)
netstandard (1)
PresentationFramework (7)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Shared (5)
Shared.Tests (6)
SignalR.Client.FunctionalTestApp (1)
System.Collections.Concurrent (1)
System.Collections.Immutable (3)
System.Diagnostics.DiagnosticSource (5)
System.Net.Http (2)
System.Private.CoreLib (1)
System.Private.Windows.Core (1)
System.Private.Windows.Core.TestUtilities (1)
System.Runtime (1)
Templates.Blazor.WebAssembly.Auth.Tests (2)
Templates.Blazor.WebAssembly.Tests (2)
Templates.Mvc.Tests (2)
Templates.Tests (2)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
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})"/>.
461public static ImmutableArray<TResult> SelectAsArray<TSource, TResult>(this IReadOnlyCollection<TSource>? source, Func<TSource, TResult> selector)
473public static ImmutableArray<TResult> SelectAsArray<TSource, TResult, TArg>(this IReadOnlyCollection<TSource>? source, Func<TSource, TArg, TResult> selector, TArg arg)
507public static ImmutableArray<TResult> SelectManyAsArray<TItem, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, IEnumerable<TResult>> selector)
520public static ImmutableArray<TResult> SelectManyAsArray<TItem, TArg, TResult>(this IReadOnlyCollection<TItem>? source, Func<TItem, TArg, IEnumerable<TResult>> selector, TArg arg)
xunit.assert (2)