1 interface inheriting from IReadOnlySet
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\Collections\IOrderedReadOnlySet.cs (1)
9internal interface IOrderedReadOnlySet<T> : IReadOnlySet<T>, IReadOnlyList<T>
3 implementations of IReadOnlySet
Microsoft.CodeAnalysis.Workspaces (3)
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.Empty.Set.cs (1)
14internal class Set<T> : Collection<T>, ISet<T>, IReadOnlySet<T>
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.ReadOnly.Set.cs (1)
14internal class Set<TUnderlying, T> : Collection<TUnderlying, T>, ISet<T>, IReadOnlySet<T>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledHashSet.cs (1)
9internal sealed partial class PooledHashSet<T> : IPooled, IReadOnlySet<T>
5 references to IReadOnlySet
Microsoft.CodeAnalysis.Workspaces (5)
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (2)
98private IReadOnlySet<T> Set 99=> (IReadOnlySet<T>?)_set ?? SpecializedCollections.EmptyReadOnlySet<T>();
src\Compilers\Core\Portable\InternalUtilities\SpecializedCollections.cs (2)
46public static IReadOnlySet<T> EmptyReadOnlySet<T>() 107public static IReadOnlySet<T> StronglyTypedReadOnlySet<T>(ISet<T>? set)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ICompilationExtensions.cs (1)
154=> compilation.GetTypeByMetadataName(typeof(IReadOnlySet<>).FullName!);