3 interfaces inheriting from IReadOnlySet
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Compilers\Core\Portable\Collections\IOrderedReadOnlySet.cs (1)
9internal interface IOrderedReadOnlySet<T> : IReadOnlySet<T>, IReadOnlyList<T>
Microsoft.CodeAnalysis (1)
Collections\IOrderedReadOnlySet.cs (1)
9internal interface IOrderedReadOnlySet<T> : IReadOnlySet<T>, IReadOnlyList<T>
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Compilers\Core\Portable\Collections\IOrderedReadOnlySet.cs (1)
9internal interface IOrderedReadOnlySet<T> : IReadOnlySet<T>, IReadOnlyList<T>
18 implementations of IReadOnlySet
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
28, IReadOnlySet<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.Build (3)
src\8b3a4ac2431f87ea\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\8b3a4ac2431f87ea\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedHashSet`1.cs (1)
28, IReadOnlySet<T>
Microsoft.CodeAnalysis (3)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
28, IReadOnlySet<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.Workspaces (3)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
28, IReadOnlySet<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
17internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
16internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
System.Collections (1)
System\Collections\Generic\SortedSet.cs (1)
49public partial class SortedSet<T> : ISet<T>, ICollection<T>, ICollection, IReadOnlyCollection<T>, IReadOnlySet<T>, ISerializable, IDeserializationCallback
System.Collections.Immutable (3)
System\Collections\Frozen\FrozenSet.cs (1)
242IReadOnlySet<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\ImmutableSortedSet_1.cs (1)
24public sealed partial class ImmutableSortedSet<T> : IImmutableSet<T>, IReadOnlySet<T>, IReadOnlyList<T>, IList<T>, ISet<T>, IList, IStrongEnumerable<T, ImmutableSortedSet<T>.Enumerator>
System.Private.CoreLib (2)
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (1)
14public class ReadOnlySet<T> : IReadOnlySet<T>, ISet<T>, ICollection
273 references to IReadOnlySet
aspire (14)
Agents\Playwright\PlaywrightCliInstaller.cs (4)
109public async Task<(PlaywrightInstallStatus Status, string? Message)> InstallAsync(string repoRoot, IReadOnlySet<string> selectedSkillDirectories, CancellationToken cancellationToken) 116private async Task<(PlaywrightInstallStatus Status, string? Message)> InstallCoreAsync(string repoRoot, IReadOnlySet<string> selectedSkillDirectories, CancellationToken cancellationToken) 279IReadOnlySet<string> selectedSkillDirectories, 326private void MirrorSkillFiles(string repoRoot, IReadOnlySet<string> selectedSkillDirectories, HashSet<string> preExistingLocations)
Commands\AddCommand.cs (1)
177IReadOnlySet<string> polyglotCompatibleIds = ImmutableHashSet<string>.Empty;
Commands\IntegrationPackageSearchService.cs (1)
55public async Task<(IReadOnlyList<(NuGetPackage Package, PackageChannel Channel)> Packages, IReadOnlySet<string> PolyglotCompatibleIds)> GetIntegrationPackagesWithPolyglotCompatibilityAsync(DirectoryInfo workingDirectory, string? configuredChannel, CancellationToken cancellationToken)
Commands\IntegrationSearchCommand.cs (1)
81IReadOnlySet<string> polyglotCompatibleIds = ImmutableHashSet<string>.Empty;
Git\GitRepository.cs (1)
91public async Task<IReadOnlySet<string>?> GetIncludedFilesAsync(DirectoryInfo searchRoot, CancellationToken cancellationToken)
Git\IGitRepository.cs (1)
38Task<IReadOnlySet<string>?> GetIncludedFilesAsync(DirectoryInfo searchRoot, CancellationToken cancellationToken);
Packaging\PackageChannel.cs (2)
377public async Task<IReadOnlySet<string>> GetPolyglotCompatiblePackageIdsAsync(DirectoryInfo workingDirectory, CancellationToken cancellationToken) 409private IReadOnlySet<string> GetPolyglotCompatiblePackageIdsFromLocalPackageSource(
Projects\AppHostCandidateFinder.cs (3)
129var includedPaths = await gitRepository.GetIncludedFilesAsync(searchDirectory, cancellationToken); 174IReadOnlySet<string> includedPaths, 269private int CountIncludedDirectories(IReadOnlySet<string> includedPaths)
Aspire.Cli.Tests (21)
Agents\PlaywrightCliInstallerTests.cs (1)
16private static readonly IReadOnlySet<string> s_emptySkillDirs = new HashSet<string>();
Git\GitRepositoryTests.cs (4)
26var result = await repo.GetIncludedFilesAsync(workspace.WorkspaceRoot, CancellationToken.None).DefaultTimeout(); 66var result = await repo.GetIncludedFilesAsync(workspace.WorkspaceRoot, CancellationToken.None).DefaultTimeout(); 95var result = await repo.GetIncludedFilesAsync(workspace.WorkspaceRoot, CancellationToken.None).DefaultTimeout(); 126var result = await repo.GetIncludedFilesAsync(workspace.WorkspaceRoot, CancellationToken.None).DefaultTimeout();
Packaging\PackageChannelTests.cs (2)
450var packageIds = await channel.GetPolyglotCompatiblePackageIdsAsync(workspace.WorkspaceRoot, CancellationToken.None).DefaultTimeout(); 478var packageIds = await channel.GetPolyglotCompatiblePackageIdsAsync(workspace.WorkspaceRoot, CancellationToken.None).DefaultTimeout();
Projects\AppHostCandidateFinderTests.cs (7)
29return Task.FromResult<IReadOnlySet<string>?>(new HashSet<string>()); 71return Task.FromResult<IReadOnlySet<string>?>(new HashSet<string> 257return Task.FromResult<IReadOnlySet<string>?>(null); 284GetIncludedFilesAsyncCallback = (_, _) => Task.FromResult<IReadOnlySet<string>?>(null) 361return Task.FromResult<IReadOnlySet<string>?>(new HashSet<string>()); 406return Task.FromResult<IReadOnlySet<string>?>(new HashSet<string>()); 601GetIncludedFilesAsyncCallback = (_, _) => Task.FromResult<IReadOnlySet<string>?>(includedPaths.ToHashSet())
Projects\ProjectLocatorTests.cs (4)
3515GetIncludedFilesAsyncCallback = (_, _) => Task.FromResult<IReadOnlySet<string>?>(new HashSet<string> 3587GetIncludedFilesAsyncCallback = (_, _) => Task.FromResult<IReadOnlySet<string>?>(new HashSet<string> 3623GetIncludedFilesAsyncCallback = (_, _) => Task.FromResult<IReadOnlySet<string>?>(new HashSet<string> 3658GetIncludedFilesAsyncCallback = (_, _) => Task.FromResult<IReadOnlySet<string>?>(new HashSet<string>
TestServices\TestGitRepository.cs (3)
12public Func<DirectoryInfo, CancellationToken, Task<IReadOnlySet<string>?>>? GetIncludedFilesAsyncCallback { get; set; } 19public Task<IReadOnlySet<string>?> GetIncludedFilesAsync(DirectoryInfo searchRoot, CancellationToken cancellationToken) 21return GetIncludedFilesAsyncCallback?.Invoke(searchRoot, cancellationToken) ?? Task.FromResult<IReadOnlySet<string>?>(null);
Aspire.Dashboard (7)
Components\Controls\SummaryDetailsView.razor.cs (1)
225public IReadOnlySet<AspireKeyboardShortcut> SubscribedShortcuts { get; } = new HashSet<AspireKeyboardShortcut>
Components\Layout\MainLayout.razor.cs (1)
454public IReadOnlySet<AspireKeyboardShortcut> SubscribedShortcuts { get; } = new HashSet<AspireKeyboardShortcut>
Model\DimensionFilterViewModel.cs (2)
18public IReadOnlySet<DimensionValueViewModel> SelectedValues => Volatile.Read(ref _selectedValues); 31var selectedValues = SelectedValues;
Model\IGlobalKeydownListener.cs (1)
8IReadOnlySet<AspireKeyboardShortcut> SubscribedShortcuts { get; }
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (2)
1277public required IReadOnlySet<(string TraceId, string ParentSpanId)> ExistingParentReferences { get; init; } 1278public required IReadOnlySet<(string TraceId, string SpanId)> CircularSpanIds { get; init; }
Aspire.Dashboard.Components.Tests (1)
Controls\ChartFiltersTests.cs (1)
72var selectedValuesSnapshot = dimensionFilter.SelectedValues;
Aspire.Hosting (6)
ApplicationModel\ResourceExtensions.cs (3)
1484public static Task<IReadOnlySet<IResource>> GetResourceDependenciesAsync( 1516public static Task<IReadOnlySet<IResource>> GetResourceDependenciesAsync( 1547internal static async Task<IReadOnlySet<IResource>> GetDependenciesAsync(
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
1338IReadOnlySet<IResource> dependencies;
Dcp\ContainerCreator.cs (1)
638var allDependencies = await ResourceExtensions.GetResourceDependenciesAsync(
Orchestrator\ParameterProcessor.cs (1)
143var dependencies = await resource.GetResourceDependenciesAsync(executionContext, ResourceDependencyDiscoveryMode.Recursive, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure (13)
AzureProvisioningController.cs (4)
4041var discoveredDependencies = await resource.GetResourceDependenciesAsync( 4210public IReadOnlySet<string> ResourceNames { get; } = new HashSet<string>(resourceNames, StringComparers.ResourceName); 4219public static AzureOperationState Resources(IReadOnlySet<string> resourceNames, string displayName) => new(displayName, false, resourceNames); 4305IReadOnlySet<string> ResourceNames,
AzureResourcePreparer.cs (1)
224var directDependencies = await resource.GetResourceDependenciesAsync(executionContext, ResourceDependencyDiscoveryMode.DirectOnly, cancellationToken).ConfigureAwait(false);
DefaultRoleAssignmentsAnnotation.cs (2)
13public class DefaultRoleAssignmentsAnnotation(IReadOnlySet<RoleDefinition> roles) : IResourceAnnotation 18public IReadOnlySet<RoleDefinition> Roles { get; } = roles;
DeploymentPrerequisitesAnnotation.cs (2)
13public sealed class DeploymentPrerequisitesAnnotation(IReadOnlySet<AzureBicepResource> resources) : IResourceAnnotation 18public IReadOnlySet<AzureBicepResource> Resources { get; } = resources;
ReferenceRoleAssignmentAnnotation.cs (2)
32public sealed class ReferenceRoleAssignmentAnnotation(AzureProvisioningResource target, IReadOnlySet<RoleDefinition> roles) : IResourceAnnotation 42public IReadOnlySet<RoleDefinition> Roles { get; } = roles;
RoleAssignmentAnnotation.cs (2)
16public class RoleAssignmentAnnotation(AzureProvisioningResource target, IReadOnlySet<RoleDefinition> roles) : IResourceAnnotation 26public IReadOnlySet<RoleDefinition> Roles { get; } = roles;
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppExtensions.cs (1)
163public void ValidateManagedEnvironmentNames(IReadOnlySet<string> includedEnvironmentNames)
Aspire.Hosting.Azure.Sandboxes (21)
AzureSandboxContainerDeployment.cs (21)
37private static readonly IReadOnlySet<string> s_noExcludedIds = new HashSet<string>(StringComparer.Ordinal); 40private static readonly IReadOnlySet<string> s_outboundHttpConnectionStringKeys = new HashSet<string>(StringComparer.OrdinalIgnoreCase) 88internal static PipelineStep CreateStaleCleanupPipelineStep(IResource resource, IReadOnlySet<string> activeStateSectionNames) 101internal static IReadOnlySet<string> GetActiveStateSectionNames(DistributedApplicationModel model) 157var dependencies = await resource.TargetResource.GetResourceDependenciesAsync( 424var excludedDeployIds = securityConfigurationChanged 427var excludedSandboxIds = securityConfigurationChanged 430var excludedDiskImageIds = securityConfigurationChanged 1393private static async Task DestroyStaleDeploymentsAsync(PipelineStepContext context, IReadOnlySet<string> activeStateSectionNames) 1644IReadOnlySet<string> excludedDeployIds, 1645IReadOnlySet<string> excludedSandboxIds, 1646IReadOnlySet<string> excludedDiskImageIds, 1829IReadOnlySet<string> excludedDeployIds, 1830IReadOnlySet<string> excludedResourceIds) 1948IReadOnlySet<string> ownerIds) 2170private static IReadOnlySet<string> GetExcludedDeployIds(string deployId, DeploymentStateSection previousStateSection) 2185private static IReadOnlySet<string> GetExcludedResourceIds(string id, DeploymentStateSection previousStateSection, string stateKey) 2385IReadOnlySet<string> EgressHosts); 2390IReadOnlySet<string> EgressHosts) 2401IReadOnlySet<string> EgressHosts); 2403internal sealed record ResolvedValue(string Value, IReadOnlySet<string> EgressHosts);
Aspire.Hosting.Azure.Tests (3)
AzureSandboxesTests.cs (3)
2985var dependencies = await web.Resource.GetResourceDependenciesAsync( 3065var firstDependencies = await first.Resource.GetResourceDependenciesAsync( 3068var secondDependencies = await second.Resource.GetResourceDependenciesAsync(
Aspire.Hosting.Dotnet (1)
DotnetProjectResource.cs (1)
156IReadOnlySet<string>? excludedStepNames = null)
Aspire.Hosting.Radius (4)
Publishing\SealedSecretApplyStep.cs (4)
147var dataKeys = await InvokeProbeWithRemainingBudgetAsync( 166internal static IReadOnlyList<string> FindMissingDeclaredKeys(IEnumerable<string> declaredKeys, IReadOnlySet<string> presentKeys) => 580private static async Task<IReadOnlySet<string>> GetSecretDataKeysAsync(string ns, string name, string? kubeContext, CancellationToken cancellationToken) 596internal static IReadOnlySet<string> ParseSecretDataKeys(string json)
Aspire.Hosting.Radius.Tests (2)
Secrets\SealedSecretApplyStepTests.cs (2)
671var keys = SealedSecretApplyStep.ParseSecretDataKeys(""" 688var keys = SealedSecretApplyStep.ParseSecretDataKeys("""
Aspire.Hosting.Tests (55)
ResourceDependencyTests.cs (55)
24var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 41var dependencies = await frontend.Resource.GetResourceDependenciesAsync(executionContext); 58var dependencies = await frontend.Resource.GetResourceDependenciesAsync(executionContext); 97var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 115var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 134var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 149var dependencies = await db.Resource.GetResourceDependenciesAsync(executionContext); 164var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 179var dependencies = await mainContainer.Resource.GetResourceDependenciesAsync(executionContext); 194var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 209var dependencies = await exe.Resource.GetResourceDependenciesAsync(executionContext); 226var dependencies = await executable.Resource.GetResourceDependenciesAsync( 260var beforePriming = await executable.Resource.GetResourceDependenciesAsync(executionContext, peekOptions); 271var afterPriming = await executable.Resource.GetResourceDependenciesAsync(executionContext, peekOptions); 288var dependencies = await executable.Resource.GetResourceDependenciesAsync( 305var dependencies = await container.Resource.GetResourceDependenciesAsync( 325var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 345var dependencies = await a.Resource.GetResourceDependenciesAsync(executionContext); 364var dependencies = await a.Resource.GetResourceDependenciesAsync(executionContext); 385var dependencies = await a.Resource.GetResourceDependenciesAsync(executionContext); 405var dependencies = await a.Resource.GetResourceDependenciesAsync(executionContext); 426var dependencies = await a.Resource.GetResourceDependenciesAsync(executionContext); 449var dependencies = await a.Resource.GetResourceDependenciesAsync(executionContext); 470var dependencies = await frontend.Resource.GetResourceDependenciesAsync(executionContext); 488var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 505var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 518var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 534var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 549var dependencies = await db1.Resource.GetResourceDependenciesAsync(executionContext); 567var dependencies = await a.Resource.GetResourceDependenciesAsync(executionContext); 582var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 598var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 618var dependencies = await a.Resource.GetResourceDependenciesAsync(executionContext, ResourceDependencyDiscoveryMode.DirectOnly); 638var dependencies = await a.Resource.GetResourceDependenciesAsync(executionContext, ResourceDependencyDiscoveryMode.Recursive); 664var dependencies = await a.Resource.GetResourceDependenciesAsync(executionContext, ResourceDependencyDiscoveryMode.DirectOnly); 682var dependencies = await a.Resource.GetResourceDependenciesAsync(executionContext, ResourceDependencyDiscoveryMode.DirectOnly); 707var dependencies = await a.Resource.GetResourceDependenciesAsync(executionContext, ResourceDependencyDiscoveryMode.DirectOnly); 731var dependencies = await a.Resource.GetResourceDependenciesAsync(executionContext); 753var dependencies = await ResourceExtensions.GetDependenciesAsync( 773var dependencies = await ResourceExtensions.GetDependenciesAsync( 792var dependencies = await ResourceExtensions.GetDependenciesAsync( 815var dependencies = await ResourceExtensions.GetDependenciesAsync( 829var dependencies = await ResourceExtensions.GetDependenciesAsync( 845var dependencies = await ResourceExtensions.GetDependenciesAsync( 871var dependencies = await ResourceExtensions.GetDependenciesAsync( 902var dependencies = await ResourceExtensions.GetDependenciesAsync( 937var dependencies = await ResourceExtensions.GetDependenciesAsync( 960var dependencies = await ResourceExtensions.GetDependenciesAsync( 988var dependencies = await ResourceExtensions.GetDependenciesAsync( 1013var singleDeps = await a.Resource.GetResourceDependenciesAsync(executionContext); 1014var multiDeps = await ResourceExtensions.GetDependenciesAsync([a.Resource], executionContext); 1043var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 1070var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 1104var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext); 1132var dependencies = await container.Resource.GetResourceDependenciesAsync(executionContext);
CodeStyleConfigFileGenerator (1)
src\roslyn\src\Dependencies\Contracts\IReadOnlySet.cs (1)
12[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
dotnet-aot (6)
parent\dotnet\Commands\Test\MTP\ArtifactPostProcessingPlanner.cs (5)
13IReadOnlySet<string> SupportedKinds, 14IReadOnlySet<string> SupportedExtensions, 15IReadOnlySet<string> SupportedTruncatedRunKinds, 16IReadOnlySet<string> SupportedTruncatedRunExtensions); 128private static IReadOnlySet<string> GetCapabilities(
parent\dotnet\Commands\Test\MTP\Terminal\TerminalTestReporter.cs (1)
1288public void RemoveArtifacts(IReadOnlySet<string> paths)
GenerateDocumentationAndConfigFiles (6)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (2)
98private IReadOnlySet<T> Set 99=> (IReadOnlySet<T>?)_set ?? SpecializedCollections.EmptyReadOnlySet<T>();
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.cs (2)
48public static IReadOnlySet<T> EmptyReadOnlySet<T>() 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set)
src\roslyn\src\Dependencies\Contracts\IReadOnlySet.cs (1)
12[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
184=> compilation.GetTypeByMetadataName(typeof(IReadOnlySet<>).FullName!);
ilc (1)
Program.cs (1)
393IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> resourceBlocks = default;
ILCompiler.Compiler (14)
Compiler\ManifestResourceBlockingPolicy.cs (14)
27public ManifestResourceBlockingPolicy(Logger logger, IReadOnlyDictionary<string, bool> switchValues, IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> globalBlocks) 43public static IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> UnionBlockings(IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> left, IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> right) 53static void AddAll(Dictionary<ModuleDesc, HashSet<string>> result, IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> addend) 64private static Dictionary<ModuleDesc, IReadOnlySet<string>> AsReadOnlyDictionary(Dictionary<ModuleDesc, HashSet<string>> original) 67var copy = new Dictionary<ModuleDesc, IReadOnlySet<string>>(); 76private readonly IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> _globalBlocks; 79public FeatureSwitchHashtable(Logger logger, IReadOnlyDictionary<string, bool> switchValues, IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> globalBlocks) 101public IReadOnlySet<string> BlockedResources { get; } 103public AssemblyFeatureInfo(EcmaModule module, Logger logger, IReadOnlyDictionary<string, bool> featureSwitchValues, IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> globalBlocks) 136if (globalBlocks != null && globalBlocks.TryGetValue(module, out IReadOnlySet<string> fromGlobal)) 160public static IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> GetSubstitutions(Logger logger, TypeSystemContext context, Stream documentStream, ManifestResource resource, ModuleDesc resourceAssembly, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues) 167public static IReadOnlyDictionary<ModuleDesc, IReadOnlySet<string>> GetSubstitutions(Logger logger, TypeSystemContext context, XmlReader document, string xmlDocumentLocation, IReadOnlyDictionary<string, bool> featureSwitchValues)
Infrastructure.Tests (4)
TestTriggerMap\TestTriggerMapTests.cs (4)
168var inSolution = LoadSolutionProjectPaths(); 190private static IReadOnlySet<string> LoadSolutionProjectPaths() 213var inSolution = LoadSolutionProjectPaths(); 1100var projectPaths = LoadSolutionProjectPaths();
Microsoft.AspNetCore.Components.Endpoints (3)
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (3)
83var _ when type == (typeof(IReadOnlySet<TElement>)) => true, 187var _ when type.IsAssignableTo(typeof(IReadOnlySet<TElement>)) => 188CreateConverter<IReadOnlySet<TElement>, HashSet<TElement>>(elementTypeConverter),
Microsoft.AspNetCore.Http.Extensions (3)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (3)
83var _ when type == (typeof(IReadOnlySet<TElement>)) => true, 187var _ when type.IsAssignableTo(typeof(IReadOnlySet<TElement>)) => 188CreateConverter<IReadOnlySet<TElement>, HashSet<TElement>>(elementTypeConverter),
Microsoft.Build (2)
src\8b3a4ac2431f87ea\SpecializedCollections.cs (2)
48public static IReadOnlySet<T> EmptyReadOnlySet<T>() 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set)
Microsoft.Build.Framework (1)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.contracts\5.0.0-1.25277.114\contentFiles\cs\net9.0\IReadOnlySet.cs (1)
12[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Dependencies\Contracts\IReadOnlySet.cs (1)
12[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
Microsoft.CodeAnalysis (7)
CommandLine\CommonCompiler.cs (2)
87public IReadOnlySet<string> EmbeddedSourcePaths { get; } 484private static IReadOnlySet<string> GetEmbeddedSourcePaths(CommandLineArguments arguments)
InternalUtilities\SetWithInsertionOrder.cs (2)
98private IReadOnlySet<T> Set 99=> (IReadOnlySet<T>?)_set ?? SpecializedCollections.EmptyReadOnlySet<T>();
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.cs (2)
48public static IReadOnlySet<T> EmptyReadOnlySet<T>() 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set)
src\roslyn\src\Dependencies\Contracts\IReadOnlySet.cs (1)
12[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
Microsoft.CodeAnalysis.CSharp (11)
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (1)
56IReadOnlySet<Symbol> hoistedVariables,
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
79IReadOnlySet<Symbol> hoistedVariables,
Lowering\AsyncRewriter\RuntimeAsyncRewriter.cs (2)
90private readonly IReadOnlySet<Symbol> _variablesToHoist; 95private RuntimeAsyncRewriter(SyntheticBoundNodeFactory factory, int methodOrdinal, IReadOnlySet<Symbol> variablesToHoist, ArrayBuilder<LocalSymbol> hoistedLocals)
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (1)
62IReadOnlySet<Symbol> hoistedVariables,
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (3)
86private readonly IReadOnlySet<Symbol> _hoistedVariables; 107IReadOnlySet<Symbol> hoistedVariables, 200internal IReadOnlySet<Symbol> HoistedVariables
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (3)
19private IReadOnlySet<ParameterSymbol>? _parametersPassedToTheBase = null; 195public IReadOnlySet<ParameterSymbol> GetParametersPassedToTheBase() 212internal void SetParametersPassedToTheBase(IReadOnlySet<ParameterSymbol> value)
Microsoft.CodeAnalysis.VisualBasic (5)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.vb (1)
68hoistedVariables As IReadOnlySet(Of Symbol),
Lowering\IteratorRewriter\IteratorRewriter.IteratorMethodToClassRewriter.vb (1)
31hoistedVariables As IReadOnlySet(Of Symbol),
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (2)
70Private ReadOnly _hoistedVariables As IReadOnlySet(Of Symbol) = Nothing 79hoistedVariables As IReadOnlySet(Of Symbol),
Lowering\StateMachineRewriter\StateMachineRewriter.vb (1)
36Protected hoistedVariables As IReadOnlySet(Of Symbol)
Microsoft.CodeAnalysis.Workspaces (6)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (2)
98private IReadOnlySet<T> Set 99=> (IReadOnlySet<T>?)_set ?? SpecializedCollections.EmptyReadOnlySet<T>();
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.cs (2)
48public static IReadOnlySet<T> EmptyReadOnlySet<T>() 109public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set)
src\roslyn\src\Dependencies\Contracts\IReadOnlySet.cs (1)
12[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Compilation\CompilationExtensions.cs (1)
184=> compilation.GetTypeByMetadataName(typeof(IReadOnlySet<>).FullName!);
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (1)
src\roslyn\src\Dependencies\Contracts\IReadOnlySet.cs (1)
12[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
Microsoft.DotNet.HotReload.Watch (5)
Build\FilePathExclusions.cs (1)
12IReadOnlySet<string> outputDirectories)
Build\LoadedProjectGraph.cs (2)
20private readonly Lazy<IReadOnlySet<string>> _lazyBuildFiles = new(() => 32public IReadOnlySet<string> BuildFiles => _lazyBuildFiles.Value;
src\sdk\src\Dotnet.Watch\HotReloadClient\Web\StaticWebAssetUpdateBuilder.cs (1)
28public IReadOnlySet<ProjectInstanceId> ProjectInstancesToRegenerate => _projectInstancesToRegenerate;
Utilities\PathUtilities.cs (1)
20public static bool ContainsPath(IReadOnlySet<string> directories, string fullPath)
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
1081|| genericTypeDefinition == typeof(IReadOnlySet<>)
Microsoft.TemplateEngine.Cli (10)
ChoiceTemplateParameter.cs (1)
71protected override Option GetBaseOption(IReadOnlySet<string> aliases)
CliTemplateParameter.cs (4)
140internal Option GetOption(IReadOnlySet<string> aliases) 206protected virtual Option GetBaseOption(IReadOnlySet<string> aliases) 245protected string GetName(IReadOnlySet<string> aliases) 274protected void AddAliases(Option option, IReadOnlySet<string> aliases)
Commands\AliasAssignmentCoordinator.cs (2)
13internal static IReadOnlyList<(CliTemplateParameter Parameter, IReadOnlySet<string> Aliases, IReadOnlyList<string> Errors)> AssignAliasesForParameter(IEnumerable<CliTemplateParameter> parameters, HashSet<string> takenAliases) 15List<(CliTemplateParameter Parameter, IReadOnlySet<string> Aliases, IReadOnlyList<string> Errors)> result = new();
Commands\create\TemplateCommand.cs (1)
329foreach ((CliTemplateParameter parameter, IReadOnlySet<string> aliases, IReadOnlyList<string> _) in parametersWithAliasAssignments)
Commands\create\TemplateOption.cs (2)
14IReadOnlySet<string> aliases) 23internal IReadOnlySet<string> Aliases { get; private set; }
SelectTests (14)
GraphAffectedProjects.cs (3)
31IReadOnlySet<string> AttributedPaths, 158out var attributedPaths, out var originatingFileByProject); 314out IReadOnlySet<string> attributedRepoRelativePaths,
Program.cs (5)
327IReadOnlySet<string> selectedTestProjects, 607IReadOnlySet<string> allTestProjects, 671static JsonArray ItemsWithCauses(IReadOnlySet<string> items, IReadOnlyDictionary<string, IReadOnlyList<Cause>> causes) 722IReadOnlySet<string> allTestProjects, 1081IReadOnlySet<string> allTestProjects,
TestSelector.cs (6)
92IReadOnlySet<string> TestProjects, 93IReadOnlySet<string> Jobs, 95IReadOnlySet<string> UnmatchedFiles, 155IReadOnlySet<string>? layer1AttributedPaths = null, 159var attributedPaths = layer1AttributedPaths ?? new HashSet<string>(StringComparer.Ordinal); 312SelectionResult SelectsAllResult(string? escalationReason, IReadOnlySet<string> unmatched) =>
System.Collections.Immutable (7)
System\Collections\Frozen\FrozenSetInternalBase.cs (7)
46if (other is IReadOnlySet<T> otherAsSet && ComparersAreCompatible(otherAsSet)) 73if (other is IReadOnlySet<T> otherAsSet && ComparersAreCompatible(otherAsSet)) 90if (other is IReadOnlySet<T> otherAsSet && ComparersAreCompatible(otherAsSet)) 117if (other is IReadOnlySet<T> otherAsSet && 150if (other is IReadOnlySet<T> otherAsSet && ComparersAreCompatible(otherAsSet)) 160private bool ComparersAreCompatible(IReadOnlySet<T> other) => 252private bool IsSubsetOfSetWithCompatibleComparer(IReadOnlySet<T> other)
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
89[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
System.Text.Json (4)
System\Text\Json\Serialization\Converters\Collection\IEnumerableConverterFactory.cs (1)
113else if ((actualTypeToConvert = typeToConvert.GetCompatibleGenericInterface(typeof(IReadOnlySet<>))) != null)
System\Text\Json\Serialization\Converters\Collection\IReadOnlySetOfTConverter.cs (1)
12where TCollection : IReadOnlySet<TElement>
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Collections.cs (2)
216/// Creates serialization metadata for types assignable to <see cref="IReadOnlySet{T}"/>. 227where TCollection : IReadOnlySet<TElement>
TypeScriptApiCompat (10)
ApiCompatResult.cs (2)
11IReadOnlySet<string> ExcludedPackages) 25IReadOnlySet<string>? excludedPackages = null)
AtsCompatibilityComparer.cs (3)
11IReadOnlySet<string>? excludedPackages = null) 327var currentTypes = SplitUnionType(currentTypeId); 331private static IReadOnlySet<string> SplitUnionType(string typeId)
AtsSurface.cs (1)
14internal sealed record AtsHandleType(string TypeId, IReadOnlySet<string> Flags);
AtsSurfaceParser.cs (2)
256private static bool IsOwnedByPackage(string symbolId, string packageName, IReadOnlySet<string> knownPackageNames) 276private static bool TryGetMostSpecificDottedOwner(string symbolId, IReadOnlySet<string> knownPackageNames, out string packageName)
ExcludedPackageLoader.cs (1)
8public static IReadOnlySet<string> Load(string? filePath)
TypeScriptApiCompatRunner.cs (1)
12var excludedPackages = ExcludedPackageLoader.Load(options.ExcludedPackagesFile);