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