232 implementations of Current
ClientSample (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
CodeGenerator (1)
HttpUtilities\CombinationsWithoutRepetition.cs (1)
26public T[] Current { get; private set; }
dotnet-dev-certs (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
dotnet-getdocument (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
dotnet-openapi (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
dotnet-sql-cache (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
dotnet-user-jwts (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
dotnet-user-secrets (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
GetDocument.Insider (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
illink (2)
ILLink.RoslynAnalyzer (2)
src\tools\illink\src\ILLink.Shared\DataFlow\ValueSet.cs (1)
97 public TValue Current => _enumerator is not null
src\tools\illink\src\ILLink.Shared\TypeSystemProxy\ParameterCollection.cs (1)
52 public ParameterProxy Current => new ParameterProxy (_method, (ParameterIndex) _current);
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (1)
43public KeyValuePair<string, string> Current { get; private set; }
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\VirtualChars\VirtualCharSequence.Enumerator.cs (1)
24public VirtualChar Current => _virtualCharSequence[_position];
Microsoft.AspNetCore.Components (3)
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (1)
810public KeyValuePair<string, object?> Current { get; private set; }
src\Http\Routing\src\PathTokenizer.cs (1)
134public StringSegment Current
src\Http\Routing\src\Tree\TreeEnumerator.cs (1)
25public UrlMatchingNode Current { get; private set; }
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\FormDataReader.cs (1)
311public ReadOnlyMemory<char> Current => _enumerator.Current.Value;
Microsoft.AspNetCore.Http (7)
FormCollection.cs (1)
204public KeyValuePair<string, StringValues> Current
HeaderDictionary.cs (1)
425public KeyValuePair<string, StringValues> Current
Internal\ItemsDictionary.cs (1)
147public KeyValuePair<object, object?> Current => default;
Internal\RequestCookieCollection.cs (1)
196public KeyValuePair<string, string> Current
QueryCollection.cs (1)
220public KeyValuePair<string, StringValues> Current
QueryCollectionInternal.cs (1)
114public KeyValuePair<string, StringValues> Current => _notEmpty ? _dictionaryEnumerator.Current : default;
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
630public KeyValuePair<TKey, TValue> Current { get; private set; }
Microsoft.AspNetCore.Http.Abstractions (3)
Internal\HeaderSegmentCollection.cs (1)
112public HeaderSegment Current
Routing\EndpointMetadataCollection.cs (1)
184public object Current => _current!;
Routing\RouteValueDictionary.cs (1)
810public KeyValuePair<string, object?> Current { get; private set; }
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\FormDataReader.cs (1)
311public ReadOnlyMemory<char> Current => _enumerator.Current.Value;
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\ModelStateDictionary.cs (3)
1029public KeyValuePair<string, ModelStateEntry> Current => 1152public string Current { get; private set; } 1227public ModelStateEntry Current { get; private set; }
Microsoft.AspNetCore.Mvc.Core (5)
Diagnostics\EventData.cs (1)
50public KeyValuePair<string, object> Current { get; private set; }
ModelBinding\Validation\DefaultCollectionValidationStrategy.cs (1)
110public ValidationEntry Current => _entry;
ModelBinding\Validation\DefaultComplexObjectValidationStrategy.cs (1)
71public ValidationEntry Current => _entry;
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategy.cs (1)
80public ValidationEntry Current => _entry;
ModelBinding\Validation\ShortFormDictionaryValidationStrategy.cs (1)
84public ValidationEntry Current => _entry;
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
DelegatingEnumerator.cs (1)
35public TWrapped Current
Microsoft.AspNetCore.Mvc.ViewFeatures (4)
AttributeDictionary.cs (3)
342public KeyValuePair<string, string?> Current => _attributes.Get(_index); 452public string Current => _attributes.Get(_index).Key; 557public string? Current => _attributes.Get(_index).Value;
TempDataDictionary.cs (1)
287public KeyValuePair<string, object?> Current
Microsoft.AspNetCore.Routing (2)
PathTokenizer.cs (1)
134public StringSegment Current
Tree\TreeEnumerator.cs (1)
25public UrlMatchingNode Current { get; private set; }
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Internal\Http\HttpRequestHeaders.cs (2)
222public KeyValuePair<string, StringValues> Current => Enumerator.Current; 254public readonly KeyValuePair<string, StringValues> Current => _current;
Internal\Http\HttpResponseHeaders.cs (1)
163public readonly KeyValuePair<string, StringValues> Current => _current;
Internal\Http\HttpResponseTrailers.cs (1)
72public readonly KeyValuePair<string, StringValues> Current => _current;
Internal\Http3\Http3HeadersEnumerator.cs (1)
30public KeyValuePair<string, string> Current { get; private set; }
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (1)
43public KeyValuePair<string, string> Current { get; private set; }
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (1)
43public KeyValuePair<string, string> Current { get; private set; }
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (1)
43public KeyValuePair<string, string> Current { get; private set; }
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
630public KeyValuePair<TKey, TValue> Current { get; private set; }
Microsoft.AspNetCore.SignalR.Client.Core (1)
src\SignalR\common\Shared\MessageBuffer.cs (1)
456public (ReadOnlyMemory<byte>, long) Current
Microsoft.AspNetCore.SignalR.Core (2)
HubConnectionStore.cs (1)
85public HubConnectionContext Current => _enumerator.Current.Value;
src\SignalR\common\Shared\MessageBuffer.cs (1)
456public (ReadOnlyMemory<byte>, long) Current
Microsoft.Build (8)
Collections\ArrayDictionary.cs (1)
236public KeyValuePair<TKey, TValue> Current =>
Collections\ConvertingEnumerable.cs (1)
85public readonly TTo2 Current
Collections\ItemDictionary.cs (1)
427public T Current => _itemEnumerator?.Current;
Collections\RetrievableEntryHashSet\HashSet.cs (1)
992public T Current
Construction\ProjectElementContainer.cs (2)
871public T Current 972public ProjectElement Current { get; private set; }
Evaluation\ItemDataCollectionValue.cs (1)
29public I Current => (_value is IList<I> list) ? list[_index] : (I)_value;
Evaluation\SemiColonTokenizer.cs (1)
54public string Current
Microsoft.Build.Framework (9)
ImmutableSegmentedDictionary`2+Enumerator.cs (1)
43public KeyValuePair<TKey, TValue> Current => _enumerator.Current;
ImmutableSegmentedDictionary`2+KeyCollection+Enumerator.cs (1)
23public TKey Current => _enumerator.Current.Key;
ImmutableSegmentedDictionary`2+ValueCollection+Enumerator.cs (1)
23public TValue Current => _enumerator.Current.Value;
ImmutableSegmentedList`1+Enumerator.cs (1)
23public T Current => _enumerator.Current;
SegmentedArray`1.cs (1)
389public T Current => _current;
SegmentedDictionary`2.cs (3)
1181public KeyValuePair<TKey, TValue> Current => _current; 1428public TKey Current => _currentKey!; 1627public TValue Current => _currentValue!;
SegmentedList`1.cs (1)
1208public T Current => _current!;
Microsoft.DotNet.XUnitAssert.Tests (1)
CollectionAssertsTests.cs (1)
2574 public T Current =>
Microsoft.Extensions.Logging (1)
LoggerFactoryScopeProvider.cs (1)
276public KeyValuePair<string, object?> Current => new KeyValuePair<string, object?>(_enumerator.Current.Key, _enumerator.Current.Value);
Microsoft.Extensions.Primitives (2)
StringTokenizer.cs (1)
102public StringSegment Current { get; private set; }
StringValues.cs (1)
824public string? Current => _current;
PresentationCore (32)
MS\Internal\FontCache\FamilyCollection.cs (1)
558Text.TextInterface.FontFamily IEnumerator<Text.TextInterface.FontFamily>.Current
MS\Internal\FontFace\TypefaceCollection.cs (1)
163public Typeface Current
MS\Internal\Generic\Span.cs (1)
392public Span<U> Current
System\Windows\FreezableCollection.cs (1)
1092public T Current
System\Windows\Generated\TextDecorationCollection.cs (1)
838public TextDecoration Current
System\Windows\Markup\XmlLanguage.cs (1)
522public XmlLanguage Current
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
857public Timeline Current
System\Windows\Media\Animation\TimelineClockCollection.cs (1)
356Clock IEnumerator<Clock>.Current
System\Windows\Media\CharacterMetricsDictionary.cs (1)
581public KeyValuePair<int, CharacterMetrics> Current
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
844public BitmapEffect Current
System\Windows\Media\FamilyMapCollection.cs (1)
420public FontFamilyMap Current
System\Windows\Media\FamilyTypefaceCollection.cs (1)
437public FamilyTypeface Current
System\Windows\Media\Generated\DoubleCollection.cs (1)
867public double Current
System\Windows\Media\Generated\DrawingCollection.cs (1)
887public Drawing Current
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
846public GeneralTransform Current
System\Windows\Media\Generated\GeometryCollection.cs (1)
887public Geometry Current
System\Windows\Media\Generated\GradientStopCollection.cs (1)
949public GradientStop Current
System\Windows\Media\Generated\Int32Collection.cs (1)
867public int Current
System\Windows\Media\Generated\PathFigureCollection.cs (1)
936public PathFigure Current
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
846public PathSegment Current
System\Windows\Media\Generated\PointCollection.cs (1)
869public Point Current
System\Windows\Media\Generated\TextEffectCollection.cs (1)
846public TextEffect Current
System\Windows\Media\Generated\TransformCollection.cs (1)
887public Transform Current
System\Windows\Media\Generated\VectorCollection.cs (1)
869public Vector Current
System\Windows\Media\Imaging\BitmapMetadataEnumerator.cs (1)
131public String Current
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
842public GeneralTransform3D Current
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
883public Material Current
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
883public Model3D Current
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
866public Point3D Current
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
883public Transform3D Current
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
866public Vector3D Current
System\Windows\Media3D\Visual3DCollection.cs (1)
680public Visual3D Current
PresentationFramework (9)
MS\Internal\Documents\ContentElementCollection.cs (1)
341public TItem Current
MS\Internal\Documents\HostedElements.cs (1)
163public IInputElement Current
MS\Internal\ListOfObject.cs (1)
122object IEnumerator<object>.Current
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (2)
239public T Current 637public T Current => _FromIterator.Current;
System\Windows\Controls\ColumnDefinition.cs (1)
827public ColumnDefinition Current
System\Windows\Controls\RowDefinition.cs (1)
827public RowDefinition Current
System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
274public DataGridCellInfo Current
System\Windows\Documents\TextElementEnumerator.cs (1)
87public TextElementType Current
Swaggatherer (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
System.Collections (10)
System\Collections\Generic\LinkedList.cs (1)
520public T Current => _current!;
System\Collections\Generic\PriorityQueue.cs (1)
1026public (TElement Element, TPriority Priority) Current => _current;
System\Collections\Generic\SortedDictionary.cs (3)
434public KeyValuePair<TKey, TValue> Current 654public TKey Current 815public TValue Current
System\Collections\Generic\SortedList.cs (3)
822public KeyValuePair<TKey, TValue> Current => new KeyValuePair<TKey, TValue>(_key!, _value!); 908public TKey Current => _currentKey!; 972public TValue Current => _currentValue!;
System\Collections\Generic\SortedSet.cs (1)
1938public T Current
System\Collections\Generic\Stack.cs (1)
397public T Current
System.Collections.Concurrent (5)
System\Collections\Concurrent\ConcurrentBag.cs (1)
1111public T Current => _current!;
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
843public KeyValuePair<TKey, TValue> Current { get; private set; }
System\Collections\Concurrent\OrderablePartitioner.cs (1)
247public TSource Current
System\Collections\Concurrent\PartitionerStatic.cs (2)
371public abstract KeyValuePair<long, TSource> Current { get; } 1428public abstract KeyValuePair<long, TSource> Current { get; }
System.Collections.Immutable (13)
System\Collections\Frozen\FrozenDictionary.cs (1)
596public readonly KeyValuePair<TKey, TValue> Current
System\Collections\Frozen\FrozenSet.cs (1)
423public readonly T Current
System\Collections\Immutable\ImmutableArray_1.Enumerator.cs (1)
105public T Current
System\Collections\Immutable\ImmutableDictionary_2.Enumerator.cs (1)
54public KeyValuePair<TKey, TValue> Current
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (1)
401public KeyValuePair<TKey, TValue> Current
System\Collections\Immutable\ImmutableHashSet_1.Enumerator.cs (1)
54public T Current
System\Collections\Immutable\ImmutableHashSet_1.HashBucket.cs (1)
322public T Current
System\Collections\Immutable\ImmutableList_1.Enumerator.cs (1)
122public T Current
System\Collections\Immutable\ImmutableQueue_1.Enumerator.cs (1)
139public T Current
System\Collections\Immutable\ImmutableSortedDictionary_2.Enumerator.cs (1)
88public KeyValuePair<TKey, TValue> Current
System\Collections\Immutable\ImmutableSortedSet_1.Enumerator.cs (1)
105public T Current
System\Collections\Immutable\ImmutableStack_1.Enumerator.cs (1)
109public T Current
System\Collections\Immutable\SortedInt32KeyNode.Enumerator.cs (1)
74public KeyValuePair<int, TValue> Current
System.Data.Common (1)
System\Data\RbTree.cs (1)
2092public K Current
System.Diagnostics.DiagnosticSource (3)
System\Diagnostics\ActivityTagsCollection.cs (1)
289public KeyValuePair<string, object?> Current => _enumerator.Current;
System\Diagnostics\DiagLinkedList.cs (1)
167public T Current => _currentNode.Value;
System\Diagnostics\Metrics\TagList.cs (1)
538public KeyValuePair<string, object?> Current => _tagList[_index];
System.Linq (2)
System\Linq\Iterator.cs (1)
41public TSource Current => _current;
System\Linq\PartialArrayEnumerator.cs (1)
35public T Current => _array[_index];
System.Linq.Expressions (1)
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
478public T Current => _current;
System.Linq.Parallel (5)
System\Linq\Parallel\Enumerables\EmptyEnumerable.cs (1)
50public T Current { get { return default!; } }
System\Linq\Parallel\Enumerables\EnumerableWrapperWeakToStrong.cs (1)
74object? IEnumerator<object?>.Current
System\Linq\Parallel\Merging\MergeEnumerator.cs (1)
38public abstract TInputOutput Current { get; }
System\Linq\Parallel\QueryOperators\QueryOpeningEnumerator.cs (1)
57public TOutput Current
System\Linq\Parallel\QueryOperators\QueryOperatorEnumerator.cs (1)
70public TElement Current
System.Net.Http (3)
System\Net\Http\Headers\HeaderStringValues.cs (1)
118public string Current => _current!;
System\Net\Http\Headers\HttpHeadersNonValidated.cs (1)
159public KeyValuePair<string, HeaderStringValues> Current => _current;
System\Net\Http\Headers\ObjectCollection.cs (1)
181public T Current => _current!;
System.Net.HttpListener (1)
System\Net\HttpListenerPrefixCollection.cs (1)
18public string Current => (string)_enumerator.Current;
System.Private.CoreLib (14)
src\libraries\System.Private.CoreLib\src\System\Array.Enumerators.cs (2)
119public T Current 164public new T Current
src\libraries\System.Private.CoreLib\src\System\ArraySegment.cs (1)
311public T Current
src\libraries\System.Private.CoreLib\src\System\CharEnumerator.cs (1)
38public char Current
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
1386public KeyValuePair<TKey, TValue> Current => _current; 1626public TKey Current => _currentKey!; 1819public TValue Current => _currentValue!;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (1)
1508public T Current => _current;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
1231public T Current => _current!;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Queue.cs (1)
483public T Current
src\libraries\System.Private.CoreLib\src\System\IO\Enumeration\FileSystemEnumerator.cs (1)
71public TResult Current => _current!;
src\libraries\System.Private.CoreLib\src\System\IO\Iterator.cs (1)
24public TSource Current => current!;
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (1)
373public KeyValuePair<TKey, TValue> Current
src\libraries\System.Private.CoreLib\src\System\Text\StringRuneEnumerator.cs (1)
23public Rune Current => _current;
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\CollectionDataContract.cs (2)
1606public KeyValue<object, object?> Current => new KeyValue<object, object?>(_enumerator.Key, _enumerator.Value); 1635public KeyValue<K, V> Current
System.Private.Xml (2)
System\Xml\Serialization\XmlSchemas.cs (1)
809public XmlSchema Current
System\Xml\Xsl\ListBase.cs (1)
232public T Current
System.Reflection.Metadata (30)
System\Reflection\Metadata\BlobBuilder.Enumerators.cs (2)
30public BlobBuilder Current => _currentOpt!; 75public Blob Current
System\Reflection\Metadata\PortablePdb\HandleCollections.Debug.cs (8)
69public DocumentHandle Current 168public MethodDebugInformationHandle Current 274public LocalScopeHandle Current 337public LocalScopeHandle Current 482public LocalVariableHandle Current 588public LocalConstantHandle Current 687public ImportScopeHandle Current 794public CustomDebugInformationHandle Current
System\Reflection\Metadata\PortablePdb\ImportDefinitionCollection.cs (1)
129public ImportDefinition Current
System\Reflection\Metadata\PortablePdb\SequencePointCollection.cs (1)
192public SequencePoint Current
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (18)
79public GenericParameterHandle Current 187public GenericParameterConstraintHandle Current 293public CustomAttributeHandle Current 414public DeclarativeSecurityAttributeHandle Current 521public MethodDefinitionHandle Current 641public FieldDefinitionHandle Current 761public PropertyDefinitionHandle Current 881public EventDefinitionHandle Current 995public MethodImplementationHandle Current 1096public ParameterHandle Current 1208public InterfaceImplementationHandle Current 1298public TypeDefinitionHandle Current 1388public TypeReferenceHandle Current 1478public ExportedTypeHandle Current 1568public MemberReferenceHandle Current 1707public AssemblyReferenceHandle Current 1812public ManifestResourceHandle Current 1902public AssemblyFileHandle Current
System.Security.Cryptography (3)
System\Security\Cryptography\X509Certificates\X509Certificate2Enumerator.cs (1)
21public X509Certificate2 Current
System\Security\Cryptography\X509Certificates\X509ChainElementEnumerator.cs (1)
20public X509ChainElement Current
System\Security\Cryptography\X509Certificates\X509ExtensionEnumerator.cs (1)
17public X509Extension Current
System.Text.Json (2)
System\Text\Json\Document\JsonElement.ArrayEnumerator.cs (1)
33public JsonElement Current
System\Text\Json\Document\JsonElement.ObjectEnumerator.cs (1)
32public JsonProperty Current
System.Text.RegularExpressions (4)
System\Text\RegularExpressions\CaptureCollection.cs (1)
207public Capture Current
System\Text\RegularExpressions\GroupCollection.cs (2)
260public Group Current 273KeyValuePair<string, Group> IEnumerator<KeyValuePair<string, Group>>.Current
System\Text\RegularExpressions\MatchCollection.cs (1)
225public Match Current
System.Xaml (3)
System\Xaml\NameScope.cs (1)
266public KeyValuePair<string, object> Current
System\Xaml\NameScopeDictionary.cs (1)
160public KeyValuePair<string, object> Current
System\Xaml\Parser\NodeStreamSorter.cs (1)
110public XamlNode Current
Templates.Blazor.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
Templates.Mvc.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
Templates.Tests (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
Wasm.Performance.ConsoleHost (1)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
610public CommandArgument Current
xunit.assert (1)
Sdk\CollectionTracker.cs (1)
811 public T Current =>
615 references to Current
ClientSample (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
dotnet-dev-certs (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
dotnet-getdocument (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
dotnet-openapi (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
dotnet-sql-cache (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
dotnet-user-jwts (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
dotnet-user-secrets (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
GetDocument.Insider (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
http2cat (2)
src\Shared\Http2cat\HPackHeaderWriter.cs (2)
64if (!EncodeHeader(headersEnumerator.Current.Key, headersEnumerator.Current.Value, buffer.Slice(currentLength), out int headerLength))
IIS.FunctionalTests (2)
src\Shared\Http2cat\HPackHeaderWriter.cs (2)
64if (!EncodeHeader(headersEnumerator.Current.Key, headersEnumerator.Current.Value, buffer.Slice(currentLength), out int headerLength))
IIS.LongTests (2)
src\Shared\Http2cat\HPackHeaderWriter.cs (2)
64if (!EncodeHeader(headersEnumerator.Current.Key, headersEnumerator.Current.Value, buffer.Slice(currentLength), out int headerLength))
IIS.NewHandler.FunctionalTests (2)
src\Shared\Http2cat\HPackHeaderWriter.cs (2)
64if (!EncodeHeader(headersEnumerator.Current.Key, headersEnumerator.Current.Value, buffer.Slice(currentLength), out int headerLength))
IIS.NewShim.FunctionalTests (2)
src\Shared\Http2cat\HPackHeaderWriter.cs (2)
64if (!EncodeHeader(headersEnumerator.Current.Key, headersEnumerator.Current.Value, buffer.Slice(currentLength), out int headerLength))
IISExpress.FunctionalTests (2)
src\Shared\Http2cat\HPackHeaderWriter.cs (2)
64if (!EncodeHeader(headersEnumerator.Current.Key, headersEnumerator.Current.Value, buffer.Slice(currentLength), out int headerLength))
illink (1)
ILLink.RoslynAnalyzer (1)
src\tools\illink\src\ILLink.Shared\DataFlow\ValueSet.cs (1)
98 ? _enumerator.Current
InMemory.FunctionalTests (3)
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (3)
108? SetCurrent(_genericEnumerator.Current.Key, _genericEnumerator.Current.Value, GetKnownRequestHeaderType(_genericEnumerator.Current.Key))
Microsoft.Arcade.Test.Common (3)
AssertEx.cs (2)
230var value1 = enumerator1.Current; 231var value2 = enumerator2.Current;
FakeHttpClient.cs (1)
41return Task.FromResult(_responseEnumerator.Current);
Microsoft.AspNetCore.Components (1)
NavigationManagerExtensions.cs (1)
189var currentValue = _enumerator.Current;
Microsoft.AspNetCore.DataProtection.Tests (6)
KeyManagement\KeyRingProviderTests.cs (6)
765return getCacheExpirationTokenReturnValuesEnumerator.Current; 774return getAllKeysReturnValuesEnumerator.Current; 785Assert.Equal(createNewKeyCallbacksEnumerator.Current.Item1, activationDate); 786Assert.Equal(createNewKeyCallbacksEnumerator.Current.Item2, expirationDate); 787return createNewKeyCallbacksEnumerator.Current.Item3; 798var current = resolveDefaultKeyPolicyReturnValuesEnumerator.Current;
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategy.cs (1)
97var key = ModelNames.CreateIndexModelName(_key, _keyEnumerator.Current);
ModelBinding\Validation\ShortFormDictionaryValidationStrategy.cs (2)
98if (_model.TryGetValue(_keyMappingEnumerator.Current.Value, out value)) 105_entry = new ValidationEntry(_metadata, _keyMappingEnumerator.Current.Key, value);
ModelBinding\Validation\ValidationVisitor.cs (1)
435var entry = enumerator.Current;
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Validation\DefaultCollectionValidationStrategyTest.cs (1)
146entries.Add(enumerator.Current);
ModelBinding\Validation\DefaultComplexObjectValidationStrategyTest.cs (1)
191entries.Add(enumerator.Current);
ModelBinding\Validation\ExplicitIndexCollectionValidationStrategyTest.cs (1)
206entries.Add(enumerator.Current);
ModelBinding\Validation\ShortFormDictionaryValidationStrategyTest.cs (1)
143entries.Add(enumerator.Current);
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
DelegatingEnumerator.cs (1)
39object obj = _inner.Current!;
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
DelegatingEnumeratorTest.cs (1)
69innerEnumerator.SetupGet(innerEnum => innerEnum.Current)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
PageLoggerExtensionsTest.cs (1)
185enumerator.Current.State.ToString());
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
TempDataDictionaryTest.cs (1)
52var value = enumerator.Current;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
src\Shared\Http2cat\HPackHeaderWriter.cs (2)
64if (!EncodeHeader(headersEnumerator.Current.Key, headersEnumerator.Current.Value, buffer.Slice(currentLength), out int headerLength))
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http3\Http3HeadersEnumerator.cs (2)
92? SetCurrent(_genericEnumerator.Current.Key, _genericEnumerator.Current.Value, default)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (3)
108? SetCurrent(_genericEnumerator.Current.Key, _genericEnumerator.Current.Value, GetKnownRequestHeaderType(_genericEnumerator.Current.Key))
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
src\Servers\Kestrel\shared\Http2HeadersEnumerator.cs (3)
108? SetCurrent(_genericEnumerator.Current.Key, _genericEnumerator.Current.Value, GetKnownRequestHeaderType(_genericEnumerator.Current.Key))
Microsoft.AspNetCore.Shared.Tests (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
Microsoft.AspNetCore.SignalR.Core (1)
HubConnectionStore.cs (1)
85public HubConnectionContext Current => _enumerator.Current.Value;
Microsoft.Build (10)
Collections\ConvertingEnumerable.cs (1)
89TFrom2 current = _backingEnumerator.Current;
Collections\ItemDictionary.cs (5)
427public T Current => _itemEnumerator?.Current; 434object IEnumerator.Current => _itemEnumerator != null ? _itemEnumerator.Current : ((IEnumerator)_listEnumerator).Current; 499while (_listEnumerator.Current == null || _listEnumerator.Current.Count == 0); 501return _listEnumerator.Current.GetEnumerator();
Globbing\CompositeGlob.cs (3)
114var first = enumerator.Current; 130builder.Add(enumerator.Current); 134builder.Add(enumerator.Current);
Utilities\Utilities.cs (1)
611yield return enumerator.Current;
Microsoft.Build.Engine.UnitTests (9)
BackEnd\TargetEntry_Tests.cs (3)
183Assert.Equal("Bar", depsEnum.Current.TargetName); 192Assert.Equal("Bar", depsEnum.Current.TargetName); 194Assert.Equal("Foo", depsEnum.Current.TargetName);
Collections\CopyOnReadEnumerable_Tests.cs (1)
30enumerator.Current.ToString().ShouldBe(s);
Collections\OMcollections_tests.cs (5)
121enumerator.Current.ShouldBeNull(); 172Assert.Null(enumerator.Current); 174Assert.NotNull(enumerator.Current); 176Assert.Null(enumerator.Current); 178Assert.NotNull(enumerator.Current);
Microsoft.Build.Framework (2)
SegmentedList`1.cs (2)
114Add(en.Current); 795Insert(index++, en.Current);
Microsoft.Cci.Extensions (1)
Extensions\MemberExtensions.cs (1)
235var current = enumerator.Current;
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (1)
45CSharpArgumentInfo info = arginfosEnum.MoveNext() ? arginfosEnum.Current : null;
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (1)
184MemberInfo member = memberEn.Current;
Microsoft.DotNet.NuGetRepack.Tests (2)
TestHelpers\AssertEx.cs (2)
246var value1 = enumerator1.Current; 247var value2 = enumerator2.Current;
Microsoft.DotNet.XUnitAssert.Tests (2)
CollectionAssertsTests.cs (2)
2575 GuardNotNull("Tried to get Current on a disposed enumerator", innerEnumerator).Current; 2578 GuardNotNull("Tried to get Current on a disposed enumerator", innerEnumerator).Current;
Microsoft.Extensions.Configuration.CommandLine (2)
CommandLineConfigurationProvider.cs (2)
50string currentArg = enumerator.Current; 102value = enumerator.Current;
Microsoft.Extensions.DependencyModel (1)
DependencyContextWriter.cs (1)
320RuntimeAssetGroup group = groups.Current;
Microsoft.Extensions.Diagnostics (1)
src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (1)
89KeyValuePair<string, object?> pair = enumerator.Current;
Microsoft.Extensions.Logging (6)
LoggerFactoryScopeProvider.cs (6)
249_stringBuilder.Append(enumerator.Current.Key); 251_stringBuilder.Append(enumerator.Current.Value); 256_stringBuilder.Append(enumerator.Current.Key); 258_stringBuilder.Append(enumerator.Current.Value); 276public KeyValuePair<string, object?> Current => new KeyValuePair<string, object?>(_enumerator.Current.Key, _enumerator.Current.Value);
PresentationCore (7)
MS\Internal\FontCache\FamilyCollection.cs (2)
579return ((IEnumerator<Text.TextInterface.FontFamily>)this).Current; 673string ordinalName = familyNames.Current;
MS\Internal\FontFace\TypefaceCollection.cs (3)
169Text.TextInterface.Font face = _familyEnumerator.Current; 174FamilyTypeface familyTypeface = _familyTypefaceEnumerator.Current; 194return ((IEnumerator<Typeface>)this).Current;
System\Windows\Media\Animation\TimelineClockCollection.cs (1)
370return ((IEnumerator<Clock>)this).Current;
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
402KeyValuePair<XmlLanguage, string> entry = _enumerator.Current;
PresentationFramework (30)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (7)
357TextSegment rangeSegment = rangeEnumerator.MoveNext() ? rangeEnumerator.Current : TextSegment.Null; 385Debug.Assert(rangeEnumerator.Current.IsNull || !next || 386(rangeSegment.End.CompareTo(rangeEnumerator.Current.Start) <= 0), 388rangeSegment = next ? rangeEnumerator.Current : TextSegment.Null; 427rangeSegment = rangeEnumerator.MoveNext() ? rangeEnumerator.Current : TextSegment.Null; 443_segments.Insert(ind++, new HighlightSegment(rangeEnumerator.Current.Start, rangeEnumerator.Current.End, highlightRange));
MS\Internal\Annotations\TextAnchor.cs (8)
206ourSegment = ourEnumerator.Current; 207theirSegment = theirEnumerator.Current; 295Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 298otherSegment = enumerator.Current; 397Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 400otherSegment = enumerator.Current;
MS\Internal\Data\LiveShapingList.cs (1)
771get { return _ie.Current.Item; }
MS\Internal\Ink\InkCanvasSelection.cs (1)
608Rect elementRect = enumerator.Current;
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IEnumerable.cs (1)
354return m_enumerator.Current;
System\Windows\Documents\DocumentSequence.cs (2)
912GetPageAsyncRequest asyncRequest = ienum.Current.Value; 917notificationList.Add(ienum.Current.Key);
System\Windows\Documents\FixedDocument.cs (2)
1231GetPageAsyncRequest asyncRequest = ienum.Current.Value; 1235completedRequests.Add(ienum.Current.Key);
System\Windows\FrameworkTemplate.cs (1)
1103nameScope.RegisterNameInternal(nameEnumerator.Current, createdObject);
System\Windows\Input\KeyboardNavigation.cs (7)
598Rect rect = enumerator.Current; 615Rect rect = enumerator.Current; 1467IInputElement current = enumerator.Current; 1525IInputElement current = enumerator.Current; 1639IInputElement current = enumerator.Current; 1707IInputElement current = enumerator.Current; 2432Rect rect = enumerator.Current;
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
70Uri referralUri = licenseEnumerator.Current.ReferralInfoUri;
ReachFramework (1)
Serialization\Manager\ReachSerializationUtils.cs (1)
851IInputElement element = enumerator.Current;
Swaggatherer (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
System.Collections (2)
src\libraries\Common\src\System\Collections\Generic\EnumerableHelpers.cs (2)
49arr[0] = en.Current; 71arr[count++] = en.Current;
System.Collections.Concurrent (8)
System\Collections\Concurrent\ConcurrentDictionary.cs (4)
2279public DictionaryEntry Entry => new DictionaryEntry(_enumerator.Current.Key, _enumerator.Current.Value); 2281public object Key => _enumerator.Current.Key; 2283public object? Value => _enumerator.Current.Value;
System\Collections\Concurrent\OrderablePartitioner.cs (1)
251return _source.Current.Value;
System\Collections\Concurrent\PartitionerStatic.cs (3)
710_sharedReader.Current); 795_sharedReader.Current); 821_sharedReader.Current);
System.Collections.Immutable (10)
System\Collections\Frozen\FrozenDictionary.cs (1)
595/// <inheritdoc cref="IEnumerator{T}.Current" />
System\Collections\Frozen\FrozenSet.cs (1)
422/// <inheritdoc cref="IEnumerator{T}.Current" />
System\Collections\Immutable\DictionaryEnumerator.cs (4)
21get { return new DictionaryEntry(_inner.Current.Key, _inner.Current.Value); } 26get { return _inner.Current.Key; } 31get { return _inner.Current.Value; }
System\Collections\Immutable\DisposableEnumeratorAdapter_2.cs (2)
58get { return _enumeratorObject != null ? _enumeratorObject.Current : _enumeratorStruct.Current; }
System\Collections\Immutable\ImmutableQueue.cs (2)
55ImmutableStack<T> forwards = ImmutableStack.Create(e.Current); 60backwards = backwards.Push(e.Current);
System.Data.Common (4)
System\Data\Common\DbConnectionStringBuilder.cs (2)
250values[i] = this[keylist.Current]; 251Debug.Assert(null != values[i], $"null value {keylist.Current}");
System\Data\DataTableExtensions.cs (2)
111current = rows.Current; 138current = rows.Current;
System.Diagnostics.DiagnosticSource (9)
src\libraries\Common\src\System\Diagnostics\DiagnosticsHelper.cs (1)
89KeyValuePair<string, object?> pair = enumerator.Current;
System\Diagnostics\Activity.cs (5)
1543_last = _first = new DiagNode<KeyValuePair<string, object?>>(e.Current); 1547_last.Next = new DiagNode<KeyValuePair<string, object?>>(e.Current); 1567_last = _first = new DiagNode<KeyValuePair<string, object?>>(e.Current); 1571_last!.Next = new DiagNode<KeyValuePair<string, object?>>(e.Current); 1577_last.Next = new DiagNode<KeyValuePair<string, object?>>(e.Current);
System\Diagnostics\DiagLinkedList.cs (2)
29_last = _first = new DiagNode<T>(e.Current); 33_last.Next = new DiagNode<T>(e.Current);
System\Diagnostics\DistributedContextPropagator.cs (1)
119KeyValuePair<string, string?> item = e.Current;
System.Formats.Tar (1)
System\Formats\Tar\TarHeader.cs (1)
121KeyValuePair<string, string> kvp = enumerator.Current;
System.Linq (177)
System\Linq\Aggregate.cs (2)
29TSource result = e.Current; 32result = func(result, e.Current);
System\Linq\AggregateBy.cs (2)
91TSource value = enumerator.Current; 123TSource value = enumerator.Current;
System\Linq\AppendPrepend.cs (1)
65_current = _enumerator.Current;
System\Linq\Average.cs (10)
61long sum = e.Current; 66checked { sum += e.Current; } 109TAccumulator sum = TAccumulator.CreateChecked(e.Current); 113checked { sum += TAccumulator.CreateChecked(e.Current); } 146TSource? value = e.Current; 154value = e.Current; 203TAccumulator sum = TAccumulator.CreateChecked(selector(e.Current)); 208checked { sum += TAccumulator.CreateChecked(selector(e.Current)); } 246TSelector? value = selector(e.Current); 254value = selector(e.Current);
System\Linq\Chunk.cs (3)
89array[0] = e.Current; 103array[i] = e.Current; 114local[i] = e.Current;
System\Linq\Concat.cs (2)
98/// than each <see cref="System.Collections.IEnumerator.MoveNext"/> and <see cref="IEnumerator{T}.Current"/> calls having to traverse all of the previous 246_current = _enumerator.Current;
System\Linq\Concat.SpeedOpt.cs (2)
117return e.Current; 298return e.Current;
System\Linq\CountBy.cs (1)
51TSource value = enumerator.Current;
System\Linq\DefaultIfEmpty.cs (2)
52_current = _enumerator.Current; 66_current = _enumerator.Current;
System\Linq\Distinct.cs (3)
81TSource element = enumerator.Current; 123TSource element = _enumerator.Current; 134element = _enumerator.Current;
System\Linq\ElementAt.cs (3)
144return e.Current; 165queue.Enqueue(e.Current); 173queue.Enqueue(e.Current);
System\Linq\First.cs (1)
96return e.Current;
System\Linq\GroupJoin.cs (1)
57TOuter item = e.Current;
System\Linq\Join.cs (1)
59TOuter item = e.Current;
System\Linq\Last.cs (3)
98result = e.Current; 147TSource result = e.Current; 152TSource element = e.Current;
System\Linq\Max.cs (42)
45value = e.Current; 60T? cur = e.Current; 73T? cur = e.Current; 144value = e.Current; 152value = e.Current; 157T x = e.Current; 185value = e.Current; 197T? cur = e.Current; 206T? cur = e.Current; 257value = e.Current; 260decimal x = e.Current; 289value = e.Current; 296decimal? cur = e.Current; 359value = e.Current; 365TSource next = e.Current; 379value = e.Current; 384TSource next = e.Current; 395TSource next = e.Current; 461TSource value = e.Current; 478value = e.Current; 486TSource nextValue = e.Current; 501TSource nextValue = e.Current; 514TSource nextValue = e.Current; 556value = selector(e.Current); 559TResult x = selector(e.Current); 592value = selector(e.Current); 607TResult? cur = selector(e.Current); 620TResult? cur = selector(e.Current); 665value = selector(e.Current); 673value = selector(e.Current); 678TResult x = selector(e.Current); 711value = selector(e.Current); 723TResult? cur = selector(e.Current); 732TResult? cur = selector(e.Current); 768value = selector(e.Current); 771decimal x = selector(e.Current); 804value = selector(e.Current); 811decimal? cur = selector(e.Current); 848value = selector(e.Current); 855TResult x = selector(e.Current); 869value = selector(e.Current); 872TResult x = selector(e.Current);
System\Linq\MaxMin.cs (2)
133value = e.Current; 136T x = e.Current;
System\Linq\Min.cs (36)
47value = e.Current; 56T? cur = e.Current; 120value = e.Current; 128T x = e.Current; 169value = e.Current; 181T? cur = e.Current; 236value = e.Current; 239decimal x = e.Current; 267value = e.Current; 274decimal? cur = e.Current; 337value = e.Current; 343TSource next = e.Current; 357value = e.Current; 362TSource next = e.Current; 373TSource next = e.Current; 439TSource value = e.Current; 456value = e.Current; 464TSource nextValue = e.Current; 479TSource nextValue = e.Current; 492TSource nextValue = e.Current; 534value = selector(e.Current); 537TResult x = selector(e.Current); 572value = selector(e.Current); 581TResult? cur = selector(e.Current); 625value = selector(e.Current); 633TResult x = selector(e.Current); 679value = selector(e.Current); 691TResult? cur = selector(e.Current); 731value = selector(e.Current); 734decimal x = selector(e.Current); 767value = selector(e.Current); 774decimal? cur = selector(e.Current); 811value = selector(e.Current); 818TResult x = selector(e.Current); 832value = selector(e.Current); 835TResult x = selector(e.Current);
System\Linq\OrderedEnumerable.cs (2)
46value = e.Current; 53TElement x = e.Current;
System\Linq\OrderedEnumerable.SpeedOpt.cs (13)
176TElement value = e.Current; 180TElement x = e.Current; 203TElement value = e.Current; 207TElement current = e.Current; 274TElement resultValue = e.Current; 281TElement nextValue = e.Current; 294TElement nextValue = e.Current; 326TElement resultValue = e.Current; 333TElement nextValue = e.Current; 346TElement nextValue = e.Current; 407TElement resultValue = e.Current; 413TElement nextValue = e.Current; 424TElement nextValue = e.Current;
System\Linq\Reverse.SpeedOpt.cs (2)
79result = e.Current; 112return e.Current;
System\Linq\Select.cs (2)
133_current = _selector(_enumerator.Current); 277_current = _selector(_enumerator.Current);
System\Linq\Select.SpeedOpt.cs (4)
81return _selector(e.Current); 103return _selector(e.Current); 117TSource last = e.Current; 121last = e.Current;
System\Linq\SelectMany.cs (2)
201TSource element = _sourceEnumerator.Current; 218_current = _subEnumerator.Current;
System\Linq\SequenceEqual.cs (2)
61if (!(e2.MoveNext() && comparer.Equals(e1.Current, e2.Current)))
System\Linq\Single.cs (3)
94TSource result = e.Current; 124TSource result = e.Current; 129if (predicate(e.Current))
System\Linq\Skip.cs (4)
69TSource element = e.Current; 75yield return e.Current; 116TSource element = e.Current; 122yield return e.Current;
System\Linq\SkipTake.SpeedOpt.cs (6)
316_current = _enumerator.Current; 398return en.Current; 421return en.Current; 451result = en.Current; 478builder.Add(en.Current); 506list.Add(en.Current);
System\Linq\Take.cs (5)
113queue.Enqueue(e.Current); 120queue.Enqueue(e.Current); 128queue.Enqueue(e.Current); 169queue.Enqueue(e.Current); 177queue.Enqueue(e.Current);
System\Linq\Union.cs (2)
140TSource element = _enumerator.Current; 155TSource element = _enumerator.Current;
System\Linq\Where.cs (2)
127TSource item = _enumerator.Current; 401TSource item = _enumerator.Current;
System\Linq\Where.SpeedOpt.cs (4)
99TSource current = e.Current; 107current = e.Current; 583TSource current = e.Current; 591current = e.Current;
System\Linq\Zip.cs (7)
82yield return (e1.Current, e2.Current); 94yield return resultSelector(e1.Current, e2.Current); 107yield return (e1.Current, e2.Current, e3.Current);
System.Linq.Expressions (55)
System\Linq\Expressions\BlockExpression.cs (15)
221if (en.Current == _arg0) 224return en.Current == _arg1; 274if (en.Current == _arg0) 277if (en.Current == _arg1) 280return en.Current == _arg2; 341if (en.Current == _arg0) 344if (en.Current == _arg1) 347if (en.Current == _arg2) 350return en.Current == _arg3; 425if (en.Current == _arg0) 428if (en.Current == _arg1) 431if (en.Current == _arg2) 434if (en.Current == _arg3) 437return en.Current == _arg4; 565return ExpressionUtils.ReturnObject<Expression>(_body) == en.Current;
System\Linq\Expressions\DynamicExpression.cs (10)
560return en.Current == ExpressionUtils.ReturnObject<Expression>(_arg0); 625if (en.Current == _arg0) 628return en.Current == _arg1; 696if (en.Current == _arg0) 699if (en.Current == _arg1) 702return en.Current == _arg2; 773if (en.Current == _arg0) 776if (en.Current == _arg1) 779if (en.Current == _arg2) 782return en.Current == _arg3;
System\Linq\Expressions\Interpreter\InstructionList.cs (2)
127while (hasCookie && cookieEnumerator.Current.Key == i) 129cookie = cookieEnumerator.Current.Value;
System\Linq\Expressions\LambdaExpression.cs (6)
410return en.Current == ExpressionUtils.ReturnObject<ParameterExpression>(_par0); 467if (en.Current == _par0) 470return en.Current == _par1; 532if (en.Current == _par0) 535if (en.Current == _par1) 538return en.Current == _par2;
System\Linq\Expressions\MethodCallExpression.cs (21)
291return en.Current == ExpressionUtils.ReturnObject<Expression>(_arg0); 348if (en.Current == _arg0) 351return en.Current == _arg1; 415if (en.Current == _arg0) 418if (en.Current == _arg1) 421return en.Current == _arg2; 488if (en.Current == _arg0) 491if (en.Current == _arg1) 494if (en.Current == _arg2) 497return en.Current == _arg3; 567if (en.Current == _arg0) 570if (en.Current == _arg1) 573if (en.Current == _arg2) 576if (en.Current == _arg3) 579return en.Current == _arg4; 668return en.Current == ExpressionUtils.ReturnObject<Expression>(_arg0); 729if (en.Current == _arg0) 732return en.Current == _arg1; 796if (en.Current == _arg0) 799if (en.Current == _arg1) 802return en.Current == _arg2;
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
68Add(en.Current);
System.Linq.Parallel (105)
System\Linq\Parallel\Merging\DefaultMergeHelper.cs (1)
168output.Add(enumerator.Current);
System\Linq\Parallel\Merging\MergeEnumerator.cs (1)
48get { return ((IEnumerator<TInputOutput>)this).Current; }
System\Linq\Parallel\Partitioning\PartitionedDataSource.cs (1)
656chunkBuffer[i] = _source.Current;
System\Linq\Parallel\QueryOperators\AssociativeAggregationOperator.cs (2)
127accumulator = _finalReduce(accumulator, enumerator.Current); 138accumulator = enumerator.Current;
System\Linq\Parallel\QueryOperators\Binary\ExceptQueryOperator.cs (1)
315Pair<TInputOutput, TLeftKey> currentPair = _outputEnumerator.Current.Value;
System\Linq\Parallel\QueryOperators\Binary\UnionQueryOperator.cs (1)
386Pair<TInputOutput, ConcatKey<TLeftKey, TRightKey>> current = _outputEnumerator.Current.Value;
System\Linq\Parallel\QueryOperators\Binary\ZipQueryOperator.cs (2)
127yield return _resultSelector(leftEnumerator.Current, rightEnumerator.Current);
System\Linq\Parallel\QueryOperators\Inlined\CountAggregationOperator.cs (1)
53count += enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\DecimalAverageAggregationOperator.cs (3)
52Pair<decimal, long> result = enumerator.Current; 59result.First += enumerator.Current.First; 60result.Second += enumerator.Current.Second;
System\Linq\Parallel\QueryOperators\Inlined\DecimalMinMaxAggregationOperator.cs (3)
56decimal best = enumerator.Current; 63decimal current = enumerator.Current; 74decimal current = enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\DecimalSumAggregationOperator.cs (1)
49sum += enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\DoubleAverageAggregationOperator.cs (3)
52Pair<double, long> result = enumerator.Current; 59result.First += enumerator.Current.First; 60result.Second += enumerator.Current.Second;
System\Linq\Parallel\QueryOperators\Inlined\DoubleMinMaxAggregationOperator.cs (3)
62double best = enumerator.Current; 69double current = enumerator.Current; 80double current = enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\DoubleSumAggregationOperator.cs (1)
49sum += enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\FloatAverageAggregationOperator.cs (3)
52Pair<double, long> result = enumerator.Current; 59result.First += enumerator.Current.First; 60result.Second += enumerator.Current.Second;
System\Linq\Parallel\QueryOperators\Inlined\FloatMinMaxAggregationOperator.cs (3)
61float best = enumerator.Current; 68float current = enumerator.Current; 79float current = enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\FloatSumAggregationOperator.cs (1)
49sum += enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\IntAverageAggregationOperator.cs (3)
52Pair<long, long> result = enumerator.Current; 59result.First += enumerator.Current.First; 60result.Second += enumerator.Current.Second;
System\Linq\Parallel\QueryOperators\Inlined\IntMinMaxAggregationOperator.cs (3)
56int best = enumerator.Current; 63int current = enumerator.Current; 74int current = enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\IntSumAggregationOperator.cs (1)
52sum += enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\LongAverageAggregationOperator.cs (3)
52Pair<long, long> result = enumerator.Current; 59result.First += enumerator.Current.First; 60result.Second += enumerator.Current.Second;
System\Linq\Parallel\QueryOperators\Inlined\LongCountAggregationOperator.cs (1)
52count += enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\LongMinMaxAggregationOperator.cs (3)
56long best = enumerator.Current; 63long current = enumerator.Current; 74long current = enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\LongSumAggregationOperator.cs (1)
51sum += enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalAverageAggregationOperator.cs (3)
51Pair<decimal, long> result = enumerator.Current; 58result.First += enumerator.Current.First; 59result.Second += enumerator.Current.Second;
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalMinMaxAggregationOperator.cs (3)
55decimal? best = enumerator.Current; 62decimal? current = enumerator.Current; 73decimal? current = enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\NullableDecimalSumAggregationOperator.cs (1)
49sum += enumerator.Current.GetValueOrDefault();
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleAverageAggregationOperator.cs (3)
51Pair<double, long> result = enumerator.Current; 58result.First += enumerator.Current.First; 59result.Second += enumerator.Current.Second;
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleMinMaxAggregationOperator.cs (3)
61double? best = enumerator.Current; 68double? current = enumerator.Current; 80double? current = enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\NullableDoubleSumAggregationOperator.cs (1)
49sum += enumerator.Current.GetValueOrDefault();
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatAverageAggregationOperator.cs (3)
51Pair<double, long> result = enumerator.Current; 58result.First += enumerator.Current.First; 59result.Second += enumerator.Current.Second;
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatMinMaxAggregationOperator.cs (3)
61float? best = enumerator.Current; 68float? current = enumerator.Current; 80float? current = enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\NullableFloatSumAggregationOperator.cs (1)
49sum += enumerator.Current.GetValueOrDefault();
System\Linq\Parallel\QueryOperators\Inlined\NullableIntAverageAggregationOperator.cs (3)
51Pair<long, long> result = enumerator.Current; 58result.First += enumerator.Current.First; 59result.Second += enumerator.Current.Second;
System\Linq\Parallel\QueryOperators\Inlined\NullableIntMinMaxAggregationOperator.cs (3)
55int? best = enumerator.Current; 62int? current = enumerator.Current; 73int? current = enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\NullableIntSumAggregationOperator.cs (1)
51sum += enumerator.Current.GetValueOrDefault();
System\Linq\Parallel\QueryOperators\Inlined\NullableLongAverageAggregationOperator.cs (3)
51Pair<long, long> result = enumerator.Current; 58result.First += enumerator.Current.First; 59result.Second += enumerator.Current.Second;
System\Linq\Parallel\QueryOperators\Inlined\NullableLongMinMaxAggregationOperator.cs (3)
55long? best = enumerator.Current; 62long? current = enumerator.Current; 73long? current = enumerator.Current;
System\Linq\Parallel\QueryOperators\Inlined\NullableLongSumAggregationOperator.cs (1)
51sum += enumerator.Current.GetValueOrDefault();
System\Linq\Parallel\QueryOperators\PartitionerQueryOperator.cs (3)
58yield return enumerator.Current; 220KeyValuePair<long, TElement> current = _sourceEnumerator.Current; 255currentElement = _sourceEnumerator.Current;
System\Linq\Parallel\QueryOperators\QueryOpeningEnumerator.cs (2)
66return _openedQueryEnumerator.Current; 85get { return ((IEnumerator<TOutput>)this).Current; }
System\Linq\Parallel\QueryOperators\Unary\AnyAllSearchOperator.cs (1)
79if (enumerator.Current == _qualification)
System\Linq\Parallel\QueryOperators\Unary\ContainsSearchOperator.cs (1)
62if (enumerator.Current)
System\Linq\Parallel\QueryOperators\Unary\DistinctQueryOperator.cs (1)
261KeyValuePair<Wrapper<TInputOutput>, TKey> currentPair = _hashLookupEnumerator.Current;
System\Linq\Parallel\QueryOperators\Unary\ElementAtQueryOperator.cs (1)
151TSource current = e.Current;
System\Linq\Parallel\QueryOperators\Unary\SelectManyQueryOperator.cs (4)
327currentElement = _selectManyOperator._resultSelector(_mutables._currentLeftElement, _currentRightSource.Current); 334currentElement = _currentRightSourceAsOutput.Current; 456currentElement = _selectManyOperator._resultSelector(_mutables._currentLeftElement, _currentRightSource.Current); 463currentElement = _currentRightSourceAsOutput.Current;
System\Linq\Parallel\Utils\ExceptionAggregator.cs (1)
41elem = enumerator.Current;
System\Linq\ParallelEnumerable.cs (10)
1566acc = (TAccumulate)(object)enumerator.Current!; 1571TSource elem = enumerator.Current; 4398if (!(e2.MoveNext() && comparer.Equals(e1.Current, e2.Current))) return false; 4893list.Add(input.Current); 4975TSource val = input.Current; 5072TSource src = input.Current; 5159lookup.Add(input.Current); 5246lookup.Add(input.Current); 5340TSource current = e.Current;
System.Linq.Queryable (1)
System\Linq\EnumerableRewriter.cs (1)
305MethodInfo mi = en.Current;
System.Net.Http (2)
System\Net\Http\Headers\HttpHeaders.cs (2)
175TryAddWithoutValidation(descriptor, enumerator.Current); 190AddRawValue(info, enumerator.Current ?? string.Empty);
System.Net.Mail (3)
System\Net\Mime\MimeMultiPart.cs (3)
118MimeBasePart part = (MimeBasePart)context._partsEnumerator.Current; 123part = (MimeBasePart)context._partsEnumerator.Current; 167MimeBasePart part = (MimeBasePart)context._partsEnumerator.Current;
System.Private.CoreLib (24)
src\libraries\Common\src\System\Collections\Generic\EnumerableHelpers.cs (2)
49arr[0] = en.Current; 71arr[count++] = en.Current;
src\libraries\System.Private.CoreLib\src\System\Collections\Concurrent\ConcurrentQueue.cs (2)
238arr[i++] = e.Current; 466array[i++] = e.Current;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (3)
87Add(en.Current); 271Add(en.Current); 857Insert(index++, en.Current);
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (4)
232get => new DictionaryEntry(_enumerator.Current.Key, _enumerator.Current.Value); 235public object Key => _enumerator.Current.Key; 237public object? Value => _enumerator.Current.Value;
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (10)
145string? firstValue = en.Current; 158result.Append(en.Current); 794string? firstValue = en.Current; 810result.Append(en.Current); 937char c = en.Current; // save the first value 955c = en.Current; 969T value = e.Current; // save the first value 985result.AppendFormatted(e.Current); 995string? firstString = e.Current?.ToString(); // save the first value 1011result.Append(e.Current?.ToString());
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (2)
1247T value = en.Current; 1256value = en.Current;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
6909Task task = e.Current;
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\CollectionDataContract.cs (1)
1639KeyValuePair<K, V> current = _enumerator.Current;
System.Private.Xml (4)
System\Xml\Xsl\Runtime\DodSequenceMerge.cs (4)
87newSequence.Add(sequence.Current); 97newSequence.Add(_sequencesToMerge[0].Current); 122int cmp = _runtime.ComparePosition(sequence.Current, _sequencesToMerge[i].Current);
System.Private.Xml.Linq (2)
src\libraries\Common\src\System\Collections\Generic\EnumerableHelpers.cs (2)
49arr[0] = en.Current; 71arr[count++] = en.Current;
System.Text.Json (3)
System\Text\Json\Serialization\Converters\Collection\DictionaryDefaultConverter.cs (2)
57TKey key = enumerator.Current.Key; 61TValue element = enumerator.Current.Value;
System\Text\Json\Serialization\Converters\Collection\IEnumerableDefaultConverter.cs (1)
46TElement element = enumerator.Current;
System.Threading.Tasks.Parallel (3)
System\Threading\Tasks\Parallel.cs (2)
2647KeyValuePair<long, TSource> kvp = myPartition.Current; 2697TSource t = myPartition.Current;
System\Threading\Tasks\Parallel.ForEachAsync.cs (1)
306element = state.Enumerator.Current;
System.Xaml (7)
System\Xaml\InfosetObjects\XamlXmlReader.cs (1)
245_current = _nodeStream.Current;
System\Xaml\Parser\NodeStreamSorter.cs (4)
134_current = _source.Current; 180node = _source.Current; 304node = _source.Current; 362XamlNode node = _source.Current;
System\Xaml\Runtime\ClrObjectRuntime.cs (2)
733yield return new DictionaryEntry(enumerator.Current.Key, enumerator.Current.Value);
Templates.Blazor.Tests (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
Templates.Blazor.WebAssembly.Auth.Tests (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
Templates.Blazor.WebAssembly.Tests (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
Templates.Mvc.Tests (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
Templates.Tests (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
Wasm.Performance.ConsoleHost (4)
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (4)
182arguments.Current.Values.Add(arg); 261arguments.Current.Values.Add(arg); 357arguments.Current.Values.Add(arg); 614return _enumerator.Current;
xunit.assert (3)
Sdk\CollectionTracker.cs (3)
672 startItems.Add(spanEnumerator.Current); 812 innerEnumerator.Current; 866 var current = innerEnumerator.Current;