7 instantiations of ImmutableQueue
System.Collections.Immutable (7)
System\Collections\Immutable\ImmutableQueue.cs (2)
63
return new
ImmutableQueue
<T>(forwards: forwards, backwards: backwards);
100
return new
ImmutableQueue
<T>(forwards: forwards, backwards: ImmutableStack<T>.Empty);
System\Collections\Immutable\ImmutableQueue_1.cs (5)
28
private static readonly ImmutableQueue<T> s_EmptyField = new
ImmutableQueue
<T>(ImmutableStack<T>.Empty, ImmutableStack<T>.Empty);
160
return new
ImmutableQueue
<T>(ImmutableStack.Create(value), ImmutableStack<T>.Empty);
164
return new
ImmutableQueue
<T>(_forwards, _backwards.Push(value));
195
return new
ImmutableQueue
<T>(f, _backwards);
203
return new
ImmutableQueue
<T>(this.BackwardsReversed, ImmutableStack<T>.Empty);
46 references to ImmutableQueue
Microsoft.AspNetCore.Components.Endpoints (7)
FormMapping\Converters\CollectionAdapters\ImmutableQueueBufferAdapter.cs (4)
10
: ArrayPoolBufferAdapter<
ImmutableQueue
<TElement>, ImmutableQueueBufferAdapter<TElement>.ImmutableQueueFactory, TElement>
12
internal class ImmutableQueueFactory : ICollectionFactory<
ImmutableQueue
<TElement>, TElement>
14
public static
ImmutableQueue
<TElement> ToResultCore(TElement[] buffer, int size)
26
ImmutableQueue
<TElement>,
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (3)
60
var _ when type == (typeof(
ImmutableQueue
<TElement>)) => true,
157
var _ when type.IsAssignableTo(typeof(
ImmutableQueue
<TElement>)) =>
158
new CollectionConverter<
ImmutableQueue
<TElement>, ImmutableQueueBufferAdapter<TElement>, ImmutableQueueBufferAdapter<TElement>.PooledBuffer, TElement>(elementTypeConverter),
Microsoft.AspNetCore.Components.Endpoints.Tests (5)
Binding\FormDataMapperTests.cs (5)
841
var
expected = ImmutableQueue.CreateRange(new[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
842
CanDeserialize_Collection<
ImmutableQueue
<int>,
ImmutableQueue
<int>, int>(expected);
873
var
expected = ImmutableQueue.CreateRange(new[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
874
CanDeserialize_Collection<IImmutableQueue<int>,
ImmutableQueue
<int>, int>(expected);
Microsoft.AspNetCore.Http.Extensions (7)
src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ImmutableQueueBufferAdapter.cs (4)
10
: ArrayPoolBufferAdapter<
ImmutableQueue
<TElement>, ImmutableQueueBufferAdapter<TElement>.ImmutableQueueFactory, TElement>
12
internal class ImmutableQueueFactory : ICollectionFactory<
ImmutableQueue
<TElement>, TElement>
14
public static
ImmutableQueue
<TElement> ToResultCore(TElement[] buffer, int size)
26
ImmutableQueue
<TElement>,
src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (3)
60
var _ when type == (typeof(
ImmutableQueue
<TElement>)) => true,
157
var _ when type.IsAssignableTo(typeof(
ImmutableQueue
<TElement>)) =>
158
new CollectionConverter<
ImmutableQueue
<TElement>, ImmutableQueueBufferAdapter<TElement>, ImmutableQueueBufferAdapter<TElement>.PooledBuffer, TElement>(elementTypeConverter),
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
60
nameof(
ImmutableQueue
<int>),
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
60
nameof(
ImmutableQueue
<int>),
System.Collections.Immutable (24)
System\Collections\Immutable\ImmutableQueue.cs (10)
11
/// A set of initialization methods for instances of <see cref="
ImmutableQueue
{T}"/>.
20
public static
ImmutableQueue
<T> Create<T>()
22
return
ImmutableQueue
<T>.Empty;
31
public static
ImmutableQueue
<T> Create<T>(T item) =>
ImmutableQueue
<T>.Empty.Enqueue(item);
39
public static
ImmutableQueue
<T> CreateRange<T>(IEnumerable<T> items)
52
return
ImmutableQueue
<T>.Empty;
73
public static
ImmutableQueue
<T> Create<T>(params T[] items)
86
public static
ImmutableQueue
<T> Create<T>(params ReadOnlySpan<T> items)
90
return
ImmutableQueue
<T>.Empty;
System\Collections\Immutable\ImmutableQueue_1.cs (8)
28
private static readonly
ImmutableQueue
<T> s_EmptyField = new ImmutableQueue<T>(ImmutableStack<T>.Empty, ImmutableStack<T>.Empty);
46
/// Initializes a new instance of the <see cref="
ImmutableQueue
{T}"/> class.
62
public
ImmutableQueue
<T> Clear()
86
public static
ImmutableQueue
<T> Empty
156
public
ImmutableQueue
<T> Enqueue(T value)
185
public
ImmutableQueue
<T> Dequeue()
199
return
ImmutableQueue
<T>.Empty;
213
public
ImmutableQueue
<T> Dequeue(out T value)
System\Collections\Immutable\ImmutableQueue_1.Enumerator.cs (6)
12
/// A memory allocation-free enumerator of <see cref="
ImmutableQueue
{T}"/>.
20
private readonly
ImmutableQueue
<T> _originalQueue;
37
internal Enumerator(
ImmutableQueue
<T> queue)
102
/// A memory allocation-free enumerator of <see cref="
ImmutableQueue
{T}"/>.
109
private readonly
ImmutableQueue
<T> _originalQueue;
131
internal EnumeratorObject(
ImmutableQueue
<T> queue)
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
97
public INamedTypeSymbol? ImmutableQueueType => GetOrResolveType(typeof(
ImmutableQueue
<>), ref _ImmutableQueueType);