224 implementations of
Aspire.Hosting (1)
IInteractionService.cs (1)
403public InteractionInput this[int index] => _inputs[index];
Aspire.RabbitMQ.Client (1)
src\Components\Aspire.RabbitMQ.Client\RabbitMQEventSourceLogForwarder.cs (1)
99public KeyValuePair<string, object?> this[int index]
ConfigurationSchemaGenerator (1)
RuntimeSource\SourceGenerators\ImmutableEquatableArray.cs (1)
21public T this[int index] => _values[index];
GenerateDocumentationAndConfigFiles (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
96public T this[int i] => _elements![i];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
100public T this[int index] => _list[index];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
38public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
49public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
197public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
46public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
65public T this[int index]
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
132public T this[int index]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
40public T this[int index] => list[index];
Microsoft.AspNetCore.Components (3)
_generated\0\LoggerMessage.g.cs (1)
210public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index]
ResourceAssetCollection.cs (1)
67ResourceAsset IReadOnlyList<ResourceAsset>.this[int index] => _resources[index];
src\aspnetcore\src\Http\Routing\src\PathTokenizer.cs (1)
71public StringSegment this[int index]
Microsoft.AspNetCore.Components.Endpoints (3)
_generated\0\LoggerMessage.g.cs (3)
298public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index] 382public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index] 449public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index]
Microsoft.AspNetCore.Components.Server (1)
_generated\0\LoggerMessage.g.cs (1)
1174public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index]
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.AspNetCore.Hosting (4)
Internal\HostingApplicationDiagnostics.cs (1)
611public KeyValuePair<string, object> this[int index]
Internal\HostingRequestFinishedLog.cs (1)
24public KeyValuePair<string, object?> this[int index]
Internal\HostingRequestStartingLog.cs (1)
23public KeyValuePair<string, object?> this[int index] => index switch
Internal\HostingRequestUnhandledLog.cs (1)
21public KeyValuePair<string, object?> this[int index] => index switch
Microsoft.AspNetCore.Http.Abstractions (1)
Routing\EndpointMetadataCollection.cs (1)
58public object this[int index] => _items[index];
Microsoft.AspNetCore.Http.Connections (1)
Internal\ConnectionLogScope.cs (1)
20public KeyValuePair<string, object?> this[int index]
Microsoft.AspNetCore.Http.Extensions (3)
_generated\0\LoggerMessage.g.cs (3)
225public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index] 309public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index] 376public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index]
Microsoft.AspNetCore.HttpLogging (1)
HttpLog.cs (1)
23public KeyValuePair<string, object?> this[int index] => _keyValues[index];
Microsoft.AspNetCore.Mvc.Core (7)
_generated\0\LoggerMessage.g.cs (5)
597public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index] 1503public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index] 1563public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index] 1623public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index] 1777public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index]
Diagnostics\EventData.cs (1)
27KeyValuePair<string, object> IReadOnlyList<KeyValuePair<string, object>>.this[int index] => this[index];
MvcCoreLoggerExtensions.cs (1)
291public KeyValuePair<string, object> this[int index]
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponents\DefaultViewComponentInvoker.cs (1)
293public KeyValuePair<string, object> this[int index]
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
132public T this[int index]
Microsoft.AspNetCore.Routing (1)
PathTokenizer.cs (1)
71public StringSegment this[int index]
Microsoft.AspNetCore.Server.Kestrel.Core (3)
_generated\0\LoggerMessage.g.cs (2)
259public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index] 1085public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index]
Internal\ConnectionLogScope.cs (1)
20public KeyValuePair<string, object> this[int index]
Microsoft.AspNetCore.SignalR.Core (1)
_generated\0\LoggerMessage.g.cs (1)
133public global::System.Collections.Generic.KeyValuePair<string, object?> this[int index]
Microsoft.Build (9)
Instance\ImmutableProjectCollections\LazyStringValuedList.cs (1)
31public string this[int index]
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedList`1.cs (1)
100public T this[int index] => _list[index];
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
38public T this[int index]
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
49public T this[int index]
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedList`1.cs (1)
197public T this[int index]
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Specialized\SpecializedCollections.Empty.List.cs (1)
46public T this[int index]
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
65public T this[int index]
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\ArrayBuilder.cs (1)
131public T this[int index]
Microsoft.CodeAnalysis (16)
Collections\OrderedSet.cs (1)
55public T this[int index]
InternalUtilities\SetWithInsertionOrder.cs (1)
96public T this[int i] => _elements![i];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
100public T this[int index] => _list[index];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
38public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
49public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
197public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
46public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
65public T this[int index]
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
132public T this[int index]
Syntax\ChildSyntaxList.cs (1)
64public SyntaxNodeOrToken this[int index]
Syntax\SeparatedSyntaxList.cs (1)
112public TNode this[int index]
Syntax\SyntaxList`1.cs (1)
122public TNode this[int index]
Syntax\SyntaxTokenList.cs (1)
126public SyntaxToken this[int index]
Syntax\SyntaxTriviaList.cs (1)
124public SyntaxTrivia this[int index]
Text\TextLineCollection.cs (1)
26public abstract TextLine this[int index] { get; }
Microsoft.CodeAnalysis.Analyzers (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
96public T this[int i] => _elements![i];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
100public T this[int index] => _list[index];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
38public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
49public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
197public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
46public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
65public T this[int index]
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
132public T this[int index]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
40public T this[int index] => list[index];
Microsoft.CodeAnalysis.AnalyzerUtilities (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
96public T this[int i] => _elements![i];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
100public T this[int index] => _list[index];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
38public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
49public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
197public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
46public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
65public T this[int index]
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
132public T this[int index]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
40public T this[int index] => list[index];
Microsoft.CodeAnalysis.CodeStyle (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
96public T this[int i] => _elements![i];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
100public T this[int index] => _list[index];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
38public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
49public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
197public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
46public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
65public T this[int index]
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
132public T this[int index]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
40public T this[int index] => list[index];
Microsoft.CodeAnalysis.Extensions.Package (8)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
100public T this[int index] => _list[index];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
38public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
49public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
197public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
46public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
65public T this[int index]
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
132public T this[int index]
Microsoft.CodeAnalysis.Razor.Compiler (7)
Language\Intermediate\IntermediateNodeCollection.cs (1)
29public IntermediateNode this[int index]
Language\Syntax\ChildSyntaxList.cs (1)
58public SyntaxNodeOrToken this[int index]
Language\Syntax\SpecializedCollections.cs (1)
156public T this[int index]
Language\Syntax\SyntaxList`1.cs (1)
73public TNode this[int index]
Language\Syntax\SyntaxTokenList.cs (1)
92public SyntaxToken this[int index]
Language\TagHelperCollection.Builder.cs (1)
57public TagHelperDescriptor this[int index]
Language\TagHelperCollection.cs (1)
90public abstract TagHelperDescriptor this[int index] { get; }
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
96public T this[int i] => _elements![i];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
100public T this[int index] => _list[index];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
38public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
49public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
197public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
46public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
65public T this[int index]
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
132public T this[int index]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
40public T this[int index] => list[index];
Microsoft.CodeAnalysis.Workspaces (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
96public T this[int i] => _elements![i];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
100public T this[int index] => _list[index];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
38public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
49public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
197public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
46public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
65public T this[int index]
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
132public T this[int index]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
40public T this[int index] => list[index];
Microsoft.Diagnostics.DataContractReader.DataGenerator (1)
EquatableArray.cs (1)
28public T this[int index] => (_items ?? Array.Empty<T>())[index];
Microsoft.Extensions.AI (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Extensions.AI.Abstractions (2)
Embeddings\GeneratedEmbeddings.cs (1)
49public TEmbedding this[int index]
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Extensions.Diagnostics.HealthChecks (2)
DefaultHealthCheckService.cs (1)
284public KeyValuePair<string, object> this[int index]
HealthCheckLogScope.cs (1)
16KeyValuePair<string, object> IReadOnlyList<KeyValuePair<string, object>>.this[int index]
Microsoft.Extensions.Http (1)
Logging\HttpHeadersLogValue.cs (1)
61public KeyValuePair<string, object> this[int index]
Microsoft.Extensions.Http.Diagnostics (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Extensions.Logging (1)
LoggerFactoryScopeProvider.cs (1)
173public KeyValuePair<string, object?> this[int index]
Microsoft.Extensions.Logging.Abstractions (9)
FormattedLogValues.cs (1)
63public KeyValuePair<string, object?> this[int index]
FormattedLogValuesObsolete.cs (1)
32public KeyValuePair<string, object?> this[int index] => _inner[index];
LoggerMessage.cs (7)
477public KeyValuePair<string, object?> this[int index] 517public KeyValuePair<string, object?> this[int index] 567public KeyValuePair<string, object?> this[int index] 614public KeyValuePair<string, object?> this[int index] 670public KeyValuePair<string, object?> this[int index] 732public KeyValuePair<string, object?> this[int index] 798public KeyValuePair<string, object?> this[int index]
Microsoft.Extensions.Logging.Generators (1)
src\runtime\src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
21public T this[int index] => _values[index];
Microsoft.Extensions.Primitives (1)
StringValues.cs (1)
133public string? this[int index]
Microsoft.Extensions.Telemetry (3)
Logging\ExtendedLogger.LegacyTagJoiner.cs (1)
48public KeyValuePair<string, object?> this[int index]
Logging\ExtendedLogger.ModernTagJoiner.cs (1)
55public KeyValuePair<string, object?> this[int index]
Logging\Import\LoggerFactoryScopeProvider.cs (1)
185public KeyValuePair<string, object?> this[int index]
Microsoft.Extensions.Telemetry.Abstractions (1)
Logging\LoggerMessageState.ReadOnlyList.cs (1)
13public KeyValuePair<string, object?> this[int index] => _tags[Throw.IfOutOfRange(index, 0, TagsCount)];
Microsoft.Gen.BuildMetadata.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Gen.ComplianceReports.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Gen.Logging.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Gen.MetadataExtractor.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Gen.Metrics.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Gen.MetricsReports.Unit.Tests (1)
src\Shared\EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
Microsoft.Maui (2)
Primitives\ItemDelegateList.cs (1)
13 public T this[int index] => ItemDelegate.GetItem(index);
Primitives\LockableObservableListWrapper.cs (1)
36 public string this[int index]
Microsoft.Maui.Controls (6)
ListProxy.cs (1)
128 public object this[int index]
ReadOnlyCastingList.cs (2)
33 public T this[int index] 63 public T this[int index]
SynchronizedList.cs (1)
100 public T this[int index]
TemplatedItemsList.cs (2)
343 public TItem this[int index] 1276 public string this[int index]
Microsoft.ML.Core (1)
Data\IEstimator.cs (1)
26public Column this[int index] => _columns[index];
Microsoft.ML.Data (1)
Transforms\Normalizer.cs (1)
495public IColumnFunction this[int index] => _infos[index].ColumnFunction;
Microsoft.ML.DataView (1)
DataViewSchema.cs (1)
48public Column this[int columnIndex]
Microsoft.ML.StandardTrainers (1)
Standard\LinearModelParameters.cs (1)
69public float this[int index]
Microsoft.Private.Windows.Core (2)
System\Collections\Generic\ListConverter.cs (1)
26public TOut this[int index] => _converter((TIn)_values[index]!);
System\Private\Windows\BinaryFormat\Serializer\ArraySingleString.StringListAdapter.cs (1)
21public string? this[int index] => _recordList[index] switch
Microsoft.TemplateEngine.Abstractions (1)
Parameters\ParameterDefinitionSet.cs (1)
53public ITemplateParameter this[int index] => _parameters.Values.ElementAt(index);
Microsoft.TemplateEngine.Utils (1)
CombinedList.cs (1)
21public T this[int index]
PresentationFramework (2)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (2)
81public T this[int index] { get => Indexer_Get(index); } 430public T this[int index] => _FromVectorView[index];
Roslyn.Diagnostics.Analyzers (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
96public T this[int i] => _elements![i];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
100public T this[int index] => _list[index];
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (1)
38public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
49public T this[int index]
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedArray`1.cs (1)
130T IReadOnlyList<T>.this[int index] => this[index];
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (1)
197public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Empty.List.cs (1)
46public T this[int index]
src\roslyn\src\Dependencies\Collections\Specialized\SpecializedCollections.Singleton.Collection`1.cs (1)
65public T this[int index]
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
132public T this[int index]
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (1)
40public T this[int index] => list[index];
Shared (1)
EmptyCollections\EmptyReadOnlyList.cs (1)
25public T this[int index] => throw new ArgumentOutOfRangeException(nameof(index));
System.Collections (3)
System\Collections\Generic\OrderedDictionary.cs (3)
351KeyValuePair<TKey, TValue> IReadOnlyList<KeyValuePair<TKey, TValue>>.this[int index] => GetAt(index); 1583TKey IReadOnlyList<TKey>.this[int index] => _dictionary.GetAt(index).Key; 1722TValue IReadOnlyList<TValue>.this[int index] => _dictionary.GetAt(index).Value;
System.Collections.Immutable (7)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
138public T this[int index]
System\Collections\Immutable\ImmutableArray_1.cs (1)
85T IReadOnlyList<T>.this[int index]
System\Collections\Immutable\ImmutableExtensions.cs (2)
136public T this[int index] 217public T this[int index]
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
124public T this[int index]
System\Collections\Immutable\ImmutableList_1.cs (1)
173public T this[int index] => _root.ItemRef(index);
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
137public T this[int index]
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\TagList.netcore.cs (1)
63public KeyValuePair<string, object?> this[int index]
System.Linq (3)
System\Linq\Range.SpeedOpt.cs (1)
88public T this[int index]
System\Linq\Repeat.SpeedOpt.cs (1)
95public TResult this[int index]
System\Linq\SkipTake.SpeedOpt.cs (1)
194public TSource this[int index]
System.Linq.Expressions (1)
System\Linq\Expressions\Compiler\CompilerScope.cs (1)
543public ParameterExpression this[int index]
System.Private.CoreLib (5)
src\runtime\src\libraries\System.Private.CoreLib\src\System\ArraySegment.cs (1)
215T IReadOnlyList<T>.this[int index]
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
143public T this[int index]
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
36public T this[int index]
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
35public T this[int index] => list[index];
System\Array.NativeAot.cs (1)
581public T this[int index]
System.Private.Windows.Core (2)
System\Collections\Generic\ListConverter.cs (1)
26public TOut this[int index] => _converter((TIn)_values[index]!);
System\Private\Windows\BinaryFormat\Serializer\ArraySingleString.StringListAdapter.cs (1)
21public string? this[int index] => _recordList[index] switch
System.Reflection.Metadata (2)
System\Reflection\Metadata\TypeSystem\HandleCollections.TypeSystem.cs (2)
34public GenericParameterHandle this[int index] 142public GenericParameterConstraintHandle this[int index]
System.Text.Json.SourceGeneration (1)
src\runtime\src\libraries\Common\src\SourceGenerators\ImmutableEquatableArray.cs (1)
21public T this[int index] => _values[index];
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\CaptureCollection.cs (1)
71public Capture this[int i] => GetCapture(i);
System\Text\RegularExpressions\GroupCollection.cs (1)
92public Group this[int groupnum] => GetGroup(groupnum);
System\Text\RegularExpressions\MatchCollection.cs (1)
142public virtual Match this[int i]
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
22public T this[int index]
1178 references to
aspire (4)
Commands\PipelineCommandBase.cs (1)
770var input = inputs[i];
Mcp\Docs\DocsIndexService.cs (2)
319var section = doc.Sections[i]; 329matchedSection = doc.Source.Sections[i].Heading;
Mcp\Docs\DocsSearchService.cs (1)
61var result = Results[i];
Aspire.Cli.Tests (4)
Mcp\Docs\DocsIndexServiceTests.cs (4)
450Assert.True(results[i - 1].Score >= results[i].Score, 451$"Results not in descending score order: {results[i - 1].Score} < {results[i].Score}");
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
592var fontendUrl = frontendAddresses[i];
Aspire.Hosting (10)
ApplicationModel\ExpressionResolver.cs (2)
27var result = await ResolveInternalAsync(expr.ValueProviders[i], context).ConfigureAwait(false); 31if (expr.StringFormats[i] is { } stringFormat && args[i] is string s)
ApplicationModel\ReferenceExpression.cs (1)
207args[i] = await ValueProviders[i].GetValueAsync(context, cancellationToken).ConfigureAwait(false);
ApplicationModel\ResourceLoggerService.cs (1)
615var entry = entries[i];
InteractionService.cs (1)
134var input = inputs[i];
Publishing\ManifestPublishingContext.cs (5)
713var expression = referenceExpression.ManifestExpressions[i]; 714var format = referenceExpression.StringFormats[i]; 718if (GetFormattedResourceNameForProvider(referenceExpression.ValueProviders[i], format) is { } formattedResourceName) 744var format = formats[i]; 751_ = GetFormattedResourceNameForProvider(providers[i], format);
Aspire.Hosting.Azure (1)
AzurePublishingContext.cs (1)
197args[i] = Eval(expr.ValueProviders[i]);
Aspire.Hosting.Azure.AppContainers (1)
BaseContainerAppContext.cs (1)
353if (expr.StringFormats[index] is string format)
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
260if (expr.StringFormats[index] is string format)
Aspire.Hosting.CodeGeneration.TypeScript (3)
AtsTypeScriptCodeGenerator.cs (3)
870if (!string.Equals(aCallbackParams[i].Type.TypeId, bCallbackParams[i].Type.TypeId, StringComparison.Ordinal)) 1511var cbParam = callbackParameters[i];
dotnet (4)
Commands\New\PostActions\DotnetSlnPostActionProcessor.cs (1)
45filesToAdd.Add(Path.GetFullPath(templateCreationResult.PrimaryOutputs[index].Path, outputBasePath));
Commands\Run\VirtualProjectBuildingCommand.cs (1)
434var arg = args[i];
Commands\Solution\Remove\SolutionRemoveCommand.cs (1)
105var folder = solution.SolutionFolders[i];
Commands\Test\VSTest\TestCommand.cs (1)
328string arg = parseResult.UnmatchedTokens[i];
dotnet-format (1)
Formatters\DocumentFormatter.cs (1)
166var change = changes[index];
dotnet-watch (4)
CommandLine\CommandLineOptions.cs (3)
273var token = parseResult.UnmatchedTokens[i]; 343if (knownCommandsByName.TryGetValue(parseResult.UnmatchedTokens[i], out var explicitCommand)) 373if (predicate(list[i]))
Watch\StaticFileHandler.cs (1)
22var file = files[i].Item;
GenerateDocumentationAndConfigFiles (19)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
644if (comparer.Equals(list[i], value))
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
52if (!set.Add(selector(list[i])))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
62var currentOne = root.ConvertToTokenPair(spans[i]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (2)
23=> list[list.Count - 1]; 29if (EqualityComparer<T>.Default.Equals(list[index], value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
128var item = list[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (2)
47var name1 = names1[i]; 48var name2 = names2[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (8)
44syntaxFacts, existingParameters[existingParameters.Count - 1], includeLeadingNewLine: true); 66var nextParameter = existingParameters[insertionIndex]; 69syntaxFacts, existingParameters[insertionIndex + 1], includeLeadingNewLine: true); 91var nextParameter = existingParameters[insertionIndex]; 108var nextParameter = existingParameters[insertionIndex]; 110syntaxFacts, existingParameters[insertionIndex], includeLeadingNewLine: false); 162var lastParameter = parameters[i - 1]; 163var thisParameter = parameters[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (2)
103state.OutermostBlockStatements[statementIndex + 1] == state.FirstStatementAffectedInInnermostBlock) 151var originalNextStatement = state.OutermostBlockStatements[statementIndex + 1];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
186if (InnermostBlockStatements[i] is not TLocalDeclarationStatementSyntax)
ILAssembler (4)
EntityRegistry.cs (4)
490var otherList = getList(listOwner[i]); 502var otherList = getList(listOwner[i]); 503if (otherList.Count != 0 && !otherList[otherList.Count - 1].Handle.IsNil) 505return MetadataTokens.EntityHandle(tokenType, MetadataTokens.GetRowNumber(otherList[otherList.Count - 1].Handle) + 1);
ILCompiler.Compiler (16)
Compiler\Dataflow\CompilerGeneratedState.cs (1)
445userAttrs = owningAttrs[param.Index];
Compiler\Dataflow\HandleCallAction.cs (1)
295foreach (var value in argumentValues[paramIndex].AsEnumerable())
Compiler\DependencyAnalysis\EETypeNode.cs (1)
970MethodDesc declMethod = virtualSlots[i];
Compiler\DependencyAnalysis\InterfaceDispatchMapNode.cs (1)
175MethodDesc declMethod = virtualSlots[interfaceMethodSlot];
Compiler\DependencyAnalysis\SealedVTableNode.cs (5)
126if (!declTypeVTable.IsSlotUsed(virtualSlots[i])) 129if (!virtualSlots[i].Signature.IsStatic && !needsEntriesForInstanceInterfaceMethodImpls) 132MethodDesc implMethod = declType.FindVirtualFunctionTargetMethodOnObjectType(virtualSlots[i]); 138if (factory.DelegateTargetVirtualMethod(virtualSlots[i].GetCanonMethodTarget(CanonicalFormKind.Specific)).Marked) 165MethodDesc declMethod = virtualSlots[interfaceMethodSlot];
Compiler\ILScanner.cs (1)
309MethodDesc slot = vtableSliceNode.Slots[i];
Compiler\VirtualMethodCallHelper.cs (3)
75if (virtualSlots[slot].CanMethodBeInSealedVTable(factory)) 81if (virtualSlots[slot] == method) 113if (virtualSlots[slot].CanMethodBeInSealedVTable(factory))
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (3)
1431if (argumentValues[argsParam].AsSingleValue() is ArrayValue arrayValue && 1434else if (argumentValues[argsParam].AsSingleValue() is NullValue) 1622_requireDynamicallyAccessedMembersAction.Invoke(argumentValues[parameter.MetadataIndex], _annotations.GetMethodParameterValue(parameter));
ILCompiler.ReadyToRun (21)
Compiler\DependencyAnalysis\ReadyToRun\InstrumentationDataTableNode.cs (1)
229symbols[i] = new DependencyListEntry(pgoEmitter.ReferencedImports[i], "Pgo Instrumentation Data");
ObjectWriter\MapFileBuilder.cs (18)
190writer.Write($"{_outputInfoBuilder.Symbols[symbolIndex].Name}"); 202OutputSection section = _outputInfoBuilder.Sections[sectionIndex]; 224&& OutputItem.Comparer.Instance.Compare(_outputInfoBuilder.Symbols[symbolIndex], _outputInfoBuilder.Nodes[nodeIndex]) < 0) 227OutputSymbol symbol = _outputInfoBuilder.Symbols[symbolIndex++]; 228OutputSection section = _outputInfoBuilder.Sections[symbol.SectionIndex]; 238OutputNode node = _outputInfoBuilder.Nodes[nodeIndex++]; 239OutputSection section = _outputInfoBuilder.Sections[node.SectionIndex]; 245if (symbolIndex < _outputInfoBuilder.Symbols.Count && OutputItem.Comparer.Instance.Compare(node, _outputInfoBuilder.Symbols[symbolIndex]) == 0) 247OutputSymbol symbol = _outputInfoBuilder.Symbols[symbolIndex++]; 266&& OutputItem.Comparer.Instance.Compare(_outputInfoBuilder.Symbols[symbolIndex], _outputInfoBuilder.Nodes[nodeIndex]) < 0) 269OutputSymbol symbol = _outputInfoBuilder.Symbols[symbolIndex++]; 270OutputSection section = _outputInfoBuilder.Sections[symbol.SectionIndex]; 281OutputNode node = _outputInfoBuilder.Nodes[nodeIndex++]; 282OutputSection section = _outputInfoBuilder.Sections[node.SectionIndex]; 288if (symbolIndex < _outputInfoBuilder.Symbols.Count && OutputItem.Comparer.Instance.Compare(node, _outputInfoBuilder.Symbols[symbolIndex]) == 0) 290OutputSymbol symbol = _outputInfoBuilder.Symbols[symbolIndex++];
ObjectWriter\ProfileFileBuilder.cs (2)
160callerRVA = _outputInfoBuilder.Sections[callerNode.SectionIndex].VirtualAddress + callerNode.Offset; 170calleeRVA = _outputInfoBuilder.Sections[calleeNode.SectionIndex].VirtualAddress + calleeNode.Offset;
illink (3)
ILLink.RoslynAnalyzer (3)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\HandleCallAction.cs (3)
1431if (argumentValues[argsParam].AsSingleValue() is ArrayValue arrayValue && 1434else if (argumentValues[argsParam].AsSingleValue() is NullValue) 1622_requireDynamicallyAccessedMembersAction.Invoke(argumentValues[parameter.MetadataIndex], _annotations.GetMethodParameterValue(parameter));
Microsoft.Analyzers.Extra (2)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (2)
394parameters.Add(gen.ParameterDeclaration(details.MessageArgs[index++], gen.TypeExpression(o.Type!))); 409name = details.MessageArgs[index];
Microsoft.Analyzers.Extra.Tests (13)
AsyncCallInsideUsingBlockAnalyzerTests.cs (1)
407source.AssertDiagnostic(i, DiagDescriptors.AsyncCallInsideUsingBlock, d[i]);
AsyncMethodWithoutCancellationTests.cs (1)
168source.AssertDiagnostic(i, DiagDescriptors.AsyncMethodWithoutCancellation, d[i]);
CallAnalysis\ArraysTests.cs (1)
130Source.AssertDiagnostic(i, DiagDescriptors.Arrays, d[i]);
CallAnalysis\LegacyCollectionTests.cs (1)
52Source.AssertDiagnostic(i, DiagDescriptors.LegacyCollection, d[i]);
CallAnalysis\SplitTests.cs (1)
37Source.AssertDiagnostic(i, DiagDescriptors.Split, d[i]);
CallAnalysis\StartsEndsWithTests.cs (2)
65Source.AssertDiagnostic(i, DiagDescriptors.StartsEndsWith, d[i]); 123Source.AssertDiagnostic(i, DiagDescriptors.StartsEndsWith, d[i]);
CallAnalysis\StaticTimeTests.cs (1)
85Source.AssertDiagnostic(i, DiagDescriptors.StaticTime, d[i]);
CallAnalysis\ValueTupleTests.cs (1)
54Source.AssertDiagnostic(i, DiagDescriptors.ValueTuple, d[i]);
CoalesceAnalyzerTests.cs (2)
100Source.AssertDiagnostic(i, DiagDescriptors.CoalesceAssignment, d[i]); 168Source.AssertDiagnostic(i, DiagDescriptors.Coalesce, d[i]);
ConditionalAccessAnalyzerTests.cs (1)
113Source.AssertDiagnostic(i, DiagDescriptors.ConditionalAccess, d[i]);
MakeExeTypesInternalTests.cs (1)
164Source.AssertDiagnostic(i, DiagDescriptors.MakeExeTypesInternal, d[i]);
Microsoft.Analyzers.Local.Tests (5)
ApiLifecycle\ApiLifecycleAnalyzerTest.cs (2)
48source.AssertDiagnostic(i, descriptor, diagnostics[i]); 74var actual = diagnostics[i];
CallAnalysis\ToInvariantStringTests.cs (1)
45Source.AssertDiagnostic(i, DiagDescriptors.ToInvariantString, d[i]);
InternalReferencedInPublicDocAnalyzerTests.cs (2)
46var first = $"{firstPrefix} {firstList[i % firstList.Count]}"; 47var second = $"{secondPrefix} {secondList[i % secondList.Count]}";
Microsoft.AspNetCore.Components (34)
ParameterView.cs (1)
439var state = _cascadingParameters[_currentIndex];
Rendering\ComponentState.cs (4)
279var valueSupplier = _cascadingParameters[i].ValueSupplier; 282valueSupplier.Subscribe(this, _cascadingParameters[i].ParameterInfo); 295var supplier = _cascadingParameters[i].ValueSupplier; 298supplier.Unsubscribe(this, _cascadingParameters[i].ParameterInfo);
ResourceAssetCollection.cs (1)
67ResourceAsset IReadOnlyList<ResourceAsset>.this[int index] => _resources[index];
Routing\RouteTable.cs (1)
116var policy = parameter.ParameterPolicies[i];
Routing\RouteTableFactory.cs (6)
321var leftSegment = x.RoutePattern.PathSegments[k]; 322var rightSegment = y.RoutePattern.PathSegments[k]; 330var leftPart = leftSegment.Parts[l]; 331var rightPart = rightSegment.Parts[l]; 351var segment = obj.RoutePattern.PathSegments[i]; 354var part = segment.Parts[j];
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePattern.cs (1)
144var parameter = parameters[i];
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternDebugStringFormatter.cs (3)
25var segment = pattern.PathSegments[i]; 56if (TryGetRequiredValue(pattern, pattern.Parameters[i].Name, out _)) 80var part = segment.Parts[i];
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternFactory.cs (2)
478if (segment.Parts[j] is RoutePatternParameterPart parameter) 548var part = segment.Parts[i];
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternMatcher.cs (9)
38var segment = RoutePattern.PathSegments[i]; 86var pathSegment = i >= RoutePattern.PathSegments.Count ? null : RoutePattern.PathSegments[i]; 110var pathSegment = RoutePattern.PathSegments[i]; 149var pathSegment = RoutePattern.PathSegments[i++]; 167var pathSegment = RoutePattern.PathSegments[i]; 302if (routeSegment.Parts[indexOfLastSegment] is RoutePatternParameterPart parameter && parameter.IsOptional && 303routeSegment.Parts[indexOfLastSegment - 1].IsSeparator) 311var separator = (RoutePatternSeparatorPart)routeSegment.Parts[indexOfLastSegment - 1]; 353var part = routeSegment.Parts[indexOfLastSegmentUsed];
src\aspnetcore\src\Http\Routing\src\Patterns\RoutePatternParser.cs (1)
324var part = segment.Parts[j];
src\aspnetcore\src\Http\Routing\src\Template\RoutePrecedence.cs (2)
66var segment = routePattern.PathSegments[i]; 122var segment = routePattern.PathSegments[i];
src\aspnetcore\src\Http\Routing\src\Tree\UrlMatchingTree.cs (3)
84var segment = entry.RoutePattern.PathSegments[i]; 254if (!segments[i].IsSimple) 260var part = segments[i].Parts[0];
Microsoft.AspNetCore.Components.Endpoints (7)
Assets\ImportMapDefinition.cs (1)
91var property = asset.Properties[i];
Discovery\ComponentCollectionBuilder.cs (1)
65var componentType = components[i];
Discovery\PageCollectionBuilder.cs (1)
65var page = pages[i];
Discovery\PageComponentBuilder.cs (1)
77hash.Add(RouteTemplates[i]);
Discovery\RazorComponentApplication.cs (1)
42var component = Components[i];
FormMapping\Converters\FileConverter.cs (1)
44buffer = ReadOnlyCollectionBufferAdapter<IBrowserFile>.Add(ref buffer, new BrowserFileFromFormFile(targetFiles[i]));
src\aspnetcore\src\Shared\Components\ResourceCollectionResolver.cs (1)
68var property = descriptor.Properties[i];
Microsoft.AspNetCore.Components.Server (7)
Circuits\CircuitHost.cs (2)
152var (componentType, parameters, sequence) = Descriptors[i]; 678result = circuitHandlers[i].CreateInboundActivityHandler(next);
src\aspnetcore\src\Components\Shared\src\WebRootComponentParameters.cs (4)
39var definition = _parameterDefinitions[i]; 40var otherDefinition = other._parameterDefinitions[i]; 49var value = _serializedParameterValues[i]; 50var otherValue = other._serializedParameterValues[i];
src\aspnetcore\src\SignalR\common\Protocols.MessagePack\src\Protocol\MessagePackHubProtocolWorker.cs (1)
311arguments[i] = DeserializeObject(ref reader, parameterTypes[i], "argument");
Microsoft.AspNetCore.Http (2)
Features\FormFeature.cs (2)
401var finalFormOptionsMetadata = new MutableFormOptionsMetadata(formOptionsMetadatas[metadataCount - 1]); 404formOptionsMetadatas[i].MergeWith(ref finalFormOptionsMetadata);
Microsoft.AspNetCore.Http.Results (2)
ForbidHttpResult.cs (1)
95await httpContext.ForbidAsync(AuthenticationSchemes[i], Properties);
SignOutHttpResult.cs (1)
88await httpContext.SignOutAsync(AuthenticationSchemes[i], Properties);
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
ApiResponseTypeProvider.cs (1)
519var provider = providers[i];
Microsoft.AspNetCore.Mvc.Core (40)
ActionConstraints\HttpMethodActionConstraint.cs (1)
73var supportedMethod = _httpMethods[i];
Infrastructure\ActionSelector.cs (6)
121var action = actions[i]; 136var candidate = matches[i]; 156var candidate = candidates[i]; 161var constraint = candidate.Constraints[j]; 191var candidate = candidates[i]; 200var constraint = candidate.Constraints[j];
Infrastructure\CopyOnWriteList.cs (1)
39get => Readable[index];
ModelBinding\Binders\ComplexObjectModelBinder.cs (7)
239var parameter = parameters[i]; 249var parameterBinder = _parameterBinders[i]; 294var parameter = parameters[i]; 300var parameterBinder = _parameterBinders[i]; 335var property = boundProperties[i]; 386var property = boundProperties[i]; 616var parameterMetadata = parameters[i];
ModelBinding\Binders\ComplexObjectModelBinderProvider.cs (1)
55parameterBinders[i] = context.CreateBinder(boundConstructor.BoundConstructorParameters[i]);
ModelBinding\FormFileValueProvider.cs (1)
47var file = formFiles[i];
ModelBinding\Validation\ClientValidatorCache.cs (1)
44items.Add(new ClientValidatorItem(metadata.ValidatorMetadata[i]));
ModelBinding\Validation\CompositeClientModelValidatorProvider.cs (1)
39ValidatorProviders[i].CreateValidators(context);
ModelBinding\Validation\DefaultComplexObjectValidationStrategy.cs (2)
86var parameter = _parameters[_index]; 107var property = _properties[_index - _parameters.Count];
ModelBinding\Validation\ValidationVisitor.cs (1)
226results.AddRange(validators[i].Validate(context));
ModelBinding\Validation\ValidatorCache.cs (1)
34items.Add(new ValidatorItem(metadata.ValidatorMetadata[i]));
Routing\ActionConstraintMatcherPolicy.cs (6)
40var endpoint = endpoints[i]; 92candidateSet.SetValidity(finalMatches[i].index, true); 167var item = items[i]; 173var constraint = constraints[j]; 202var item = items[i]; 212var constraint = constraints[j];
Routing\ActionEndpointFactory.cs (6)
245groupConventions[i](builder); 250conventions[i](builder); 255route.Conventions[i](builder); 349groupConventions[i](builder); 448conventions[i](builder); 453perRouteConventions[i](builder);
Routing\ControllerActionEndpointDataSource.cs (1)
89if (actions[i] is ControllerActionDescriptor action)
Routing\DynamicControllerEndpointMatcherPolicy.cs (2)
42if (endpoints[i].Metadata.GetMetadata<DynamicControllerMetadata>() != null) 48if (endpoints[i].Metadata.GetMetadata<DynamicControllerRouteValueTransformerMetadata>() != null)
Routing\KnownRouteValueConstraint.cs (1)
101var action = actionDescriptors.Items[i];
Routing\RoutePatternWriter.cs (1)
28WriteString(sb, segment.Parts[i]);
Microsoft.AspNetCore.Mvc.DataAnnotations (1)
DataAnnotationsMetadataProvider.cs (1)
309var attribute = contextAttributes[i];
Microsoft.AspNetCore.Mvc.Razor (2)
RazorView.cs (1)
165var viewStart = ViewStartPages[i];
RazorViewEngine.cs (1)
467var viewStartItem = result.ViewStartEntries[i];
Microsoft.AspNetCore.Mvc.RazorPages (5)
ApplicationModels\DefaultPageApplicationModelProvider.cs (1)
158if (pageModel.HandlerTypeAttributes[i] is IFilterMetadata filter)
Filters\PageViewDataAttributeFilter.cs (1)
38var property = Properties[i];
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (2)
45if (endpoints[i].Metadata.GetMetadata<DynamicPageMetadata>() != null) 51if (endpoints[i].Metadata.GetMetadata<DynamicPageRouteValueTransformerMetadata>() != null)
Infrastructure\PageActionEndpointDataSource.cs (1)
56if (actions[i] is PageActionDescriptor action)
Microsoft.AspNetCore.Mvc.TagHelpers (6)
GlobbingUrlBuilder.cs (2)
90if (!string.Equals(staticUrl, globbedUrls[i], StringComparison.Ordinal)) 92urls.Add(globbedUrls[i]);
LinkTagHelper.cs (4)
322var url = urls[i]; 451Debug.Assert(fallbackHrefs[i] != null); 453var valueToWrite = fallbackHrefs[i]; 456valueToWrite = GetVersionedResourceUrl(fallbackHrefs[i]);
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
DefaultValidationHtmlAttributeProvider.cs (1)
72var validator = validators[i];
Filters\ControllerViewDataAttributeFilter.cs (1)
33var property = Properties[i];
Filters\SaveTempDataPropertyFilterBase.cs (2)
48var property = Properties[i]; 74var property = Properties[i];
src\aspnetcore\src\Shared\Components\ResourceCollectionResolver.cs (1)
68var property = descriptor.Properties[i];
ViewComponents\DefaultViewComponentHelper.cs (1)
98var descriptor = descriptors.Items[i];
ViewEngines\CompositeViewEngine.cs (2)
46var result = ViewEngines[i].FindView(context, viewName, isMainPage); 95var result = ViewEngines[i].GetView(executingFilePath, viewPath, isMainPage);
Microsoft.AspNetCore.Razor.Utilities.Shared (12)
PooledObjects\PooledArrayBuilder`1.cs (6)
310builder.Add(list[i]); 320SetInlineElement(_inlineCount, list[i]); 330_builder.Add(list[i]); 479builder[index++] = list[i]; 495SetInlineElement(index++, list[i]); 508_builder[index++] = list[i];
ReadOnlyListExtensions.cs (4)
43result[i] = selector(list[i]); 81result[i] = selector(list[i], i); 1081private readonly T this[int index] => _list[index]; 1187destination[i] = list[i];
Utilities\SortHelper`1.cs (2)
160var currentKey = keySelector(items[i]); 190var currentKey = (T)(object)items[i]!;
Microsoft.AspNetCore.Routing (76)
DecisionTree\DecisionTreeBuilder.cs (1)
79var item = items[i];
DefaultLinkParser.cs (1)
98var policy = _parameterPolicyFactory.Create(parameter, kvp.Value[i]);
EndpointDataSource.cs (1)
43var endpoint = endpoints[i];
EndpointNameAddressScheme.cs (1)
41var endpoint = endpoints[i];
Internal\DfaGraphWriter.cs (1)
47if (endpoints[i] is RouteEndpoint endpoint && (endpoint.Metadata.GetMetadata<ISuppressMatchingMetadata>()?.SuppressMatching ?? false) == false)
Matching\AcceptsMatcherPolicy.cs (7)
81if (string.Equals("*/*", metadata.ContentTypes[j], StringComparison.Ordinal)) 98var candidateMediaType = new ReadOnlyMediaTypeHeaderValue(metadata.ContentTypes[j]); 153var endpoint = endpoints[i]; 162var contentType = contentTypes[j]; 175var endpoint = endpoints[i]; 199var contentType = contentTypes[j]; 269var e = edges[i];
Matching\DataSourceDependentMatcher.cs (1)
47if (endpoints[i] is RouteEndpoint endpoint)
Matching\DfaMatcherBuilder.cs (12)
385var segmentPart = segment.Parts[i]; 404var reference = parameterPolicyReferences[j]; 435var reference = parameterPolicyReferences[i]; 479var reference = parameterPolicyReferences[k]; 515return endpoint.RoutePattern.PathSegments[depth]; 523var lastSegment = endpoint.RoutePattern.PathSegments[endpoint.RoutePattern.PathSegments.Count - 1]; 720var endpoint = endpoints[i]; 755var segment = routeEndpoint.RoutePattern.PathSegments[i]; 802var segment = routeEndpoint.RoutePattern.PathSegments[i]; 817var reference = parameterPolicyReferences[i]; 852var segment = endpoint.RoutePattern.PathSegments[i]; 924var edge = edges[k];
Matching\HostMatcherPolicy.cs (4)
94var host = hosts[j].AsSpan(); 206var endpoint = endpoints[i]; 227var endpoint = endpoints[i]; 301PolicyJumpTableEdge e = edges[i];
Matching\HttpMethodMatcherPolicy.cs (8)
63if (endpoints[i].Metadata.GetMetadata<IHttpMethodMetadata>()?.HttpMethods.Count > 0) 130var candidateMethod = metadata.HttpMethods[j]; 178var endpoint = endpoints[i]; 193var httpMethod = httpMethods[j]; 228var endpoint = endpoints[i]; 248var httpMethod = httpMethods[j]; 320var key = (EdgeKey)edges[i].State; 321var destination = edges[i].Destination;
Matching\MatcherPolicy.cs (1)
53var metadata = endpoints[i].Metadata.GetMetadata<IDynamicEndpointMetadata>();
Matching\NegotiationMatcherPolicy.cs (4)
33var endpoint = endpoints[i]; 265var endpoint = endpoints[i]; 277var endpoint = endpoints[i]; 365var e = edges[i];
Patterns\DefaultRoutePatternTransformer.cs (2)
203var policy = _policyFactory.Create(parameter, policies[i]); 225if (object.ReferenceEquals(parameter, segment.Parts[j]))
Patterns\RoutePattern.cs (1)
144var parameter = parameters[i];
Patterns\RoutePatternDebugStringFormatter.cs (3)
25var segment = pattern.PathSegments[i]; 56if (TryGetRequiredValue(pattern, pattern.Parameters[i].Name, out _)) 80var part = segment.Parts[i];
Patterns\RoutePatternFactory.cs (5)
478if (segment.Parts[j] is RoutePatternParameterPart parameter) 548var part = segment.Parts[i]; 1124var item = leftList[i]; 1131var item = rightList[i]; 1133combinedList[leftCount + i] = rightList[i];
Patterns\RoutePatternMatcher.cs (9)
38var segment = RoutePattern.PathSegments[i]; 86var pathSegment = i >= RoutePattern.PathSegments.Count ? null : RoutePattern.PathSegments[i]; 110var pathSegment = RoutePattern.PathSegments[i]; 149var pathSegment = RoutePattern.PathSegments[i++]; 167var pathSegment = RoutePattern.PathSegments[i]; 302if (routeSegment.Parts[indexOfLastSegment] is RoutePatternParameterPart parameter && parameter.IsOptional && 303routeSegment.Parts[indexOfLastSegment - 1].IsSeparator) 311var separator = (RoutePatternSeparatorPart)routeSegment.Parts[indexOfLastSegment - 1]; 353var part = routeSegment.Parts[indexOfLastSegmentUsed];
Patterns\RoutePatternParser.cs (1)
324var part = segment.Parts[j];
RouteValuesAddressScheme.cs (1)
94var endpoint = endpoints[i];
Template\DefaultTemplateBinderFactory.cs (1)
51var parameterPolicy = _policyFactory.Create(parameter, kvp.Value[i]);
Template\RoutePrecedence.cs (2)
66var segment = routePattern.PathSegments[i]; 122var segment = routePattern.PathSegments[i];
Template\TemplateBinder.cs (7)
86filters.Remove(pattern.Parameters[i].Name); 118filters.Remove(pattern.Parameters[i].Name); 268var parameter = parameters[i]; 521var parts = segments[i].Parts; 526var part = parts[j]; 576if (j != 0 && parameterPart.IsOptional && parts[j - 1] is RoutePatternSeparatorPart) 726slots[i] = new KeyValuePair<string, object?>(pattern.Parameters[i].Name, null);
Template\TemplateSegment.cs (1)
36Parts.Add(new TemplatePart(other.Parts[i]));
Tree\LinkGenerationDecisionTree.cs (1)
42var entry = entries[i];
Microsoft.AspNetCore.SignalR.Core (7)
Internal\DefaultHubDispatcher.cs (6)
732arguments[parameterPointer] = descriptor.GetService(scope.ServiceProvider, parameterPointer, descriptor.OriginalParameterTypes[parameterPointer]); 734else if (descriptor.OriginalParameterTypes[parameterPointer] == typeof(CancellationToken)) 739else if (isStreamCall && ReflectionHelper.IsStreamingType(descriptor.OriginalParameterTypes[parameterPointer], mustBeDirectType: true)) 744itemType, descriptor.OriginalParameterTypes[parameterPointer]); 750descriptor.OriginalParameterTypes[parameterPointer].IsAssignableFrom(hubMethodInvocationMessage.Arguments[hubInvocationArgumentPointer]?.GetType()))) 759Debug.Assert(false, $"Failed to bind argument of type '{descriptor.OriginalParameterTypes[parameterPointer].Name}' for hub method '{descriptor.MethodExecutor.MethodInfo.Name}'.");
SerializedHubMessage.cs (1)
33var message = messages[i];
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Protocol\JsonHubProtocol.cs (1)
849arguments[paramIndex] = BindType(ref reader, paramTypes[paramIndex]);
Microsoft.AspNetCore.StaticAssets (4)
Development\StaticAssetDevelopmentRuntimeHandler.cs (4)
82var property = descriptor.Properties[i]; 96var header = descriptor.ResponseHeaders[i]; 350var responseHeader = descriptor.ResponseHeaders[i]; 377var property = descriptor.Properties[i];
Microsoft.Build (8)
BuildCheck\Infrastructure\CheckWrapper.cs (3)
88CheckConfigurationEffective effectiveConfig = effectiveConfigs[Math.Max(idx, effectiveConfigs.Count - 1)]; 89if (editorConfigs[idx].Severity != null) 91ruleTelemetryData.ExplicitSeverities.Add(editorConfigs[idx].Severity!.Value.ToDiagnosticSeverity());
BuildCheck\Infrastructure\ConfigurationProvider.cs (3)
134check.SupportedRules[idx].Id, 135check.SupportedRules[idx].DefaultConfiguration, 147configurations[i] = configurationProvider(projectFullPath, ruleIds[i]);
Evaluation\ExpressionShredder.cs (1)
74string expression = expressions[i];
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Extensions\IEnumerableExtensions.cs (1)
615if (comparer.Equals(list[i], value))
Microsoft.Build.Framework (2)
FileClassifier.cs (2)
410if (filePath.StartsWith(locations[i], PathComparison)) 412return locations[i];
Microsoft.Build.NuGetSdkResolver (1)
src\nuget-client\build\Shared\SharedExtensions.cs (1)
173var item = lst[index];
Microsoft.Build.Tasks.Core (1)
WriteCodeFragment.cs (1)
420AttributeParameter parameter = parameters[i];
Microsoft.Build.Tasks.Git (2)
GitDataReader\CollectionExtensions.cs (1)
24var item = selector(array[i]);
GitOperations.cs (1)
471var midValue = list[middle];
Microsoft.CodeAnalysis (7)
InternalUtilities\IReadOnlyListExtensions.cs (1)
16if (comparer.Equals(item, list[i]))
ReferenceManager\CommonReferenceManager.Binding.cs (1)
973foreach (AssemblyReferenceBinding index in referenceBindings[i])
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
644if (comparer.Equals(list[i], value))
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
52if (!set.Add(selector(list[i])))
Syntax\GreenNode.cs (1)
967array[i].Value = select(list[i]);
Text\ChangedText.cs (1)
259merged = TextChangeRangeExtensions.Merge(merged, changeSets[i]);
Text\CompositeText.cs (1)
376var segment = segments[i];
Microsoft.CodeAnalysis.Analyzers (19)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
644if (comparer.Equals(list[i], value))
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
52if (!set.Add(selector(list[i])))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
62var currentOne = root.ConvertToTokenPair(spans[i]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (2)
23=> list[list.Count - 1]; 29if (EqualityComparer<T>.Default.Equals(list[index], value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
128var item = list[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (2)
47var name1 = names1[i]; 48var name2 = names2[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (8)
44syntaxFacts, existingParameters[existingParameters.Count - 1], includeLeadingNewLine: true); 66var nextParameter = existingParameters[insertionIndex]; 69syntaxFacts, existingParameters[insertionIndex + 1], includeLeadingNewLine: true); 91var nextParameter = existingParameters[insertionIndex]; 108var nextParameter = existingParameters[insertionIndex]; 110syntaxFacts, existingParameters[insertionIndex], includeLeadingNewLine: false); 162var lastParameter = parameters[i - 1]; 163var thisParameter = parameters[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (2)
103state.OutermostBlockStatements[statementIndex + 1] == state.FirstStatementAffectedInInnermostBlock) 151var originalNextStatement = state.OutermostBlockStatements[statementIndex + 1];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
186if (InnermostBlockStatements[i] is not TLocalDeclarationStatementSyntax)
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
644if (comparer.Equals(list[i], value))
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
52if (!set.Add(selector(list[i])))
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAbstractValue.cs (1)
89if (values[i] != PropertySetAbstractValueKind.Unknown)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
62var currentOne = root.ConvertToTokenPair(spans[i]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (2)
23=> list[list.Count - 1]; 29if (EqualityComparer<T>.Default.Equals(list[index], value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
128var item = list[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (2)
47var name1 = names1[i]; 48var name2 = names2[i];
Microsoft.CodeAnalysis.CodeStyle (9)
src\roslyn\src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
140var currentTrivia = triviaList[index];
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
644if (comparer.Equals(list[i], value))
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
52if (!set.Add(selector(list[i])))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
62var currentOne = root.ConvertToTokenPair(spans[i]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (2)
23=> list[list.Count - 1]; 29if (EqualityComparer<T>.Default.Equals(list[index], value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
128var item = list[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (2)
47var name1 = names1[i]; 48var name2 = names2[i];
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
src\roslyn\src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
125syntaxFacts.GetDefaultOfParameter(existingParameters[insertionIndex - 1]) != null;
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
160return semanticModel.AnalyzeControlFlow(statements[0], statements[statements.Count - 1]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (8)
44syntaxFacts, existingParameters[existingParameters.Count - 1], includeLeadingNewLine: true); 66var nextParameter = existingParameters[insertionIndex]; 69syntaxFacts, existingParameters[insertionIndex + 1], includeLeadingNewLine: true); 91var nextParameter = existingParameters[insertionIndex]; 108var nextParameter = existingParameters[insertionIndex]; 110syntaxFacts, existingParameters[insertionIndex], includeLeadingNewLine: false); 162var lastParameter = parameters[i - 1]; 163var thisParameter = parameters[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (2)
103state.OutermostBlockStatements[statementIndex + 1] == state.FirstStatementAffectedInInnermostBlock) 151var originalNextStatement = state.OutermostBlockStatements[statementIndex + 1];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
186if (InnermostBlockStatements[i] is not TLocalDeclarationStatementSyntax)
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\roslyn\src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
265var previousStatement = blockStatements[ifIndex - 1];
src\roslyn\src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (3)
203var priorStatement = parentStatements[i]; 240while (index + 1 < statements.Count && statements[index + 1] is LocalFunctionStatementSyntax) 248var nextStatement = statements[index + 1];
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\roslyn\src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (2)
127var statementSyntax = statements[i]; 160var statement = statements[i];
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
74references.Add((ExpressionSyntax)diagnostic.AdditionalLocations[i].FindNode(getInnermostNodeForTie: true, cancellationToken));
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (2)
71var statementToUpdate = currentBlockStatements[statementToUpdateIndex]; 89if (predicate(list[i]))
Microsoft.CodeAnalysis.CSharp.Features (10)
AddImport\CSharpAddImportFeatureService.cs (1)
421var part = namespaceParts[index];
src\roslyn\src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
265var previousStatement = blockStatements[ifIndex - 1];
src\roslyn\src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (3)
203var priorStatement = parentStatements[i]; 240while (index + 1 < statements.Count && statements[index + 1] is LocalFunctionStatementSyntax) 248var nextStatement = statements[index + 1];
src\roslyn\src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (2)
127var statementSyntax = statements[i]; 160var statement = statements[i];
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
74references.Add((ExpressionSyntax)diagnostic.AdditionalLocations[i].FindNode(getInnermostNodeForTie: true, cancellationToken));
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSimpleUsingStatement\UseSimpleUsingStatementCodeFixProvider.cs (2)
71var statementToUpdate = currentBlockStatements[statementToUpdateIndex]; 89if (predicate(list[i]))
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
CodeGeneration\CSharpSyntaxGenerator.cs (6)
1031return this.InsertNodesBefore(declaration, existingAttributes[index], WithRequiredTargetSpecifier(newAttributes, declaration)); 1035return this.InsertNodesAfter(declaration, existingAttributes[existingAttributes.Count - 1], WithRequiredTargetSpecifier(newAttributes, declaration)); 1066return this.InsertNodesBefore(d, existingAttributes[index], newAttributes); 1070return this.InsertNodesAfter(d, existingAttributes[existingAttributes.Count - 1], newAttributes); 1348return this.InsertNodesBefore(declaration, existingMembers[index], newMembers); 1352return this.InsertNodesAfter(declaration, existingMembers[existingMembers.Count - 1], newMembers);
Microsoft.CodeAnalysis.Extensions.Package (4)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
644if (comparer.Equals(list[i], value))
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
52if (!set.Add(selector(list[i])))
Symbols\INamespaceOrTypeSymbolExtensions.cs (2)
47var name1 = names1[i]; 48var name2 = names2[i];
Microsoft.CodeAnalysis.Features (11)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
1667activeNodesInLambdaBody = info.ActiveNodeIndices?.Select(i => memberBodyActiveNodes[i]) ?? [];
EditAndContinue\EditSession.cs (2)
875var edit = edits[i]; 976var edit = edits[i];
NavigateTo\RoslynNavigateToItem.cs (2)
267if (activeFolders[i] != itemFolders[i])
SplitOrMergeIfStatements\Consecutive\AbstractMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
220var controlFlow = semanticModel.AnalyzeControlFlow(insideStatements[0], insideStatements[insideStatements.Count - 1]);
SplitOrMergeIfStatements\Consecutive\AbstractSplitIntoConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
151var controlFlow = semanticModel.AnalyzeControlFlow(insideStatements[0], insideStatements[insideStatements.Count - 1]);
SplitOrMergeIfStatements\Nested\AbstractMergeNestedIfStatementsCodeRefactoringProvider.cs (1)
222var controlFlow = semanticModel.AnalyzeControlFlow(statements[0], statements[statements.Count - 1]);
src\roslyn\src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (1)
140var currentTrivia = triviaList[index];
src\roslyn\src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
125syntaxFacts.GetDefaultOfParameter(existingParameters[insertionIndex - 1]) != null;
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (1)
160return semanticModel.AnalyzeControlFlow(statements[0], statements[statements.Count - 1]);
Microsoft.CodeAnalysis.Razor.Compiler (5)
Language\Components\ComponentGenericTypePass.cs (1)
361var parameter = typeParameters[i];
Language\Components\ComponentLoweringPass.cs (1)
102var usingNamespace = usings[j].Content;
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (1)
98var importedUsing = importedUsings[j];
Language\Legacy\CSharpCodeParser.cs (1)
1578var tokenDescriptor = descriptor.Tokens[i];
Language\Legacy\ImplicitExpressionEditHandler.cs (1)
286var currentToken = tokens[i];
Microsoft.CodeAnalysis.ResxSourceGenerator (8)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
644if (comparer.Equals(list[i], value))
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
52if (!set.Add(selector(list[i])))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
62var currentOne = root.ConvertToTokenPair(spans[i]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (2)
23=> list[list.Count - 1]; 29if (EqualityComparer<T>.Default.Equals(list[index], value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
128var item = list[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (2)
47var name1 = names1[i]; 48var name2 = names2[i];
Microsoft.CodeAnalysis.Workspaces (31)
Differencing\MapBasedLongestCommonSubsequence.cs (4)
13=> map.TryGetValue(oldSequence[oldIndex], out var newNode) && newNode.Equals(newSequence[newIndex]); 20edit.OldIndex >= 0 ? oldNodes[edit.OldIndex] : default!, 21edit.NewIndex >= 0 ? newNodes[edit.NewIndex] : default!);
Differencing\Match.LongestCommonSubsequence.cs (6)
25=> _match.Contains(oldSequence[oldIndex], newSequence[newIndex]); 33result.Add(oldNodes[pair.Key], newNodes[pair.Value]); 44edit.OldIndex >= 0 ? oldNodes[edit.OldIndex] : default, 45edit.NewIndex >= 0 ? newNodes[edit.NewIndex] : default);
Editing\SyntaxGenerator.cs (1)
1576if (EqualityComparer<T>.Default.Equals(list[i], element))
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
644if (comparer.Equals(list[i], value))
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
52if (!set.Add(selector(list[i])))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
62var currentOne = root.ConvertToTokenPair(spans[i]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (2)
23=> list[list.Count - 1]; 29if (EqualityComparer<T>.Default.Equals(list[index], value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
128var item = list[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (2)
47var name1 = names1[i]; 48var name2 = names2[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (8)
44syntaxFacts, existingParameters[existingParameters.Count - 1], includeLeadingNewLine: true); 66var nextParameter = existingParameters[insertionIndex]; 69syntaxFacts, existingParameters[insertionIndex + 1], includeLeadingNewLine: true); 91var nextParameter = existingParameters[insertionIndex]; 108var nextParameter = existingParameters[insertionIndex]; 110syntaxFacts, existingParameters[insertionIndex], includeLeadingNewLine: false); 162var lastParameter = parameters[i - 1]; 163var thisParameter = parameters[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (2)
103state.OutermostBlockStatements[statementIndex + 1] == state.FirstStatementAffectedInInnermostBlock) 151var originalNextStatement = state.OutermostBlockStatements[statementIndex + 1];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
186if (InnermostBlockStatements[i] is not TLocalDeclarationStatementSyntax)
Workspace\Solution\ChecksumCollection.cs (1)
107onAssetFound(checksum, values[i], arg);
Microsoft.Data.Analysis (16)
DataFrame.BinaryOperations.cs (14)
27DataFrameColumn newColumn = baseColumn.Add(values[i], inPlace); 66DataFrameColumn newColumn = baseColumn.Subtract(values[i], inPlace); 105DataFrameColumn newColumn = baseColumn.Multiply(values[i], inPlace); 144DataFrameColumn newColumn = baseColumn.Divide(values[i], inPlace); 183DataFrameColumn newColumn = baseColumn.Modulo(values[i], inPlace); 221DataFrameColumn newColumn = baseColumn.And(values[i], inPlace); 258DataFrameColumn newColumn = baseColumn.Or(values[i], inPlace); 295DataFrameColumn newColumn = baseColumn.Xor(values[i], inPlace); 369DataFrameColumn newColumn = baseColumn.ElementwiseEquals(values[i]); 402DataFrameColumn newColumn = baseColumn.ElementwiseNotEquals(values[i]); 435DataFrameColumn newColumn = baseColumn.ElementwiseGreaterThanOrEqual(values[i]); 468DataFrameColumn newColumn = baseColumn.ElementwiseLessThanOrEqual(values[i]); 501DataFrameColumn newColumn = baseColumn.ElementwiseGreaterThan(values[i]); 534DataFrameColumn newColumn = baseColumn.ElementwiseLessThan(values[i]);
DataFrame.Join.Extrensions.cs (2)
21var item1 = sortedList1[i]; 25var item2 = sortedList2[j];
Microsoft.Data.Analysis.Tests (2)
ArrayComparer.cs (2)
71array.Fields[i].Accept(new ArrayComparer(expectedArray.Fields[i]));
Microsoft.Diagnostics.DataContractReader.Contracts (1)
PrintfStressMessageFormatter.cs (1)
325action(stressMsg.Args[currentArg++], paddingFormat, sb);
Microsoft.Diagnostics.DataContractReader.Legacy (26)
SOSDacImpl.cs (26)
1430GCGenerationData genData = heapData.GenerationTable[i]; 1439details->finalization_fill_pointers[i] = heapData.FillPointers[i].ToClrDataAddress(_target); 1563GCGenerationData genData = heapData.GenerationTable[i]; 1572details->finalization_fill_pointers[i] = heapData.FillPointers[i].ToClrDataAddress(_target); 1762Start = regions[i].Start.ToClrDataAddress(target), 1763Size = (ClrDataAddress)regions[i].Size, 1764ExtraData = (ClrDataAddress)regions[i].ExtraData, 1765Heap = regions[i].Heap, 4079HasRegisterInformation = refs[i].HasRegisterInformation ? 1 : 0, 4080Register = refs[i].Register, 4081Offset = refs[i].Offset, 4082Address = refs[i].Address.Value, 4083Object = refs[i].Object.Value, 4084Flags = refs[i].Flags, 4085Source = refs[i].Source.Value, 4086SourceType = refs[i].IsStackSourceFrame 4089StackPointer = refs[i].StackPointer.Value, 5138data->interestingDataPoints[i] = (nuint)heapData.InterestingData[i].Value; 5142data->compactReasons[i] = (nuint)heapData.CompactReasons[i].Value; 5146data->expandMechanisms[i] = (nuint)heapData.ExpandMechanisms[i].Value; 5150data->bitMechanisms[i] = (nuint)heapData.InterestingMechanismBits[i].Value; 5214globalMechanisms[i] = (nuint)globalMechanismsData[i].Value; 5763GCGenerationData gen = heapData.GenerationTable[i]; 5832pFinalizationFillPointers[i] = heapData.FillPointers[i].ToClrDataAddress(_target); 5894GCGenerationData gen = heapData.GenerationTable[i]; 5963pFinalizationFillPointers[i] = heapData.FillPointers[i].ToClrDataAddress(_target);
Microsoft.DotNet.ApiCompatibility (5)
ApiComparer.cs (2)
102assemblyMapper.AddElement(right[i], ElementSide.Right, i); 119assemblySetMapper.AddElement(right[rightIndex], ElementSide.Right, rightIndex);
Runner\ApiCompatRunner.cs (3)
130IAssemblySymbol? assemblySymbol = assemblySymbols[i]; 135metadataInformation[i].AssemblyId)); 139elementContainerList.Add(new ElementContainer<IAssemblySymbol>(assemblySymbol, metadataInformation[i]));
Microsoft.DotNet.ApiSymbolExtensions (3)
AssemblySymbolLoader.cs (3)
193ZipArchiveEntry? entry = zipFile.GetEntry(relativePaths[i]); 205string name = Path.GetFileName(relativePaths[i]); 208string rootAssemblyDisplayString = string.Format(Resources.RootAssemblyFromPackageDisplayString, relativePaths[i], archivePath);
Microsoft.DotNet.Cli.Definitions (1)
Help\HelpBuilder.cs (1)
135var helpItem = items[i];
Microsoft.DotNet.HotReload.Watch (3)
Build\ProjectBuildManager.cs (2)
95requests[index].ProjectInstance, 96requests[index].Data))];
Process\ProcessRunner.cs (1)
166process.StartInfo.ArgumentList.Add(processSpec.Arguments[i]);
Microsoft.DotNet.PackageValidation (3)
ApiCompatRunnerExtensions.cs (3)
58leftContentItems[leftIndex], 59displayString: options.IsBaselineComparison ? Resources.Baseline + " " + leftContentItems[leftIndex].Path : null, 68rightContentItems[rightIndex]);
Microsoft.Extensions.AI.OpenAI (3)
OpenAISpeechToTextClient.cs (3)
80response.EndTime = translation.Segments[segmentCount - 1].EndTime; 94response.EndTime = transcription.Segments[segmentCount - 1].EndTime; 102response.EndTime = transcription.Words[wordCount - 1].EndTime;
Microsoft.Extensions.DataIngestion.Tests (2)
Chunkers\OverlapTokenChunkerTests.cs (2)
49var currentChunk = chunks[i]; 50var nextChunk = chunks[i + 1];
Microsoft.Extensions.DependencyModel (2)
DependencyContextWriter.cs (2)
138Library library = libraries[i]; 222ResourceAssembly resourceAssembly = resourceAssemblies[i];
Microsoft.Extensions.Diagnostics.ExceptionSummarization (1)
ExceptionSummarizer.cs (1)
98return new ExceptionSummary(exceptionType, exceptionSummaryProvider.Descriptions[descriptionIndex], additionalDetails ?? DefaultDescription);
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Logging\FakeLoggerTests.cs (1)
324var record = records[i];
Microsoft.Extensions.FileProviders.Embedded (1)
Manifest\ManifestDirectory.cs (1)
92var child = Children[i];
Microsoft.Extensions.Http (1)
HttpMessageHandlerBuilder.cs (1)
94DelegatingHandler handler = additionalHandlersList[i];
Microsoft.Extensions.Http.Diagnostics (2)
Logging\Internal\HttpHeadersRedactor.cs (2)
126currentItem = input[i].AsSpan(); 141currentItem = input[i].AsSpan();
Microsoft.Extensions.Logging.EventSource (1)
EventSourceLogger.cs (1)
253KeyValuePair<string, object?> keyValuePair = keyValuePairs[i];
Microsoft.Extensions.Primitives (4)
CompositeChangeToken.cs (4)
46if (ChangeTokens[i].ActiveChangeCallbacks) 78if (ChangeTokens[i].HasChanged) 119if (ChangeTokens[i].ActiveChangeCallbacks) 121IDisposable disposable = ChangeTokens[i].RegisterChangeCallback(_onChangeDelegate, this);
Microsoft.Extensions.ServiceDiscovery.Dns (2)
Resolver\EncodedDomainName.cs (2)
44if (!Ascii.EqualsIgnoreCase(Labels[i].Span, other.Labels[i].Span))
Microsoft.Extensions.Telemetry (2)
src\Shared\LogBuffering\SerializedLogRecordFactory.cs (2)
32string key = attributes[i].Key; 33string value = attributes[i].Value?.ToString() ?? string.Empty;
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Logging\LoggerMessageStateTests.cs (2)
168Assert.Equal(current.Key, list[count].Key); 169Assert.Equal(current.Value, list[count].Value);
Microsoft.Extensions.Telemetry.PerformanceTests (1)
BenchLogger.cs (1)
44_ = ProcessItem(l[i]);
Microsoft.Extensions.Validation (3)
ValidatableTypeInfo.cs (3)
107if (string.Equals(Members[i].Name, memberName, StringComparison.Ordinal)) 109return Members[i]; 183await Members[i].ValidateAsync(value, context, cancellationToken);
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Microsoft.Gen.MetricsReports\MetricDefinitionEmitter.cs (1)
33var metricClass = metricClasses[i];
Microsoft.Gen.MetricsReports (1)
MetricDefinitionEmitter.cs (1)
33var metricClass = metricClasses[i];
Microsoft.Maui (2)
Layouts\GridLayoutManager.cs (2)
169 var definition = rowDefinitions[n]; 190 var definition = columnDefinitions[n];
Microsoft.Maui.Controls (58)
ContentPresenter.cs (1)
45 Element element = LogicalChildrenInternal[i];
Element\Element.cs (3)
708 Element child = children[i]; 814 var child = children[i] as VisualElement; 1084 Element IList<Element>.this[int index] { get => _inner[index]; set => throw new NotSupportedException(); }
LegacyLayouts\Layout.cs (4)
439 if (LogicalChildrenInternal[index] is VisualElement c) 467 CompressedLayout.SetHeadlessOffset((VisualElement)LogicalChildrenInternal[i], isHeadless ? new Point(headlessOffset.X + Bounds.X, headlessOffset.Y + Bounds.Y) : new Point()); 477 Rect newBound = ((VisualElement)LogicalChildrenInternal[i]).Bounds; 551 if (LogicalChildrenInternal[index] is VisualElement v && v.IsVisible && (!v.IsPlatformEnabled || !v.IsPlatformStateConsistent))
LegacyLayouts\StackLayout.cs (8)
72 var child = (View)LogicalChildrenInternal[i]; 110 if (!((View)LogicalChildrenInternal[i]).IsVisible) 159 var child = (View)LogicalChildrenInternal[i]; 195 var child = (View)LogicalChildrenInternal[i]; 246 var child = (View)LogicalChildrenInternal[i]; 318 var child = (View)LogicalChildrenInternal[i]; 426 var child = (View)LogicalChildrenInternal[i]; 454 var child = (View)LogicalChildrenInternal[i];
NavigationPage\NavigationPage.cs (6)
464 CurrentPage = (Page)newStack[newStack.Count - 1]; 479 var element = (Element)newStack[i]; 691 var visiblePage = Navigation.NavigationStack[NavigationStack.Count - 1]; 780 var currentPage = NavigationStack[NavigationStack.Count - 1]; 781 var newCurrentPage = NavigationStack[NavigationStack.Count - 2]; 823 var page = (Page)NavigationStack[lastIndex];
NavigationPage\NavigationPageToolbar.cs (1)
231 previousPage = stack[stack.Count - 1];
ReadOnlyCastingList.cs (1)
65 get { return _readonlyList[index] as T; }
ReadOnlyListAdapter.cs (1)
88 get { return _list[index]; }
Region.cs (2)
76 if (Regions[i].Contains(x, y)) 106 var region = Regions[i];
Routing.cs (2)
49 RegisterImplicitPageRoute(section.Navigation.NavigationStack[i]); 54 var page = section.Navigation.ModalStack[i];
Shell\BaseShellItem.cs (2)
177 Navigation.ModalStack[Navigation.ModalStack.Count - 1] 184 Navigation.NavigationStack[Navigation.NavigationStack.Count - 1]
Shell\Shell.cs (1)
1944 currentPage = navStack[navStack.Count - 1] ??
Shell\ShellNavigationManager.cs (10)
168 currentShellSection.Navigation.RemovePage(currentShellSection.Stack[i]); 491 (modalStack?.Count > 0 ? modalStack[modalStack.Count - 1] : null) ?? 492 (navStack?.Count > 0 ? navStack[navStack.Count - 1] : null); 547 var page = sectionStack[i]; 556 var topPage = modalStack[i]; 562 routeStack.AddRange(ShellUriHandler.CollapsePath(Routing.GetRoute(topPage.Navigation.NavigationStack[j]), routeStack, hasUserDefinedRoute)); 589 returnValue.Add(modalStack[i]); 590 for (int j = 1; j < modalStack[i].Navigation.NavigationStack.Count; j++) 592 returnValue.Add(modalStack[i].Navigation.NavigationStack[j]);
Shell\ShellSection.cs (9)
60 if (Navigation.ModalStack[Navigation.ModalStack.Count - 1] is NavigationPage np) 61 return np.Navigation.NavigationStack[np.Navigation.NavigationStack.Count - 1]; 63 return Navigation.ModalStack[Navigation.ModalStack.Count - 1]; 442 await Navigation.ModalStack[Navigation.ModalStack.Count - 1].Navigation.PopAsync(isAnimated); 563 if (Navigation.ModalStack[i] is NavigationPage np) 655 DisplayedPage = stack[stack.Count - 1]; 894 var pageToPop = Navigation.ModalStack[Navigation.ModalStack.Count - 1]; 904 else if (Navigation.ModalStack.Count > 1 && Navigation.ModalStack[Navigation.ModalStack.Count - 2] == page) 1167 var page = ModalStack[ModalStack.Count - 1];
Shell\ShellUriHandler.cs (1)
451 if (routeRequestBuilder.FullSegments.Count <= i || currentSeg != routeRequestBuilder.FullSegments[i])
ShellToolbar.cs (1)
83 previousPage = stack[stack.Count - 1];
TemplatedView\TemplatedView.cs (1)
35 Element element = LogicalChildrenInternal[i];
TemplateUtilities.cs (1)
95 Element child = children[i];
ViewExtensions.cs (1)
513 var currentPage = modalStack[modalStack.Count - 1];
VisualElement\VisualElement.cs (1)
1382 if (LogicalChildrenInternal[i] is View child)
Window\Window.cs (1)
680 return Navigation.ModalStack[Navigation.ModalStack.Count - 1].SendBackButtonPressed();
Microsoft.Maui.Controls.Build.Tasks (1)
CompiledMarkupExtensions\ArrayExtension.cs (1)
29 var node = items[i] as IElementNode;
Microsoft.Maui.Graphics (1)
Text\AttributedTextExtensions.cs (1)
103 var run = text.Runs[index];
Microsoft.ML.AutoML (5)
API\BinaryClassificationExperiment.cs (1)
398var res = metrics[_rnd.Next(fold)];
API\MulticlassClassificationExperiment.cs (1)
376var res = metrics[_rnd.Next(fold)];
API\RegressionExperiment.cs (1)
403var res = metrics[_rnd.Next(fold)];
Experiment\MetricsAgents\RankingMetricsAgent.cs (2)
42return metrics.NormalizedDiscountedCumulativeGains[Math.Min(metrics.NormalizedDiscountedCumulativeGains.Count, (int)_dcgTruncationLevel) - 1]; 44return metrics.DiscountedCumulativeGains[Math.Min(metrics.DiscountedCumulativeGains.Count, (int)_dcgTruncationLevel) - 1];
Microsoft.ML.Core (2)
Environment\ConsoleEnvironment.cs (2)
282writer.Write(" {0}", ev.ProgressEntry.Header.UnitNames[i]); 291writer.Write("\t{0}: {1}", ev.ProgressEntry.Header.MetricNames[i], ev.ProgressEntry.Metrics[i].Value);
Microsoft.ML.Data (13)
DataView\RowToRowMapperTransform.cs (1)
177return 0 <= col && col < _bindings.AddedColumnIndices.Count && active[_bindings.AddedColumnIndices[col]];
Evaluators\EvaluatorUtils.cs (5)
1658sb.AppendFormat(format, i, confusionMatrix.PredictedClassesIndicators[i]); 1670sb.AppendFormat(rowLabelFormat, i, confusionMatrix.PredictedClassesIndicators[i]); 1672sb.AppendFormat(format2, confusionTable[i][j]); 1673sb.AppendFormat(" {0,5:F4}", confusionMatrix.PerClassRecall[i]); 1683sb.AppendFormat(format, confusionMatrix.PerClassPrecision[i]);
Evaluators\Metrics\ConfusionMatrix.cs (1)
121return Counts[actualClassIndicatorIndex][predictedClassIndicatorIndex];
Transforms\ColumnConcatenatingTransformer.cs (6)
465var (srcName, srcAlias) = _parent._columns[iinfo].Sources[i]; 636Contracts.Assert(_columnOptions.Sources[i].alias != ""); 638var nameSrc = _columnOptions.Sources[i].alias ?? colName; 656if (_columnOptions.Sources[i].alias != colName) 818var srcName = _columnOptions.Sources[i].name; 924var srcName = colInfo.Sources[i].name;
Microsoft.ML.FastTree (35)
Utils\RegressionTreeBaseUtils.cs (35)
44treeWeightsList.AddRange(Enumerable.Repeat(treeWeights[i], trees[i].NumberOfNodes + trees[i].NumberOfLeaves)); 47treeId.AddRange(Enumerable.Repeat(i, trees[i].NumberOfNodes + trees[i].NumberOfLeaves)); 50isLeaf.AddRange(Enumerable.Repeat(new ReadOnlyMemory<char>("Tree node".ToCharArray()), trees[i].NumberOfNodes)); 51isLeaf.AddRange(Enumerable.Repeat(new ReadOnlyMemory<char>("Leaf node".ToCharArray()), trees[i].NumberOfLeaves)); 54leftChild.AddRange(trees[i].LeftChild.AsEnumerable()); 55leftChild.AddRange(Enumerable.Repeat(0, trees[i].NumberOfLeaves)); 58rightChild.AddRange(trees[i].RightChild.AsEnumerable()); 59rightChild.AddRange(Enumerable.Repeat(0, trees[i].NumberOfLeaves)); 62numericalSplitFeatureIndexes.AddRange(trees[i].NumericalSplitFeatureIndexes.AsEnumerable()); 63numericalSplitFeatureIndexes.AddRange(Enumerable.Repeat(0, trees[i].NumberOfLeaves)); 66numericalSplitThresholds.AddRange(trees[i].NumericalSplitThresholds.AsEnumerable()); 67numericalSplitThresholds.AddRange(Enumerable.Repeat(0f, trees[i].NumberOfLeaves)); 70categoricalSplitFlags.AddRange(trees[i].CategoricalSplitFlags.AsEnumerable()); 71categoricalSplitFlags.AddRange(Enumerable.Repeat(false, trees[i].NumberOfLeaves)); 74leafValues.AddRange(Enumerable.Repeat(0d, trees[i].NumberOfNodes)); 75leafValues.AddRange(trees[i].LeafValues.AsEnumerable()); 78splitGains.AddRange(trees[i].SplitGains.AsEnumerable()); 79splitGains.AddRange(Enumerable.Repeat(0d, trees[i].NumberOfLeaves)); 81for (int j = 0; j < trees[i].NumberOfNodes; j++) 84var categoricalSplitFeaturesArray = trees[i].GetCategoricalSplitFeaturesAt(j).ToArray(); 86var len = trees[i].GetCategoricalSplitFeaturesAt(j).ToArray().Length; 89var categoricalCategoricalSplitFeatureRangeArray = trees[i].GetCategoricalCategoricalSplitFeatureRangeAt(j).ToArray(); 91len = trees[i].GetCategoricalCategoricalSplitFeatureRangeAt(j).ToArray().Length; 94categoricalSplitFeatures.AddRange(Enumerable.Repeat(new VBuffer<int>(), trees[i].NumberOfLeaves)); 95categoricalCategoricalSplitFeatureRange.AddRange(Enumerable.Repeat(new VBuffer<int>(), trees[i].NumberOfLeaves)); 124leafSamples.AddRange(Enumerable.Repeat(new VBuffer<double>(), quantileTrees[i].NumberOfNodes)); 125leafSampleWeights.AddRange(Enumerable.Repeat(new VBuffer<double>(), quantileTrees[i].NumberOfNodes)); 126for (int j = 0; j < quantileTrees[i].NumberOfLeaves; j++) 128var leafSamplesArray = quantileTrees[i].GetLeafSamplesAt(j).ToArray(); 130var len = quantileTrees[i].GetLeafSamplesAt(j).ToArray().Length; 132var leafSampleWeightsArray = quantileTrees[i].GetLeafSampleWeightsAt(j).ToArray(); 134len = quantileTrees[i].GetLeafSampleWeightsAt(j).ToArray().Length;
Microsoft.ML.GenAI.Core (1)
Trainer\CausalLMDataset.cs (1)
90var label = Enumerable.Repeat(-100L, train.Length).Concat([labelIds[i]]).Skip(1).ToArray();
Microsoft.ML.IntegrationTests (4)
IntrospectiveTraining.cs (2)
122Assert.Equal(expectedSplitGains[i], finalTree.SplitGains[i], 0.000001); 123Assert.Equal((double)expectedThresholds[i], (double)finalTree.NumericalSplitThresholds[i], 0.000001);
Validation.cs (2)
90Assert.True(result[i].Metrics.NormalizedDiscountedCumulativeGains.Max() > .4); 91Assert.True(result[i].Metrics.DiscountedCumulativeGains.Max() > 16);
Microsoft.ML.Maml (1)
HelpCommand.cs (1)
322writer.Write(names[i]);
Microsoft.ML.Samples (13)
Dynamic\Trainers\BinaryClassification\Gam.cs (2)
79$"x < {binUpperBounds[j]:0.00} => {binEffects[j]:0.000}");
Dynamic\Trainers\BinaryClassification\GamWithOptions.cs (2)
87$"x < {binUpperBounds[j]:0.00} => {binEffects[j]:0.000}");
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportance.cs (1)
63linearPredictor.Model.SubModel.Weights[i],
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportanceLoadFromDisk.cs (1)
62linearPredictor.Model.SubModel.Weights[i], // this way we can access the weights inside the submodel
Dynamic\Trainers\MulticlassClassification\LogLossPerClass.cs (1)
56$"{originalLabels[i]}: {metrics.PerClassLogLoss[i]:F4}");
Dynamic\Trainers\Regression\GamAdvanced.cs (2)
79$"x < {binUpperBounds[j]:0.00} => {binEffects[j]:0.000}");
Dynamic\Trainers\Regression\GamWithOptionsAdvanced.cs (2)
87$"x < {binUpperBounds[j]:0.00} => {binEffects[j]:0.000}");
Dynamic\Trainers\Regression\PermutationFeatureImportance.cs (1)
73linearPredictor.Model.Weights[i],
Dynamic\Trainers\Regression\PermutationFeatureImportanceLoadFromDisk.cs (1)
80linearPredictor.Model.Weights[i],
Microsoft.ML.StandardTrainers (11)
FactorizationMachine\FactorizationMachineTrainer.cs (4)
382getters[f] = cursor.GetGetter<VBuffer<float>>(featureColumns[f]); 421var col = featureColumns[f]; 444var featCol = featureColumns[f]; 445var validFeatCol = validFeatureColumns[f];
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (5)
376var feat = FeatureColumns[i]; 378throw Host.ExceptSchemaMismatch(nameof(inputSchema), "feature", feat, FeatureColumnTypes[i].ToString(), null); 380if (!inputSchema[col].Type.Equals(FeatureColumnTypes[i])) 381throw Host.ExceptSchemaMismatch(nameof(inputSchema), "feature", feat, FeatureColumnTypes[i].ToString(), inputSchema[col].Type.ToString()); 415ctx.SaveString(FeatureColumns[i]);
Optimizer\LearningRateScheduler.cs (2)
114if (epoch >= _lrSchedule[i].Epoch) 116return _lrSchedule[i].ScalingFactor;
Microsoft.ML.Tests (30)
PermutationFeatureImportanceTests.cs (12)
581Assert.True(MaxDeltaIndex(pfi, m => m.PerClassLogLoss[i].Mean) == 1); 582Assert.True(MinDeltaIndex(pfi, m => m.PerClassLogLoss[i].Mean) == 3); 658Assert.Equal(5, MaxDeltaIndex(pfi, m => m.PerClassLogLoss[i].Mean)); 659Assert.Equal(2, MinDeltaIndex(pfi, m => m.PerClassLogLoss[i].Mean)); 723Assert.Equal(0, MaxDeltaIndex(pfi, m => m.DiscountedCumulativeGains[i].Mean)); 724Assert.Equal(1, MinDeltaIndex(pfi, m => m.DiscountedCumulativeGains[i].Mean)); 728Assert.Equal(0, MaxDeltaIndex(pfi, m => m.NormalizedDiscountedCumulativeGains[i].Mean)); 729Assert.Equal(1, MinDeltaIndex(pfi, m => m.NormalizedDiscountedCumulativeGains[i].Mean)); 794Assert.Equal(2, MaxDeltaIndex(pfi, m => m.DiscountedCumulativeGains[i].Mean)); 795Assert.Equal(5, MinDeltaIndex(pfi, m => m.DiscountedCumulativeGains[i].Mean)); 799Assert.Equal(2, MaxDeltaIndex(pfi, m => m.NormalizedDiscountedCumulativeGains[i].Mean)); 800Assert.Equal(5, MinDeltaIndex(pfi, m => m.NormalizedDiscountedCumulativeGains[i].Mean));
TrainerEstimators\MatrixFactorizationTests.cs (3)
102Assert.Equal(0.468956589698792, leftMatrix[leftMatrix.Count - 1], 0.0001); 104Assert.Equal(0.503888845443726, rightMatrix[rightMatrix.Count - 1], 0.0001); 829leftFactorMatrixAligned[i] = leftFactorMatrix[i];
TrainerEstimators\TreeEstimators.cs (15)
824Assert.Equal(row.LeftChild, tree.LeftChild[nodeId]); 825Assert.Equal(row.RightChild, tree.RightChild[nodeId]); 826Assert.Equal(row.NumericalSplitFeatureIndexes, tree.NumericalSplitFeatureIndexes[nodeId]); 827Assert.Equal(row.NumericalSplitThresholds, tree.NumericalSplitThresholds[nodeId]); 828Assert.Equal(row.CategoricalSplitFlags, tree.CategoricalSplitFlags[nodeId]); 830Assert.Equal(row.SplitGains, tree.SplitGains[nodeId]); 852Assert.Equal(tree.LeafValues[nodeId], row.LeafValues); 885for (int j = 0; j < trees[i].NumberOfNodes; j++) 889CheckSummaryRowTreeNode(row, i, bias, treeWeights[i], trees[i], j); 892for (int j = 0; j < trees[i].NumberOfLeaves; j++) 896CheckSummaryRowLeafNode(row, i, bias, treeWeights[i], trees[i], j); 901CheckSummaryRowLeafNodeQuantileTree(quantileRow, i, bias, treeWeights[i], quantileTrees[i], j);
Microsoft.ML.TimeSeries (48)
Deseasonality.cs (1)
122results[i] = _stl.Residual[i];
SequentialTransformerBase.cs (1)
854return 0 <= col && col < _bindings.AddedColumnIndices.Count && active[_bindings.AddedColumnIndices[col]];
SrCnnEntireAnomalyDetector.cs (1)
729results[i][3] = AdjustExpectedValueBasedOnOriginalDataRange(values[i] - residual[i]);
STL\FastLoess.cs (3)
69sampleX[i] = _x[index]; 70sampleY[i] = _y[index]; 91double yValue = _smoother.EstimateY(_x[i]);
STL\InnerStl.cs (7)
173_residual[i] = yValues[i] - _s[i] - _t[i]; 182detrendedY[i] = y[i] - t[i]; 260deseasonSeries[i] = y[i] - s[i]; 317partialSum += s[i]; 323partialSum = partialSum - s[i - length] + s[i];
STL\LeastSquares.cs (6)
60temp = weights[k]; 62temp *= _x[k]; 65temp *= _x[k]; 86temp = weights[i] * _y[i]; 88fy1 += temp * _x[i];
STL\LocalRegression.cs (18)
53double selfValue = _x[SelfIndex]; 71double startV = _x[startIndex]; 72double endV = _x[endIndex]; 96double leftRange = selfValue - _x[startIndex]; 97double rightRange = _x[endIndex] - selfValue; 104NeighborsX[i - StartIndex] = _x[i]; 105NeighborsY[i - StartIndex] = _y[i]; 106Weights[i - StartIndex] = WeightMethod.Tricube((_x[i] - selfValue) / range); 113NeighborsX[i - StartIndex] = _x[i]; 114NeighborsY[i - StartIndex] = _y[i]; 127double leftRange = selfValue - _x[StartIndex]; 128double rightRange = _x[EndIndex] - selfValue; 143NeighborsX[i - StartIndex] = _x[i]; 144NeighborsY[i - StartIndex] = _y[i]; 145Weights[i - StartIndex] = WeightMethod.Tricube((_x[i] - selfValue) / range); 152NeighborsX[i - StartIndex] = _x[i]; 153NeighborsY[i - StartIndex] = _y[i]; 238return _model.Y(_x[SelfIndex]);
STL\Loess.cs (3)
109if (_x[mid] > xValue) 118double distanceDiff = (_x[end] - xValue) - (xValue - _x[start]);
STL\MathsTools.cs (7)
45double key = nums[idx]; 54if (nums[i] < key) 55left[leftIdx++] = nums[i]; 57right[rightIdx++] = nums[i]; 81double first = values[start]; 82double last = values[end]; 85double middleValue = values[midIndex];
STL\PolynomialModel.cs (1)
44result += Coeffs[i] * p;
Microsoft.ML.Tokenizers (19)
Model\CodeGenTokenizer.cs (4)
1582tokens.Add(new EncodedToken(tokensToAdd[i].Id, tokensToAdd[i].Value, new Range(tokensToAdd[i].Offset.Start.Value + offset - 1, tokensToAdd[i].Offset.End.Value + offset - 1)));
Model\EnglishRobertaTokenizer.cs (10)
917Debug.Assert(index + tokens[i].Value.Length <= indexMapping.Length); 919if (tokens[i].Offset.Start.Value != indexMapping[index] || tokens[i].Offset.End.Value != indexMapping[index] + tokens[i].Value.Length) 924list.Add(tokens[j]); 929list.Add(new EncodedToken(tokens[j].Id, tokens[j].Value, new Range(indexMapping[index], indexMapping[index] + tokens[j].Value.Length))); 930index += tokens[j].Value.Length; 936index += tokens[i].Value.Length;
PreTokenizer\CompositePreTokenizer.cs (2)
95var preTokenizer = preTokenizers[preTokenizerIndex]; 173var preTokenizer = preTokenizers[preTokenizerIndex];
Tokenizer.cs (3)
49ids[i] = results.Tokens[i].Id; 243var token = tokens.Tokens[tokenCount - 1]; 253var token = tokens.Tokens[tokens.Tokens.Count - tokenCount];
Microsoft.ML.Tokenizers.Tests (50)
BpeTests.cs (11)
320Assert.Equal(expectedTokens[i], encoding[i].Value); 321Assert.Equal(offsets[i], (encoding[i].Offset.Start.Value, encoding[i].Offset.End.Value - encoding[i].Offset.Start.Value)); 322Assert.Equal(ids[i], encoding[i].Id); 323Assert.Equal(ids[i], idsList[i]); 324Assert.Equal(encoding[i].Value, reverseVocabulary[encodingIds[i]]); 325Assert.Equal(encodingIds[i], bpe.Vocabulary[encoding[i].Value]); 836Assert.Equal(encoding[i].Offset.Start.Value, index); 839Assert.Equal(encoding[encoding.Count - i].Offset.Start.Value, index); 914Assert.Equal(unkId, ids[ids.Count - 2]);
CodeGenTests.cs (36)
691Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 696Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 701Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 706Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 715Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 720Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 725Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 730Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 735Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 740Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 743Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]); 745Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]); 747Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]); 749Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]); 751Assert.NotEqual(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]); 753Assert.NotEqual(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]); 755Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]); 757Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]); 827Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 833Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 839Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 845Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 857Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 863Assert.Equal(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 869Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 875Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 881Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 887Assert.NotEqual(new Range(text.Length, text.Length), encoding[encoding.Count - 1].Offset); 891Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]); 894Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]); 897Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]); 900Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]); 903Assert.NotEqual(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]); 906Assert.NotEqual(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]); 909Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]); 912Assert.Equal(codeGenTokenizer.EndOfSentenceId.Value, ids[ids.Count - 1]);
WordPieceTests.cs (3)
107while (i >= tokens[j].Offset.End.Value) 113Assert.Equal(j == 0 ? 0 : tokens[j - 1].Offset.End.Value, charsWritten); 114Assert.Equal(j == 0 ? "" : text.Substring(0, tokens[j - 1].Offset.End.Value), bufferSlice.Slice(0, charsWritten).ToString());
Microsoft.ML.TorchSharp (7)
NasBert\NerTrainer.cs (3)
179if (NerTrainer.TokenStartsWithSpace(encoding[i].Value)) 389if (NerTrainer.TokenStartsWithSpace(encoding[i].Value)) 403if (NerTrainer.TokenStartsWithSpace(encoding[i].Value))
Roberta\QATrainer.cs (4)
448if (j >= tokens[tid].Length) 471else if (i + 1 < text.Length && tokens[tid][j] == '"' 481else if (text[i] == tokens[tid][j]) 488else if (tokens[tid][j] == '\u0120' && j == 0)
Microsoft.ML.Transforms (12)
ExpressionTransformer.cs (4)
119if (!inputSchema.TryFindColumn(inputColumnNames[isrc], out var col)) 120throw env.ExceptSchemaMismatch(nameof(inputSchema), "input", inputColumnNames[isrc]); 139var col = inputSchema.GetColumnOrNull(inputColumnNames[isrc]); 141throw env.ExceptSchemaMismatch(nameof(inputSchema), "input", inputColumnNames[isrc]);
MetricStatistics.cs (2)
61dest[i].Add(src[i]);
PermutationFeatureImportanceExtensions.cs (2)
647delta[i] = a[i] - b[i];
Text\NgramTransform.cs (4)
330env.Assert(counts[i] <= lims[i]); 331if (counts[i] == lims[i]) 356if (counts[max] < lims[max] && pool.TryAdd(ngram, 0, lim, out slot) && ++counts[max] >= lims[max])
Microsoft.Private.Windows.Core (30)
System\IO\BinaryReaderExtensions.cs (15)
284writer.Write((bool)(object)values[i]); 288writer.Write((byte)(object)values[i]); 292writer.Write((sbyte)(object)values[i]); 296writer.Write((char)(object)values[i]); 300writer.Write((short)(object)values[i]); 304writer.Write((ushort)(object)values[i]); 308writer.Write((int)(object)values[i]); 312writer.Write((uint)(object)values[i]); 316writer.Write((long)(object)values[i]); 320writer.Write((ulong)(object)values[i]); 324writer.Write((float)(object)values[i]); 328writer.Write((double)(object)values[i]); 332writer.Write(((decimal)(object)values[i]).ToString(CultureInfo.InvariantCulture)); 336writer.Write((DateTime)(object)values[i]); 340writer.Write(((TimeSpan)(object)values[i]).Ticks);
System\IO\BinaryWriterExtensions.cs (5)
34writer.Write((byte)memberTypeInfo[i].Type); 39switch (memberTypeInfo[i].Type) 43writer.Write((byte)memberTypeInfo[i].Info!); 46writer.Write((string)memberTypeInfo[i].Info!); 49((ClassTypeInfo)memberTypeInfo[i].Info!).Write(writer);
System\Private\Windows\BinaryFormat\Serializer\ArrayRecord.cs (1)
60public T this[int index] => ArrayObjects[index];
System\Private\Windows\BinaryFormat\Serializer\ArraySingleString.StringListAdapter.cs (1)
21public string? this[int index] => _recordList[index] switch
System\Private\Windows\BinaryFormat\Serializer\ClassRecord.cs (5)
35string current = ClassInfo.MemberNames[i]; 38return MemberValues[i]; 66object? memberValue = memberValues[i]; 68switch (memberTypeInfo[i].Type) 71WritePrimitiveType(writer, (PrimitiveType)memberTypeInfo[i].Info!, memberValue!);
System\Private\Windows\BinaryFormat\Serializer\Record.cs (1)
93object? @object = objects[i];
System\Private\Windows\Ole\DataFormatsCore.cs (2)
67format = formats[i]; 130format = formats[i];
Microsoft.TemplateEngine.Cli (3)
Commands\CommandLineUtils.cs (2)
19var argument = arguments[i]; 79var option = options[i];
TabularOutput\TabularOutput.cs (1)
426var text = _lines.Count > line ? _lines[line] : string.Empty;
Microsoft.TemplateEngine.Core (71)
Expressions\Cpp\CppStyleEvaluatorDefinition.cs (14)
183currentTokenBytes.AddRange(trie.Tokens[token].Value); 189currentTokenBytes.AddRange(trie.Tokens[token].Value); 201currentTokenBytes.AddRange(trie.Tokens[token].Value); 207currentTokenBytes.AddRange(trie.Tokens[token].Value); 324for (; i < tokens.Count && (tokens[i].Family == TokenFamily.Whitespace || tokens[i].Family == TokenFamily.Tab); ++i) 332if (tokens[i].Family is TokenFamily.Whitespace or TokenFamily.Tab) 338if (tokens[i].Family.HasFlag(TokenFamily.Reference)) 340outputTokens.Add(tokens[i]); 342else if (tokens[i].Family == TokenFamily.Literal) 345string literalValue = tokens[i].Literal!; 351switch (tokens[j].Family) 354literalValue += followingWhitespace + tokens[j].Literal; 379outputTokens.Add(tokens[i]);
Expressions\ScopeBuilder.cs (6)
97allData.AddRange(_tokens.Tokens[token].Value); 178object val = _symbolValues[token - _knownTokensCount]; 179referencedVariablesKeys?.Add(_symbolKeys[token - _knownTokensCount]); 187currentLiteral.AddRange(_tokens.Tokens[token].Value); 235object? value = _symbolValues[token - _knownTokensCount] ?? null; 236referencedVariablesKeys?.Add(_symbolKeys[token - _knownTokensCount]);
Operations\BalancedNesting.cs (3)
116processor.WriteToTarget(Tokens[token].Value, Tokens[token].Start, Tokens[token].Length);
Operations\Conditional.cs (9)
120tokenMasterList[tokenIndex] = tokensOfType[i].ToToken(encoding); 152processor.WriteToTarget(Tokens[token].Value, Tokens[token].Start, Tokens[token].Length); 153return Tokens[token].Length; 213processor.WriteToTarget(Tokens[token].Value, Tokens[token].Start, Tokens[token].Length); 214return Tokens[token].Length;
Operations\ExpandVariables.cs (4)
47processor.WriteToTarget(Tokens[token].Value, Tokens[token].Start, Tokens[token].Length); 48return Tokens[token].Length;
Operations\Include.cs (4)
66processor.WriteToTarget(Tokens[token].Value, Tokens[token].Start, Tokens[token].Length); 67return Tokens[token].Length;
Operations\InlineMarkupConditional.cs (5)
100processor.WriteToTarget(Tokens[token].Value, Tokens[token].Start, Tokens[token].Length); 101return Tokens[token].Length; 246conditionBytes.AddRange(processorState.CurrentBuffer.Skip(previousPosition).Take(currentBufferPosition - previousPosition - _closeConditionTrie.Tokens[token].Length));
Operations\PhasedOperation.cs (4)
126processor.WriteToTarget(Tokens[token].Value, Tokens[token].Start, Tokens[token].Length); 127return Tokens[token].Length;
Operations\Region.cs (4)
72processor.WriteToTarget(Tokens[token].Value, Tokens[token].Start, Tokens[token].Length); 73return Tokens[token].Length;
Operations\Replacement.cs (4)
62processor.WriteToTarget(Tokens[token].Value, Tokens[token].Start, Tokens[token].Length); 63return Tokens[token].Length;
Operations\SetFlag.cs (4)
90processor.WriteToTarget(Tokens[token].Value, Tokens[token].Start, Tokens[token].Length); 91written = Tokens[token].Length;
Util\ProcessorState.cs (10)
87IOperation op = operationProviders[i].GetOperation(encoding, this); 93if (op.Tokens[j] != null) 95trie.AddPath(op.Tokens[j]!.Value, new OperationTerminal(op, j, op.Tokens[j]!.Length, op.Tokens[j]!.Start, op.Tokens[j]!.End)); 384_target.Position -= nRead - bestPos + (consume ? match.TokenLength[best] : 0); 429i -= match.TokenLength[token]; 435if (!anyMatch || (token != -1 && i + match.TokenLength[token] != nRead)) 486currentBufferPosition -= match.Tokens[token].Length;
Microsoft.TemplateEngine.Edge (2)
Settings\TemplatePackageManager.cs (2)
357var scanResult = await _installScanner.ScanAsync(allTemplatePackages[index].MountPointUri, cancellationToken).ConfigureAwait(false); 362_logger.LogWarning(LocalizableStrings.TemplatePackageManager_Error_FailedToScan, allTemplatePackages[index].MountPointUri, ex.Message);
Microsoft.TemplateEngine.Utils (4)
CombinedList.cs (3)
36return _first[index]; 44return _second[index]; 71public T Current => _items[_index];
Glob.cs (1)
149IMatcher matcher = _matchers[currentMatcher];
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Nuget.Frameworks\HashCodeCombiner.cs (1)
125AddHashCode(list[i].GetHashCode());
NuGet.Build.Tasks (1)
src\nuget-client\build\Shared\SharedExtensions.cs (1)
173var item = lst[index];
NuGet.CommandLine.XPlat (5)
Commands\Package\Download\PackageDownloadRunner.cs (2)
279if (string.Equals(allRepos[i].PackageSource.Name, mappedName, StringComparison.OrdinalIgnoreCase)) 281return allRepos[i];
Commands\Package\Update\PackageUpdateIO.cs (1)
365SourceRepository sourceRepository = _cachingSourceProvider.CreateRepository(packageSources[i]);
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
125AddHashCode(list[i].GetHashCode());
src\nuget-client\build\Shared\SharedExtensions.cs (1)
173var item = lst[index];
NuGet.Commands (13)
ClientCertificatesCommand\ListClientCertRunner.cs (1)
42var item = items[i];
RestoreCommand\LockFileBuilder.cs (1)
652if (HasTools(package.Files[i]))
RestoreCommand\RequestFactory\DependencyGraphSpecRequestProvider.cs (1)
244PackageSource source = auditSources[i];
RestoreCommand\RestoreCommandProvidersCache.cs (3)
122var fallbackPath = fallbackPackagesPaths[i]; 153var fallbackPath = fallbackPackagesPaths[i]; 216SourceRepository source = sources[i];
RestoreCommand\Utility\AuditUtility.cs (4)
240if (knownVulnerabilities[i].Count > 0) { return true; } 448IVulnerabilityInformationProvider provider = _vulnerabilityInfoProviders[i]; 463if (_vulnerabilityInfoProviders[i].IsAuditSource && (result?.KnownVulnerabilities is null || result.KnownVulnerabilities.Count == 0)) 465string message = string.Format(CultureInfo.CurrentCulture, Strings.Warning_AuditSourceWithoutVulnerabilityData, _vulnerabilityInfoProviders[i].SourceName);
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
125AddHashCode(list[i].GetHashCode());
src\nuget-client\build\Shared\SharedExtensions.cs (1)
173var item = lst[index];
TrustedSignersCommand\TrustedSignersCommandRunner.cs (1)
218var item = trustedSigners[i];
NuGet.Configuration (1)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
125AddHashCode(list[i].GetHashCode());
NuGet.DependencyResolver.Core (3)
Remote\RemoteWalkContext.cs (1)
83if (StringComparer.OrdinalIgnoreCase.Equals(sources[j], current.Source.Name))
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
125AddHashCode(list[i].GetHashCode());
src\nuget-client\build\Shared\SharedExtensions.cs (1)
173var item = lst[index];
NuGet.Frameworks (2)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
125AddHashCode(list[i].GetHashCode());
src\nuget-client\build\Shared\SharedExtensions.cs (1)
173var item = lst[index];
NuGet.LibraryModel (1)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
125AddHashCode(list[i].GetHashCode());
NuGet.PackageManagement (6)
Audit\AuditChecker.cs (3)
135if (knownVulnerabilities[i].Count > 0) { return true; } 167SourceRepository source = vulnerabilitySources[i]; 189string message = string.Format(CultureInfo.CurrentCulture, Strings.Warning_AuditSourceWithoutData, vulnerabilitySources[i].PackageSource.Name);
IDE\PackageRestoreManager.cs (1)
231(string url, _) = items[i];
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
125AddHashCode(list[i].GetHashCode());
src\nuget-client\build\Shared\SharedExtensions.cs (1)
173var item = lst[index];
NuGet.Packaging (4)
RuntimeModel\RuntimeGraph.cs (1)
205var inheritedRuntime = inheritedRuntimes[r];
Signing\Archive\EndOfCentralDirectoryRecord.cs (1)
77if (buffer[i] == Signature[Signature.Count - matchingByteCount - 1])
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
125AddHashCode(list[i].GetHashCode());
src\nuget-client\build\Shared\SharedExtensions.cs (1)
173var item = lst[index];
NuGet.ProjectModel (1)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
125AddHashCode(list[i].GetHashCode());
NuGet.Protocol (6)
PackagesFolder\NuGetv3LocalRepositoryUtility.cs (1)
28var repository = repositories[i];
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResource.cs (1)
500var baseUri = _baseUris[retry % _baseUris.Count].OriginalString;
Resources\VulnerabilityInfoResourceV3.cs (2)
151V3VulnerabilityIndexEntry indexEntry = indexEntries[i]; 209V3VulnerabilityIndexEntry entry = indexEntries[i];
SourceRepository.cs (1)
160var provider = possible[i];
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
125AddHashCode(list[i].GetHashCode());
NuGet.Resolver (1)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
125AddHashCode(list[i].GetHashCode());
NuGet.Versioning (2)
src\nuget-client\build\Shared\HashCodeCombiner.cs (1)
125AddHashCode(list[i].GetHashCode());
src\nuget-client\build\Shared\SharedExtensions.cs (1)
173var item = lst[index];
PresentationFramework (10)
MS\Internal\WindowsRuntime\Generated\WinRT\Projections\IReadOnlyList.cs (1)
152if (EqualityComparer<T>.Default.Equals(value, _list[i]))
System\Windows\Documents\NLGSpellerInterop.cs (3)
236continueIteration = segmentCallback(sentence.Segments[i], data); 724result = segmentCallback(SubSegments[i], data); 876ITextRange textRange = Segments[Segments.Count - 1].TextRange;
System\Windows\Documents\WinRTSpellerInterop.cs (3)
388continueIteration = segmentCallback(sentence.Segments[i], data); 1015result = segmentCallback(SubSegments[i], data); 1072ITextRange textRange = Segments[Segments.Count - 1].TextRange;
System\Windows\Documents\WinRTSpellerInteropExtensions.cs (3)
70int nextTokenStartPosition = (int)tokens[i].SourceTextSegment.StartPosition; 71int nextTokenLength = (int)tokens[i].SourceTextSegment.Length; 112spellChecker.HasErrors(tokens[tokens.Count - 1].Text) &&
Roslyn.Diagnostics.Analyzers (20)
ExportedPartsShouldHaveImportingConstructorCodeFixProvider.cs (1)
124switch (generator.GetDeclarationKind(existingMembers[index]))
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
644if (comparer.Equals(list[i], value))
src\roslyn\src\Dependencies\Collections\Extensions\IListExtensions.cs (1)
52if (!set.Add(selector(list[i])))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
62var currentOne = root.ConvertToTokenPair(spans[i]);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\IReadOnlyListExtensions.cs (2)
23=> list[list.Count - 1]; 29if (EqualityComparer<T>.Default.Equals(list[index], value))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
128var item = list[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamespaceOrTypeSymbolExtensions.cs (2)
47var name1 = names1[i]; 48var name2 = names2[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\AddParameterEditor.cs (8)
44syntaxFacts, existingParameters[existingParameters.Count - 1], includeLeadingNewLine: true); 66var nextParameter = existingParameters[insertionIndex]; 69syntaxFacts, existingParameters[insertionIndex + 1], includeLeadingNewLine: true); 91var nextParameter = existingParameters[insertionIndex]; 108var nextParameter = existingParameters[insertionIndex]; 110syntaxFacts, existingParameters[insertionIndex], includeLeadingNewLine: false); 162var lastParameter = parameters[i - 1]; 163var thisParameter = parameters[i];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (2)
103state.OutermostBlockStatements[statementIndex + 1] == state.FirstStatementAffectedInInnermostBlock) 151var originalNextStatement = state.OutermostBlockStatements[statementIndex + 1];
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (1)
186if (InnermostBlockStatements[i] is not TLocalDeclarationStatementSyntax)
rzc (1)
Json\JsonDataWriter.cs (1)
169writeElement(this, elements[i]);
Shared (2)
LogBuffering\SerializedLogRecordFactory.cs (2)
32string key = attributes[i].Key; 33string value = attributes[i].Value?.ToString() ?? string.Empty;
System.Collections.Immutable (3)
System\Collections\Immutable\ImmutableList_1.Node.cs (1)
258return new Node(items[start + leftCount], left, right, true);
System\Collections\Immutable\ImmutableSortedDictionary_2.Node.cs (1)
604KeyValuePair<TKey, TValue> item = items[start + leftCount];
System\Collections\Immutable\ImmutableSortedSet_1.Node.cs (1)
736return new Node(items[start + leftCount], left, right, true);
System.CommandLine (15)
ArgumentValidation.cs (4)
85var token = result.Tokens[i]; 110var token = result.Tokens[i]; 163var token = argumentResult.Tokens[i]; 185var token = result.Tokens[i];
Binding\ArgumentConverter.cs (3)
94var token = tokens[i]; 144convert(result.Tokens[result.Tokens.Count - 1].Value, out value); 224? argumentResult.Tokens[argumentResult.Tokens.Count - 1]
EnvironmentVariablesDirective.cs (1)
52string parsedValue = directiveResult.Values[i];
Help\HelpBuilder.cs (1)
245var helpItem = items[i];
Invocation\InvocationPipeline.cs (2)
25var action = parseResult.PreActions[i]; 108if (parseResult.PreActions[i] is SynchronousCommandLineAction syncPreAction)
Invocation\ParseErrorAction.cs (1)
94var token = unmatchedTokens[i];
ParseResult.cs (1)
312var action = PreActions[i];
Parsing\ParseDiagramAction.cs (1)
45var error = unmatchedTokens[i];
Parsing\StringExtensions.cs (1)
56: args[i];
System.Formats.Nrbf (4)
System\Formats\Nrbf\ArrayRectangularPrimitiveRecord.cs (1)
56result.SetValue(_values[i], indices);
System\Formats\Nrbf\MemberTypeInfo.cs (1)
72(BinaryType binaryType, object? additionalInfo) = Infos[currentValuesCount];
System\Formats\Nrbf\SystemClassWithMembersAndTypesRecord.cs (2)
98&& memberTypeInfo.Infos[order].BinaryType == BinaryType.Primitive 99&& memberTypeInfo.Infos[order].AdditionalInfo is PrimitiveType pt
System.Linq.Expressions (12)
System\Dynamic\Utils\ExpressionUtils.cs (1)
297if (replacementObject != current[index])
System\Linq\Expressions\BlockExpression.cs (2)
483return _expressions[index]; 616internal override Expression GetExpression(int index) => _body[index];
System\Linq\Expressions\DynamicExpression.cs (1)
502Expression IArgumentProvider.GetArgument(int index) => _arguments[index];
System\Linq\Expressions\Expression.cs (1)
244ExpressionUtils.RequiresCanRead(items[i], paramName, i);
System\Linq\Expressions\IndexExpression.cs (1)
105public Expression GetArgument(int index) => _arguments[index];
System\Linq\Expressions\Interpreter\InstructionList.cs (1)
124Instruction instruction = instructions[i];
System\Linq\Expressions\InvocationExpression.cs (1)
140public override Expression GetArgument(int index) => _arguments[index];
System\Linq\Expressions\LambdaExpression.cs (1)
575internal override ParameterExpression GetParameter(int index) => _parameters[index];
System\Linq\Expressions\MethodCallExpression.cs (2)
177public override Expression GetArgument(int index) => _arguments[index]; 208public override Expression GetArgument(int index) => _arguments[index];
System\Linq\Expressions\NewExpression.cs (1)
56public Expression GetArgument(int index) => _arguments[index];
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (2)
69Memory<byte> buffer = buffers[i]; 186ReadOnlyMemory<byte> buffer = buffers[i];
System.Private.Windows.Core (30)
System\IO\BinaryReaderExtensions.cs (15)
284writer.Write((bool)(object)values[i]); 288writer.Write((byte)(object)values[i]); 292writer.Write((sbyte)(object)values[i]); 296writer.Write((char)(object)values[i]); 300writer.Write((short)(object)values[i]); 304writer.Write((ushort)(object)values[i]); 308writer.Write((int)(object)values[i]); 312writer.Write((uint)(object)values[i]); 316writer.Write((long)(object)values[i]); 320writer.Write((ulong)(object)values[i]); 324writer.Write((float)(object)values[i]); 328writer.Write((double)(object)values[i]); 332writer.Write(((decimal)(object)values[i]).ToString(CultureInfo.InvariantCulture)); 336writer.Write((DateTime)(object)values[i]); 340writer.Write(((TimeSpan)(object)values[i]).Ticks);
System\IO\BinaryWriterExtensions.cs (5)
34writer.Write((byte)memberTypeInfo[i].Type); 39switch (memberTypeInfo[i].Type) 43writer.Write((byte)memberTypeInfo[i].Info!); 46writer.Write((string)memberTypeInfo[i].Info!); 49((ClassTypeInfo)memberTypeInfo[i].Info!).Write(writer);
System\Private\Windows\BinaryFormat\Serializer\ArrayRecord.cs (1)
60public T this[int index] => ArrayObjects[index];
System\Private\Windows\BinaryFormat\Serializer\ArraySingleString.StringListAdapter.cs (1)
21public string? this[int index] => _recordList[index] switch
System\Private\Windows\BinaryFormat\Serializer\ClassRecord.cs (5)
35string current = ClassInfo.MemberNames[i]; 38return MemberValues[i]; 66object? memberValue = memberValues[i]; 68switch (memberTypeInfo[i].Type) 71WritePrimitiveType(writer, (PrimitiveType)memberTypeInfo[i].Info!, memberValue!);
System\Private\Windows\BinaryFormat\Serializer\Record.cs (1)
93object? @object = objects[i];
System\Private\Windows\Ole\DataFormatsCore.cs (2)
67format = formats[i]; 130format = formats[i];
System.Reflection.Metadata (8)
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (8)
95if (deltaReaders[i].GetTableRowCount(TableIndex.EncMap) == 0 || !deltaReaders[i].IsMinimalDelta) 154userStringSizes[r + 1] = userStringSizes[r] + deltaReaders[r].GetHeapSize(HeapIndex.UserString); 155stringSizes[r + 1] = stringSizes[r] + deltaReaders[r].GetHeapSize(HeapIndex.String); 156blobSizes[r + 1] = blobSizes[r] + deltaReaders[r].GetHeapSize(HeapIndex.Blob); 157guidSizes[r + 1] = deltaReaders[r].GetHeapSize(HeapIndex.Guid) / guidSize; 176CalculateDeltaRowCountsForGeneration(rowCounts, generation, ref deltaReaders[generation - 1].EncMapTable); 201rowCounts[t][0].AggregateInserts = baseRowCounts[t];
System.Text.Json (2)
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (1)
637KeyValuePair<Type, MethodInfo> entry = entries[i];
System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs (1)
217KeyValuePair<Type, MethodInfo> entry = entries[i];
System.Windows.Forms (14)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (1)
214Entry selectedItem = owner.Entries[selectedIndex];
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildListUiaProvider.cs (1)
113Entry item = _owningComboBox.Entries[index];
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (2)
154ItemArray.Entry? item = entries[index]; 198ItemArray.Entry? item = owner.Items.InnerArray.Entries[index];
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (5)
100return index < visibleGroups.Count ? visibleGroups[index].AccessibilityObject : null; 144if (visibleGroups[i].AccessibilityObject == child) 216return visibleGroups.Count == 0 ? null : visibleGroups[visibleGroups.Count - 1].AccessibilityObject; 299if (visibleGroups[i].AccessibilityObject?.Bounds.Contains(hitTestPoint) == true) 301return visibleGroups[i].AccessibilityObject;
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (3)
242return visibleItems.Count > 0 ? visibleItems[visibleItems.Count - 1].AccessibilityObject : null; 262return visibleItems[index].AccessibilityObject; 275if (visibleItems[i].AccessibilityObject == child)
System\Windows\Forms\Controls\PropertyGrid\GridItemCollection.cs (2)
34public GridItem this[int index] => _entries[index]; 58((IList)dest)[index + i] = _entries[i];
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
1901primaryItem = components[primaryIndex] as ToolStripItem; 1916parentToolStrip.Items.Insert(0, components[i] as ToolStripItem); 1920parentToolStrip.Items.Add(components[i] as ToolStripItem);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
708selectedItem = components[primaryIndex] as ToolStripItem;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
2688primaryItem = components[primaryIndex] as ToolStripItem;