2 interfaces inheriting from IReadOnlySet
Microsoft.CodeAnalysis (1)
Collections\IOrderedReadOnlySet.cs (1)
9internal interface IOrderedReadOnlySet<T> : IReadOnlySet<T>, IReadOnlyList<T>
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\Collections\IOrderedReadOnlySet.cs (1)
9internal interface IOrderedReadOnlySet<T> : IReadOnlySet<T>, IReadOnlyList<T>
13 implementations of IReadOnlySet
Microsoft.CodeAnalysis (3)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
14internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
14internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.CodeAnalysis.Workspaces (3)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
26, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.Set.cs (1)
14internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Dependencies\Collections\Specialized\SpecializedCollections.ReadOnly.Set.cs (1)
14internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
Microsoft.DotNet.XUnitAssert.Tests (1)
Utility\ReadOnlySet.cs (1)
6public class ReadOnlySet<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\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\ObjectModel\ReadOnlySet.cs (1)
14public class ReadOnlySet<T> : IReadOnlySet<T>, ISet<T>, ICollection
67 references to IReadOnlySet
Aspire.Dashboard (3)
Components\Controls\SummaryDetailsView.razor.cs (1)
223public IReadOnlySet<AspireKeyboardShortcut> SubscribedShortcuts { get; } = new HashSet<AspireKeyboardShortcut>
Components\Layout\MainLayout.razor.cs (1)
237public IReadOnlySet<AspireKeyboardShortcut> SubscribedShortcuts { get; } = new HashSet<AspireKeyboardShortcut>
Model\IGlobalKeydownListener.cs (1)
8IReadOnlySet<AspireKeyboardShortcut> SubscribedShortcuts { get; }
Aspire.Hosting.Azure (4)
DefaultRoleAssignmentsAnnotation.cs (2)
13public class DefaultRoleAssignmentsAnnotation(IReadOnlySet<RoleDefinition> roles) : IResourceAnnotation 18public IReadOnlySet<RoleDefinition> Roles { get; } = roles;
RoleAssignmentAnnotation.cs (2)
16public class RoleAssignmentAnnotation(AzureProvisioningResource target, IReadOnlySet<RoleDefinition> roles) : IResourceAnnotation 26public IReadOnlySet<RoleDefinition> Roles { get; } = roles;
BuildActionTelemetryTable (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
10[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
CodeStyleConfigFileGenerator (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
10[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
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.Components.Endpoints.Tests (1)
Binding\FormDataMapperTests.cs (1)
658CanDeserialize_Collection<IReadOnlySet<int>, HashSet<int>, int>(expected);
Microsoft.AspNetCore.Http.Extensions (3)
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.Tasks.CodeAnalysis (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
10[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
Microsoft.CodeAnalysis (7)
CommandLine\CommonCompiler.cs (2)
86public IReadOnlySet<string> EmbeddedSourcePaths { get; } 487private static IReadOnlySet<string> GetEmbeddedSourcePaths(CommandLineArguments arguments)
InternalUtilities\SetWithInsertionOrder.cs (2)
98private IReadOnlySet<T> Set 99=> (IReadOnlySet<T>?)_set ?? SpecializedCollections.EmptyReadOnlySet<T>();
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (2)
46public static IReadOnlySet<T> EmptyReadOnlySet<T>() 107public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
10[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
Microsoft.CodeAnalysis.Contracts.Package (1)
IReadOnlySet.cs (1)
10[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
Microsoft.CodeAnalysis.CSharp (10)
Lowering\AsyncRewriter\AsyncIteratorMethodToStateMachineRewriter.cs (1)
56IReadOnlySet<Symbol> hoistedVariables,
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
79IReadOnlySet<Symbol> hoistedVariables,
Lowering\IteratorRewriter\IteratorMethodToStateMachineRewriter.cs (1)
62IReadOnlySet<Symbol> hoistedVariables,
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (3)
86private readonly IReadOnlySet<Symbol> _hoistedVariables; 105IReadOnlySet<Symbol> hoistedVariables, 196internal IReadOnlySet<Symbol> HoistedVariables
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (4)
18private IReadOnlySet<ParameterSymbol>? _parametersPassedToTheBase = null; 190public IReadOnlySet<ParameterSymbol> GetParametersPassedToTheBase() 207internal void SetParametersPassedToTheBase(IReadOnlySet<ParameterSymbol> value) 210var oldSet = _parametersPassedToTheBase;
Microsoft.CodeAnalysis.Features (4)
ExternalAccess\Watch\Api\WatchHotReloadService.cs (4)
77IReadOnlySet<Project> projectsToRestart, 78IReadOnlySet<Project> projectsToRebuild) 100public IReadOnlySet<Project> ProjectsToRestart { get; } = projectsToRestart; 106public IReadOnlySet<Project> ProjectsToRebuild { get; } = projectsToRebuild;
Microsoft.CodeAnalysis.Workspaces (6)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (2)
98private IReadOnlySet<T> Set 99=> (IReadOnlySet<T>?)_set ?? SpecializedCollections.EmptyReadOnlySet<T>();
src\Dependencies\Collections\Specialized\SpecializedCollections.cs (2)
46public static IReadOnlySet<T> EmptyReadOnlySet<T>() 107public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
10[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (1)
171=> compilation.GetTypeByMetadataName(typeof(IReadOnlySet<>).FullName!);
Microsoft.CommonLanguageServerProtocol.Framework.Example (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
10[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
Microsoft.DotNet.XUnitAssert.Tests (4)
SetAssertsTests.cs (4)
23 Assert.Contains("FORTY-two", (IReadOnlySet<string>)set); 53 assertFailure(() => Assert.Contains("FORTY-two", (IReadOnlySet<string>)set)); 73 Assert.DoesNotContain("FORTY-two", (IReadOnlySet<string>)set); 103 assertFailure(() => Assert.DoesNotContain("FORTY-two", (IReadOnlySet<string>)set));
Microsoft.Extensions.Configuration.Binder (1)
ConfigurationBinder.cs (1)
1022|| genericTypeDefinition == typeof(IReadOnlySet<>)
Replay (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
10[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
SemanticSearch.BuildTask (1)
src\Dependencies\Contracts\IReadOnlySet.cs (1)
10[assembly: TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
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)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
89[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.Generic.IReadOnlySet<>))]
xunit.assert (6)
CollectionAsserts.cs (4)
252 var readOnlySet = collection as IReadOnlySet<T>; 364 var readOnlySet = collection as IReadOnlySet<T>;
SetAsserts.cs (2)
65 IReadOnlySet<T> set) 163 IReadOnlySet<T> set)