3 instantiations of ReadOnlySet
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (1)
77
new
ReadOnlySet
<T>(set);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
271
return new
ReadOnlySet
<T>(hashSet);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (1)
28
public static ReadOnlySet<T> Empty { get; } = new
ReadOnlySet
<T>(new HashSet<T>());
13 references to ReadOnlySet
System.Collections (1)
artifacts\obj\System.Collections\Debug\net10.0\System.Collections.Forwards.cs (1)
11
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.ObjectModel.
ReadOnlySet
<>))]
System.Private.CoreLib (11)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\CollectionExtensions.cs (2)
69
/// Returns a read-only <see cref="
ReadOnlySet
{T}"/> wrapper
76
public static
ReadOnlySet
<T> AsReadOnly<T>(this ISet<T> set) =>
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (5)
251
/// Creates a new <see cref="
ReadOnlySet
{T}"/> from the specified span of values.
253
/// to create a new <see cref="
ReadOnlySet
{T}"/> with the specified values.
257
/// <returns>A new <see cref="
ReadOnlySet
{T}"/> containing the specified values.</returns>
258
public static
ReadOnlySet
<T> CreateSet<T>(params ReadOnlySpan<T> values)
262
return
ReadOnlySet
<T>.Empty;
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlySet.cs (4)
19
/// <summary>Initializes a new instance of the <see cref="
ReadOnlySet
{T}"/> class that is a wrapper around the specified set.</summary>
27
/// <summary>Gets an empty <see cref="
ReadOnlySet
{T}"/>.</summary>
28
public static
ReadOnlySet
<T> Empty { get; } = new ReadOnlySet<T>(new HashSet<T>());
30
/// <summary>Gets the set that is wrapped by this <see cref="
ReadOnlySet
{T}"/> object.</summary>
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
110
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Collections.ObjectModel.
ReadOnlySet
<>))]