Implemented interface members:
property
this
System.Collections.Generic.IList<T>.this[System.Int32]
property
this
System.Collections.Generic.IReadOnlyList<T>.this[System.Int32]
422 writes to Item
Aspire.Dashboard (3)
Otlp\Model\OtlpHelpers.cs (1)
230values[existingIndex] = new KeyValuePair<string, string>(attribute.Key, value);
src\Shared\CircularBuffer.cs (2)
187_buffer[InternalIndex(index)] = value; 197_buffer[_end] = item;
Aspire.Hosting (4)
ApplicationModel\ResourceCollection.cs (1)
15public IResource this[int index] { get => _resources[index]; set => _resources[index] = value; }
src\Shared\CircularBuffer.cs (2)
187_buffer[InternalIndex(index)] = value; 197_buffer[_end] = item;
src\Shared\CustomResourceSnapshotExtensions.cs (1)
50existingProperties[i] = existingProperty with { Value = newValue.Value };
Aspire.Hosting.Azure (1)
src\Shared\CustomResourceSnapshotExtensions.cs (1)
50existingProperties[i] = existingProperty with { Value = newValue.Value };
dotnet-svcutil-lib (13)
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (7)
2045runningPositions[k] = rposInfo; 2054runningPositions[matchCount] = runningPositions[k]; 2055runningPositions[k] = lastrpos; 2112runningPositions[matchCount] = newRPosInfo; 2118runningPositions[matchCount] = newRPosInfo; 2125runningPositions[matchCount] = newRPosInfo; 2135runningPositions[j] = newRPosInfo;
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (1)
961_rules[i] = ruleAdd;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (2)
43_entries[matchedIndex] = new XmlSchemaObjectEntry(name, value); 60_entries[matchedIndex] = new XmlSchemaObjectEntry(name, value);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
2454_nestedParamCounts[level] = _nestedParamCounts[level] + count;
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
211_items[index] = item;
Shared\MSBuildProj.cs (1)
828packageDependencies[itemIdx] = dependency;
dotnet-user-jwts (2)
Helpers\ConsoleTable.cs (2)
76maxColumnLengths[i] = equalColumnLengths; 85maxColumnLengths[i] += excessLength / numberOfColumnsThatNeedMoreLength;
illink (1)
InMemory.FunctionalTests (1)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
114MaybeExtra[i] = new KeyValuePair<Type, object>(key, value);
Microsoft.Analyzers.Local (1)
ApiLifecycle\Json\JsonArray.cs (1)
54set => _items[index] = value;
Microsoft.AspNetCore.Components (3)
Infrastructure\ComponentStatePersistenceManager.cs (2)
111_registeredCallbacks[i] = new PersistComponentStateRegistration(registration.Callback, componentRenderMode); 117_registeredCallbacks[i] = default;
src\Http\Routing\src\Patterns\RoutePatternParser.cs (1)
391parts[i - 1] = RoutePatternFactory.SeparatorPart(((RoutePatternLiteralPart)previousPart).Content);
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\Metrics\MetricsExtensions.cs (1)
43list[i] = new KeyValuePair<string, object?>(name, value);
Microsoft.AspNetCore.Grpc.JsonTranscoding (6)
Internal\JsonTranscodingRouteAdapter.cs (6)
81tempSegments[i] = segmentVariable.HasCatchAllPath 105tempSegments[i] = $"{{{parameterName}}}"; 123tempSegments[i] = $"{{**{parameterName}{constraint}}}"; 178tempSegments[i] = $"{{__Discard_{i}}}"; 184tempSegments[i] = $"{{**__Discard_{i}:regex({Regex.Escape($":{pattern.Verb}")}$)}}"; 188tempSegments[i] = $"{{**__Discard_{i}}}";
Microsoft.AspNetCore.Hosting (1)
src\Shared\Metrics\MetricsExtensions.cs (1)
43list[i] = new KeyValuePair<string, object?>(name, value);
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\CopyOnWriteList.cs (1)
40set => Writable[index] = value;
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
170loadedEndpoints[j] = compiled.Endpoint!;
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
AttributeDictionary.cs (1)
90_items[index] = value;
Microsoft.AspNetCore.Routing (5)
Matching\DfaMatcherBuilder.cs (1)
219nextWork[nextWorkCount] = new DfaBuilderWorkerWorkItem(endpoint, nextPrecedenceDigit, nextParents);
Patterns\DefaultRoutePatternTransformer.cs (3)
231updatedParts[j] = updatedParameter; 232segments[i] = RoutePatternFactory.Segment(updatedParts); 238parameters[k] = updatedParameter;
Patterns\RoutePatternParser.cs (1)
391parts[i - 1] = RoutePatternFactory.SeparatorPart(((RoutePatternLiteralPart)previousPart).Content);
Microsoft.AspNetCore.Routing.Abstractions (1)
RouteData.cs (1)
279routers[i] = snapshotRouters[i];
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
100MaybeExtra[i] = new KeyValuePair<Type, object>(key, value);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\HttpProtocol.Generated.cs (1)
175MaybeExtra[i] = new KeyValuePair<Type, object>(key, value);
src\Shared\Metrics\MetricsExtensions.cs (1)
43list[i] = new KeyValuePair<string, object?>(name, value);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
114MaybeExtra[i] = new KeyValuePair<Type, object>(key, value);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
114MaybeExtra[i] = new KeyValuePair<Type, object>(key, value);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
114MaybeExtra[i] = new KeyValuePair<Type, object>(key, value);
src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (1)
101MaybeExtra[i] = new KeyValuePair<Type, object>(key, value);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (1)
114MaybeExtra[i] = new KeyValuePair<Type, object>(key, value);
Microsoft.Build (3)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (1)
373orderedBuckets[bucket.BucketSequenceNumber] = bucket;
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (1)
649upToDateInputItems[i] = null;
Evaluation\ItemDataCollectionValue.cs (1)
104list[index] = newItem;
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
93_values[index] = (TValue)value;
Microsoft.Build.Tasks.Core (1)
WriteCodeFragment.cs (1)
226orderedParameters[index - 1] = new AttributeParameter { Type = type, Value = value };
Microsoft.CodeAnalysis (6)
DocumentationCommentId.cs (2)
965results[i] = typeSymbol; 1052results[i] = ((INamedTypeSymbol)results[i]).Construct(typeArgs);
MetadataReader\MetadataHelpers.cs (2)
902nestedNamespaces[keyIndex] = KeyValuePairUtil.Create(primaryPair.Key, primaryPair.Value.Concat(pair.Value)); 903nestedNamespaces[i] = default(KeyValuePair<string, IEnumerable<IGrouping<string, TypeDefinitionHandle>>>);
Syntax\SyntaxDiffer.cs (2)
580_changes[_changes.Count - 1] = new ChangeRecord( 603_changes[_changes.Count - 1] = new ChangeRecord(
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
38list[targetIndex++] = newValue; 57list[targetIndex++] = newValue.Value;
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (4)
54newImports[i] = newImports[i].WithAppendedTrailingTrivia(endOfLine); 75newImports[originalFirstUsingCurrentIndex] = originalFirstUsing.WithoutLeadingTrivia(); 83newImports[originalLastUsingCurrentIndex] = originalLastUsing.WithoutTrailingTrivia(); 91newImports[i] = newImports[i].WithAppendedTrailingTrivia(originalFirstUsingLineEnding);
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
src\Features\DiagnosticsTestUtilities\CodeActions\SharedVerifierState.cs (1)
62_test.TestState.AnalyzerConfigFiles[_analyzerConfigIndex.Value] = ("/.editorconfig", analyzerConfigSource);
Microsoft.CodeAnalysis.CSharp (1)
Symbols\ReferenceManager.cs (1)
137referencedAssemblySymbols[i] = null; // Do not expose missing assembly symbols to ReferenceManager.Binder
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
189list[i] = FormattingOperations.CreateIndentBlockOperation(startToken, endToken, indentationDelta: 1, option: IndentBlockOption.RelativePosition);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (4)
59currentUsings[i] = null; 79currentUsings[nextIndex] = nextUsing.WithPrependedLeadingTrivia(leadingTrivia); 85currentUsings[nextIndex] = nextUsing.WithLeadingTrivia(leadingTrivia); 116currentUsings[i] = currentUsing.WithLeadingTrivia(currentUsingLeadingTrivia.WithoutLeadingBlankLines());
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
189list[i] = FormattingOperations.CreateIndentBlockOperation(startToken, endToken, indentationDelta: 1, option: IndentBlockOption.RelativePosition);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (4)
59currentUsings[i] = null; 79currentUsings[nextIndex] = nextUsing.WithPrependedLeadingTrivia(leadingTrivia); 85currentUsings[nextIndex] = nextUsing.WithLeadingTrivia(leadingTrivia); 116currentUsings[i] = currentUsing.WithLeadingTrivia(currentUsingLeadingTrivia.WithoutLeadingBlankLines());
Microsoft.CodeAnalysis.Features (5)
Completion\CompletionService_GetCompletions.cs (1)
417sameNamedItems[i] = _service.GetBetterItem(item, existingItem);
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (1)
264_listStack[i] = (_listStack[i].type, _listStack[i].index, renderedItem: true);
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (1)
252lines[i] = indentText + lines[i];
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
1974oldNodes[i] = null; 1975newNodes[newIndex] = null;
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
EditAndContinue\SourceMarkers.cs (4)
126result[activeStatementId] ??= []; 149result[i] ??= []; 165result[major] = span; 200list[i] = item;
Microsoft.CodeAnalysis.Scripting (1)
Hosting\SynchronizedList.cs (1)
31_list[index] = value;
Microsoft.CodeAnalysis.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
38list[targetIndex++] = newValue; 57list[targetIndex++] = newValue.Value;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (4)
54newImports[i] = newImports[i].WithAppendedTrailingTrivia(endOfLine); 75newImports[originalFirstUsingCurrentIndex] = originalFirstUsing.WithoutLeadingTrivia(); 83newImports[originalLastUsingCurrentIndex] = originalLastUsing.WithoutTrailingTrivia(); 91newImports[i] = newImports[i].WithAppendedTrailingTrivia(originalFirstUsingLineEnding);
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (2)
471pArguments.prgexpr[i] = pExprArguments[i]; 1038_pArguments.prgexpr[iParam] = pArgumentNew;
Microsoft.Extensions.AI.Abstractions (4)
ChatCompletion\StreamingChatCompletionUpdateExtensions.cs (3)
224contents[start + 1] = null!; 229contents[i] = null!; 233contents[start] = new TextContent(coalescedText.ToString())
Embeddings\GeneratedEmbeddings.cs (1)
52set => _embeddings[index] = value;
Microsoft.Extensions.AsyncState (2)
AsyncState.cs (1)
91_asyncContextCurrent.Value.Features[token.Index] = value;
FeaturesPooledPolicy.cs (1)
22obj[i] = null;
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
201_sources[index] = value;
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ServiceCollection.cs (1)
37_descriptors[index] = value;
Microsoft.Maui (3)
Core\Extensions\IPickerExtension.cs (1)
21 returnValue[i] = picker.GetItem(i);
Hosting\Internal\FontCollection.cs (1)
17 set => _descriptors[index] = value;
Hosting\Internal\MauiServiceCollection.cs (1)
21 set => _descriptors[index] = value;
Microsoft.Maui.Controls (7)
DefinitionCollection.cs (1)
91 _internalList[index] = value;
Items\MarshalingObservableCollection.cs (1)
120 this[startIndex] = item;
OrderedDictionary.cs (1)
265 _keyOrder[index] = value.Key;
Profiler.cs (1)
176 Data[_slot] = datum;
SynchronizedList.cs (1)
116 _list[index] = value;
TemplatedItemsList.cs (1)
562 _templatedObjects[index] = content;
VisualStateManager.cs (1)
795 set => _internalList[index] = value;
Microsoft.Maui.Controls.SourceGen (1)
src\Controls\src\Xaml\XmlTypeXamlExtensions.cs (1)
76 lookupNames[i] = name;
Microsoft.Maui.Controls.Xaml (1)
XmlTypeXamlExtensions.cs (1)
76 lookupNames[i] = name;
Microsoft.Maui.Graphics (12)
PathF.cs (10)
157 _points[index] = new PointF(x, y); 163 _points[index] = point; 217 _arcAngles[aIndex] = aValue; 237 _arcClockwise[aIndex] = aValue; 792 _points[pointIndex] = (PointF)points[points.Length - 1]; 934 _points[i] = Vector2.Transform((Vector2)_points[i], transform); 1015 operations[segmentStart] = PathOperation.Move; 1016 operations[i] = PathOperation.Close; 1278 _points[i] = _points[i].Offset(x, y); 1286 _points[index] = _points[index].Offset(dx, dy);
Text\AttributedTextRunExtensions.cs (2)
170 runs[i] = new AttributedTextRun(start, length, run.Attributes); 189 run = runs[i - 1] = new AttributedTextRun(run.Start, run.Length, combined);
Microsoft.ML.CodeGenerator (2)
Utils.cs (2)
326columnNames[i] = Utils.Normalize(columnNames[i]); 336columnNames[i] += String.Concat("_col_", i);
Microsoft.ML.Core (2)
Utilities\Heap.cs (2)
105_rgv[iv] = v; 305_rgv[iv] = v;
Microsoft.ML.Data (9)
Data\SchemaDefinition.cs (1)
317this[index] = value;
DataLoadSave\Binary\BinarySaver.cs (1)
460lookups[blockIndex] = currLookup;
Evaluators\BinaryClassifierEvaluator.cs (4)
787Recall[i] /= pos; 788FalsePositiveRate[i] /= neg; 794WeightedRecall[i] /= wpos; 795WeightedFalsePositiveRate[i] /= wneg;
Evaluators\ClusteringEvaluator.cs (1)
351_numInstancesOfClass[intLabel] += weight;
Transforms\NormalizeColumnSng.cs (2)
564Elements[firstIndex] = Elements[secondIndex]; 565Elements[secondIndex] = temp;
Microsoft.ML.FastTree (1)
FastTree.cs (1)
1703maxSlots[maxSlots.Count - 1] = i;
Microsoft.ML.LightGbm (1)
LightGbmTrainerBase.cs (1)
794++groupList[lastGroup];
Microsoft.ML.OnnxTransformer (1)
OnnxTransform.cs (1)
914_tensorShape[_zeroIndex] = _vBufferDense.Length / _denominator;
Microsoft.ML.Sweeper (1)
AsyncSweeper.cs (1)
259_results[id] = result;
Microsoft.ML.TestFramework (3)
BaseTestBaseline.cs (1)
465seqList[idx++ % seqList.Count] = seq.Current;
BaseTestPredictorsMaml.cs (2)
247args[i] = string.Format("in={0}", args[i].Substring(4)); 249args[i] = string.Format("data={0}", args[i].Substring(5));
Microsoft.ML.TimeSeries (3)
PolynomialUtils.cs (1)
185Coefficients[i] = destination[i];
SrCnnAnomalyDetectionBase.cs (2)
277cumSumList[i] = (cumSumList[i] - cumSumShift[i - n]) / n; 281cumSumList[i] /= (i + 1);
Microsoft.ML.Tokenizers (4)
Utils\PriorityQueue.cs (4)
28T tmp = _data[ci]; _data[ci] = _data[pi]; _data[pi] = tmp; 51T tmp = _data[pi]; _data[pi] = _data[ci]; _data[ci] = tmp; // swap parent and child
Microsoft.ML.TorchSharp (2)
AutoFormerV2\FPN.cs (2)
80laterals[i - 1] = laterals[i - 1] + nn.functional.interpolate(laterals[i], prevShape); 98outs[i] = outs[i].MoveToOuterDisposeScope();
Microsoft.ML.Transforms (1)
Expression\LambdaBinder.cs (1)
1382candidates[count++] = cand;
Microsoft.NET.StringTools (2)
SpanBasedStringBuilder.cs (2)
219_spans[spanIdx] = _spans[spanIdx].Slice(i); 244_spans[spanIdx] = _spans[spanIdx].Slice(0, i + 1);
PresentationCore (59)
MS\Internal\Ink\Bezier.cs (1)
74points[x] = p;
MS\Internal\Ink\CuspData.cs (5)
98_points[i] = cdp; 102_points[j] = cdp2; 115_points[i] = cdp; 125_points[i] = cdp; 132_points[i] = cdp;
MS\Internal\Ink\ErasingStroke.cs (4)
190eraseAt[i] = fragment; 229eraseAt[index - 1] = lastFragment; 235eraseAt[index - 1] = lastFragment; 300newPath[newPath.Count - 1] = path[i];
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (2)
1182_transformTable[tableIndex] = xform; 2573_metricTable[tmp] = metricBlock;
MS\Internal\Ink\Lasso.cs (2)
455strokeIntersections[strokeIntersections.Count - 1] = previousIntersection; 724points[i] = intersectionPoint;
MS\Internal\Ink\StrokeIntersection.cs (2)
201inFIndices[inFIndices.Count - 1] = sfiPrevious; 233hitFIndices[hitFIndices.Count - 1] = sfiPrevious;
MS\Internal\Ink\StrokeRenderer.cs (7)
145connectingQuadPoints[abIndex++] = quad.A; 146connectingQuadPoints[abIndex++] = quad.B; 163connectingQuadPoints[i] = connectingQuadPoints[j]; 174connectingQuadPoints[i] = connectingQuadPoints[j]; 175connectingQuadPoints[j] = temp; 806dcPoints[i] = dcPoints[j]; 807dcPoints[j] = temp;
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (1)
1110_others[index] = new Entry(key, value);
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (1)
459_targetBuffer[_targetBuffer.Count - 1] = buffer;
System\Windows\Ink\IncrementalHitTester.cs (1)
239_strokeInfos[x] = null;
System\Windows\Input\Command\CommandBindingCollection.cs (1)
150_innerCBList[index] = value;
System\Windows\Input\Command\InputBindingCollection.cs (1)
177_innerBindingList[index] = value;
System\Windows\Input\Command\InputGestureCollection.cs (1)
181_innerGestureList[index] = value;
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceInfo.cs (5)
220properties[StylusPointDescription.RequiredPressureIndex] = propInfo; 228properties[StylusPointDescription.RequiredXIndex] = propInfo; 229supportedProperties[StylusPointDescription.RequiredXIndex] = prop; 234properties[StylusPointDescription.RequiredYIndex] = propInfo; 235supportedProperties[StylusPointDescription.RequiredYIndex] = prop;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
1599storedStagingItems[stagingItemCount - 1] = stagingItem;
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (1)
475_keyFrames[index] = value;
System\Windows\Media\Animation\WeakRefEnumerator.cs (1)
142_list[_writeIndex] = currentRef;
System\Windows\Media\Effects\ShaderEffect.cs (2)
489list[position] = value; 549_samplerData[position] = newSampler;
PresentationFramework (68)
MS\Internal\Annotations\TextAnchor.cs (4)
318anchor._segments[currentIndex] = CreateNormalizedSegment(otherSegment.End, current.End); 331anchor._segments[currentIndex] = CreateNormalizedSegment(current.Start, otherSegment.Start); 420anchor._segments[current] = CreateNormalizedSegment(otherSegment.Start, currentSegment.End); 429anchor._segments[current] = CreateNormalizedSegment(currentSegment.Start, otherSegment.End);
MS\Internal\Documents\PageCache.cs (2)
799_cache[index] = newEntry; 832_cache[i] = newEntry;
MS\Internal\Documents\RowCache.cs (3)
474_rowCache[i] = currentRow; 1071_rowCache[index] = newRow; 1083_rowCache[i] = row;
MS\Internal\Documents\TextBoxView.cs (8)
1928_visualChildren[i] = _visualChildren[j]; 2382_lineMetrics[lineIndex] = new LineRecord(lineOffset, line); 2460_lineMetrics[lineIndex] = new LineRecord(lineOffset, line); 2493_lineMetrics[lineIndex] = new LineRecord(lineOffset, line); 2576_lineMetrics[lineIndex] = record; 2677_viewportLineVisuals[lineIndex - _viewportLineVisualsIndex + i] = oldLineVisuals[lineIndex - oldLineVisualsIndex + i]; 2723_viewportLineVisuals[lineIndex - _viewportLineVisualsIndex] = lineVisual; 2753_viewportLineVisuals[lineIndex - _viewportLineVisualsIndex] = null;
MS\Internal\Documents\UndoManager.cs (4)
448UndoStack[_topUndoIndex] = unit; 949_undoStack[i - count] = _undoStack[i]; 955_undoStack[i] = null; 1125UndoStack[_topUndoIndex--] = null;
MS\Internal\Helper.cs (1)
789itemValues[j] = keyValue;
MS\Internal\PtsHost\BreakRecordTable.cs (1)
297_breakRecords[pageNumber] = entry;
MS\Internal\PtsHost\TextParaClient.cs (3)
310rectangles[index] = rectTransform.FromTextDpi(); 2124rectangles[i] = r; 2234rectangles[i] = r;
MS\Internal\PtsHost\TextParagraph.cs (1)
1589objectsNew[idx] = oldEmbeddedObject;
System\Windows\Controls\CustomDictionarySources.cs (1)
128_uriList[index] = value;
System\Windows\Controls\DataGrid.cs (2)
7256GroupingSortDescriptionIndices[i]++; 7267GroupingSortDescriptionIndices[i]--;
System\Windows\Controls\DataGridColumnCollection.cs (2)
676DisplayIndexMap[i]++; 697DisplayIndexMap[i]--;
System\Windows\Controls\GridViewColumnCollection.cs (6)
252_actualIndices[targetIndex] = _actualIndices[targetIndex + 1]; 259_actualIndices[targetIndex] = _actualIndices[targetIndex - 1]; 263_actualIndices[newIndex] = actualIndex; 321_actualIndices[sourceIndex] = i - 1; 330_actualIndices[sourceIndex - 1] = i; 334_actualIndices[sourceIndex - 1] = i - 1;
System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
274DesiredWidthList[column.ActualIndex] = column.EnsureWidth(child.DesiredSize.Width); 834DesiredWidthList[column.ActualIndex] = column.DesiredWidth;
System\Windows\Controls\GridViewRowPresenter.cs (2)
167DesiredWidthList[column.ActualIndex] = column.DesiredWidth; 557DesiredWidthList[column.ActualIndex] = column.DesiredWidth;
System\Windows\Controls\PopupControlService.cs (6)
1395points[j + 1] = points[j]; 1399points[j + 1] = p; 1509points[i + delta] = points[i]; 1516points[i + delta] = points[i]; 1521points[minIndex + 1] = leftmost; 1525points[minIndex + 2] = rightmost;
System\Windows\Controls\Primitives\Selector.cs (1)
2818_list[j] = _list[i];
System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
468_generatedItemsCollection[pos.Index + i] = e;
System\Windows\Controls\TextBlock.cs (1)
3531_subsequentLines[index - 1] = metrics;
System\Windows\Controls\ToolBarTray.cs (4)
563band[toolBarIndex] = prevToolBar; 566band[toolBarIndex-1] = toolBar; 610band[toolBarIndex] = nextToolBar; 613band[toolBarIndex + 1] = toolBar;
System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
870_regions[i] = region;
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (1)
473hasErrorsCache[index] = hasErrorsCache[index-1];
System\Windows\Documents\WinRTSpellerInteropExtensions.cs (2)
94allTokens[allTokens.Count - 1] = new SpellerSegment(text, substToken.Value, spellChecker, owner); 131allTokens[allTokens.Count - 1] = new SpellerSegment(text, substToken.Value, spellChecker, owner);
System\Windows\Input\KeyboardNavigation.cs (1)
3556_list[destIndex++] = _list[i];
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (3)
220_bamlProperty[propertyId] = xamlMember; 266_bamlProperty[propertyId] = xamlMember; 551_bamlType[typeId] = xType;
System\Windows\Markup\Primitives\MarkupWriter.cs (1)
291_entries[existingIndex] = entry;
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (1)
474_keyFrames[index] = value;
System\Windows\Navigation\Journal.cs (1)
282_journalEntryList[_currentEntryIndex] = journalEntry;
System\Windows\TemplateContent.cs (1)
340sharedProperties[i] = sdp;
System\Windows\TriggerActionCollection.cs (1)
171_rawList[index] = value;
PresentationFramework.Aero (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
373_freezableCache[index] = freezable;
PresentationFramework.Aero2 (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
373_freezableCache[index] = freezable;
PresentationFramework.AeroLite (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
373_freezableCache[index] = freezable;
PresentationFramework.Classic (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
373_freezableCache[index] = freezable;
PresentationFramework.Luna (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
373_freezableCache[index] = freezable;
PresentationFramework.Royale (1)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
373_freezableCache[index] = freezable;
ReachFramework (5)
AlphaFlattener\Flattener.cs (3)
448_dl.Commands[i] = null; 594commands[i] = pj; 595commands[j] = pi;
AlphaFlattener\Optimizer.cs (1)
105commands[i] = null; // Command can be deleted after cluster is rendered
Serialization\VisualSerializer.cs (1)
1614filteredCharacters[i] = ' ';
System.Collections.Immutable (2)
System\Collections\Immutable\ImmutableSortedSet_1.cs (2)
1154list[index++] = list[i]; 1212list[index++] = list[i];
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Hosting\ImportEngine.RecompositionManager.cs (1)
134partsToUnindex[index] = null;
System.ComponentModel.TypeConverter (4)
System\ComponentModel\EventDescriptorCollection.cs (1)
330eventList[j] = null;
System\ComponentModel\MemberDescriptor.cs (1)
362list[savedIndex] = list[i];
System\ComponentModel\PropertyDescriptorCollection.cs (1)
348propList[j] = null;
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (1)
139attributes[next++] = attributes[idx];
System.Data.Common (4)
System\Data\Common\DataColumnMappingCollection.cs (1)
385_items[index] = newValue;
System\Data\Common\DataTableMappingCollection.cs (1)
321_items[index] = newValue;
System\Data\Selection.cs (2)
1090_listeners[index] = null; 1129_listeners[i] = null;
System.Data.Odbc (1)
System\Data\Odbc\OdbcParameterCollectionHelper.cs (1)
271items[index] = (OdbcParameter)newValue;
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\ActivityTagsCollection.cs (1)
88_list[index] = new KeyValuePair<string, object?>(key, value);
System.Diagnostics.TraceSource (2)
System\Diagnostics\TraceListeners.cs (2)
37_list[i] = value; 223_list[index] = listener;
System.Formats.Nrbf (3)
System\Formats\Nrbf\MemberTypeInfo.cs (3)
48info[i] = (type, reader.ReadPrimitiveType()); 51info[i] = (type, reader.ReadString().ParseSystemRecordTypeName(options)); 54info[i] = (type, ClassTypeInfo.Decode(reader, options, recordMap));
System.Linq.Expressions (2)
System\Linq\Expressions\Interpreter\InstructionList.cs (2)
411_instructions[instructionIndex] = newInstruction; 947_instructions[branchIndex] = ((OffsetInstruction)_instructions[branchIndex]).Fixup(offset);
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (1)
617list[freeIndex++] = list[current++];
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (1)
601list[freeIndex++] = list[current++];
System.Net.Security (1)
System\Net\Security\SslStreamCertificateContext.Linux.cs (1)
325_ocspUrls[i] = tmp;
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
182this[index] = (T)value!;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (2)
768traitMetaData[lenPos] = unchecked((byte)valueLen); // Fill in size 769traitMetaData[lenPos + 1] = unchecked((byte)(valueLen >> 8));
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (2)
154datePatternsList[i] = NormalizeDatePattern(datePatternsList[i]); 244shortDatePatterns[i] = s;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
4680continuationsLocalListRef[index] = null;
src\libraries\System.Private.CoreLib\src\System\Threading\TimerQueue.Portable.cs (1)
111timers[i] = timers[lastIndex];
src\System\GC.CoreCLR.cs (1)
627s_notifications[last++] = s_notifications[i];
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\DataContract.cs (1)
2402_nestedParamCounts[level] = _nestedParamCounts[level] + count;
System.Private.Xml (14)
System\Xml\Schema\ContentValidator.cs (7)
1929runningPositions[k] = rposInfo; 1938runningPositions[matchCount] = runningPositions[k]; 1939runningPositions[k] = lastrpos; 1992runningPositions[matchCount] = newRPosInfo; 1998runningPositions[matchCount] = newRPosInfo; 2005runningPositions[matchCount] = newRPosInfo; 2012runningPositions[j] = newRPosInfo;
System\Xml\Schema\XmlSchemaObjectTable.cs (2)
37_entries[matchedIndex] = new XmlSchemaObjectEntry(name, value); 54_entries[matchedIndex] = new XmlSchemaObjectEntry(name, value);
System\Xml\XPath\Internal\XPathParser.cs (2)
541argList[i] = arg; 580argList[i] = arg;
System\Xml\Xsl\XmlQueryTypeFactory.cs (1)
282accumulator[i] = itemType;
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (1)
1475content[split] = calltemplate;
System\Xml\Xsl\XsltOld\TemplateAction.cs (1)
154compiler.QueryStore[this.MatchKey] = new TheQuery(
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\Encoding\ControlFlowBuilder.cs (1)
144_labels[label.Id - 1] = ilOffset;
System.Text.Json (2)
System\Text\Json\Nodes\JsonArray.cs (1)
238List[index] = value;
System\Text\Json\Serialization\ConfigurationList.cs (1)
44_list[index] = value;
System.Text.RegularExpressions (15)
System\Text\RegularExpressions\Regex.Cache.cs (1)
255s_cacheList[minListIndex] = s_cacheList[^1];
System\Text\RegularExpressions\RegexCharClass.cs (2)
1712rangelist[j] = (rangelist[j].First, last); 1723rangelist[j] = rangelist[i];
System\Text\RegularExpressions\RegexNode.cs (4)
975children[j] = at; 1193children[j] = children[i]; 1556children[j] = at; 1780children[nextSave++] = children[next];
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
573results[i] = result;
System\Text\RegularExpressions\Symbolic\SparseIntMap.cs (1)
70_dense[index] = new KeyValuePair<int, T>(key, value);
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (1)
169nodes[i] = _nothing;
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (4)
557elems[i] = builder._nothing; 1394elems[i] = elems[i].StripEffects(builder); 1472alternativesAndEffects[i] = (builder.CreateConcat(node, _right), effects); 1510alternativesAndEffects[i] = (builder.CreateDisableBacktrackingSimulation(node), effects);
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
126ranges[i] = (lower, n);
System.Text.RegularExpressions.Generator (8)
RegexGenerator.Emitter.cs (1)
615lines[i] = $" {lines[i]}";
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (2)
1712rangelist[j] = (rangelist[j].First, last); 1723rangelist[j] = rangelist[i];
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (4)
975children[j] = at; 1193children[j] = children[i]; 1556children[j] = at; 1780children[nextSave++] = children[next];
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
573results[i] = result;
System.Threading.Tasks.Dataflow (10)
Blocks\BatchBlock.cs (6)
997reserved[i] = default(KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>); // in case of exception from ConsumeMessage 1005for (int prev = 0; prev < i; prev++) reserved[prev] = default(KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>); 1011reserved[i] = consumedSourceAndMessage; 1049reserved[i] = default(KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>); // in case of exception from ConsumeMessage 1056reserved[i] = consumedSourceAndMessage; 1095reserved[i] = default(KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>>);
Internal\QueuedMap.cs (4)
81_storage[newIndex] = new KeyValuePair<int, T>(TERMINATOR_INDEX, item); 100_storage[_tailIndex] = new KeyValuePair<int, T>(newIndex, _storage[_tailIndex].Value); 127_storage[_headIndex] = new KeyValuePair<int, T>(_freeIndex, default(T)!); 146_storage[index] = new KeyValuePair<int, T>(_storage[index].Key, item);
System.Windows.Forms (22)
System\Windows\Forms\AutoCompleteStringCollection.cs (1)
33_data[index] = value;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (1)
85_items[index] = dataGridViewCell;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (1)
166InnerArray[index] = value.OrThrowIfNull();
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (8)
141SharedList[index] = newDataGridViewRow; 2228_rowStates[index] = dataGridViewRow.State; 2304_rowStates[rowIndex] = _rowStates[rowIndex] | state; 2308_rowStates[rowIndex] = _rowStates[rowIndex] & ~state; 2414(_items[rowIndex1], _items[rowIndex2]) = (_items[rowIndex2], _items[rowIndex1]); 2415(_rowStates[rowIndex1], _rowStates[rowIndex2]) = (_rowStates[rowIndex2], _rowStates[rowIndex1]);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (1)
585_imageInfoCollection[index] = new ImageInfo();
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (1)
32_owner._links[index] = value;
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (2)
50List[index] = value; 95_list[index] = value;
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (1)
34Items[index] = value;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (1)
59_owner._subItems[index] = value.OrThrowIfNull();
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1653_tabPages[index] = value;
System\Windows\Forms\Layout\ArrangedElementCollection.cs (3)
65InnerList[fromIndex] = InnerList[toIndex]; 93InnerList[toIndex] = element; 115destinationList.InnerList[destinationIndex++] = sourceList.InnerList[sourceIndex++];
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
70_innerList[index] = tableLayoutStyle;
System.Windows.Forms.Design (8)
System\ComponentModel\Design\SelectionService.cs (1)
403(_selection[primaryIndex], _selection[0]) = (_selection[0], _selection[primaryIndex]);
System\ComponentModel\Design\Serialization\StatementContext.cs (3)
71_table[idx] = new TableEntry(statementOwner, statements); 102_table[idx] = new TableEntry(statementOwner, []); 224_table._table[_position] = new TableEntry(_table._table[_position].Owner, []);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
910currentLines[i] = mergedLine;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
648_dragControls[j] = (Control)tempList[j]; 694_dragControls[i] = originalControls[i];
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (1)
64_items[index] = value;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\NonNullCollection.cs (1)
27_list[index] = value ?? ThrowArgumentNull(nameof(value));
System.Windows.Forms.Primitives.TestUtilities (1)
DeviceContextState.cs (1)
111GdiObjects[index] = record;
System.Windows.Forms.Tests (1)
System\Windows\Forms\BindingSourceTests.cs (1)
767set => _innerList[index] = value;
System.Xaml (2)
System\Xaml\XamlObjectReader.cs (1)
3073_entries[existingIndex] = entry;
System\Xaml\XamlSchemaContext.cs (1)
1435this[index] = new WeakReference(value);
VBCSCompiler (1)
src\Compilers\Server\VBCSCompiler\BuildProtocolUtil.cs (1)
66commandLineArguments[argIndex] = arg.Value;
WinFormsControlsTest (1)
DataGridViewInVirtualModeTest.cs (1)
140_customers[e.RowIndex] = _customerInEdit;
4720 references to Item
Aspire.Dashboard (22)
Components\Controls\Chart\ChartBase.cs (4)
180currentTrace.Tooltips.Add(FormatTooltip(currentTrace.Name, currentTrace.Values[i].GetValueOrDefault(), xValues[i])); 421if (yValues[i] is not null) 423trace.Tooltips.Add(FormatTooltip(yLabel, yValues[i]!.Value, xValues[i]));
Components\Controls\Chart\MetricTable.razor.cs (5)
121var xValue = xValues[i]; 127var traceValuesByPercentile = traces.ToDictionary(trace => trace.Percentile!.Value, trace => trace.Values[iTmp]); 158var trace = traces[traceIndex]; 159percentiles.Add(trace.Percentile!.Value, (trace.Name, trace.Values[i], GetDirectionChange(valueDiffs[traceIndex]))); 173var yValue = trace.Values[i];
Components\Controls\Chart\PlotlyChart.razor.cs (2)
120var start = i > 0 ? xValues[i - 1] : (DateTimeOffset?)null; 121var end = i < xValues.Count ? xValues[i] : (DateTimeOffset?)null;
Components\Controls\StructuredLogDetails.razor.cs (2)
109if (predicate(source[i])) 111destination.Insert(insertStart, source[i]);
Configuration\ValidateDashboardOptions.cs (1)
81var allowedCertRule = options.Otlp.AllowedCertificates[i];
Model\KnownPropertyLookup.cs (1)
73var kp = knownProperties[i];
Otlp\Model\ColorGenerator.cs (1)
83return _colors[i].Hex;
Otlp\Model\DurationFormatter.cs (2)
62var step = s_unitSteps[i]; 67return (step, i < s_unitSteps.Count - 1 ? s_unitSteps[i + 1] : step);
Otlp\Model\OtlpHelpers.cs (2)
226var existingAttribute = values[existingIndex]; 248if (values[i].Key == name)
Otlp\Storage\TelemetryRepository.cs (1)
570if (span.Source.ApplicationKey == applications[i].ApplicationKey)
src\Shared\CircularBuffer.cs (1)
182return _buffer[InternalIndex(index)];
Aspire.Hosting (3)
ApplicationModel\ResourceCollection.cs (1)
15public IResource this[int index] { get => _resources[index]; set => _resources[index] = value; }
src\Shared\CircularBuffer.cs (1)
182return _buffer[InternalIndex(index)];
src\Shared\CustomResourceSnapshotExtensions.cs (1)
44var existingProperty = existingProperties[i];
Aspire.Hosting.Analyzers (2)
Infrastructure\BoundedCacheWithFactory.cs (2)
34var weakReferencedEntry = _weakReferencedEntries[i]; 62_weakReferencedEntries[indexToSetTarget].SetTarget(newEntry);
Aspire.Hosting.Azure (1)
src\Shared\CustomResourceSnapshotExtensions.cs (1)
44var existingProperty = existingProperties[i];
Aspire.Hosting.Azure.Functions (1)
AzureFunctionsProjectResourceExtensions.cs (1)
172int.TryParse(commandLineArgs[indexOfPort + 1], CultureInfo.InvariantCulture, out var parsedPort))
Aspire.Hosting.Dapr (1)
CommandLineBuilder.cs (1)
23var arg = args[i];
Aspire.Hosting.Nats.Tests (1)
NatsFunctionalTests.cs (1)
301var @event = events[i];
Aspire.Playground.Tests (2)
AppHostTests.cs (2)
61sb.AppendLine($"Timed out waiting for this text from resource {testEndpoints.WaitForTexts[i].ResourceName}: {testEndpoints.WaitForTexts[i].Pattern}");
CodeGenerator (4)
HttpUtilities\HttpUtilities.cs (4)
106var methodInfo = methodsInfo[index]; 130var maskBytesLength = distinctLengths[index]; 157var methodInfo = methodsInfo[index]; 182var methodInfo = methodsInfo[index];
ConfigurationSchemaGenerator (1)
ConfigSchemaEmitter.cs (1)
713result[i] = $"$.{exclusionPaths[i].Replace(':', '.')}";
CSharpSyntaxGenerator (8)
SignatureWriter.cs (4)
54var node = nodes[i]; 69var field = nd.Fields[i]; 90var field = nodeFields[i]; 96var field = valueFields[i];
SourceWriter.cs (4)
259var field = nodeFields[i]; 855var field = nodeFields[i]; 1575var nKind = nd.Kinds[k]; 1576var pKind = field.Kinds[k];
DesignSurface (8)
MainForm.cs (8)
44IDesignSurfaceExt isurf = _listOfDesignSurface[i]; 53IDesignSurfaceExt isurf = _listOfDesignSurface[i]; 66IDesignSurfaceExt isurf = _listOfDesignSurface[tabControl1.SelectedIndex]; 425IDesignSurfaceExt isurf = _listOfDesignSurface[tabControl1.SelectedIndex]; 448IDesignSurfaceExt isurf = _listOfDesignSurface[tabControl1.SelectedIndex]; 454IDesignSurfaceExt isurf = _listOfDesignSurface[tabControl1.SelectedIndex]; 466IDesignSurfaceExt isurf = _listOfDesignSurface[tabControl1.SelectedIndex]; 487IDesignSurfaceExt isurf = _listOfDesignSurface[tabControl1.SelectedIndex];
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\OutputModule.cs (1)
152if (String.Compare(fileName, s_existingFileNames[i], StringComparison.OrdinalIgnoreCase) == 0)
dotnet-svcutil-lib (177)
CmdCredentialsProvider.cs (1)
171var selectedCert = candidateCerts[idx - 1];
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEventCache.cs (2)
119page = _pages[idxPage]; 277page = _pages[idxPage];
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXmlWriter.cs (7)
380parent.InsertAfter(_fragment[i], _start); 391parent.InsertBefore(_fragment[i], _start); 397_start.PrependChild(_fragment[i]); 403_start.AppendChild(_fragment[i]); 431XmlAttribute attr = _fragment[i] as XmlAttribute; 442XmlAttribute attr = _fragment[i] as XmlAttribute; 471parent.InsertAfter(_fragment[i], fragment0);
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentXPathNavigator.cs (1)
1845XmlAttributeCollection attributes = elements[i].Attributes;
FrameworkFork\Microsoft.Xml\Xml\Dom\XPathNodeList.cs (1)
80return _list[index];
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (13)
1994rposInfo = runningPositions[k]; 2036rposInfo = runningPositions[k]; 2053RangePositionInfo lastrpos = runningPositions[matchCount]; 2054runningPositions[matchCount] = runningPositions[k]; 2080BitSet currentRunningPosition = runningPositions[k].curpos; 2094rposInfo = runningPositions[j]; 2100RangePositionInfo newRPosInfo = runningPositions[matchCount]; 2127newRPosInfo = runningPositions[j]; 2138currentRunningPosition = runningPositions[j].curpos; 2184Debug.Assert(runningPositions[i].curpos != null); 2185expectedPos.Or(runningPositions[i].curpos); 2229Debug.Assert(runningPositions[i].curpos != null); 2230expectedPos.Or(runningPositions[i].curpos);
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (1)
952ConversionRule rule = _rules[i];
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (1)
813schema.Items.Remove(removeItemsList[i]);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (1)
589schema.Items.Remove(removeItemsList[i]);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (8)
42Debug.Assert(_entries[matchedIndex].qname == name); 59Debug.Assert(_entries[matchedIndex].qname == name); 78Debug.Assert(_entries[matchedIndex].qname == name); 88if ((object)_entries[index].xso == (object)xso) 227array.SetValue(_entries[i].qname, arrayIndex++); 282array.SetValue(_entries[i].xso, arrayIndex++); 350currentValue = _entries[currentIndex].xso; 351currentKey = _entries[currentIndex].qname;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (6)
1168substitutionGroup.Members.Add(newMembers[i]); 1483if (reprocessList[i].BaseUri != null && reprocessList[i].BaseUri.OriginalString.Length != 0) 1485_schemaLocations.Remove(reprocessList[i].BaseUri); 1492if (cKey.chameleonLocation.Equals(reprocessList[i].BaseUri)) 1498if (cKey.originalSchema == null || Ref.ReferenceEquals(cKey.originalSchema, reprocessList[i]))
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (4)
663ilg.MarkLabel(caseLabels[i]); 664ilg.Ldc(retValues[i]); 713ilg.MarkLabel(caseLabels[i]); 714ilg.Ldc(retValues[i]);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheAxisQuery.cs (2)
46return outputBuffer[count++]; 60return outputBuffer[count - 1];
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\CacheOutputQuery.cs (2)
56return outputBuffer[count++]; 70return outputBuffer[count - 1];
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\ClonableStack.cs (2)
27T result = base[last]; 34return base[base.Count - 1];
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\followingsibling.cs (1)
46if (parent.IsSamePosition(_parentStk[i]))
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\precedingsibling.cs (1)
37if (nav1.IsSamePosition(parentStk[i]))
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\Query.cs (4)
121switch (CompareNodes(buffer[r - 1], nav)) 137switch (CompareNodes(buffer[m], nav)) 193cmp = CompareNodes(buffer[pos - 1], nav); 198cmp = CompareNodes(nav, buffer[pos]);
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\SortQuery.cs (2)
86return _results[count++].Node; 100return _results[count - 1].Node;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (22)
512childElementNamespaces[i + baseChildElementNamespaceCount] = GetChildNamespaceToDeclare(this, this.Members[i].MemberType, dictionary); 621if (this.Members[i].RequiresMemberAccessForSet()) 625if (this.Members[i].MemberInfo is FieldInfo) 631this.Members[i].MemberInfo.Name), 640this.Members[i].MemberInfo.Name), 709if (this.Members[i].RequiresMemberAccessForGet()) 713if (this.Members[i].MemberInfo is FieldInfo) 719this.Members[i].MemberInfo.Name), 728this.Members[i].MemberInfo.Name), 845MemberNames[i + baseMemberCount] = dictionary.Add(Members[i].Name); 866Members[i].Name = memberNames[i]; 867MemberNames[i] = dictionary.Add(Members[i].Name); 1133&& String.CompareOrdinal(membersInHierarchy[endIndex].member.Name, membersInHierarchy[endIndex + 1].member.Name) == 0 1134&& String.CompareOrdinal(membersInHierarchy[endIndex].ns, membersInHierarchy[endIndex + 1].ns) == 0) 1136membersInHierarchy[endIndex].member.ConflictingMember = membersInHierarchy[endIndex + 1].member; 1139if (membersInHierarchy[endIndex + 1].member.HasConflictingNameAndType) 1145hasConflictingType = (membersInHierarchy[endIndex].member.MemberType != membersInHierarchy[endIndex + 1].member.MemberType); 1155membersInHierarchy[j].member.HasConflictingNameAndType = true;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (3)
862DataMember dataMember = classDataContract.Members[i]; 1084string stringValue = enumDataContract.Members[i].Name; 1085long longValue = enumDataContract.Values[i];
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
269return (ArgBuilder)_argList[index];
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (4)
2454_nestedParamCounts[level] = _nestedParamCounts[level] + count; 2491return _paramGenericInfos[paramIndex].GetExpandedStableName().Name; 2498namespaces.Append(" ").Append(_paramGenericInfos[j].GetStableNamespace()); 2515parametersFromBuiltInNamespaces = DataContract.IsBuiltInNamespace(_paramGenericInfos[j].GetStableNamespace());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (2)
169DataMember dataMember = classDataContract.Members[i]; 465Type conflictingType = types[i];
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\EnumDataContract.cs (5)
204_childElementNames[i] = dictionary.Add(Members[i].Name); 338if (longValue == Values[i]) 350long current = Values[i]; 430string memberName = Members[i].Name; 433return Values[i];
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
190_memberNames[i] = dictionary.Add(Members[i].Name);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (1)
1010DataMember prevMember = dataContract.Members[prevMemberIndex];
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
307DataMember dataMember = classContract.Members[i]; 373requiredMembers[memberCount] = members[i].IsRequired;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatWriterGenerator.cs (3)
241DataMember member = classContract.Members[i]; 709if (name == members[j].Name) 710return CheckIfConflictingMembersHaveDifferentTypes(members[j]);
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KeyInfoSerializer.cs (10)
92SecurityTokenSerializer.SerializerEntries serializerEntry = _serializerEntries[i]; 152KeyIdentifierEntry keyIdentifierEntry = _keyIdentifierEntries[i]; 189KeyIdentifierEntry keyIdentifierEntry = _keyIdentifierEntries[i]; 202KeyIdentifierEntry keyIdentifierEntry = _keyIdentifierEntries[i]; 239KeyIdentifierClauseEntry keyIdentifierClauseEntry = _keyIdentifierClauseEntries[i]; 251KeyIdentifierClauseEntry keyIdentifierClauseEntry = _keyIdentifierClauseEntries[i]; 279KeyIdentifierClauseEntry keyIdentifierClauseEntry = _keyIdentifierClauseEntries[i]; 292KeyIdentifierClauseEntry keyIdentifierClauseEntry = _keyIdentifierClauseEntries[i]; 342TokenEntry tokenEntry = _tokenEntries[i]; 359TokenEntry tokenEntry = _tokenEntries[i];
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (2)
39get { return _clauses[index]; } 133TClause c = _clauses[i] as TClause;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (6)
112_endpointPools.Remove(endpointKeysToRemove[i]); 141result.CloseIdleConnection(itemsToClose[i], timeoutHelper.RemainingTime()); 342this.CloseItem(itemsToClose[i], timeoutHelper.RemainingTime()); 357this.AbortItem(idleItemsToClose[i]); 362this.AbortItem(_busyConnections[i]); 456CloseIdleConnection(itemsToClose[i], timeoutHelper.RemainingTime());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPoolRegistry.cs (4)
37if (registryEntry[i].IsCompatible(settings) && registryEntry[i].TryOpen()) 39result = registryEntry[i]; 71if (object.ReferenceEquals(registryEntry[i], pool))
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
239_parent.CloseIdleConnection(itemsToClose[i], timeoutHelper.RemainingTime());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelFactory.cs (3)
236channel = (_channelsList.Count > 0) ? _channelsList[_channelsList.Count - 1] : null; 246channel = (_channelsList.Count > 0) ? _channelsList[_channelsList.Count - 1] : null; 276objectList.Add(_channelsList[index]);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (3)
717Type inheritedContractType = types[i]; 769Type inheritedContractType = types[i]; 1356MemberInfo memberInfo = contractMembers[i];
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
652XmlMembersMapping mapping = _mappings[srcIndex];
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
678EndpointDispatcher item = this.Items[index];
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
83Attr a = attrSet[i];
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SynchronizedChannelCollection.cs (3)
53this.RemovingChannel(items[i]); 67TChannel oldItem = this.Items[index]; 75TChannel oldItem = this.Items[index];
FrameworkFork\System.ServiceModel\System\ServiceModel\ExtensionCollection.cs (3)
62IExtension<T> item = items[i]; 80IExtension<T> item = items[i]; 105this.Items[index].Detach(_owner);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\MessagePartSpecification.cs (4)
110XmlQualifiedName qname = headerTypes[i]; 126XmlQualifiedName qname = _headerTypes[i]; 132XmlQualifiedName qname1 = noDuplicates[j]; 200XmlQualifiedName qname = _headerTypes[i];
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ReferenceList.cs (2)
67return _referredIds[index]; 108DataReference.WriteTo(writer, _referredIds[i]);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (1)
583IIdentity identity = identities[i];
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (4)
3099if (_drivers[i].CanImportAssertion(assertions)) 3101securityPolicy = _drivers[i]; 3113if (_drivers[i].IsSecurityVersionSupported(version)) 3115return _drivers[i];
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (14)
149SerializerEntries serializerEntry = _serializerEntries[i]; 214TokenEntry tokenEntry = _tokenEntries[i]; 226TokenEntry tokenEntry = _tokenEntries[i]; 251TokenEntry tokenEntry = _tokenEntries[i]; 365TokenEntry tokenEntry = _tokenEntries[i]; 382TokenEntry tokenEntry = _tokenEntries[i]; 419TokenEntry tokenEntry = _tokenEntries[i]; 548if (_dictionaryStrings[i].Value.Equals(value)) 550result = _dictionaryStrings[i]; 562if (_dictionaryStrings[i].Key == key) 564result = _dictionaryStrings[i]; 579if ((_dictionaryStrings[i].Key == value.Key) && 580(_dictionaryStrings[i].Value.Equals(value.Value))) 582result = _dictionaryStrings[i];
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (2)
77return _items[index]; 160if (object.Equals(_items[i], item))
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (5)
75T item = this.Items[i]; 149T item = Items[i]; 214if (_comparer.Equals(key, GetKeyForItem(Items[i]))) 227K key = this.GetKeyForItem(this.Items[index]); 251K oldKey = this.GetKeyForItem(this.Items[index]);
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlBuffer.cs (1)
134Section section = _sections[sectionIndex];
Metadata\MetadataDocumentSaver.cs (1)
129var unresolvedRef = UnresolvedReferences[idx];
Shared\Options\ListValue.cs (1)
83get { return this.InnerList[index]; }
dotnet-svcutil-lib.Tests (4)
TestInit.cs (4)
498if (fileLines1[i] != fileLines2[i]) 500diffLines = new KeyValuePair<string, string>(fileLines1[i], fileLines2[i]);
dotnet-user-jwts (18)
Helpers\ConsoleTable.cs (18)
52.Concat(new[] { _columns[i] }) 69if (maxColumnLengths[i] < equalColumnLengths) 71excessLength += equalColumnLengths - maxColumnLengths[i]; 83if (maxColumnLengths[i] == equalColumnLengths) 90.Select(i => " | {" + i + ", " + maxColumnLengths[i] + "}") 107while (!rows[i].All(i => i == string.Empty)) 111for (var j = 0; j < rows[i].Length; j++) 115if (rows[i][j].Length <= columnLengths[j]) 117outputRow = string.Concat(outputRow, rows[i][j], new string(' ', columnLengths[j] - rows[i][j].Length)); 118rows[i][j] = string.Empty; 122outputRow = string.Concat(outputRow, rows[i][j].Substring(0, columnLengths[j])); 123rows[i][j] = rows[i][j].Substring(columnLengths[j]);
HtmlGenerationWebSite (1)
Controllers\HtmlGeneration_HomeController.cs (1)
55_order.ProductDetails.Add(_products[i]);
IIS.LongTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
251await connectionList[i].Send("a", ""); 252await connectionList[i].Receive("", "4", "done"); 253connectionList[i].Dispose();
IIS.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
IIS.NewHandler.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
251await connectionList[i].Send("a", ""); 252await connectionList[i].Receive("", "4", "done"); 253connectionList[i].Dispose();
IIS.NewShim.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
251await connectionList[i].Send("a", ""); 252await connectionList[i].Receive("", "4", "done"); 253connectionList[i].Dispose();
IISExpress.FunctionalTests (3)
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (3)
251await connectionList[i].Send("a", ""); 252await connectionList[i].Receive("", "4", "done"); 253connectionList[i].Dispose();
illink (20)
InMemory.FunctionalTests (23)
EventSourceTests.cs (20)
82var connectionStart = events[eventIndex++]; 90var firstRequestStart = events[eventIndex++]; 99var firstRequestStop = events[eventIndex++]; 108var secondRequestStart = events[eventIndex++]; 117var secondRequestStop = events[eventIndex++]; 126var connectionStop = events[eventIndex++]; 207var connectionStart = events[eventIndex++]; 215var tlsHandshakeStart = events[eventIndex++]; 223var tlsHandshakeStop = events[eventIndex++]; 234var requestStart = events[eventIndex++]; 243var requestStop = events[eventIndex++]; 253var connectionStop = events[eventIndex++]; 311var connectionStart = events[eventIndex++]; 319var tlsHandshakeStart = events[eventIndex++]; 327var tlsHandshakeFailed = events[eventIndex++]; 335var tlsHandshakeStop = events[eventIndex++]; 343var connectionStop = events[eventIndex++]; 392var connectionStart = events[eventIndex++]; 400var connectionRejected = events[eventIndex++]; 408var connectionStop = events[eventIndex++];
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (3)
78var kv = MaybeExtra[i]; 97if (MaybeExtra[i].Key == key) 112if (MaybeExtra[i].Key == key)
IOperationGenerator (3)
IOperationClassWriter.cs (3)
744var prop = orderedProperties[i]; 799var prop = orderedProperties[slot]; 875var prop = orderedProperties[slot];
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
185matchParams = invocationArgList[i].Equals(methodSymbol.Parameters[i].Type, SymbolEqualityComparer.Default);
Microsoft.Analyzers.Extra.Tests (4)
Resources\RoslynTestUtils.cs (4)
306proj = proj.WithDocument(l[count++], s); 379var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 421proj = proj.WithDocument(l[count++], s); 470var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false);
Microsoft.Analyzers.Local (1)
ApiLifecycle\Json\JsonArray.cs (1)
52? _items[index]
Microsoft.Analyzers.Local.Tests (5)
InternalReferencedInPublicDocAnalyzerTests.cs (1)
468var location = detected[i].Location;
Resources\RoslynTestUtils.cs (4)
307proj = proj.WithDocument(l[count++], s); 380var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false); 422proj = proj.WithDocument(l[count++], s); 471var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false);
Microsoft.AspNetCore.Analyzer.Testing (1)
CodeFixRunner.cs (1)
34var updatedSolution = await ApplyFixAsync(actions[codeFixIndex]);
Microsoft.AspNetCore.Analyzers (1)
CompilationFeatureDetector.cs (1)
33var configureMethod = configureMethods[i];
Microsoft.AspNetCore.Antiforgery (6)
Internal\DefaultAntiforgeryTokenGenerator.cs (2)
207if (identitiesList[i].IsAuthenticated) 209return identitiesList[i];
Internal\DefaultClaimUidExtractor.cs (4)
49var identity = identitiesList[i]; 96if (identitiesList[i].IsAuthenticated) 98allClaims.AddRange(identitiesList[i].Claims); 113var claim = allClaims[i];
Microsoft.AspNetCore.App.Analyzers (6)
Infrastructure\AmbiguousRoutePatternComparer.cs (2)
113var xPolicy = xParameterPolicies[i]; 114var yPolicy = yParameterPolicies[i];
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (2)
318var (ch, span) = charResults[i]; 331var (nextCh, nextSpan) = charResults[i + 1];
src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (2)
37var weakReferencedEntry = _weakReferencedEntries[i]; 65_weakReferencedEntries[indexToSetTarget].SetTarget(newEntry);
Microsoft.AspNetCore.Authentication.Cookies (1)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
111totalSize += chunks[i].Length;
Microsoft.AspNetCore.Components (12)
Infrastructure\ComponentStatePersistenceManager.cs (2)
99var registration = _registeredCallbacks[i]; 134var registration = _registeredCallbacks[i];
Reflection\MemberAssignment.cs (1)
61yield return list[i];
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (1)
506if (string.Equals(kvp.Key, parameters[i].Name, StringComparison.OrdinalIgnoreCase))
src\Http\Routing\src\Patterns\RoutePatternParser.cs (8)
321var segment = segments[i]; 343var part = parts[i]; 355var part = parts[i]; 362var previousPart = parts[i - 1]; 373parts[i - 1].DebuggerToString()); 386parts[i - 1].DebuggerToString()); 402parts[i + 1].DebuggerToString()); 413var part = parts[i];
Microsoft.AspNetCore.Components.Endpoints (4)
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (4)
193assignments.Add(Expression.Assign(Expression.Property(resultParam, props[i].Property), GetValueLocalVariableValueExpression(propsLocals[i]))); 210yield return Expression.Assign(Expression.Property(resultParam, props[i].Property), GetValueLocalVariableValueExpression(propsLocals[i])); 234var parameter = constructorParameters[i]; 259var property = properties[i];
Microsoft.AspNetCore.Components.Performance (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.Components.Server (6)
src\SignalR\common\Shared\MemoryBufferWriter.cs (6)
87_completedSegments[i].Return(); 131destination.Write(_completedSegments[i].Span); 199var segment = _completedSegments[i]; 235var segment = _completedSegments[i]; 264var segment = _completedSegments[i]; 377Segments[i].Return();
Microsoft.AspNetCore.Components.Tests (1)
RendererTest.cs (1)
209var update = renderer.Batches[i];
Microsoft.AspNetCore.Components.Web (1)
Forms\Mapping\FormMappingContext.cs (1)
136var (errorKey, error) = _pendingErrors[i];
Microsoft.AspNetCore.Components.WebAssembly (2)
Hosting\WebAssemblyHostConfiguration.cs (1)
52var provider = _providers[i];
Services\LazyAssemblyLoader.cs (1)
88var assemblyName = Path.GetFileNameWithoutExtension(newAssembliesToLoad[i]);
Microsoft.AspNetCore.Components.WebView (1)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
209var pattern = patterns[i];
Microsoft.AspNetCore.Components.WebView.Test (5)
Infrastructure\ContainerNode.cs (1)
12var childToRemove = Children[childIndex];
Infrastructure\TestDocument.cs (4)
98var node = parent.Children[childIndexAtCurrentDepth + siblingIndex]; 115var node = parent.Children[childIndexAtCurrentDepth + siblingIndex]; 138var node = parent.Children[childIndexAtCurrentDepth + siblingIndex]; 162parent = (ContainerNode)parent.Children[childIndexAtCurrentDepth + siblingIndex];
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.CookiePolicy.Test (1)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
111totalSize += chunks[i].Length;
Microsoft.AspNetCore.DataProtection (1)
RegistryPolicyResolver.cs (1)
108keyEscrowSinks[i] = _activator.CreateInstance<IKeyEscrowSink>(escrowSinks[i]);
Microsoft.AspNetCore.DataProtection.Tests (1)
KeyManagement\KeyRingProviderTests.cs (1)
486expectedCallSequence.Add(expectedCallSequence[i]);
Microsoft.AspNetCore.Diagnostics (1)
src\Shared\Metrics\MetricsExtensions.cs (1)
41if (list[i].Key == name)
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
Internal\JsonTranscodingRouteAdapter.cs (3)
95var segment = tempSegments[i]; 149values[i] = context.Request.RouteValues[variableParts[i]]; 170var segmentType = GetSegmentType(tempSegments[i]);
src\Grpc\JsonTranscoding\src\Shared\Server\InterceptorPipelineBuilder.cs (1)
142resolvedInvoker = wrapInvoker(_interceptors[i], resolvedInvoker);
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
229var field = pathDescriptors[i];
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.Grpc.Swagger (2)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (1)
190sb.Append(httpRoutePattern.Segments[i]);
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
229var field = pathDescriptors[i];
Microsoft.AspNetCore.Hosting (3)
Internal\HostingMetrics.cs (1)
79tags.Add(customTags[i]);
src\Shared\Metrics\MetricsExtensions.cs (1)
41if (list[i].Key == name)
src\Shared\StaticWebAssets\ManifestStaticWebAssetFileProvider.cs (1)
209var pattern = patterns[i];
Microsoft.AspNetCore.Http (1)
Builder\ApplicationBuilder.cs (1)
197app = _components[c](app);
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
HttpMethodslTests.cs (1)
28var testCase = testCases[i];
Microsoft.AspNetCore.Http.Connections (6)
src\SignalR\common\Shared\MemoryBufferWriter.cs (6)
87_completedSegments[i].Return(); 131destination.Write(_completedSegments[i].Span); 199var segment = _completedSegments[i]; 235var segment = _completedSegments[i]; 264var segment = _completedSegments[i]; 377Segments[i].Return();
Microsoft.AspNetCore.Http.Extensions (4)
src\Components\Endpoints\src\FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (4)
193assignments.Add(Expression.Assign(Expression.Property(resultParam, props[i].Property), GetValueLocalVariableValueExpression(propsLocals[i]))); 210yield return Expression.Assign(Expression.Property(resultParam, props[i].Property), GetValueLocalVariableValueExpression(propsLocals[i])); 234var parameter = constructorParameters[i]; 259var property = properties[i];
Microsoft.AspNetCore.Http.Microbenchmarks (15)
AdaptiveCapacityDictionaryBenchmark.cs (14)
100var val = _tenValues[i]; 111var val = _tenValues[i]; 122var val = _tenValues[i]; 133var val = _tenValues[i]; 144var val = _tenValues[i]; 155var val = _tenValues[i]; 166var val = _tenValues[i]; 177var val = _tenValues[i]; 188var val = _tenValues[i]; 198var val = _tenValues[i]; 208var val = _tenValues[i]; 218var val = _tenValues[i]; 228var val = _tenValues[i]; 239var val = _tenValues[i];
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
src\Shared\RoslynUtils\BoundedCacheWithFactory.cs (2)
37var weakReferencedEntry = _weakReferencedEntries[i]; 65_weakReferencedEntries[indexToSetTarget].SetTarget(newEntry);
Microsoft.AspNetCore.HttpLogging (7)
HttpLog.cs (4)
23public KeyValuePair<string, object?> this[int index] => _keyValues[index]; 32yield return _keyValues[i]; 49var kvp = _keyValues[i]; 58var kvp = _keyValues[count - 1];
MediaTypeHelpers.cs (2)
52SupportedEncodings[i].WebName, 55encoding = SupportedEncodings[i];
W3CLoggingMiddleware.cs (1)
184if (request.Headers.TryGetValue(additionalRequestHeaders[i], out var headerValue))
Microsoft.AspNetCore.Mvc.Abstractions (5)
ModelBinding\ModelStateDictionary.cs (5)
650var entryState = GetValidity(node.ChildNodes[i], currentDepth); 887modelStateNode = ChildNodes[index]; 913modelStateNode = ChildNodes[index]; 937var midKey = ChildNodes[mid].SubKey; 1083var currentChild = node.ChildNodes[_index];
Microsoft.AspNetCore.Mvc.Core (26)
ActionConstraints\ActionConstraintCache.cs (4)
72var item = items[i]; 105var item = entry.Items[i]; 141if (items[i].Constraint != null) 156var actionConstraint = items[i].Constraint;
ApplicationModels\ActionAttributeRouteModel.cs (1)
82var controllerSelector = controllerSelectors[i];
ApplicationModels\ApplicationModelFactory.cs (3)
236var other = actions[i].selector.AttributeRouteModel!.Template; 265if (actions[i].selector.AttributeRouteModel == null) 300var (action, selector) = actions[i];
Filters\FilterFactory.cs (3)
29staticFilterItems[i] = new FilterItem(orderedFilters[i]); 113if (filterItems[i].Filter != null) 129var filter = filterItems[i].Filter;
Infrastructure\DefaultOutputFormatterSelector.cs (1)
155var mediaType = new MediaType(result[i].MediaType);
ModelBinding\Validation\ClientValidatorCache.cs (4)
54var item = items[i]; 88var item = entry.Items[i]; 116if (items[i].Validator != null) 131var validator = items[i].Validator;
ModelBinding\Validation\ValidationStack.cs (2)
56Debug.Assert(ReferenceEquals(List[List.Count - 1], model)); 66if (ReferenceEquals(model, List[i]))
ModelBinding\Validation\ValidationVisitor.cs (1)
232var result = results[i];
ModelBinding\Validation\ValidatorCache.cs (4)
44var item = items[i]; 78var item = entry.Items[i]; 105if (items[i].Validator != null) 121var validator = items[i].Validator;
Routing\ControllerActionEndpointDataSource.cs (1)
118var route = _routes[i];
Routing\ViewEnginePath.cs (1)
109var segment = pathSegments[i];
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
111totalSize += chunks[i].Length;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
TestInfrastructure\DirectoryNode.cs (1)
153var currentDirectory = parentDirectory.Directories[i];
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\DefaultPageHandlerMethodSelector.cs (2)
28var handler = handlers[i]; 120var handler = candidates[i];
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
159var metadata = loadedEndpoints[j].Metadata;
Microsoft.AspNetCore.Mvc.TagHelpers (1)
CacheTagHelper.cs (1)
263var page = Buffer.Pages[i];
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
AttributeDictionary.cs (1)
77return _items[index];
Buffers\MemoryPoolViewBufferScope.cs (2)
51segment = _available[_available.Count - 1]; 107_viewBufferPool.Return(_leased[i], clearArray: true);
Buffers\PagedBufferedTextWriter.cs (1)
56var page = pages[i];
Buffers\PagedCharBuffer.cs (3)
32length += pages[i].Length; 107var page = pages[i]; 157BufferSource.Return(pages[i]);
Buffers\ViewBuffer.cs (1)
72return _multiplePages[index];
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (31)
ExpressionHelperTest.cs (3)
88(Expression<Func<IList<TestModel>, Category>>)(model => myModels[i].SelectedCategory), 212(Expression<Func<IList<TestModel>, Category>>)(model => myModels[i].SelectedCategory), 448(Expression<Func<List<TestModel>, int>>)(m => collection[i].SelectedCategory.CategoryId),
Rendering\HtmlHelperNameExtensionsTest.cs (28)
272{ m => collection[index1], "collection[5]", "collection_5_" }, 273{ m => nestedCollection[index1][23], "nestedCollection[5][23]", "nestedCollection_5__23_" }, 274{ m => nestedCollection[index1][index2], "nestedCollection[5][23]", "nestedCollection_5__23_" }, 275{ m => nestedCollection[_index][Index], "nestedCollection[7][9]", "nestedCollection_7__9_" }, 276{ m => nestedCollection[Index][StaticIndex], "nestedCollection[9][8]", "nestedCollection_9__8_" }, 278{ m => _collection[_index], "_collection[7]", "zcollection_7_" }, 279{ m => _nestedCollection[_index][23], "_nestedCollection[7][23]", "znestedCollection_7__23_" }, 280{ m => _nestedCollection[_index][index2], "_nestedCollection[7][23]", "znestedCollection_7__23_" }, 281{ m => _nestedCollection[Index][_staticIndex], "_nestedCollection[9][6]", "znestedCollection_9__6_" }, 282{ m => _nestedCollection[StaticIndex][_index], "_nestedCollection[8][7]", "znestedCollection_8__7_" }, 284{ m => Collection[Index], "Collection[9]", "Collection_9_" }, 285{ m => NestedCollection[Index][23], "NestedCollection[9][23]", "NestedCollection_9__23_" }, 286{ m => NestedCollection[Index][index2], "NestedCollection[9][23]", "NestedCollection_9__23_" }, 287{ m => NestedCollection[_index][Index], "NestedCollection[7][9]", "NestedCollection_7__9_" }, 288{ m => NestedCollection[Index][StaticIndex], "NestedCollection[9][8]", "NestedCollection_9__8_" }, 289{ m => _staticCollection[_staticIndex], "_staticCollection[6]", "zstaticCollection_6_" }, 290{ m => _staticCollection[Index], "_staticCollection[9]", "zstaticCollection_9_" }, 291{ m => _staticCollection[_index], "_staticCollection[7]", "zstaticCollection_7_" }, 292{ m => StaticCollection[StaticIndex], "StaticCollection[8]", "StaticCollection_8_" }, 293{ m => StaticCollection[_staticIndex], "StaticCollection[6]", "StaticCollection_6_" }, 294{ m => StaticCollection[index1], "StaticCollection[5]", "StaticCollection_5_" }, 295{ m => m[index1].Inner.Name, "[5].Inner.Name", "z5__Inner_Name" }, 296{ m => m[_staticIndex].Inner.Name, "[6].Inner.Name", "z6__Inner_Name" }, 297{ m => m[_index].Inner.Name, "[7].Inner.Name", "z7__Inner_Name" }, 298{ m => m[StaticIndex].Inner.Name, "[8].Inner.Name", "z8__Inner_Name" }, 299{ m => m[Index].Inner.Name, "[9].Inner.Name", "z9__Inner_Name" }, 335ExceptionAssert.Throws<InvalidOperationException>(() => helper.IdFor(m => collection[m]), message); 336ExceptionAssert.Throws<InvalidOperationException>(() => helper.NameFor(m => collection[m]), message);
Microsoft.AspNetCore.OpenApi (6)
src\SignalR\common\Shared\MemoryBufferWriter.cs (6)
87_completedSegments[i].Return(); 131destination.Write(_completedSegments[i].Span); 199var segment = _completedSegments[i]; 235var segment = _completedSegments[i]; 264var segment = _completedSegments[i]; 377Segments[i].Return();
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.OutputCaching.Tests (2)
TestUtils.cs (2)
264Assert.Equal(expectedMessages[i].EventId, messageList[i].EventId); 265Assert.Equal(expectedMessages[i].LogLevel, messageList[i].LogLevel);
Microsoft.AspNetCore.Razor (4)
TagHelpers\DefaultTagHelperContent.cs (4)
67if (!IsEmptyOrWhiteSpaceCore(Buffer[i], writer)) 113CopyToCore(Buffer[i], destination); 136MoveToCore(Buffer[i], destination); 197WriteToCore(Buffer[i], writer, encoder);
Microsoft.AspNetCore.Razor.Runtime (3)
Runtime\TagHelpers\TagHelperRunner.cs (1)
57await tagHelpers[i].ProcessAsync(tagHelperContext, tagHelperOutput);
Runtime\TagHelpers\TagHelperScopeManager.cs (2)
117public TagHelperExecutionContext Current => _nextIndex > 0 ? _executionContexts[_nextIndex - 1] : null; 143tagHelperExecutionContext = _executionContexts[_nextIndex];
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.ResponseCaching.Tests (2)
TestUtils.cs (2)
250Assert.Equal(expectedMessages[i].EventId, messageList[i].EventId); 251Assert.Equal(expectedMessages[i].LogLevel, messageList[i].LogLevel);
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.Rewrite (2)
BackReferenceCollection.cs (1)
34return _backReferences[index];
IISUrlRewrite\ConditionCollection.cs (1)
34return _conditions[index];
Microsoft.AspNetCore.Routing (31)
DefaultLinkGenerator.cs (2)
210var endpoint = endpoints[i]; 246var endpoint = endpoints[i];
DefaultLinkParser.cs (2)
58var endpoint = endpoints[i]; 134var constraint = kvp.Value[i];
Matching\DfaMatcherBuilder.cs (6)
81var endpoint = _endpoints[i]; 200var (endpoint, _, parents) = _work[i]; 206var parent = parents[j]; 215nextParents = nextWork[nextWorkCount].Parents; 259var parent = parents[i]; 910var parent = work[j];
Matching\NegotiationMatcherPolicy.cs (1)
301result[i] = GetMetadataQuality(values[i]) ?? 0;
Patterns\DefaultRoutePatternTransformer.cs (2)
222var segment = segments[i]; 236if (ReferenceEquals(parameter, parameters[k]))
Patterns\RoutePatternFactory.cs (1)
506if (string.Equals(kvp.Key, parameters[i].Name, StringComparison.OrdinalIgnoreCase))
Patterns\RoutePatternParser.cs (8)
321var segment = segments[i]; 343var part = parts[i]; 355var part = parts[i]; 362var previousPart = parts[i - 1]; 373parts[i - 1].DebuggerToString()); 386parts[i - 1].DebuggerToString()); 402parts[i + 1].DebuggerToString()); 413var part = parts[i];
RouteCollection.cs (2)
32get { return _routes[index]; } 131var route = routes[i];
RouteEndpointDataSource.cs (2)
94endpoints[i] = (RouteEndpoint)CreateRouteEndpointBuilder(_routeEntries[i]).Build(); 105endpoints[i] = (RouteEndpoint)CreateRouteEndpointBuilder(_routeEntries[i], context.Prefix, context.Conventions, context.FinallyConventions).Build();
Template\RouteTemplate.cs (2)
44var part = segment.Parts[j]; 73var part = segment.Parts[j];
Tree\LinkGenerationDecisionTree.cs (1)
166results.Add(new OutboundMatchResult(_conventionalEntries[i], isFallbackMatch: false));
UriBuildingContext.cs (2)
90var bufferValue = buffer[i].Value; 96if (buffer[i].RequiresEncoding)
Microsoft.AspNetCore.Routing.Abstractions (1)
RouteData.cs (1)
151routers.Add(_routers[i]);
Microsoft.AspNetCore.Routing.Microbenchmarks (3)
src\Http\Routing\test\UnitTests\Matching\BarebonesMatcherBuilder.cs (2)
23var endpoint = _endpoints[i]; 27matchers[i] = new InnerMatcher(pathSegments, _endpoints[i]);
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.Routing.Tests (4)
Matching\BarebonesMatcherBuilder.cs (2)
23var endpoint = _endpoints[i]; 27matchers[i] = new InnerMatcher(pathSegments, _endpoints[i]);
Template\TemplateParserTests.cs (2)
842if (!Equals(x.Segments[i].Parts[j], y.Segments[i].Parts[j]))
Microsoft.AspNetCore.Security.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\RequestContext.FeatureCollection.cs (2)
646var actionPair = actions[i]; 737var actionPair = actions[i];
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.Server.IIS (3)
Core\IISHttpContext.FeatureCollection.cs (3)
64var kv = MaybeExtra[i]; 83if (MaybeExtra[i].Key == key) 98if (MaybeExtra[i].Key == key)
Microsoft.AspNetCore.Server.Kestrel.Core (12)
Internal\Http\HttpProtocol.Generated.cs (3)
139var kv = MaybeExtra[i]; 158if (MaybeExtra[i].Key == key) 173if (MaybeExtra[i].Key == key)
Internal\Infrastructure\KestrelEventSource.cs (2)
268var weakReference = _options[i]; 365var weakReference = _options[i];
Internal\Infrastructure\KestrelMetrics.cs (1)
128tags.Add(customTags[i]);
Internal\Infrastructure\TransportManager.cs (3)
130tasks[i] = transportsToStop[i].UnbindAsync(cancellationToken); 150tasks[i] = StopTransportConnection(transportsToStop[i]); 157tasks[i] = transportsToStop[i].DisposeAsync().AsTask();
ListenOptions.cs (2)
199var component = _middleware[i]; 215var component = _multiplexedMiddleware[i];
src\Shared\Metrics\MetricsExtensions.cs (1)
41if (list[i].Key == name)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
src\Shared\test\Shared.Tests\runtime\Http2\DynamicTableTest.cs (2)
177Assert.True(headers[i].Name.AsSpan().SequenceEqual(dynamicTable[i].Name)); 178Assert.True(headers[i].Value.AsSpan().SequenceEqual(dynamicTable[i].Value));
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (4)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (3)
78var kv = MaybeExtra[i]; 97if (MaybeExtra[i].Key == key) 112if (MaybeExtra[i].Key == key)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (3)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (3)
78var kv = MaybeExtra[i]; 97if (MaybeExtra[i].Key == key) 112if (MaybeExtra[i].Key == key)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (6)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (3)
78var kv = MaybeExtra[i]; 97if (MaybeExtra[i].Key == key) 112if (MaybeExtra[i].Key == key)
src\Servers\Kestrel\shared\TransportMultiplexedConnection.Generated.cs (3)
65var kv = MaybeExtra[i]; 84if (MaybeExtra[i].Key == key) 99if (MaybeExtra[i].Key == key)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (3)
src\Servers\Kestrel\shared\TransportConnection.Generated.cs (3)
78var kv = MaybeExtra[i]; 97if (MaybeExtra[i].Key == key) 112if (MaybeExtra[i].Key == key)
Microsoft.AspNetCore.Shared.Tests (4)
runtime\Http2\DynamicTableTest.cs (2)
177Assert.True(headers[i].Name.AsSpan().SequenceEqual(dynamicTable[i].Name)); 178Assert.True(headers[i].Value.AsSpan().SequenceEqual(dynamicTable[i].Value));
SegmentWriteStreamTests.cs (2)
66var segment = segments[i / segmentSize]; 99var segment = segments[i / segmentSize];
Microsoft.AspNetCore.SignalR.Client.Tests (6)
src\SignalR\common\Shared\MemoryBufferWriter.cs (6)
87_completedSegments[i].Return(); 131destination.Write(_completedSegments[i].Span); 199var segment = _completedSegments[i]; 235var segment = _completedSegments[i]; 264var segment = _completedSegments[i]; 377Segments[i].Return();
Microsoft.AspNetCore.SignalR.Common (6)
src\SignalR\common\Shared\MemoryBufferWriter.cs (6)
87_completedSegments[i].Return(); 131destination.Write(_completedSegments[i].Span); 199var segment = _completedSegments[i]; 235var segment = _completedSegments[i]; 264var segment = _completedSegments[i]; 377Segments[i].Return();
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (6)
src\SignalR\common\Shared\MemoryBufferWriter.cs (6)
87_completedSegments[i].Return(); 131destination.Write(_completedSegments[i].Span); 199var segment = _completedSegments[i]; 235var segment = _completedSegments[i]; 264var segment = _completedSegments[i]; 377Segments[i].Return();
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (6)
src\SignalR\common\Shared\MemoryBufferWriter.cs (6)
87_completedSegments[i].Return(); 131destination.Write(_completedSegments[i].Span); 199var segment = _completedSegments[i]; 235var segment = _completedSegments[i]; 264var segment = _completedSegments[i]; 377Segments[i].Return();
Microsoft.AspNetCore.SignalR.Specification.Tests (6)
src\SignalR\common\Shared\MemoryBufferWriter.cs (6)
87_completedSegments[i].Return(); 131destination.Write(_completedSegments[i].Span); 199var segment = _completedSegments[i]; 235var segment = _completedSegments[i]; 264var segment = _completedSegments[i]; 377Segments[i].Return();
Microsoft.AspNetCore.SignalR.StackExchangeRedis (6)
src\SignalR\common\Shared\MemoryBufferWriter.cs (6)
87_completedSegments[i].Return(); 131destination.Write(_completedSegments[i].Span); 199var segment = _completedSegments[i]; 235var segment = _completedSegments[i]; 264var segment = _completedSegments[i]; 377Segments[i].Return();
Microsoft.AspNetCore.StaticAssets (2)
Development\StaticAssetDevelopmentRuntimeHandler.cs (2)
149if (descriptors[i].HasETag(tag)) 151return descriptors[i];
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.AspNetCore.WebUtilities (4)
PagedByteBuffer.cs (4)
70var page = Pages[i]; 87var page = Pages[i]; 104var page = Pages[i]; 128_arrayPool.Return(Pages[i]);
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.Build (46)
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
314if (_requestsToIssue[i].NodeRequestId == result.NodeRequestId)
BackEnd\Components\RequestBuilder\BatchingEngine.cs (1)
335? buckets[matchingBucketIndex]
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
232var kvp = keyValuePairList[i];
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
447ItemBucket bucket = buckets[i];
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (4)
638if (upToDateInputItems[i] != null) 644bool outOfDate = IsOutOfDate(((IItem)upToDateInputItems[i]).EvaluatedIncludeEscaped, ((IItem)outputItems[i]).EvaluatedIncludeEscaped, upToDateInputItems[i].ItemType, outputItems[i].ItemType); 647changedTargetInputs.Add(upToDateInputItems[i]);
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
332taskResult = await ExecuteBucket(taskHost, (ItemBucket)buckets[i], mode, lookupHash);
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
1239targetOutputsPerProject[i][resultEntry.Key] = clonedTaskItem;
BackEnd\Components\Scheduler\Scheduler.cs (3)
2271if (!leftTargets[i].Equals(rightTargets[i], StringComparison.OrdinalIgnoreCase)) 2554SchedulableRequest childRequest = childRequests[i];
BuildCheck\Infrastructure\EditorConfig\EditorConfigParser.cs (1)
79foreach (var section in editorConfigFiles[i].NamedSections)
Collections\LookasideStringInterner.cs (1)
107_ => _strings[index],
Collections\MultiDictionary.cs (1)
283if (ReferenceEquals(value, list[i]))
Definition\Project.cs (1)
2595var itemElement = projectItemElements[i];
Definition\ProjectItem.cs (1)
351foreach (ProjectMetadata metadatum in _inheritedItemDefinitions[i].Metadata)
Definition\Toolset.cs (1)
511_defaultSubToolsetVersion = orderedSubToolsetList[orderedSubToolsetList.Count - 1];
Evaluation\Evaluator.cs (2)
766var element = _targetElements[i]; 961string target = EscapingUtilities.UnescapeAll(temp[i], trim: true);
Evaluation\Expander.cs (16)
983string vectorExpression = itemVectorExpressions[n].Value; 987string subExpressionToReplaceIn = expression.Substring(start, itemVectorExpressions[n].Index - start); 994if (itemVectorExpressions[n].Separator != null) 996vectorExpression = RegularExpressions.NonTransformItemMetadataRegex.Replace(itemVectorExpressions[n].Value, new MatchEvaluator(matchEvaluator.ExpandSingleMetadata), -1, itemVectorExpressions[n].SeparatorStart); 1004start = (itemVectorExpressions[n].Index + itemVectorExpressions[n].Length); 2105if (matches[i].Index > lastStringIndex) 2112builder.Append(expression, lastStringIndex, matches[i].Index - lastStringIndex); 2115bool brokeEarlyNonEmpty = ExpandExpressionCaptureIntoStringBuilder(expander, matches[i], items, elementLocation, builder, options); 2122lastStringIndex = matches[i].Index + matches[i].Length; 2148string function = match.Captures[n].Value; 2149string functionName = match.Captures[n].FunctionName; 2150string argumentsExpression = match.Captures[n].FunctionArguments; 2202var item = itemsFromCapture[i];
Evaluation\LazyItemEvaluator.cs (2)
379ItemSpecFragment frag = op.Spec.Fragments[i]; 404itemsWithNoWildcards.Remove(currentList._memoizedOperation.Operation.Spec.Fragments[j].TextFragment);
Graph\GraphBuilder.cs (2)
614errorMessage.Append(projectsInCycle[i]) 619errorMessage.Append(projectsInCycle[i]);
Logging\BinaryLogger\BuildEventArgsReader.cs (2)
487var list = nameValueListRecords[id]; 1707object storedString = stringRecords[index];
Logging\BinaryLogger\BuildEventArgsWriter.cs (2)
1152var kvp = nameValueIndexListBuffer[i]; 1176var kvp = nameValueList[i];
PropertyParser.cs (1)
151finalPropertiesList[finalPropertiesList.Count - 1].Value.Add(propertyValue);
Microsoft.Build.Engine.OM.UnitTests (20)
Definition\Project_Tests.cs (10)
4314globs[i].ItemElement.ItemType.ShouldBe(expected[i].Item1); 4315globs[i].IncludeGlobs.ShouldBe(expected[i].Item2); 4316globs[i].Excludes.ShouldBe(expected[i].Item3); 4317globs[i].Removes.ShouldBe(expected[i].Item4); 4361var expectedProvenance = expected[i]; 4362var actualProvenance = actual[i];
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (4)
178finalResult.Add(new ElementLinkPair<CT>(this.PRE, viewResult[i], realResult[i])); 688var rkvp = realPLocList[li]; 689var vkvp = viewPLocList[li];
ObjectModelRemoting\Helpers\ViewValidation.cs (4)
311validator(viewXmlList[i], realXmlList[i], context); 341VerifyFindType(viewXmlList[i], realXmlList[i], context);
ObjectModelRemoting\Helpers\ViewValidation.evaluation.cs (2)
306Assert.Equal(realProps[i], viewProps[i]);
Microsoft.Build.Engine.UnitTests (27)
BackEnd\BuildRequest_Tests.cs (2)
136Assert.Equal(request.Targets[i], deserializedRequest.Targets[i]);
BackEnd\BuildRequestEngine_Tests.cs (1)
123OnNewBuildRequests(_entry, NewRequests[i]);
BackEnd\TaskRegistry_Tests.cs (1)
1190ProjectUsingTaskElement taskElement = elementList[i];
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (7)
81return index == -1 ? throw new KeyNotFoundException() : (object)_values[index]; 158array.SetValue(new KeyValuePair<TKey, TValue>(_keys[i], _values[i]), index + i); 178yield return new KeyValuePair<TKey, TValue>(_keys[i], _values[i]); 196public object Key => _keys[_index]; 198public object Value => _values[_index];
Definition\ToolsetConfigurationReader_Tests.cs (1)
591Assert.Equal(paths.SearchPaths[i], expectedPaths[i]);
Definition\ToolsVersion_Tests.cs (2)
281Assert.Equal(foundFiles[i], sortedTasksExpectedPaths[i]); 287Assert.Equal(foundoverrideFiles[i], sortedOverrideExpectedPaths[i]);
EscapingInProjects_Tests.cs (1)
1833matchingItems[i].Rename(newEvaluatedInclude);
Evaluation\Expander_Tests.cs (10)
4299result = expander.ExpandIntoStringLeaveEscaped(validTests[i][0], ExpanderOptions.ExpandProperties, MockElementLocation.Instance); 4301if (!String.Equals(result, validTests[i][1])) 4303string message = "FAILURE: " + validTests[i][0] + " expanded to '" + result + "' instead of '" + validTests[i][1] + "'"; 4309Console.WriteLine(validTests[i][0] + " expanded to '" + result + "'"); 4323result = expander.ExpandIntoStringLeaveEscaped(errorTests[i], ExpanderOptions.ExpandProperties, MockElementLocation.Instance); 4324if (String.Compare(result, errorTests[i]) == 0) 4326Console.WriteLine(errorTests[i] + " did not expand."); 4332Console.WriteLine(errorTests[i] + " caused '" + ex.Message + "'"); 4337"FAILURE: Expected '" + errorTests[i] + "' to not parse or not be evaluated but it evaluated to '" + result + "'");
Evaluation\ExpressionShredder_Tests.cs (2)
608ExpressionShredder.ItemExpressionCapture capture = expressions[n]; 618Assert.Equal(transformGroup.Captures[i].Value, capture.Captures[i].Value);
Microsoft.Build.Framework (2)
BinaryTranslator.cs (2)
1029_writer.Write(list[i]); 1068T value = list[i];
Microsoft.Build.Tasks.CodeAnalysis (1)
ManagedToolTask.cs (1)
162items[i] = new TaskItem(commandLineArgs[i]);
Microsoft.Build.Tasks.Core (52)
AssemblyDependency\AssemblyResolution.cs (2)
227resolvers[i] = new DirectoryResolver(parentReferenceDirectories[i].Directory, getAssemblyName, fileExists, getRuntimeVersion, targetedRuntimeVersion, parentReferenceDirectories[i].ParentAssembly);
AssemblyDependency\ReferenceTable.cs (2)
1820assemblyReferences[currentWinnerIndex], 1821assemblyReferences[comparisonIndex]) == 0;
AssemblyDependency\ResolveAssemblyReference.cs (8)
1170DependentAssembly idealRemapping = idealAssemblyRemappings[i]; 1172Reference reference = idealAssemblyRemappingsIdentities[i].reference; 1193var newVerStr = idealRemapping.BindingRedirects[j].NewVersion.ToString(); 2298Exception e = inclusionListErrors[i]; 2299string filename = inclusionListErrorFilesNames[i]; 2989DependentAssembly idealRemapping = idealAssemblyRemappings[i]; 2992Reference reference = idealAssemblyRemappedReferences[i].reference; 3005suggestedRedirect.SetMetadata("MaxVersion", idealRemapping.BindingRedirects[j].NewVersion.ToString());
BootstrapperUtil\PackageCollection.cs (1)
20return _list[index];
BootstrapperUtil\ProductBuilderCollection.cs (1)
48return _list[index];
BootstrapperUtil\ProductCollection.cs (1)
48return _list[index];
Copy.cs (2)
575int fileIndex = partition[partitionIndex]; 585SourceFiles[partition[partitionIndex - 1]].ItemSpec,
GenerateResource.cs (7)
582[inputFiles[i].ItemSpec, outputFiles[i].ItemSpec], 741Log.LogErrorFromResources("GenerateResource.ProcessingFile", inputsToProcess[index], outputsToProcess[index]); 880_cache.UpdatePortableLibrary(portableLibraryCacheInfo[i]); 2445string outputSpec = _extractResWFiles ? resWOutputDirectory : _outFiles[i].ItemSpec; 2446if (!ProcessFile(_inFiles[i].ItemSpec, outputSpec))
ManifestUtil\AssemblyReferenceCollection.cs (1)
35public AssemblyReference this[int index] => _list[index];
ManifestUtil\CompatibleFrameworkCollection.cs (1)
26public CompatibleFramework this[int index] => _list[index];
ManifestUtil\FileAssociationCollection.cs (1)
26public FileAssociation this[int index] => _list[index];
ManifestUtil\FileReferenceCollection.cs (1)
35public FileReference this[int index] => _list[index];
ManifestUtil\OutputMessage.cs (1)
91public OutputMessage this[int index] => _list[index];
MSBuild.cs (14)
506if (projects[i] != null) 509string projectPath = FileUtilities.AttemptToShortenPath(projects[i].ItemSpec); 511projectNames[i] = projects[i].ItemSpec; 516if (!String.IsNullOrEmpty(projects[i].GetMetadata("Properties"))) 519log, ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("General.OverridingProperties", projectNames[i]), "Properties", projects[i].GetMetadata("Properties").Split(MSBuildConstants.SemicolonChar), 534string projectUndefineProperties = projects[i].GetMetadata("UndefineProperties"); 556if (!String.IsNullOrEmpty(projects[i].GetMetadata("AdditionalProperties"))) 559log, ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("General.AdditionalProperties", projectNames[i]), "AdditionalProperties", projects[i].GetMetadata("AdditionalProperties").Split(MSBuildConstants.SemicolonChar), 585if (!String.IsNullOrEmpty(projects[i].GetMetadata("ToolsVersion"))) 587toolsVersions[i] = projects[i].GetMetadata("ToolsVersion"); 631if (projects[i] != null) 643log.LogWarningWithCodeFromResources(null, projects[i].ItemSpec, 0, 0, 0, 0, "MSBuild.CannotRebaseOutputItemPath", outputItemFromTarget.ItemSpec, e.Message); 649projects[i].CopyMetadataTo(outputItemFromTarget); 654outputItemFromTarget.SetMetadata(ItemMetadataNames.msbuildSourceProjectFile, projects[i].GetMetadata(FileUtilities.ItemSpecModifiers.FullPath));
PropertyParser.cs (1)
151finalPropertiesList[finalPropertiesList.Count - 1].Value.Add(propertyValue);
RedistList.cs (1)
119AssemblyEntry entry = assemblyList[i];
ResolveManifestFiles.cs (5)
674if (String.Equals(targetPath, manifestEntryPointList[i].key, StringComparison.OrdinalIgnoreCase)) 676if (!string.IsNullOrEmpty(manifestEntryPointList[i].includeHash)) 678if (manifestEntryPointList[i].state != PublishState.Exclude && 680manifestEntryPointList[i].includeHash, 687outputEntryPoint.SetMetadata("IncludeHash", manifestEntryPointList[i].includeHash);
WriteCodeFragment.cs (2)
238if (!orderedParameters[i].HasValue) 251providedOrderedParameters.Add(orderedParameters[i].Value);
Microsoft.Build.Tasks.UnitTests (9)
RemoveDir_Tests.cs (1)
78Directory.Exists(list[i].ItemSpec).ShouldBeFalse();
XslTransformation_Tests.cs (8)
115XslTransformation.XmlInput.XmlModes xmlKey = xmlInputs[xmi].Key; 116object xmlValue = xmlInputs[xmi].Value; 117XslTransformation.XsltInput.XslModes xslKey = xslInputs[xsi].Key; 118object xslValue = xslInputs[xsi].Value; 179XslTransformation.XmlInput.XmlModes xmlKey = xmlInputs[xmi].Key; 180object xmlValue = xmlInputs[xmi].Value; 225XslTransformation.XsltInput.XslModes xslKey = xslInputs[xsi].Key; 226object xslValue = xslInputs[xsi].Value;
Microsoft.Build.UnitTests.Shared (6)
BuildEventArgsExtension.cs (2)
377if (!argItemIncludes[i].Equals(otherItemIncludes[i], StringComparison.OrdinalIgnoreCase))
MockEngine.cs (1)
324targetOutputsPerProject[i][resultEntry.Key] = resultEntry.Value.Items;
ObjectModelHelpers.cs (2)
392if (expectedItems[expectedItemIndex].ItemSpec == actualItem.ItemSpec) 394expectedItem = expectedItems[expectedItemIndex];
TestEnvironment.cs (1)
93_variants[i].Revert();
Microsoft.Cci.Extensions (2)
Writers\CSharp\CSDeclarationWriter.Enums.cs (2)
66ulong otherFlagValue = ToULongUnchecked(candidateFlagFields[i].Constant.Value); 110WriteIdentifier(candidateFlagFields[i].Name);
Microsoft.CodeAnalysis (40)
CommandLine\AnalyzerConfigSet.cs (6)
82if (!ReferenceEquals(x[i], y[i])) 252if (sectionKey.Count > 0 && configSection == sectionKey[sectionKeyIndex]) 255sectionKey[sectionKeyIndex], 277if (sectionKey[sectionKeyIndex] == config.NamedSections[matcherIndex]) 280sectionKey[sectionKeyIndex],
CommandLine\CommandLineParser.cs (1)
647var newArg = splitList[i];
Desktop\DesktopAssemblyIdentityComparer.Fx.cs (1)
160value = values[i];
DiaSymReader\Utilities\ComMemoryStream.cs (4)
56var chunk = _chunks[chunkIndex]; 86chunk = _chunks[chunkIndex]; 129Marshal.Copy(_chunks[chunkIndex], chunkOffset, (IntPtr)(pv + destinationIndex), bytesToCopy); 226Marshal.Copy((IntPtr)(pv + bytesWritten), _chunks[chunkIndex], chunkOffset, bytesToCopy);
DiaSymReader\Writer\SymUnmanagedWriterImpl.cs (2)
234_documentWriters[documentIndex], 686_documentWriters[documentIndex],
DocumentationCommentId.cs (11)
944var typeSymbol = (ITypeSymbol)results[i]; 1052results[i] = ((INamedTypeSymbol)results[i]).Construct(typeArgs); 1159GetMatchingTypes(containers[i], memberName, arity, results); 1184GetMatchingNamespaceOrTypes(containers[i], memberName, results); 1205GetMatchingNamespaces(containers[i], memberName, results); 1232var members = containers[i].GetMembers(memberName); 1300var members = containers[i].GetMembers(memberName); 1351var members = containers[i].GetMembers(memberName); 1367var members = containers[i].GetMembers(memberName); 1388if (!ParameterMatches(symbolParameters[i], expectedParameters[i])) 1576destination.Add((TDestination)(object)source[i]);
InternalUtilities\EnumerableExtensions.cs (1)
760var e = enumerators[i];
MetadataReader\MetadataHelpers.cs (3)
889names[nestedNamespaces[i].Key] = i; 896var pair = nestedNamespaces[i]; 901var primaryPair = nestedNamespaces[keyIndex];
PEWriter\NativeResourceWriter.cs (4)
254Directory subDir = directory.Entries[i] as Directory; 277IWin32Resource r = (IWin32Resource)directory.Entries[i]; 321Directory subDir = directory.Entries[i] as Directory; 343Directory subDir = directory.Entries[i] as Directory;
ReferenceManager\CommonReferenceManager.Binding.cs (2)
838if (candidateReferencedSymbols[k] != null) 852var currentCandidateReferencedSymbol = candidateReferencedSymbols[k];
ReferenceManager\CommonReferenceManager.State.cs (1)
525int assemblyIndex = assemblyReference.Value[i].GetAssemblyIndex(explicitlyReferencedAssemblyCount);
Syntax\GreenNode.cs (1)
927array[i].Value = select(list[i]);
Syntax\SyntaxDiffer.cs (2)
576var last = _changes[_changes.Count - 1]; 597var last = _changes[_changes.Count - 1];
TreeDumper.cs (1)
95var child = children[i];
Microsoft.CodeAnalysis.CodeStyle (19)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
760var e = enumerators[i];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
607var newStart = sorted[i].Start; 608var newEnd = sorted[i].End;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
34var newValue = transform(list[sourceIndex], arg); 53var newValue = transform(list[sourceIndex], arg);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
122if (CommonFormattingHelpers.IndentBlockOperationComparer(startingOperation, list[i]) < 0) 319var operation = list[i];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
152mergedList.Add(_initialIndentBlockOperations[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
423=> _methodSymbolStack[index];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
502var method = _methodSymbolStack[i];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
150throw (list[index] is null)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (8)
169var result = chunks[CurrentChunkIndex][CurrentChunkOffset]; 193var chunk = chunks[GetChunkIndex(position)]; 231var chunk = chunks[chunkIndex]; 338Array.Clear(chunks[chunkIndex], chunkOffset, chunks[chunkIndex].Length - chunkOffset); 342SharedPools.ByteArray.Free(chunks[i]); 362chunks[currentIndex][currentOffset] = value; 380var chunk = chunks[CurrentChunkIndex];
Microsoft.CodeAnalysis.CodeStyle.Fixes (12)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (2)
90var previousNodeTextTrimmed = paramNodeSiblings[paramNodeIndex - 1].ToFullString().Trim(); 98var nextSibling = paramNodeSiblings[paramNodeIndex + 1];
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
164triviaList = triviaList.RemoveAt(removalList[i]);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (2)
89var type1 = classTypes[i]; 96var type2 = classTypes[j];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (3)
89var fieldAndValue = allFieldsAndValues[index]; 106var field = usedFieldsAndValues[i]; 157var (field, value) = allFieldsAndValues[i];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (4)
51var trailingTrivia = newImports[i].GetTrailingTrivia(); 54newImports[i] = newImports[i].WithAppendedTrailingTrivia(endOfLine); 88var trailingTrivia = newImports[i].GetTrailingTrivia(); 91newImports[i] = newImports[i].WithAppendedTrailingTrivia(originalFirstUsingLineEnding);
Microsoft.CodeAnalysis.CSharp (6)
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (3)
263var proxied = proxiedLabels[i - 1]; 313var target = proxiedLabels[i - 1]; 494handlersList[i],
Parser\AbstractLexer.cs (2)
50array[i] = _errors[i].WithOffset(_errors[i].Offset + leadingTriviaWidth);
Symbols\ReferenceManager.cs (1)
135if (referencedAssemblySymbols[i]!.IsMissing)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
185var operation = list[i];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (3)
58var currentUsing = currentUsings[i]; 73var nextUsing = currentUsings[nextIndex]; 114var currentUsing = currentUsings[i];
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Completion\CompletionProviders\TypeImportCompletionProviderTests.cs (1)
1427Assert.Equal(expectedTypesInRelativeOrder[i], actualTypesInRelativeOrder[i]);
Intents\IntentTestsBase.cs (1)
89AssertEx.EqualOrDiff(expectedTexts[i], actualDocumentTexts[i]);
SymbolKey\SymbolKeyTestBase.cs (2)
50ResolveAndVerifySymbol(newlist[i], origlist[i], originalComp);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (11)
CodeGen\CodeGenCapturing.cs (11)
46VariablesByScope[depth] == null) 52VariablesByScope[depth].Add(varName); 85var varsAtCurrentDepth = variablesByScope[varDepth]; 88int numVarsAvailable = variablesByScope[varDepth].Count; 211AssertEx.Equal(expectedCtx[depth], ctx.VariablesByScope[depth]); 329copy.LocalFuncs[depth].Add($"int {localFuncName}() => {expr};"); 378captureVars[depth + 1] != null) 380foreach (var captureVar in captureVars[depth + 1]) 392if (localFuncs[depth] != null) 394foreach (var localFunc in localFuncs[depth]) 450var methodInfo = methods[methodIndex];
Microsoft.CodeAnalysis.CSharp.Features (4)
GenerateType\CSharpGenerateTypeService.cs (2)
611if (namespaceContainers[i] != containers[indexDone + i])
Structure\Providers\IfDirectiveTriviaStructureProvider.cs (2)
31var directive = allRelatedDirectives[i]; 39var nextDirective = allRelatedDirectives[i + 1];
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\LockTests.cs (2)
700var symbolInfo = model.GetSymbolInfo(lockStatements[index - 1].Expression); 710var typeInfo = model.GetTypeInfo(lockStatements[index - 1].Expression);
Semantics\UsingStatementTests.cs (3)
1867foreach (var x in usingStatements[index - 1].Declaration.Variables) 1883var type = model.GetSymbolInfo(usingStatements[index - 1].Declaration.Type); 1896var actualSymbol = model.LookupSymbols(usingStatements[index - 1].SpanStart, name: symbol.Name).Single();
SourceGeneration\GeneratorDriverFuzzTests.cs (2)
288editedInputs.Add(originalInputs[i]); 291editedInputs.Add(new InMemoryAdditionalText(originalInputs[i].Path, getRandomLetter()));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Compilation\GetSemanticInfoTests.cs (1)
1055var exprSyntaxToBind = exprSyntaxList[exprSyntaxList.Count - 2];
Symbols\AnonymousTypesSemanticsTests.cs (6)
1985var info = data.Model.GetSemanticInfoSummary(data.Nodes[node]); 1999CheckFieldNameAndLocation(data, type, data.Nodes[field]); 2107if (all[i - 1].start && !all[i].start) 2109intervals.Add(TextSpan.FromBounds(all[i - 1].offset, all[i].offset));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (46)
LexicalAndXml\PreprocessorTests.cs (2)
139Assert.Equal(ek, actual[idx++]); // exact order 157Assert.Equal(exp.Kind, actual[idx]); // exact order
LexicalAndXml\XmlDocCommentTests.cs (2)
3318Assert.Equal(expectedErrors[i].ErrorCode, actualErrors[i].ErrorCode); 3319Assert.Equal(expectedErrors[i].IsWarning, actualErrors[i].IsWarning);
Parsing\RoundTrippingTests.cs (1)
65var span = nodes[i].FullSpan;
Syntax\SyntaxAnnotationTests.cs (5)
515var firstItem = candidatePool[randomGenerator.Next(numberOfCandidates - 1)]; 583var nodeOrToken = allNodesAndTokens[i]; 777var annotation = _annotations[_random.Next(0, _annotations.Count - 1)]; 788var annotation = _annotations[_random.Next(0, _annotations.Count - 1)]; 805var annotation = _annotations[_random.Next(0, _annotations.Count - 1)];
Syntax\SyntaxNodeTests.cs (36)
342Assert.Equal(directives[i], descendantDirectives[i]); 526Assert.Equal(identifierNodes[i].ToString(), nodesWithMyAnnotations[i].ToString()); 996Assert.Equal(list1[i], list2[i]); 997Assert.Equal(list1[i].FullSpan.Start, list2[i].FullSpan.Start); 1019Assert.Equal(list[i], tokens[i]); 1048Assert.Equal(list[i], tokens[i]); 1074Assert.Equal(list[i], tokens[i]); 1096Assert.Equal(list[i], tokens[i]); 1119Assert.Equal(list[i], tokens[i]); 1149Assert.Equal(list[i], tokens[i]); 1179Assert.Equal(tokens[i], list[i]); 1203Assert.Equal(list[i], tokens[i]); 1224Assert.Equal(list[i], tokens[i]); 1245Assert.Equal(list[i], tokens[i]); 1269Assert.Equal(list[i], tokens[i]); 1292Assert.Equal(tokens[i], list[i]); 1310Assert.Equal(list[i], children[i]); 1321for (var child = children[children.Count - 1]; child.Kind() != SyntaxKind.None; child = child.GetPreviousSibling()) 1329Assert.Equal(list[i], reversed[i]);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.cs (1)
185var operation = list[i];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.Rewriter.cs (3)
58var currentUsing = currentUsings[i]; 73var nextUsing = currentUsings[nextIndex]; 114var currentUsing = currentUsings[i];
Microsoft.CodeAnalysis.EditorFeatures (1)
Editor\GoToAdjacentMemberCommandHandler.cs (1)
137return MemberStart(members[index]);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (8)
Classification\ClassificationTestHelper.cs (4)
44AssertEx.Fail("Unexpected actual classification: {0}", GetText(actualClassificationList[i])); 48AssertEx.Fail("Missing classification for: {0}", GetText(expectedClassificationList[i])); 51var actual = actualClassificationList[i]; 52var expected = expectedClassificationList[i];
KeywordHighlighting\AbstractKeywordHighlighterTests.cs (3)
74var actualLineSpan = tree.GetLineSpan(highlightSpans[j]).Span; 75var actualText = tree.GetText().ToString(highlightSpans[j]); 86var actual = highlightSpans[j];
NavigateTo\AbstractNavigateToTests.cs (1)
173var expectedItem = expecteditems[i];
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Utilities\BloomFilterTests.cs (3)
242var strings = allHashSets[i]; 281var long1 = ((long)ints[i]) << 32; 282var long2 = (long)ints[i + 1];
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
InlineRename\UI\Dashboard\RenameDashboard.xaml.cs (2)
145_focusedElement = _tabNavigableChildren[current]; 156_focusedElement = _tabNavigableChildren[current];
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\ArrayBuilder.cs (3)
65return _items[_items.Count - 1]; 76var result = _items[position]; 118get { return _items[i]; }
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\ArrayBuilder.cs (3)
65return _items[_items.Count - 1]; 76var result = _items[position]; 118get { return _items[i]; }
Microsoft.CodeAnalysis.Features (23)
ChangeSignature\AbstractChangeSignatureService.cs (1)
488var arg = argumentsToPermute[i];
Completion\CompletionService_GetCompletions.cs (1)
414var existingItem = sameNamedItems[i];
Completion\Providers\SymbolCompletionItem.cs (1)
167var id = ids[i];
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (5)
242if (_listStack[i].renderedItem) 247switch (_listStack[i].type) 254Builder.Add(new TaggedText(TextTags.ContainerStart, $"{_listStack[i].index}. ")); 264_listStack[i] = (_listStack[i].type, _listStack[i].index, renderedItem: true);
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (1)
252lines[i] = indentText + lines[i];
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (6)
1589var span = GetExceptionHandlingRegion(exceptionHandlingAncestors[i], out var coversAllChildren); 1866var newNode = newNodes[i]; 1902var newNode = newNodes[newIndex]; 1911oldNode = oldNodes[oldIndex]; 1941oldNode = oldNodes[i]; 1988var oldNode = oldNodes[i];
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (2)
91if (list[i].RawKind == _endOfLineKind) 255yield return list[i];
GenerateType\AbstractGenerateTypeService.cs (1)
197var argument = i < arguments.Count ? arguments[i] : null;
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (2)
90var previousNodeTextTrimmed = paramNodeSiblings[paramNodeIndex - 1].ToFullString().Trim(); 98var nextSibling = paramNodeSiblings[paramNodeIndex + 1];
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (1)
164triviaList = triviaList.RemoveAt(removalList[i]);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (2)
89var type1 = classTypes[i]; 96var type2 = classTypes[j];
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
EditAndContinue\SourceMarkers.cs (4)
127EnsureSlot(result[activeStatementId], exceptionRegionId); 133result[activeStatementId][exceptionRegionId] = new TextSpan(exceptionRegion.Index + start, length); 150EnsureSlot(result[i], j); 151result[i][j] = span;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (1)
171var valueFromClient = expectedValues[i];
Microsoft.CodeAnalysis.Scripting (3)
Hosting\ObjectFormatter\CommonObjectFormatter.Visitor.cs (2)
303members[i].AppendAsCollectionEntry(result); 307members[i].Append(result, inline ? "=" : ": ");
Hosting\SynchronizedList.cs (1)
23return _list[index];
Microsoft.CodeAnalysis.Test.Utilities (1)
Metadata\ILBuilderVisualizer.cs (1)
90if (n == 0 || span.CompareTo(spans[n - 1]) != 0)
Microsoft.CodeAnalysis.UnitTests (9)
AsyncQueueTests.cs (1)
86var task = list[i];
Collections\HashSet\SegmentedHashSet_Generic_Tests`1.cs (1)
112source.Remove(sourceElements[i]);// Unevenly spaced survivors increases chance of catching any spacing-related bugs.
Collections\List\IList.Generic.Tests.cs (1)
389Assert.Equal(index, list.IndexOf(expectedList[index]))
Collections\List\TestBase.Generic.cs (5)
147queue.Enqueue(match[i]); 149queue.Enqueue(match[i]); 196list.Add(match[i]); 198list.Add(match[i]); 285set.Add(match[i]);
Text\TextChangeTests.cs (1)
249var actual = result[i];
Microsoft.CodeAnalysis.Workspaces (33)
Differencing\Match.cs (2)
174var node1 = s1[i1]; 190var node2 = s2[i2];
Log\StatisticResult.cs (1)
27var current = values[i];
SemanticModelReuse\AbstractSemanticModelReuseLanguageService.cs (1)
128return previousMembers[index];
Shared\Extensions\INamespaceSymbolExtensions.cs (2)
47var comp = names1[i].CompareTo(names2[i]);
Shared\TestHooks\AsynchronousOperationListener.cs (1)
143if (_diagnosticTokenList[i] == token)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
760var e = enumerators[i];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (2)
607var newStart = sorted[i].Start; 608var newEnd = sorted[i].End;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ListExtensions.cs (2)
34var newValue = transform(list[sourceIndex], arg); 53var newValue = transform(list[sourceIndex], arg);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
122if (CommonFormattingHelpers.IndentBlockOperationComparer(startingOperation, list[i]) < 0) 319var operation = list[i];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
152mergedList.Add(_initialIndentBlockOperations[i]);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
423=> _methodSymbolStack[index];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
502var method = _methodSymbolStack[i];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\PublicContract.cs (1)
150throw (list[index] is null)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (8)
169var result = chunks[CurrentChunkIndex][CurrentChunkOffset]; 193var chunk = chunks[GetChunkIndex(position)]; 231var chunk = chunks[chunkIndex]; 338Array.Clear(chunks[chunkIndex], chunkOffset, chunks[chunkIndex].Length - chunkOffset); 342SharedPools.ByteArray.Free(chunks[i]); 362chunks[currentIndex][currentOffset] = value; 380var chunk = chunks[CurrentChunkIndex];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractFlagsEnumGenerator.cs (3)
89var fieldAndValue = allFieldsAndValues[index]; 106var field = usedFieldsAndValues[i]; 157var (field, value) = allFieldsAndValues[i];
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\AddImports\AddImportHelpers.cs (4)
51var trailingTrivia = newImports[i].GetTrailingTrivia(); 54newImports[i] = newImports[i].WithAppendedTrailingTrivia(endOfLine); 88var trailingTrivia = newImports[i].GetTrailingTrivia(); 91newImports[i] = newImports[i].WithAppendedTrailingTrivia(originalFirstUsingLineEnding);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (9)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (1)
760var e = enumerators[i];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (8)
169var result = chunks[CurrentChunkIndex][CurrentChunkOffset]; 193var chunk = chunks[GetChunkIndex(position)]; 231var chunk = chunks[chunkIndex]; 338Array.Clear(chunks[chunkIndex], chunkOffset, chunks[chunkIndex].Length - chunkOffset); 342SharedPools.ByteArray.Free(chunks[i]); 362chunks[currentIndex][currentOffset] = value; 380var chunk = chunks[CurrentChunkIndex];
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
RpcTests.cs (1)
258_completionSources[index].SetResult(null);
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
LinkedFileDiffMerging\LinkedFileDiffMergingTests.cs (3)
42var text = updatedTexts[i]; 46.WithDocumentText(documentIds[i], SourceText.From(text)); 53AssertEx.EqualOrDiff(expectedMergedText, mergedSolution.GetDocument(documentIds[i]).GetTextAsync().Result.ToString());
WorkspaceServiceTests\TemporaryStorageServiceTests.cs (1)
171using var s = storageHandles[i].ReadFromTemporaryStorage();
Microsoft.CSharp (46)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (1)
884Expr pArg = argInfo.prgexpr[i];
Microsoft\CSharp\RuntimeBinder\Semantics\Binding\Better.cs (6)
208Debug.Assert(!(args.prgexpr[i] is ExprNamedArgumentSpecification)); 214if (args.carg == 0 || !(args.prgexpr[args.carg - 1] is ExprNamedArgumentSpecification)) 233if (prgexpr[iParam] is ExprNamedArgumentSpecification named) 315Expr arg = args.prgexpr[i]; 514CandidateFunctionMember contender = list[i]; 537contender = list[i];
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (9)
824int n = CompareSrcTypesBased(typeBestSrc, prguci[iuciBestSrc].SrcImplicit, typeFrom, fFromImplicit); 851int n = CompareDstTypesBased(typeBestDst, prguci[iuciBestDst].DstImplicit, typeTo, fToImplicit); 880UdConvInfo uci = prguci[iuci]; 940int n = CompareSrcTypesBased(typeBestSrc, prguci[iuciBestSrc].SrcImplicit, typeFrom, uci.SrcImplicit); 954int n = CompareDstTypesBased(typeBestDst, prguci[iuciBestDst].DstImplicit, typeTo, uci.DstImplicit); 980MethWithInst mwiBest = new MethWithInst(prguci[iuciBest].Meth.Meth(), prguci[iuciBest].Meth.GetType(), null); 1059return ErrorHandling.Error(ErrorCode.ERR_AmbigUDConv, prguci[iuciBestSrc].Meth, prguci[iuciBestDst].Meth, typeSrc, typeDst);
Microsoft\CSharp\RuntimeBinder\Semantics\GroupToArgsBinder.cs (14)
305dst.prgexpr.Add(src.prgexpr[i]); 429pArguments.prgexpr[index] is ExprArrayInit arrayInit && arrayInit.GeneratedForParamArray) 431paramArrayArgument = pArguments.prgexpr[index]; 436!(pArguments.prgexpr[index] is ExprNamedArgumentSpecification) && 437!(pArguments.prgexpr[index] is ExprArrayInit arrayInitPos && arrayInitPos.GeneratedForParamArray)) 439pExprArguments[index] = pArguments.prgexpr[index++]; 477prgTypes[i] = pArguments.prgexpr[i].Type; 708prgTypes[n] = _pArguments.prgexpr[n].Type; 723Expr expr = prgexpr[i]; 746if (!(_pArguments.prgexpr[i] is ExprNamedArgumentSpecification named)) 932Expr pArgument = _pArguments.prgexpr[ivar]; 1018Expr pArgument = _pArguments.prgexpr[iParam]; 1123if (_pOriginalArguments.prgexpr[i] is ExprNamedArgumentSpecification named) 1126if (paramNames[i] != name)
Microsoft\CSharp\RuntimeBinder\Semantics\MethodIterator.cs (2)
109if (argExpressions[i] is ExprNamedArgumentSpecification named) 112if (paramNames[i] != named.Name || i == paramNames.Count - 1 && i != args.carg - 1)
Microsoft\CSharp\RuntimeBinder\Semantics\MethodTypeInferrer.cs (1)
269Expr pExpr = _pMethodArguments.prgexpr[iArg];
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (10)
417int nT = WhichBofsIsBetter(binopSignatures[bestSignature], binopSignatures[index], info.type1, info.type2); 443if (WhichBofsIsBetter(binopSignatures[bestSignature], binopSignatures[index], info.type1, info.type2) >= 0) 557return BindStandardBinopCore(info, binopSignatures[bestBinopSignature], ek, flags); 1222int nT = WhichUofsIsBetter(pSignatures[nBestSignature], pSignatures[iuofs], type); 1246if (WhichUofsIsBetter(pSignatures[nBestSignature], pSignatures[iuofs], type) >= 0) 1261UnaOpFullSig uofs = pSignatures[nBestSignature];
Microsoft\CSharp\RuntimeBinder\Semantics\Types\TypeManager.cs (1)
60tpt = prgptvs[iv];
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (2)
156Type type = inheritance[i]; 591object o = declarationChain[i];
Microsoft.Data.Analysis (32)
DataFrame.cs (2)
586object value = cachedObjectConversions[cacheIndex]; 654object value = cachedObjectConversions[cacheIndex];
DataFrameColumn.cs (1)
495sortAndBufferIndex = tuplesOfSortAndBufferIndex[tuplesOfSortAndBufferIndex.Count - 1];
DataFrameColumns\StringDataFrameColumn.cs (16)
70List<string> lastBuffer = _stringBuffers[_stringBuffers.Count - 1]; 115return _stringBuffers[bufferIndex][(int)(rowIndex % MaxCapacity)]; 125for (int i = bufferOffset; ret.Count < length && i < _stringBuffers[bufferIndex].Count; i++) 127ret.Add(_stringBuffers[bufferIndex][i]); 142_stringBuffers[bufferIndex][bufferOffset] = (string)value; 172for (int i = bufferOffset; ret.Count < length && i < _stringBuffers[bufferIndex].Count; i++) 174ret.Add(_stringBuffers[bufferIndex][i]); 218if (buffer[i] == null) 232string value = _stringBuffers[stringBufferIndex][bufferSortIndices[stringBufferIndex][startIndex]]; 233while (value == null && ++startIndex < bufferSortIndices[stringBufferIndex].Length) 235value = _stringBuffers[stringBufferIndex][bufferSortIndices[stringBufferIndex][startIndex]]; 244List<string> buffer = buffers[i]; 262GetBufferSortIndex getBufferSortIndex = new GetBufferSortIndex((int bufferIndex, int sortIndex) => (bufferSortIndices[bufferIndex][sortIndex]) + bufferIndex * bufferSortIndices[0].Length); 264GetBufferLengthAtIndex getBufferLengthAtIndex = new GetBufferLengthAtIndex((int bufferIndex) => bufferSortIndices[bufferIndex].Length);
DataFrameColumns\VBufferDataFrameColumn.cs (5)
72List<VBuffer<T>> lastBuffer = _vBuffers[_vBuffers.Count - 1]; 100return _vBuffers[bufferIndex][(int)(rowIndex % MaxCapacity)]; 110for (int i = bufferOffset; ret.Count < length && i < _vBuffers[bufferIndex].Count; i++) 112ret.Add(_vBuffers[bufferIndex][i]); 139_vBuffers[bufferIndex][(int)(rowIndex % MaxCapacity)] = value;
IDataView.Extension.cs (2)
135Delegate valueGetter = dataFrameColumns[columnIndex].GetValueGetterUsingCursor(cursor, activeDataViewColumn); 143dataFrameColumns[i].AddValueUsingCursor(cursor, activeColumnDelegates[i]);
PrimitiveDataFrameColumn.Sort.cs (4)
60int index = bufferSortIndices[bufferIndex][startIndex]; 86if (bufferSortIndices[i].Count == 0) 103GetBufferSortIndex getBufferSortIndex = new GetBufferSortIndex((int bufferIndex, int sortIndex) => (bufferSortIndices[bufferIndex][sortIndex]) + bufferIndex * bufferSortIndices[0].Count); 105GetBufferLengthAtIndex getBufferLengthAtIndex = new GetBufferLengthAtIndex((int bufferIndex) => bufferSortIndices[bufferIndex].Count);
StringDataFrameColumn.BinaryOperations.cs (2)
45IList<string> buffer = ret._stringBuffers[i]; 60IList<string> buffer = ret._stringBuffers[i];
Microsoft.Data.Analysis.Tests (4)
DataFrameTests.cs (3)
334Assert.Equal(originalColumn[r].ToString(), headColumn[verify[r]].ToString()); 357Assert.Equal(originalColumn[originalColumnVerify[r]].ToString(), tailColumn[tailColumnVerity[r]].ToString());
DataFrameTests.Filter.cs (1)
42Assert.Equal(verify[j].ToString(), column[j].ToString());
Microsoft.DotNet.Helix.Client (1)
generated-code\HelixApi.cs (1)
429KeyValuePair<string, string> keyValuePair = this[index];
Microsoft.DotNet.SignTool (5)
src\BatchSignUtil.cs (1)
316var current = toProcessList[i];
src\StrongName.cs (4)
428checksum = AggregateChecksum(checksum, (ushort)(segment[currIndex] << 8 | pendingByte)); 435pendingByte = segment[count - 1]; 445checksum = AggregateChecksum(checksum, (ushort)(segment[currIndex + 1] << 8 | segment[currIndex]));
Microsoft.Extensions.AI (4)
ChatCompletion\ChatClientBuilder.cs (1)
51chatClient = _clientFactories[i](chatClient, services) ??
Embeddings\CachingEmbeddingGenerator.cs (2)
95await WriteCacheAsync(uncached[i].CacheKey, uncachedResults[i], cancellationToken).ConfigureAwait(false); 101results[uncached[i].Index] = uncachedResults[i];
Embeddings\EmbeddingGeneratorBuilder.cs (1)
56embeddingGenerator = _generatorFactories[i](embeddingGenerator, services) ??
Microsoft.Extensions.AI.Abstractions (4)
ChatCompletion\StreamingChatCompletionUpdateExtensions.cs (3)
208if (contents[start] is not TextContent firstText) 214if (contents[start + 1] is not TextContent secondText) 226for (; i < contents.Count && contents[i] is TextContent next; i++)
Embeddings\GeneratedEmbeddings.cs (1)
51get => _embeddings[index];
Microsoft.Extensions.AI.Abstractions.Tests (1)
ChatCompletion\StreamingChatCompletionUpdateExtensionsTests.cs (1)
188Assert.Equal(expected[i], contents[i].Text);
Microsoft.Extensions.AI.AzureAIInference.Tests (12)
AzureAIInferenceChatClientTests.cs (12)
236Assert.Equal("chatcmpl-ADxFKtX6xIwdWRN42QvBj2u1RZpCK", updates[i].CompletionId); 237Assert.Equal(createdAt, updates[i].CreatedAt); 238Assert.Equal("gpt-4o-mini-2024-07-18", updates[i].ModelId); 239Assert.Equal(ChatRole.Assistant, updates[i].Role); 240Assert.Equal(i is < 10 or 11 ? 1 : 0, updates[i].Contents.Count); 241Assert.Equal(i < 10 ? null : ChatFinishReason.Stop, updates[i].FinishReason); 868Assert.Equal("chatcmpl-ADymNiWWeqCJqHNFXiI1QtRcLuXcl", updates[i].CompletionId); 869Assert.Equal(createdAt, updates[i].CreatedAt); 870Assert.Equal("gpt-4o-mini-2024-07-18", updates[i].ModelId); 871Assert.Equal(ChatRole.Assistant, updates[i].Role); 872Assert.Equal(i < 7 ? null : ChatFinishReason.ToolCalls, updates[i].FinishReason); 875FunctionCallContent fcc = Assert.IsType<FunctionCallContent>(Assert.Single(updates[updates.Count - 1].Contents));
Microsoft.Extensions.AI.Ollama.Tests (9)
OllamaChatClientTests.cs (9)
188Assert.NotNull(updates[i].CompletionId); 189Assert.Equal(i < updates.Count - 1 ? 1 : 2, updates[i].Contents.Count); 190Assert.Equal(ChatRole.Assistant, updates[i].Role); 191Assert.Equal("llama3.1", updates[i].ModelId); 192Assert.Equal(createdAts[i], updates[i].CreatedAt); 193Assert.Equal(i < updates.Count - 1 ? null : ChatFinishReason.Length, updates[i].FinishReason); 197Assert.Equal(2, updates[updates.Count - 1].Contents.Count); 198Assert.IsType<TextContent>(updates[updates.Count - 1].Contents[0]); 199UsageContent usage = Assert.IsType<UsageContent>(updates[updates.Count - 1].Contents[1]);
Microsoft.Extensions.AI.OpenAI.Tests (16)
OpenAIChatClientTests.cs (16)
270Assert.Equal("chatcmpl-ADxFKtX6xIwdWRN42QvBj2u1RZpCK", updates[i].CompletionId); 271Assert.Equal(createdAt, updates[i].CreatedAt); 272Assert.Equal("gpt-4o-mini-2024-07-18", updates[i].ModelId); 273Assert.Equal(ChatRole.Assistant, updates[i].Role); 274Assert.NotNull(updates[i].AdditionalProperties); 275Assert.Equal("fp_f85bea6784", updates[i].AdditionalProperties![nameof(OpenAI.Chat.ChatCompletion.SystemFingerprint)]); 276Assert.Equal(i == 10 ? 0 : 1, updates[i].Contents.Count); 277Assert.Equal(i < 10 ? null : ChatFinishReason.Stop, updates[i].FinishReason); 861Assert.Equal("chatcmpl-ADymNiWWeqCJqHNFXiI1QtRcLuXcl", updates[i].CompletionId); 862Assert.Equal(createdAt, updates[i].CreatedAt); 863Assert.Equal("gpt-4o-mini-2024-07-18", updates[i].ModelId); 864Assert.Equal(ChatRole.Assistant, updates[i].Role); 865Assert.NotNull(updates[i].AdditionalProperties); 866Assert.Equal("fp_f85bea6784", updates[i].AdditionalProperties![nameof(OpenAI.Chat.ChatCompletion.SystemFingerprint)]); 867Assert.Equal(i < 7 ? null : ChatFinishReason.ToolCalls, updates[i].FinishReason); 870FunctionCallContent fcc = Assert.IsType<FunctionCallContent>(Assert.Single(updates[updates.Count - 1].Contents));
Microsoft.Extensions.AI.Tests (8)
ChatCompletion\FunctionInvokingChatClientTests.cs (8)
494Assert.Same(activities[activities.Count - 1], activities[i].Parent); 669return new ChatCompletion(new ChatMessage(ChatRole.Assistant, [.. plan[contents.Count].Contents])) { Usage = usage }; 683var expectedMessage = expected[i]; 684var chatMessage = chat[i]; 759return YieldAsync(new ChatCompletion(new ChatMessage(ChatRole.Assistant, [.. plan[contents.Count].Contents])).ToStreamingChatCompletionUpdates()); 773var expectedMessage = expected[i]; 774var chatMessage = chat[i];
Microsoft.Extensions.AsyncState (1)
AsyncState.cs (1)
65value = _asyncContextCurrent.Value.Features[token.Index];
Microsoft.Extensions.Caching.Memory (5)
CacheEntry.CacheEntryTokens.cs (4)
36IChangeToken expirationToken = expirationTokens[i]; 55IChangeToken expiredToken = expirationTokens[i]; 97IDisposable registration = registrations[i]; 126PostEvictionCallbackRegistration registration = callbackRegistrations[i];
MemoryCache.cs (1)
394if (!_allStats[i].TryGetTarget(out Stats? stats))
Microsoft.Extensions.Compliance.Testing (2)
FakeRedactionCollector.cs (2)
33return _redactorRequestedLog[_redactorRequestedLog.Count - 1]; 67return _dataRedactedLog[_dataRedactedLog.Count - 1];
Microsoft.Extensions.Configuration (1)
ConfigurationManager.cs (1)
198get => _sources[index];
Microsoft.Extensions.Configuration.Xml (2)
XmlStreamConfigurationProvider.cs (2)
294var attribute = element.Attributes[i]; 345var child = childrenWithSameSiblingName[i];
Microsoft.Extensions.DependencyInjection (7)
DependencyInjectionEventSource.cs (1)
161WeakReference<ServiceProvider> reference = _providers[i];
ServiceLookup\CallSiteFactory.cs (2)
343callSites[i] = callSitesByIndex[i].Value; 728return _items[_items.Count - 1];
ServiceLookup\ServiceProviderEngineScope.cs (4)
128if (toDispose[i] is IDisposable disposable) 134throw new InvalidOperationException(SR.Format(SR.AsyncDisposableServiceDispose, TypeNameHelper.GetTypeDisplayName(toDispose[i]))); 150object disposable = toDispose[i]; 186object disposable = toDispose[i];
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ServiceCollection.cs (1)
32return _descriptors[index];
Microsoft.Extensions.Diagnostics (1)
Metrics\MetricsSubscriptionManager.cs (1)
24_listeners[i] = new ListenerSubscription(list[i], meterFactory);
Microsoft.Extensions.Diagnostics.HealthChecks (2)
DefaultHealthCheckService.cs (2)
297return _values[index]; 323var kvp = values[i];
Microsoft.Extensions.Diagnostics.Testing (4)
Logging\FakeLogCollector.cs (1)
99return _records[_records.Count - 1];
Metrics\MetricCollector.cs (3)
198return _measurements.Count > 0 ? _measurements[_measurements.Count - 1] : null; 311if (_measurements.Count >= _waiters[i].MinCount) 314toBeWoken.Add(_waiters[i]);
Microsoft.Extensions.FileProviders.Composite (1)
CompositeDirectoryContents.cs (1)
66IDirectoryContents directoryContents = _directories[i];
Microsoft.Extensions.FileProviders.Embedded (4)
Manifest\ManifestParser.cs (4)
70if (string.Equals(entriesList[i].Name, entriesList[j].Name, StringComparison.OrdinalIgnoreCase)) 74$" '{entriesList[i].Name}' and '{entriesList[j]}'");
Microsoft.Extensions.FileSystemGlobbing (1)
Internal\PathSegments\WildcardPathSegment.cs (1)
65string containsValue = wildcard.Contains[containsIndex];
Microsoft.Extensions.Http (2)
Logging\HttpHeadersLogValue.cs (2)
70return Values[index]; 95KeyValuePair<string, object> kvp = Values[i];
Microsoft.Extensions.Http.Diagnostics (4)
Logging\Internal\LoggerMessageStateExtensions.cs (4)
29items[i].Key, 32state.TagArray[index++] = new(key, items[i].Value); 48items[i].Key, 51state.TagArray[index++] = new(key, items[i].Value);
Microsoft.Extensions.Http.Polly.Tests (1)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (1)
582var func = Responses[CallCount++ % Responses.Count];
Microsoft.Extensions.Logging (1)
LoggerFactory.cs (1)
217loggers[i] = new LoggerInformation(_providerRegistrations[i].Provider, categoryName);
Microsoft.Extensions.Logging.Abstractions (2)
LogValuesFormatter.cs (2)
230return new KeyValuePair<string, object?>(_valueNames[index], values[index]); 241valueArray[index] = new KeyValuePair<string, object?>(_valueNames[index], values[index]);
Microsoft.Extensions.Logging.Generators (6)
LoggerMessageGenerator.Emitter.cs (6)
62ReadOnlySpan<char> template = RemoveSpecialSymbol(lm.TemplateList[i].AsSpan()); 63ReadOnlySpan<char> parameter = RemoveSpecialSymbol(lm.TemplateParameters[i].CodeName.AsSpan()); 99{nestedIndentation}{parentClasses[i]} 235if (lm.TemplateParameters[index].IsEnumerable) 238+ $"global::__LoggerMessageGenerator.Enumerate((global::System.Collections.IEnumerable ?)this.{NormalizeSpecialSymbol(lm.TemplateParameters[index].CodeName)});"); 244_builder.AppendLine($" {nestedIndentation}var {t.Key} = this.{NormalizeSpecialSymbol(lm.TemplateParameters[index].CodeName)};");
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
src\Shared\BenchmarkRunner\Program.cs (1)
86AspNetCoreBenchmarkAttribute.ConfigName = argsList[index + 1];
Microsoft.Extensions.Options.SourceGeneration (2)
Emitter.cs (2)
765attrInstantiationStatementLines.Add($"{GetPaddingString(1)}{attr.ConstructorArguments[i]},"); 769attrInstantiationStatementLines.Add($"{GetPaddingString(1)}{attr.ConstructorArguments[i]})");
Microsoft.Extensions.Primitives (1)
CompositeChangeToken.cs (1)
152disposables[i].Dispose();
Microsoft.Extensions.Telemetry (3)
Logging\ExtendedLogger.LegacyTagJoiner.cs (1)
59return _extraTags[index - _incomingTagCount];
Logging\ExtendedLogger.ModernTagJoiner.cs (1)
69return _extraTags[index - _incomingTagsCount - _redactedTagsCount];
Logging\ExtendedLoggerFactory.cs (1)
212loggers[i] = new LoggerInformation(_providerRegistrations[i].Provider, categoryName);
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
451proj = proj.WithDocument(l[count++], s); 512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false);
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
451proj = proj.WithDocument(l[count++], s); 512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false);
Microsoft.Gen.Logging (1)
Emission\Emitter.cs (1)
54OutLn(parentTypes[i]);
Microsoft.Gen.Logging.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
451proj = proj.WithDocument(l[count++], s); 512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false);
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Microsoft.Gen.Metrics\Emitter.cs (1)
116OutLn(parentTypes[i]);
Microsoft.Gen.MetadataExtractor.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
451proj = proj.WithDocument(l[count++], s); 512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false);
Microsoft.Gen.Metrics (1)
Emitter.cs (1)
116OutLn(parentTypes[i]);
Microsoft.Gen.Metrics.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
451proj = proj.WithDocument(l[count++], s); 512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false);
Microsoft.Gen.MetricsReports.Unit.Tests (2)
test\Generators\Shared\RoslynTestUtils.cs (2)
451proj = proj.WithDocument(l[count++], s); 512var s = await proj.FindDocument(l[i]).GetTextAsync().ConfigureAwait(false);
Microsoft.Interop.SourceGeneration (3)
Marshalling\MarshallerHelpers.cs (3)
160S.Add(nodeIdToElement[node]); 167T element = S[S.Count - 1]; 184S.Add(nodeIdToElement[m]);
Microsoft.Maui (13)
Graphics\PaintExtensions.iOS.cs (1)
181 var color = gradientStops[index == 0 ? index + 1 : index - 1].Color;
Handlers\HybridWebView\HybridWebViewHandler.cs (1)
463 var match = uniqueMatches[i];
Hosting\Internal\FontCollection.cs (1)
16 get => _descriptors[index];
Hosting\Internal\MauiServiceCollection.cs (2)
20 get => _descriptors[index]; 69 var descriptor = _descriptors[index];
Layouts\Flex.cs (3)
1006 if (item[prev].Order <= item[curr].Order) 1042 item[ordered_indices?[i] ?? i];
WeakEventManager.cs (4)
49 Subscription subscription = target[i]; 69 Subscription subscription = toRemove[i]; 76 (var subscriber, var handler) = toRaise[i]; 130 Subscription current = subscriptions[n];
WeakList.cs (1)
34 w = _list[i];
Microsoft.Maui.Controls (206)
BindingExpression.cs (4)
103 BindingExpressionPart part = _parts[i]; 135 part = _parts[i]; 460 var elem = chain[i]; 495 WeakReference<Element> weak = _ancestryChain[i];
Compatibility\Handlers\ListView\iOS\ContextActionCell.cs (7)
194 var b = _buttons[i]; 239 var b = _buttons[i]; 280 _buttons[i].Dispose(); 306 var tag = _buttons[i].Tag; 366 var button = _buttons[_buttons.Count - 1]; 417 var frame = _buttons[i].Frame; 590 var b = _buttons[n];
Compatibility\Handlers\ListView\iOS\ContextScrollViewDelegate.cs (3)
61 var b = buttons[i]; 112 var b = _buttons[i]; 297 _buttons[i].Hidden = !show;
Compatibility\Handlers\Shell\iOS\ShellSectionRenderer.cs (2)
423 var page = pages[i]; 450 var page = pages[i];
Compatibility\Handlers\Shell\iOS\ShellTableViewSource.cs (3)
108 var context = Groups[section][row]; 147 var context = Groups[section][row]; 214 var element = Groups[section][row];
DefinitionCollection.cs (4)
85 get { return _internalList[index]; } 88 if (index < _internalList.Count && index >= 0 && _internalList[index] != null) 89 _internalList[index].SizeChanged -= OnItemSizeChanged; 99 T item = _internalList[index];
Element\Element_StyleSheets.cs (1)
68 ((IStyle)sheets[i]).Apply(bo, new SetterSpecificity());
Handlers\Items\iOS\ObservableGroupedSource.cs (2)
86 return _groups[indexPath.Section]; 122 _groups[n].Dispose();
Internals\ProfilePage.cs (2)
45 var current = Data[i++]; 51 var next = Data[i];
Items\MarshalingObservableCollection.cs (1)
96 var toMove = this[args.OldStartingIndex];
Label\Label.cs (1)
406 if (!((ISpatialElement)spans[i]).Region.Deflate().Contains(point))
Layout\Layout.cs (4)
59 get => _children[index]; 62 var old = _children[index]; 176 var child = _children[i]; 273 var child = _children[index];
LegacyLayouts\Grid.cs (2)
194 GridLength height = rowDefinitions[i].Height; 221 GridLength width = columnDefinitions[i].Width;
LegacyLayouts\GridCalc.cs (50)
35 posx += structure.Columns[i].ActualWidth; 38 posy += structure.Rows[i].ActualHeight; 40 double w = structure.Columns[c].ActualWidth; 42 w += ColumnSpacing + structure.Columns[c + i].ActualWidth; 43 double h = structure.Rows[r].ActualHeight; 45 h += RowSpacing + structure.Rows[r + i].ActualHeight; 66 ColumnDefinition c = structure.Columns[index]; 75 RowDefinition r = structure.Rows[index]; 126 RowDefinition row = _rows[index]; 134 ColumnDefinition col = _columns[index]; 159 RowDefinition row = _rows[index]; 166 ColumnDefinition col = _columns[index]; 182 RowDefinition row = _rows[i]; 215 ColumnDefinition col = _columns[i]; 253 ColumnDefinition col = _columns[index]; 260 RowDefinition row = _rows[index]; 271 ColumnDefinition c = _columns[index]; 283 RowDefinition r = _rows[index]; 310 ColumnDefinition c = _columns[index]; 322 ColumnDefinition col = _columns[index]; 345 RowDefinition r = _rows[index]; 356 RowDefinition row = _rows[index]; 381 var column = _columns[n]; 419 ColumnDefinition column = _columns[index]; 444 var row = _rows[n]; 481 RowDefinition row = _rows[index]; 519 ColumnDefinition col = _columns[index]; 524 RowDefinition row = _rows[index]; 600 ColumnDefinition col = _columns[index]; 610 ColumnDefinition col = _columns[index]; 630 RowDefinition row = _rows[index]; 640 RowDefinition row = _rows[index]; 656 ColumnDefinition col = _columns[i]; 693 ColumnDefinition col = _columns[index]; 717 RowDefinition row = _rows[i]; 754 RowDefinition row = _rows[index]; 774 ColumnDefinition col = _columns[index]; 780 RowDefinition row = _rows[index]; 808 if (_columns[i].ActualWidth <= 0) 819 if (_rows[i].ActualHeight <= 0) 830 if (_columns[i].ActualWidth >= 0) 831 actual += _columns[i].ActualWidth; 841 if (_rows[i].ActualHeight >= 0) 842 actual += _rows[i].ActualHeight; 851 if (_columns[i].Width.IsAuto) 852 return _columns[i]; 861 if (_rows[i].Height.IsAuto) 862 return _rows[i]; 871 double actual = _rows[i].ActualHeight; 883 double actual = _columns[i].ActualWidth;
LegacyLayouts\RelativeLayout.cs (1)
260 View p = parents[i];
Menu\MenuBarItem.cs (2)
49 get { return _menus[index]; } 111 var item = _menus[index];
Menu\MenuFlyout.cs (2)
25 get { return _menus[index]; } 93 var item = _menus[index];
Menu\MenuFlyoutSubItem.cs (2)
17 get { return _menus[index]; } 84 var item = _menus[index];
MergedStyle.cs (1)
173 Target.RemoveDynamicResource(_implicitStyles[i]);
NavigationModel.cs (1)
218 currentStack = _navTree[i++];
NavigationPage\NavigationPage.cs (1)
587 var topLevelPage = parentPages[parentPages.Count - 1];
NavigationProxy.cs (1)
254 Page result = list[list.Count - 1];
NavigationStepRequest.cs (2)
34 get => _innerList[index]; 122 NavigationStepRequest? item = _innerList[i];
ObservableList.cs (1)
64 Items.Insert(index + i, items[i]);
OrderedDictionary.cs (5)
102 get { return _dict[_keyOrder[index]]; } 135 TKey key = _keyOrder[i]; 262 get { return new KeyValuePair<TKey, TValue>(_keyOrder[index], this[index]); } 276 TKey key = _keyOrder[index]; 362 TKey key = _keyOrder[oldIndex];
Page\Page.cs (1)
601 if (startingLayout.Count <= i || c.Bounds != startingLayout[i])
Platform\GestureManager\GesturePlatformManager.iOS.cs (1)
692 IGestureRecognizer gestureRecognizer = toRemove[i];
Platform\iOS\Extensions\BrushExtensions.cs (1)
250 var color = gradientStops[index == 0 ? index + 1 : index - 1].Color;
Platform\ModalNavigationManager\ModalNavigationManager.cs (3)
22 _platformModalPages.Count > 0 ? _platformModalPages[_platformModalPages.Count - 1] : (_window.Page ?? throw new InvalidOperationException("Current Window isn't loaded")); 25 _platformModalPages.Count > 0 ? _platformModalPages[_platformModalPages.Count - 1] : throw new InvalidOperationException("Modal Stack is Empty"); 134 if (_platformModalPages[popTo] != _modalPages[popTo].Page)
Platform\ModalNavigationManager\ModalNavigationManager.iOS.cs (2)
129 var topPage = _platformModalPages[_platformModalPages.Count - 2]; 175 var uiViewController = (_platformModalPages[_platformModalPages.Count - 1].Handler as IPlatformViewHandler)?.ViewController;
Profiler.cs (1)
174 var datum = Data[_slot];
Shapes\GeometryHelper.cs (9)
137 segDst.Points.Add(points[i]); 139 ptLast = points[points.Count - 1]; 159 segDst.Points.Add(points[i]); 161 ptLast = points[points.Count - 1]; 175 segDst.Points.Add(points[i]); 177 ptLast = points[points.Count - 1]; 196 segDst.Points.Add(points[i]); 198 ptLast = points[points.Count - 1]; 220 segDst.Points.Add(ptLast = points[i]);
Shapes\PathGeometry.cs (2)
115 (float)points[i].X, 116 (float)points[i].Y);
Shell\RouteRequestBuilder.cs (3)
174 var seg = _matchedSegments[i]; 175 if (segmentsToMatch.Count <= i || segmentsToMatch[i] != seg) 208 return _allSegments[nextMatch];
Shell\Shell.cs (2)
913 if (_appearanceObservers[i].Observer == observer) 1870 _flyoutBehaviorObservers[i].OnFlyoutBehaviorChanged(behavior);
Shell\ShellFlyoutItemsManager.cs (6)
38 var source = _lastGeneratedFlyoutItems[i]; 50 var item = source[j]; 181 var topLevelNew = result[i]; 182 var topLevelPrevious = _lastGeneratedFlyoutItems[i]; 192 if (topLevelNew[j] != topLevelPrevious[j])
Shell\ShellSection.cs (31)
65 return _navStack[_navStack.Count - 1]; 117 var page = _navStack[_navStack.Count - 1]; 138 oldStack[i].SendDisappearing(); 144 RemovePage(oldStack[i]); 157 var last = _navStack[_navStack.Count - 1]; 333 var routeToRemove = Routing.GetRoute(navStackCopy[i]); 334 if (i > globalRoutes.Count || routeToRemove != globalRoutes[i - 1]) 336 OnRemovePage(navStackCopy[i]); 357 if (navIndex < _navStack.Count && Routing.GetRoute(_navStack[navIndex]) == globalRoutes[i]) 362 var page = GetOrCreateFromRoute(globalRoutes[i], queryData, services, i == globalRoutes.Count - 1, false); 370 Navigation.InsertPageBefore(page, _navStack[navIndex]); 385 route = globalRoutes[i]; 393 Page navPage = navStack.Count > i + 1 ? navStack[i + 1] : null; 422 bool isAnimated = animate ?? IsNavigationAnimated(navStack[navStack.Count - 1]); 423 if (Navigation.ModalStack.Contains(navStack[navStack.Count - 1])) 441 bool isAnimated = animate ?? IsNavigationAnimated(_navStack[_navStack.Count - 1]); 446 OnRemovePage(_navStack[_navStack.Count - 2]); 469 if (Routing.GetRoute(_navStack[j]) == globalRoutes[i]) 479 OnRemovePage(_navStack[j]); 528 var content = GetOrCreateFromRoute(globalRoutes[i], queryData, services, isLast, false); 560 var modalPage = modalPageStacks[i]; 605 bool isAnimated = animate ?? IsNavigationAnimated(pages[i]); 606 await OnPushAsync(pages[i], isAnimated); 609 Navigation.InsertPageBefore(pages[i], pages[i + 1]); 777 var page = _navStack[_navStack.Count - 1]; 816 var page = _navStack[_navStack.Count - 1]; 834 oldStack[i].SendDisappearing(); 835 RemovePage(oldStack[i]);
Shell\ShellUriHandler.cs (21)
38 var lastPage = pages[pages.Count - 1]; 307 globalRouteMatch.GlobalRouteMatches[matchIndex], 308 globalRouteMatch.SegmentsMatched[matchIndex]); 465 requestBuilderWithNewSegments.AddGlobalRoute(additionalRouteMatches[i], segments[i - existingGlobalRoutes.Count]); 494 var route = localRouteStack[i]; 515 if (paths[0] == localRouteStack[walkBackCurrentStackIndex]) 634 possibleRoutePath.AddGlobalRoute(match.GlobalRouteMatches[i], match.SegmentsMatched[i]); 660 if (bestMatch.GlobalRouteMatches[i] != match.GlobalRouteMatches[i]) 685 if (bestMatches[j].MatchedParts > bestMatches[i].MatchedParts) 686 betterMatch = bestMatches[j]; 687 else if (bestMatches[j].MatchedParts < bestMatches[i].MatchedParts) 688 betterMatch = bestMatches[i]; 693 if (!betterMatches.Contains(bestMatches[i])) 694 betterMatches.Add(bestMatches[i]); 696 if (!betterMatches.Contains(bestMatches[j])) 697 betterMatches.Add(bestMatches[j]);
SynchronizedList.cs (1)
109 return _list[index];
TemplatedItemsList.cs (13)
249 TItem item = _templatedObjects[i]; 611 if (_templatedObjects.Count <= index || (content = _templatedObjects[index]) == null) 805 SetIndex(_templatedObjects[i], i + e.NewItems.Count); 825 SetIndex(_templatedObjects[i], removeIndex++); 879 SetIndex(_templatedObjects[i], moveIndex++); 885 TItem item = _templatedObjects[i + e.NewStartingIndex]; 906 TemplatedItemsList<TView, TItem> til = oldItems[i]; 1012 SetIndex(_templatedObjects[i], i + e.NewItems.Count); 1036 SetIndex(_templatedObjects[i], moveIndex++); 1042 TItem item = _templatedObjects[i + e.NewStartingIndex]; 1063 SetIndex(_templatedObjects[i], removeIndex++); 1068 TItem item = _templatedObjects[e.OldStartingIndex + i]; 1204 TItem item = _templatedObjects[i];
TypedBinding.cs (2)
355 var elem = chain[i]; 390 WeakReference<Element> weak = _ancestryChain[i];
VisualStateManager.cs (1)
794 get => _internalList[index];
WebView\WebView.cs (1)
319 var match = uniqueMatches[i];
Microsoft.Maui.Controls.Build.Tasks (7)
CreateObjectVisitor.cs (1)
343 var arg = arguments[i];
MethodDefinitionExtensions.cs (1)
36 var argType = context.Variables[arguments[i] as IElementNode].VariableType;
NodeILExtensions.cs (2)
544 var en = nodes[i]; 632 if (pushParentIl[pushParentIl.Count - 1].OpCode != Ldnull)
SetPropertiesVisitor.cs (3)
1074 var partGetter = partGetters[i]; 1094 yield return Create(Ldftn, handlers[i].PartGetter); 1096 yield return Create(Ldstr, handlers[i].PropertyName);
Microsoft.Maui.Controls.Compatibility (17)
iOS\CollectionView\ListSource.cs (1)
53 if (this[n] == item)
iOS\CollectionView\ObservableGroupedSource.cs (1)
113 _groups[n].Dispose();
iOS\ContextActionCell.cs (7)
199 var b = _buttons[i]; 244 var b = _buttons[i]; 285 _buttons[i].Dispose(); 311 var tag = _buttons[i].Tag; 371 var button = _buttons[_buttons.Count - 1]; 421 var frame = _buttons[i].Frame; 594 var b = _buttons[n];
iOS\ContextScrollViewDelegate.cs (3)
61 var b = buttons[i]; 112 var b = _buttons[i]; 297 _buttons[i].Hidden = !show;
iOS\Extensions\GeometryExtensions.cs (2)
189 cgpoints[i] = transform.TransformPoint(points[i].ToPointF()); 193 lastPoint = points.Count > 0 ? points[points.Count - 1] : Point.Zero;
iOS\Platform.cs (2)
557 var topPage = _modals[_modals.Count - 2]; 585 var uiViewController = GetRenderer(_modals[_modals.Count - 1]) as UIViewController;
iOS\VisualElementRenderer.cs (1)
320 _elementChangedHandlers[i](this, args);
Microsoft.Maui.Controls.SourceGen (1)
src\Controls\src\Xaml\XmlTypeXamlExtensions.cs (1)
70 var name = lookupNames[i];
Microsoft.Maui.Controls.Xaml (4)
CreateValuesVisitor.cs (1)
300 array[i] = Values[(ElementNode)listnode.CollectionItems[i]];
PruneIgnoredNodesVisitor.cs (1)
32 if (node.NamespaceResolver.LookupNamespace(prefixes[i]) == XamlParser.MauiDesignUri)
RemoveDuplicateDesignNodes.cs (1)
29 var key = props[i].Key;
XmlTypeXamlExtensions.cs (1)
70 var name = lookupNames[i];
Microsoft.Maui.Essentials (1)
VersionTracking\VersionTracking.shared.cs (1)
337 return (trail.Count >= 2) ? trail[trail.Count - 2] : null;
Microsoft.Maui.Graphics (67)
PathF.cs (64)
86 return _operations[_operations.Count - 1] == PathOperation.Close; 108 yield return _operations[i]; 117 yield return _points[i]; 126 return _points[_points.Count - 1]; 150 return _points[index]; 185 if (_operations[_operations.Count - 1] == PathOperation.Close) 200 return _operations[aIndex]; 207 return _arcAngles[aIndex]; 227 return _arcClockwise[aIndex]; 272 if (_operations[_operations.Count - 1] == PathOperation.Close) 435 var operation = _operations[operationIndex]; 492 var type = _operations[s]; 544 var segmentType = _operations[segment]; 613 var segmentType = _operations[segment]; 618 var points = new[] { _points[pointIndex] }; 628 var points = new[] { _points[pointIndex] }; 639 var points = new[] { _points[pointIndex++], _points[pointIndex] }; 649 var points = new[] { _points[pointIndex++], _points[pointIndex++], _points[pointIndex] }; 659 var points = new[] { _points[pointIndex++], _points[pointIndex] }; 719 var segmentType = _operations[segment]; 767 var segmentType = _operations[segment]; 910 var startAngle = _arcAngles[arcIndex++]; 911 var endAngle = _arcAngles[arcIndex++]; 912 var clockwise = _arcClockwise[clockwiseIndex++]; 927 var point = _points[pointIndex]; 934 _points[i] = Vector2.Transform((Vector2)_points[i], transform); 958 path.MoveTo(_points[i++]); 962 path.LineTo(_points[i++]); 966 path.QuadTo(_points[i++], _points[i++]); 970 path.CurveTo(_points[i++], _points[i++], _points[i++]); 974 path.AddArc(_points[i++], _points[i++], _arcAngles[a++], _arcAngles[a++], _arcClockwise[c++]); 1006 if (operations[i] == PathOperation.Move) 1021 else if (operations[i] == PathOperation.Close) 1239 return _subPathsClosed[subPathIndex]; 1278 _points[i] = _points[i].Offset(x, y); 1286 _points[index] = _points[index].Offset(dx, dy); 1299 var segmentType = _operations[i]; 1306 var point = _points[i]; 1315 var arcAngle = _arcAngles[i]; 1325 var arcClockwise = _arcClockwise[i]; 1356 var segmentType = _operations[i]; 1363 var point = _points[i]; 1372 var arcAngle = _arcAngles[i]; 1382 var arcClockwise = _arcClockwise[i]; 1465 var operation = _operations[i]; 1469 flattenedPath.MoveTo(_points[pointIndex++]); 1472 flattenedPath.LineTo(_points[pointIndex++]); 1494 var topLeft = _points[pointIndex++]; 1495 var bottomRight = _points[pointIndex++]; 1527 var startPoint = _points[pointIndex - 1]; 1528 var quadControlPoint = _points[pointIndex]; 1529 var endPoint = _points[pointIndex + 1]; 1606 var point = curvePoints[index];
Text\AttributedTextRunExtensions.cs (3)
161 var run = runs[i]; 182 var run = runs[i]; 198 run = runs[i];
Microsoft.Maui.Graphics.Skia (2)
SkiaTextLayout.cs (2)
128 var line = lines[i + startIndex]; 156 var line = lines[i];
Microsoft.ML.AutoML (2)
Experiment\Runners\CrossValSummaryRunner.cs (1)
85var metricsClosestToAvg = trainResults[indexClosestToAvg].metrics;
SweepableEstimator\SweepableEstimatorPipeline.cs (1)
83pipeline = pipeline.Append(_estimators[i].BuildFromOption(context, parameter[ssName]));
Microsoft.ML.CodeGenerator (4)
Utils.cs (4)
76var getGenericGetGetterMethod = getGetGetterMethod.MakeGenericMethod(featureColumns[i].Type.RawType); 77string val = getGenericGetGetterMethod.Invoke(null, new object[] { rowCursor, featureColumns[i] }) as string; 311result[i] += normalizedColumnNames[i / 3]; 326columnNames[i] = Utils.Normalize(columnNames[i]);
Microsoft.ML.CodeGenerator.Tests (2)
CodeGenTests.cs (2)
102Columns = CodeGenTestData.inputColumns[i], 114Assert.Equal(actualLabels, CodeGenTestData.expectedLabels[i]);
Microsoft.ML.Core (32)
CommandLine\CmdParser.cs (15)
1526string str = (string)values[i].Value; 1572string tag = values[i].Key; 1573string name = (string)values[i++].Value; 1575if (i < values.Count && IsCurlyGroup((string)values[i].Value) && string.IsNullOrEmpty(values[i].Key)) 1576settings = new string[] { (string)values[i++].Value }; 1596var kvp = Activator.CreateInstance(ItemType, comList[i].Key, comList[i].Value); 1608string name = (string)values[i++].Value; 1610if (i < values.Count && IsCurlyGroup((string)values[i].Value)) 1611settings = new string[] { (string)values[i++].Value }; 1630arr.SetValue(comList[i], i); 1639var kvp = Activator.CreateInstance(ItemType, values[i].Key, values[i].Value); 1648res.SetValue(values[i].Value, i);
Data\Repository.cs (2)
185var ent = _open[_open.Count - 1]; 199if (_open[i] == ent)
Utilities\BinFinder.cs (2)
340_accum[i + 1] = _accum[i] + counts[i]; 578_accum[i + 1] = _accum[i] + counts[i];
Utilities\Heap.cs (9)
172T v = _rgv[iv]; 174for (; (ivPar = Parent(iv)) > 0 && _fnReverse(_rgv[ivPar], v); iv = ivPar) 175MoveTo(_rgv[ivPar], iv); 184T v = _rgv[iv]; 188if (ivChild + 1 < cv && _fnReverse(_rgv[ivChild], _rgv[ivChild + 1])) 190if (!_fnReverse(v, _rgv[ivChild])) 192MoveTo(_rgv[ivChild], iv); 312var result = _rgv[index];
Utilities\MathUtils.cs (2)
364_logFactorialCache.Add(_logFactorialCache[i - 1] + Math.Log(i)); 367return _logFactorialCache[n];
Utilities\Utils.cs (1)
196dst[i] = src[i];
Utilities\VBufferUtils.cs (1)
1360editor.Values[i] = src[i];
Microsoft.ML.Core.Tests (12)
UnitTests\TestVBuffer.cs (12)
886if (maxSlots[i] < len) 887slotsDropped += maxSlots[i] - minSlots[i] + 1; 888else if (minSlots[i] >= len) 889nonExistentSlotsDropped += maxSlots[i] - minSlots[i] + 1; 892slotsDropped += len - minSlots[i]; 893nonExistentSlotsDropped += maxSlots[i] - len + 1; 911if (dropSlotMinIndex >= minSlots.Count || logicalIndex < minSlots[dropSlotMinIndex]) 918else if (logicalIndex <= maxSlots[dropSlotMinIndex]) 922slotsDroppedSoFar += maxSlots[dropSlotMinIndex] - minSlots[dropSlotMinIndex] + 1;
Microsoft.ML.Data (69)
Data\DataViewUtils.cs (1)
1336var srcColIndex = colIndices[i];
DataLoadSave\Binary\BinarySaver.cs (12)
298_host.CheckIO(offsets[offsets.Count - 1] > offsets[offsets.Count - 2], "Bad offsets detected during write"); 313long expectedPosition = offsets[metadataInfos.Count]; 325writer.Write(metadataInfos[i].Item1); 326int stringLen = Encoding.UTF8.GetByteCount(metadataInfos[i].Item1); 330expectedPosition += _factory.WriteCodec(writer.BaseStream, metadataInfos[i].Item2); 333writer.Write((byte)metadataInfos[i].Item3); 336writer.Write(offsets[i]); 339long blockSize = offsets[i + 1] - offsets[i]; 345return offsets[metadataInfos.Count]; 458ch.Assert(lookups[blockIndex].BlockOffset == 0);
DataLoadSave\Binary\Codecs.cs (1)
874if (len != _lengths[i])
DataLoadSave\LegacyCompositeDataLoader.cs (1)
498string.Format(TransformDirTemplate, acceptedIds[index]), data);
DataLoadSave\Text\TextLoader.cs (2)
249var cur = sortedRanges[i]; 253var prev = sortedRanges[i - 1];
DataLoadSave\Transpose\TransposeSaver.cs (4)
165ch.Assert(offsets[offsets.Count - 1] == stream.Position); 170writer.Write(offsets[c - 1]); 171writer.Write(offsets[c] - offsets[c - 1]);
DataView\ArrayDataViewBuilder.cs (3)
223if (builder._getSlotNames.TryGetValue(builder._names[i], out var slotNamesGetter)) 226if (builder._getKeyValues.TryGetValue(builder._names[i], out var keyValueGetter)) 228schemaBuilder.AddColumn(builder._names[i], _columns[i].Type, meta.ToAnnotations());
DataView\InternalSchemaDefinition.cs (1)
223var col = userSchemaDefinition[i];
DataView\TypedCursor.cs (1)
276var col = schemaDefinition[i];
EntryPoints\TransformModelImpl.cs (2)
273row = mappers[i].GetRow(row, actives[i]);
Evaluators\ClusteringEvaluator.cs (4)
255var px = _numInstancesOfClass[i] / _numInstances; 259for (int j = 0; j < _confusionMatrix[i].Length; j++) 261var pxy = _confusionMatrix[i][j] / _numInstances; 356_confusionMatrix[intLabel][assigned] += weight;
Evaluators\EvaluatorUtils.cs (3)
1194aggregated[iMetric].Name = metricNames[iMetric]; 1206aggregated[iMetric].Name = metricNames[iMetric]; 1547sb.Append(string.Format("{0}{1}: ", weighted ? "Weighted " : "", metricNames[i]).PadRight(20));
Evaluators\RankingEvaluator.cs (10)
1015labelCounts[queryLabels[l]]++; 1048dcg = dcg + labelGains[queryLabels[permutation[t]]] * discountMap[t]; 1064if (queryOutputs[i] > queryOutputs[j]) 1066if (queryOutputs[i] < queryOutputs[j]) 1068if (queryLabels[i] < queryLabels[j]) 1070if (queryLabels[i] > queryLabels[j])
Transforms\ColumnBindingsBase.cs (3)
708var colName = indices[j] >= 0 ? input[indices[j]].Name : addedColumns[~indices[j]].Name;
Transforms\Hashing.cs (7)
235int iinfo = invertIinfos[i]; 240var maxCount = invertHashMaxCounts[i]; 252_keyValues[invertIinfos[i]] = helpers[i].GetKeyValuesMetadata(); 253Host.Assert(_keyValues[invertIinfos[i]].Length == types[invertIinfos[i]].GetItemType().GetKeyCountAsInt32(Host)); 254_kvTypes[invertIinfos[i]] = new VectorDataViewType(TextDataViewType.Instance, _keyValues[invertIinfos[i]].Length);
Transforms\NormalizeColumnSng.cs (12)
557protected TType GetLeftChild(int elementIndex) => Elements[GetLeftChildIndex(elementIndex)]; 558protected TType GetRightChild(int elementIndex) => Elements[GetRightChildIndex(elementIndex)]; 559protected TType GetParent(int elementIndex) => Elements[GetParentIndex(elementIndex)]; 563var temp = Elements[firstIndex]; 564Elements[firstIndex] = Elements[secondIndex]; 580Elements[0] = Elements[Elements.Count - 1]; 626if (Elements[biggerIndex].CompareTo(Elements[index]) <= 0) 639while (!IsRoot(index) && Elements[index].CompareTo(GetParent(index)) > 0) 669if (Elements[smallerIndex].CompareTo(Elements[index]) >= 0) 682while (!IsRoot(index) && Elements[index].CompareTo(GetParent(index)) < 0)
Utilities\StreamUtils.cs (2)
170if (string.Compare(matchList[i], matchList[j], true) == 0)
Microsoft.ML.DataView (5)
DataViewSchema.cs (5)
433nameMap[_items[i].Name] = i; 437columns[i] = new Column(_items[i].Name, i, nameMap[_items[i].Name] != i, _items[i].Type, _items[i].Annotations);
Microsoft.ML.Ensemble (6)
OutputCombiners\BaseStacking.cs (3)
138Contracts.Assert(models[i].Predictor is IValueMapper); 139var m = (IValueMapper)models[i].Predictor; 185var model = models[i];
Trainer\EnsembleTrainerBase.cs (3)
227(T)models[i].Predictor, 228models[i].SelectedFeatures, 229models[i].Metrics);
Microsoft.ML.FastTree (46)
Dataset\FeatureFlock.cs (11)
354int lastFlockFeature = features[features.Count - 1]; 399int feature = features[i]; 534int lastFlockFeature = features[features.Count - 1]; 617var binStats = virtualBins[i]; 671catFeatureIndices.Add(virtualBins[index].FeatureIndex); 672catFeatureIndices.AddRange(virtualBins[index].SubFeatures); 730int lastFlockFeature = features[features.Count - 1]; 761vBin = virtualBins[virtualBins.Count - 2]; 839var binStats = virtualBins[i]; 893catFeatureIndices.Add(virtualBins[index].FeatureIndex); 894catFeatureIndices.AddRange(virtualBins[index].SubFeatures);
FastTree.cs (22)
1049hotFeatureStarts[i] = hotFeatureStarts[i - 1] + BinUpperBounds[features[i - 1]].Length - 1; 1053int lim = features[features.Count - 1] + 1; 1057f2sf[features[i] - min] = i; 1125hotFeatureStarts[i] = hotFeatureStarts[i - 1] + BinUpperBounds[features[i - 1]].Length - 1; 1129int lim = features[features.Count - 1] + 1; 1132f2sf[features[i] - min] = i; 1952hotFeatureStarts[i] = hotFeatureStarts[i - 1] + BinUpperBounds[features[i - 1]].Length - 1; 1962kvEnums[i] = _instanceList[features[i]].Binned(BinUpperBounds[features[i]], NumExamples).GetEnumerator(); 2008ch.Assert(kvp.Key > last || values.Count == 1 || values[values.Count - 1] > values[values.Count - 2]); 2420if (_dense[i] != 0) 2421_sparse.Add(new KeyValuePair<int, double>(i, _dense[i])); 2440Contracts.Assert(_sparse.Count == 0 || _sparse[_sparse.Count - 1].Key < length); 2464Contracts.Assert(_sparse.Count == 0 || _sparse[_sparse.Count - 1].Key < lim); 2496if (_dense[i] > gtValue) 2537editor.Indices[i] = _sparse[i].Key; 2538editor.Values[i] = _sparse[i].Value; 2605int binned = Algorithms.FindFirstGE(binUpperBounds, _dense[i]); 2655return rowIndex < values._dense.Count ? values._dense[rowIndex] : 0; 2661Contracts.Assert(sp.Count == 0 || sp[last].Key > lastRow); 2665var s = sp[last++];
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (1)
108short curLabel = labelFreqList[i].Key;
Training\OptimizationAlgorithms\GradientDescent.cs (1)
62double[] s = _treeScores[i];
TreeEnsemble\InternalRegressionTree.cs (1)
390int indexLocal = categoricalNodeIndices[index];
TreeEnsemble\InternalTreeEnsemble.cs (9)
80public InternalRegressionTree GetTreeAt(int index) => _trees[index]; 132_trees[w].ToTreeEnsembleFormat(sbEvaluator, sbInput, fmap, ref evaluatorCounter, featureToID); 180sb.Append(_trees[w].Weight); 238values[w] = _trees[w].MaxOutput; 246output += _trees[h].GetOutput(featureBins); 254output += _trees[h].GetOutput(binnedInstance); 262output += _trees[h].GetOutput(in feat); 277((InternalQuantileRegressionTree)_trees[h]).LoadSampledLabels(in feat, distribution, 370var tree = _trees[i];
TreeEnsembleFeaturizer.cs (1)
326var node = nodes[j];
Microsoft.ML.LightGbm (3)
LightGbmTrainerBase.cs (3)
549if (curFidx > catBoundaries[catBoundaries.Count - 1]) 788if (i == 0 || cursorGroups[i] != cursorGroups[i - 1])
Microsoft.ML.Mkl.Components (4)
SymSgdClassificationTrainer.cs (4)
415_ch.Assert(_storage[_storageIndex].Length == _veryLongArrayLength); 466instArray.CopyTo(_storage[_storageIndex].Buffer.AsSpan(_indexInCurArray)); 507outGcHandle = _storage[_storageIndex].GcHandle; 676prop = _instanceProperties[_instanceIndex];
Microsoft.ML.OnnxConverter (2)
OnnxUtils.cs (2)
38if (dimsParam != null && dimsParam.Count > index && dimsParam[index]) 41d.DimValue = dims[index];
Microsoft.ML.OnnxTransformerTest (8)
OnnxTransformTests.cs (8)
723Assert.Single(transformedDataPoints[i].output); 724var dictionary = transformedDataPoints[i].output.First(); 776Assert.Single(transformedDataPoints[i].output); 777var dictionary = transformedDataPoints[i].output.First(); 868Assert.Equal(dataPoints[i].Input.Count(), transformedDataPoints[i].Output.Count()); 870Assert.Equal(pair.Value, transformedDataPoints[i].Output[pair.Key + 1]); 946Assert.Equal(transformedDataPoints[i].argmax, expectedResults[i]); 1110Assert.Equal(transformedDataPoints[i].argmax, expectedResults[i]);
Microsoft.ML.Parquet (2)
PartitionedFileLoader.cs (1)
564_colValues[i] = values[source].AsMemory();
PartitionedPathParser.cs (1)
295Name = names[i],
Microsoft.ML.PerformanceTests (1)
TextLoaderBench.cs (1)
70getters[i](ref buff);
Microsoft.ML.ResultProcessor (11)
ResultProcessor.cs (11)
738if (lines[i] != null && lines[i].ToLower().StartsWith("maml.exe")) 740commandline = lines[i]; 756while (i > 0 && lines[i] != "OVERALL RESULTS") 762while (i < lines.Count && lines[i] != SectionBreakSeparator) 766fileResults.Add(lines[i++]); 771if (lines[i].Contains(metric)) 773fileResults.Add(lines[i++]); 781if (lines[i].Contains("Time elapsed(s):") || 782lines[i].Contains("memory usage(MB):")) 783fileTimeMemoryResult.Add(lines[i]);
Microsoft.ML.Samples (24)
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSample.cs (2)
54var result = results[i]; 57var featuresInText = string.Join(',', samples[i].Features);
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSampleWithOptions.cs (2)
62var result = results[i]; 65var featuresInText = string.Join(',', samples[i].Features);
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnnBatchPrediction.cs (1)
53PrintPrediction(data[k++].Value, prediction);
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaBatchPrediction.cs (1)
76PrintPrediction(data[k++].Value, prediction);
Dynamic\Transforms\TimeSeries\DetectEntireAnomalyBySrCnn.cs (1)
51PrintPrediction(k, data[k].Value, prediction);
Dynamic\Transforms\TimeSeries\DetectIidChangePointBatchPrediction.cs (1)
70PrintPrediction(data[k++].Value, prediction);
Dynamic\Transforms\TimeSeries\DetectIidSpikeBatchPrediction.cs (1)
62PrintPrediction(data[k++].Value, prediction);
Dynamic\Transforms\TimeSeries\DetectSpikeBySsaBatchPrediction.cs (1)
78PrintPrediction(data[k++].Value, prediction);
Dynamic\Transforms\TreeFeaturization\FastForestBinaryFeaturizationWithOptions.cs (2)
88var dataPoint = dataPoints[i]; 89var transformedDataPoint = transformedDataPoints[i];
Dynamic\Transforms\TreeFeaturization\FastForestRegressionFeaturizationWithOptions.cs (2)
89var dataPoint = dataPoints[i]; 90var transformedDataPoint = transformedDataPoints[i];
Dynamic\Transforms\TreeFeaturization\FastTreeBinaryFeaturizationWithOptions.cs (2)
90var dataPoint = dataPoints[i]; 91var transformedDataPoint = transformedDataPoints[i];
Dynamic\Transforms\TreeFeaturization\FastTreeRankingFeaturizationWithOptions.cs (2)
86var dataPoint = dataPoints[i]; 87var transformedDataPoint = transformedDataPoints[i];
Dynamic\Transforms\TreeFeaturization\FastTreeRegressionFeaturizationWithOptions.cs (2)
89var dataPoint = dataPoints[i]; 90var transformedDataPoint = transformedDataPoints[i];
Dynamic\Transforms\TreeFeaturization\FastTreeTweedieFeaturizationWithOptions.cs (2)
89var dataPoint = dataPoints[i]; 90var transformedDataPoint = transformedDataPoints[i];
Dynamic\Transforms\TreeFeaturization\PretrainedTreeEnsembleFeaturizationWithOptions.cs (2)
79var dataPoint = dataPoints[i]; 80var transformedDataPoint = transformedDataPoints[i];
Microsoft.ML.SamplesUtils (2)
SamplesDatasetUtils.cs (2)
300var sample = new FloatLabelFloatFeatureVectorUlongGroupIdSample() { Label = intermediate[i].Label, Features = intermediate[i].Features, GroupId = (ulong)rnd.Next((int)minGroupId, (int)maxGroupId) };
Microsoft.ML.StandardTrainers (6)
FactorizationMachine\FieldAwareFactorizationMachineUtils.cs (1)
115inputGetters[f] = input.GetGetter<VBuffer<float>>(input.Schema[_inputColumnIndexes[f]]);
Optimizer\Optimizer.cs (5)
259if (_roList[i] > 0) 261alphas[i] = -VectorUtils.DotProduct(in _sList[i], in _dir) / _roList[i]; 273VectorUtils.ScaleBy(ref _dir, _roList[lastGoodRo] / yDotY); 277if (_roList[i] > 0) 279float beta = VectorUtils.DotProduct(in _yList[i], in _dir) / _roList[i];
Microsoft.ML.Sweeper (8)
Algorithms\KdoSweeper.cs (1)
255child[numericParamIndices[j]] = (float)Corral(sampledPoint[j]);
Algorithms\NelderMead.cs (6)
341var param = _sweepParameters[i].CreateFromNormalized(point[i]); 342if (!((INumericValueGenerator)_sweepParameters[i]).InRange(param)) 438Contracts.AssertValue(parameterSet[_sweepParameters[i].Name]); 439result.Add(((INumericValueGenerator)_sweepParameters[i]).NormalizeValue(parameterSet[_sweepParameters[i].Name])); 452parameters.Add(_sweepParameters[i].CreateFromNormalized(array[i]));
AsyncSweeper.cs (1)
271while (++_minUnfinishedId < _numGenerated && _results[_minUnfinishedId] != null || _nullRuns.Remove(_minUnfinishedId))
Microsoft.ML.TestFramework (7)
BaseTestBaseline.cs (1)
469if (!equalFunc(suffixList[i], seqList[(idx + i) % seqList.Count]))
BaseTestPredictorsMaml.cs (6)
242if (string.IsNullOrWhiteSpace(args[i])) 244if (removeArgs.Any(x => args[i].StartsWith(x))) 246if (args[i].StartsWith("out=")) 247args[i] = string.Format("in={0}", args[i].Substring(4)); 248if (args[i].StartsWith("test=")) 249args[i] = string.Format("data={0}", args[i].Substring(5));
Microsoft.ML.Tests (23)
AnomalyDetectionTests.cs (2)
166Assert.False(results[i].PredictedLabel); 168Assert.InRange(results[i].Score, 0, 0.5);
ImagesTests.cs (3)
1198var prediction = predEngine.Predict(dataObjects[i]); 1201Assert.True(prediction.LoadedImage == dataObjects[i].LoadedImage); 1202Assert.False(prediction.ResizedImage == dataObjects[i].LoadedImage);
OnnxConversionTest.cs (2)
1529Assert.Equal(mlNetSlotNames[j].ToString(), onnxSlotNames[j].ToString());
OnnxSequenceTypeWithAttributesTest.cs (1)
69Assert.Equal(onnxOut[keys[i]], input.Input[i]);
TextLoaderTests.cs (3)
1352Assert.Equal(ids[i], line); 1359Assert.Equal(descriptions[i], line); 1365Assert.Equal(animals[i], line);
TrainerEstimators\MatrixFactorizationTests.cs (1)
845Assert.Equal((double)predictions[i].Score, (double)valuesAtSecondColumn[i], 0.001);
TrainerEstimators\TreeEstimators.cs (10)
564Assert.Equal(nativeResult0[j + i * _classNumber], mlnetPredictions[i].Score[j], 0.000001); 572Assert.Equal(prob / sum, mlnetPredictions[i].Score[j], 0.000001); 600Assert.Equal(nativeResult0[j + i * _classNumber], mlnetPredictions[i].Score[j], 0.000001); 608Assert.Equal(prob / sum, mlnetPredictions[i].Score[j], 0.000001); 642areEqual &= firstMlnetPredictions[i].Score[j].Equals(secondMlnetPredictions[i].Score[j]); 671Assert.Equal(nativeResult0[j + i * _classNumber], mlnetPredictions[i].Score[j], 0.000001); 677Assert.Equal(prob / sum, mlnetPredictions[i].Score[j], 0.000001); 700Assert.Equal(nativeResult0[j + i * _classNumber], mlnetPredictions[i].Score[j], 0.000001); 706Assert.Equal(prob / sum, mlnetPredictions[i].Score[j], 0.000001);
Transformers\ValueMappingTests.cs (1)
790var feature = features[i];
Microsoft.ML.TimeSeries (49)
AdaptiveSingularSpectrumSequenceModeler.cs (13)
938if ((sortedComponents[i].Phase < 0 && sortedComponents[i + 1].Phase < 0) || 939(sortedComponents[i].Phase > 0 && sortedComponents[i + 1].Phase > 0)) 941sortedComponents[i].Cluster = clusterNum; 942if (Math.Abs(sortedComponents[i + 1].Phase - sortedComponents[i].Phase) > 0.05) 944sortedComponents[i + 1].Cluster = clusterNum; 955if (sortedComponents[i].Cluster != sortedComponents[i - 1].Cluster) 964avgPhase += sortedComponents[j].Phase; 965avgMagnitude += roots[sortedComponents[j].Index].Magnitude; 971roots[sortedComponents[j].Index] = Complex.FromPolarCoordinates(avgMagnitude,
PolynomialUtils.cs (11)
157var temp = Math.Abs(Coefficients[i]); 161_key = Coefficients[i]; 205destination[dstIndex] = Coefficients[uIndex] * Coefficients[vIndex]; 206destination[dstIndex + 1] = Coefficients[uIndex] + Coefficients[vIndex]; 242temp = uCoeff * Coefficients[i - uLen + vIndex]; 245temp += (vCoeff * Coefficients[i - vLen + uIndex]); 248temp += (Coefficients[b - j + uIndex] * Coefficients[c + j + vIndex]); 386coefficients[i] = Decimal.ToDouble(coeff[i - destinationOffset]);
RootCauseAnalyzer.cs (4)
374dst.Items[i].Score = 1; 378dst.Items[i].Score = GetFinalScore(scoreList[i].Surprise, Math.Abs(scoreList[i].ExplanatoryScore), beta);
SrCnnAnomalyDetectionBase.cs (11)
196spectralList.Add(MathUtils.ExpSlow(magLogList[i] - filteredLogList[i])); 204if (magLogList[i] != 0) 206transRe[i] = fftRe[i] * spectralList[i] / magList[i]; 207transIm[i] = fftIm[i] * spectralList[i] / magList[i]; 265slopeSum += (data[n - 1] - data[i]) / (n - 1 - i); 277cumSumList[i] = (cumSumList[i] - cumSumShift[i - n]) / n;
SrCnnEntireAnomalyDetector.cs (8)
797while (cursor < segments.Count && anomalyIndex[i] >= segments[cursor].Item2) 802if (cursor < segments.Count && segments[cursor].Item1 <= anomalyIndex[i] && anomalyIndex[i + 1] <= segments[cursor].Item2) 804for (int j = anomalyIndex[i]; j < anomalyIndex[i + 1]; ++j)
STL\InnerStl.cs (2)
252s[i] = c[i] - lowPass.Y[i]; 271t[i] = trender.Y[i];
Microsoft.ML.TimeSeries.Tests (39)
TimeSeriesDirectApi.cs (25)
141Assert.Equal(expectedValues[index++], row.Change[0]); 142Assert.Equal(expectedValues[index++], row.Change[1]); 143Assert.Equal(expectedValues[index++], row.Change[2]); 144Assert.Equal(expectedValues[index++], row.Change[3]); 198Assert.Equal(expectedValues[index++], row.Change[0], 0.0000001); // Alert 199Assert.Equal(expectedValues[index++], row.Change[1], 0.0000001); // Raw score 200Assert.Equal(expectedValues[index++], row.Change[2], 0.0000001); // P-Value score 201Assert.Equal(expectedValues[index++], row.Change[3], 0.0000001); // Martingale score 408Assert.Equal(expectedForecast[localIndex], row.Forecast[localIndex], 0.0000001); 409Assert.Equal(minCnf[localIndex], row.MinCnf[localIndex], 0.0000001); 410Assert.Equal(maxCnf[localIndex], row.MaxCnf[localIndex], 0.0000001); 662Assert.True(prediction.Prediction[6] > data[k].Value || data[k].Value > prediction.Prediction[5]); 714Assert.True(prediction.Prediction[6] <= data[index].Value); 715Assert.True(data[index].Value <= prediction.Prediction[5]); 821Assert.True(prediction.Prediction[6] > data[k].Value || data[k].Value > prediction.Prediction[5]); 826Assert.True(prediction.Prediction[6] <= data[k].Value); 827Assert.True(data[k].Value <= prediction.Prediction[5]); 879Assert.True(prediction.Prediction[6] > data[k].Value || data[k].Value > prediction.Prediction[5]); 884Assert.True(prediction.Prediction[6] <= data[k].Value); 885Assert.True(data[k].Value <= prediction.Prediction[5]); 911data[i].Value = -data[i].Value;
TimeSeriesSimpleApiTests.cs (14)
69Assert.Equal(expectedValues[index++], row.Data[0], 0.0000001); 70Assert.Equal(expectedValues[index++], row.Data[1], 0.0000001); 71Assert.Equal(expectedValues[index++], row.Data[2], 0.0000001); 72Assert.Equal(expectedValues[index++], row.Data[3], 0.0000001); 113CompareNumbersWithTolerance(expectedValues[index++], row.Data[0], digitsOfPrecision: 5); // Alert 114CompareNumbersWithTolerance(expectedValues[index++], row.Data[1], digitsOfPrecision: 5); // Raw score 115CompareNumbersWithTolerance(expectedValues[index++], row.Data[2], digitsOfPrecision: 5); // P-Value score 116CompareNumbersWithTolerance(expectedValues[index++], row.Data[3], digitsOfPrecision: 5); // Martingale score 164CompareNumbersWithTolerance(expectedValues[i][0], row.Data[0], digitsOfPrecision: 7); 165CompareNumbersWithTolerance(expectedValues[i][1], row.Data[1], digitsOfPrecision: 7); 166CompareNumbersWithTolerance(expectedValues[i][2], row.Data[2], digitsOfPrecision: 7); 222CompareNumbersWithTolerance(expectedValues[i][0], row.Data[0], digitsOfPrecision: 6); 223CompareNumbersWithTolerance(expectedValues[i][1], row.Data[1], digitsOfPrecision: 6); 224CompareNumbersWithTolerance(expectedValues[i][2], row.Data[2], digitsOfPrecision: 6);
Microsoft.ML.Tokenizers (48)
Model\CodeGenTokenizer.cs (15)
1032if (tokens[tokenCount].Offset.Start.Value == tokens[tokenCount + 1].Offset.Start.Value) 1036while (j < tokens.Count && tokens[j].Offset.Start.Value == tokens[tokenCount].Offset.Start.Value) 1046accumulatedIds?.Add(tokens[k].Id); 1047charsConsumed += tokens[k].Offset.End.Value - tokens[k].Offset.Start.Value; 1058accumulatedIds?.Add(tokens[tokenCount].Id); 1059charsConsumed += tokens[tokenCount].Offset.End.Value - tokens[tokenCount].Offset.Start.Value; 1087while (index < tokens.Count && tokens[index].Offset.Start.Value == tokens[index - 1].Offset.Start.Value) 1094accumulatedIds?.Add(tokens[i].Id); 1095textIndex -= tokens[i].Offset.End.Value - tokens[i].Offset.Start.Value;
Model\EnglishRobertaTokenizer.cs (17)
610accumulatedIds.Add(tokens[i].Id); 611charsConsumed += tokens[i].Offset.End.Value - tokens[i].Offset.Start.Value; 618charsConsumed += tokens[i].Offset.End.Value - tokens[i].Offset.Start.Value; 647accumulatedIds.Add(tokens[i].Id); 648textIndex -= tokens[i].Offset.End.Value - tokens[i].Offset.Start.Value; 655textIndex -= tokens[i].Offset.End.Value - tokens[i].Offset.Start.Value; 1007newWord.Add(word[k]); 1017newWord.Add(word[k]); 1024if (i < word.Count - 1 && word[i + 1] == second) 1031newWord.Add(word[i]); 1151return _symbols[rank].OccurrenceScore; 1164return _symbols[rank].Id; 1213return idx < _symbols.Count ? _symbols[idx].Id : UnkIndex;
Utils\PriorityQueue.cs (16)
27if (_data[ci].CompareTo(_data[pi]) >= 0) break; // child item is larger than (or equal) parent so we're done 28T tmp = _data[ci]; _data[ci] = _data[pi]; _data[pi] = tmp; 38_data[0] = _data[li]; 48if (rc <= li && _data[rc].CompareTo(_data[ci]) < 0) // if there is a rc (ci + 1), and it is smaller than left child, use the rc instead 50if (_data[pi].CompareTo(_data[ci]) <= 0) break; // parent is smaller than (or equal to) smallest child so done 51T tmp = _data[pi]; _data[pi] = _data[ci]; _data[ci] = tmp; // swap parent and child 69s += _data[i].ToString() + " "; 86if (lci <= li && _data[pi].CompareTo(_data[lci]) > 0) return false; // if lc exists and it's greater than parent then bad. 87if (rci <= li && _data[pi].CompareTo(_data[rci]) > 0) return false; // check the right child too.
Microsoft.ML.TorchSharp (44)
AutoFormerV2\Attention.cs (4)
80var offset = new Tuple<int, int>(Math.Abs(points[i][0] - points[j][0]), Math.Abs(points[i][1] - points[j][1]));
AutoFormerV2\AutoFormerV2Backbone.cs (6)
93inChannels: embedChannels[iLayer], 94outChannels: embedChannels[Math.Min(iLayer + 1, embedChannels.Count - 1)], 95depth: depths[iLayer], 96numHeads: numHeads[iLayer], 97windowSize: windowSizes[iLayer], 150var res = xOut.view(n, h, w, this.numFeatures[iLayer]).permute(0, 3, 1, 2).contiguous();
AutoFormerV2\BasicLayer.cs (4)
76int hStart = hSlicesStartAndEnd[i]; 77int hEnd = hSlicesStartAndEnd[i + 1]; 78int wStart = wSlicesStartAndEnd[j]; 79int wEnd = wSlicesStartAndEnd[j + 1];
AutoFormerV2\FPN.cs (11)
43this.lateral_convs.Add(new ConvModule(inChannels[i], outChannel, 1, useRelu: false)); 53inChannel = inChannels[backboneEndLevel - 1]; 74laterals.Add(this.lateral_convs[i].forward(inputs[i])); 79var prevShape = new long[] { laterals[i - 1].shape[2], laterals[i - 1].shape[3] }; 80laterals[i - 1] = laterals[i - 1] + nn.functional.interpolate(laterals[i], prevShape); 86outs.Add(this.fpn_convs[i].forward(laterals[i])); 89var extraSource = inputs[usedBackboneLevels - 1]; 93outs.Add(this.fpn_convs[i].forward(outs[outs.Count - 1])); 98outs[i] = outs[i].MoveToOuterDisposeScope();
AutoFormerV2\ObjectDetectionMetrics.cs (8)
185var gt = annotation[annotaIndex]; 189var predBox = objectLabel[detectIndex]; 211iouDic[annotation[tuple.Item1].Category].Add( 212Tuple.Create(objectLabel[tuple.Item2].Confidence, tuple.Item3)); 223iouDic[objectLabel[predSignIndex].Category].Add( 224Tuple.Create(objectLabel[predSignIndex].Confidence, 0f)); 236var annotation = annotations[annoIndex]; 264if (detectionList[index].Item2 >= threshold)
AutoFormerV2\RetinaHead.cs (2)
73var clsOutput = inputs[i]; 87var regOutput = inputs[i];
NasBert\Models\NasBertEncoder.cs (5)
125.Select(i => new HiddenTransferDiscrete(hiddenSizePerBlockExtend[i], hiddenSizePerBlockExtend[i + 1])) 234x = HiddenTransferList[blockIndex].forward(x, HiddenSizePerBlock[blockIndex], true); 241x = HiddenTransferList[blockIndex].forward(x, HiddenSizePerBlock[blockIndex], false); 260.Select(j => ArchHiddenSize[DiscreteArches[j]]).ToArray();
NasBert\NasBertTrainer.cs (1)
276lengthArray[i, 0] = (int)inputTensors[i].shape[0];
NasBert\NerTrainer.cs (3)
150for (int j = 0; j < targets[i].Length; j++) 152targetArray[i, j] = targets[i].GetValues()[j]; 155for (int j = targets[i].Length; j < maxLength; j++)
Microsoft.ML.Transforms (40)
Dracula\CountTableTransformer.cs (5)
189if (cols[i].Type is VectorDataViewType) 190vectorGetters[i] = cursor.GetGetter<VBuffer<uint>>(cols[i]); 192singleGetters[i] = cursor.GetGetter<uint>(cols[i]); 206if (cols[i].Type is VectorDataViewType) 209_host.Check(srcBuffer.Length == cols[i].Type.GetVectorSize(), "value count mismatch");
Expression\CodeGen.cs (3)
359var cache = _cacheWith[loc.Index]; 1346var item = _cacheWith[i]; 1399Contracts.Assert(_cacheWith[index] == cache);
Expression\LambdaBinder.cs (7)
152var with = _rgwith[i]; 1379var cand = candidates[i]; 1404best = candidates[icandMinBad]; 1558var c1 = candidates[i]; 1572dup2 = candidates[dup]; 1577int cmp = c1.CompareSignatures(candidates[j]); 1622_host.Assert(_rgwith[iwith] == node);
Expression\LambdaParser.cs (7)
43int ichBase = index == 0 ? 0 : lineMap[index - 1]; 46if (index == lineMap.Count || IchLim < lineMap[index]) 56ichBase = lineMap[index - 1]; 69if (value >= map[iv]) 75Contracts.Assert(ivMin == map.Count || value < map[ivMin]); 76Contracts.Assert(ivMin == 0 || value >= map[ivMin - 1]); 196if (Utils.Size(_errors) > 0 && _errors[_errors.Count - 1].Token == err.Token)
Expression\MethodGenerator.cs (1)
154var temp = locals[locals.Count - 1];
LearnerFeatureSelection.cs (1)
187var range = slots[i];
MissingValueIndicatorTransformer.cs (6)
388int iNext = indices[iiSrc]; 402Host.Assert(iNext < indices[iiSrc + 1]); 423Host.Assert(0 <= i && i <= indices[ii]); 424if (i == indices[ii]) 429Host.Assert(indices[ii - 1] < indices[ii]);
MissingValueReplacing.cs (3)
334int iinfo = columnsToImpute[ii]; 353repValues[columnsToImpute[ii]] = statAggregators[ii].GetStat(); 359int slot = columnsToImpute[ii];
PermutationFeatureImportance.cs (1)
181nextFeatureIndex = workingFeatureIndices[processedCnt + 1];
PermutationFeatureImportanceExtensions.cs (1)
711var name = featureColumnNames[i].ToString();
Text\LdaTransform.cs (3)
222var mapping = _columnMappings[columnIndex]; 531int index = retTopics[i].Key; 532float value = retTopics[i].Value;
Text\WordBagTransform.cs (1)
495var column = termCols[iinfo];
Text\WordTokenizing.cs (1)
298editor.Values[i] = terms[i];
Microsoft.Net.Http.Headers (1)
CacheControlHeaderValue.cs (1)
570var nameValue = nameValueList[i];
Microsoft.NET.StringTools (9)
InternableString.cs (1)
81if (newCharIndex < _string._spans[_spanIndex].Length)
SpanBasedStringBuilder.cs (8)
54ReadOnlyMemory<char> span = _spans[_spanIndex]; 68if (newCharIndex < _spans[_spanIndex].Length) 211ReadOnlySpan<char> span = _spans[spanIdx].Span; 219_spans[spanIdx] = _spans[spanIdx].Slice(i); 222if (!_spans[spanIdx].IsEmpty) 236ReadOnlySpan<char> span = _spans[spanIdx].Span; 244_spans[spanIdx] = _spans[spanIdx].Slice(0, i + 1); 247if (!_spans[spanIdx].IsEmpty)
Microsoft.NET.StringTools.net35 (1)
WeakStringCache.Locking.cs (1)
99_stringsByHashCode.Remove(keysToRemove[i]);
Microsoft.VisualBasic.Core (12)
Microsoft\VisualBasic\CompilerServices\ConversionResolution.vb (7)
591Dim maxEncompassing As System.Type = types.Item(0) 594Dim candidate As Type = types.Item(index) 618Dim maxEncompassed As System.Type = types.Item(0) 621Dim candidate As Type = types.Item(index) 673Dim existing As Method = operatorList.Item(i) 972operatorMethod = operatorChoices.Item(0) 993operatorMethod = operatorChoices.Item(0)
Microsoft\VisualBasic\CompilerServices\OverloadResolution.vb (5)
553Dim existing As Method = candidates.Item(index) 623candidates.Item(index) = Nothing 642candidates.Item(index) = Nothing 2836If candidates.Count = 1 AndAlso Not candidates.Item(0).NotCallable Then 2837Return candidates.Item(0)
Microsoft.VisualStudio.LanguageServices (23)
ChangeSignature\ChangeSignatureDialogViewModel.cs (13)
185return !AllParameters[index].IsRemoved; 198return AllParameters[index].IsRemoved; 228if (AllParameters[_selectedIndex!.Value] is AddedParameterViewModel) 230var parameterToRemove = AllParameters[_selectedIndex!.Value]; 239AllParameters[_selectedIndex!.Value].IsRemoved = true; 248AllParameters[_selectedIndex!.Value].IsRemoved = false; 466var param = list[index]; 548return string.Format(ServicesVSResources.Move_0_above_1, AllParameters[SelectedIndex!.Value].ShortAutomationText, AllParameters[SelectedIndex!.Value - 1].ShortAutomationText); 561return string.Format(ServicesVSResources.Move_0_below_1, AllParameters[SelectedIndex!.Value].ShortAutomationText, AllParameters[SelectedIndex!.Value + 1].ShortAutomationText); 574return string.Format(ServicesVSResources.Remove_0, AllParameters[SelectedIndex!.Value].ShortAutomationText); 587return string.Format(ServicesVSResources.Restore_0, AllParameters[SelectedIndex!.Value].ShortAutomationText);
PickMembers\PickMembersDialogViewModel.cs (5)
109return string.Format(ServicesVSResources.Move_0_above_1, MemberContainers[SelectedIndex.Value].SymbolAutomationText, MemberContainers[SelectedIndex.Value - 1].SymbolAutomationText); 122return string.Format(ServicesVSResources.Move_0_below_1, MemberContainers[SelectedIndex.Value].SymbolAutomationText, MemberContainers[SelectedIndex.Value + 1].SymbolAutomationText); 174var param = list[index];
Telemetry\CodeMarkerLogger.cs (1)
161var marker = getter(items[i]);
Venus\ContainedDocument.cs (4)
279var visibleSpan = editorVisibleSpansInOriginal[spanIndex]; 680var positionAndDelta = replacementMap[i]; 867var span = spans[spanIndex]; 874visibleSpan = spans[spanIndex];
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
1309leadingTriviaList[firstIndex].Kind() == SyntaxKind.EndOfLineTrivia)
MSBuild (1)
XMake.cs (1)
4338if (string.Equals(loggerTypeSpec[i] as string, nameof(isOptional), StringComparison.OrdinalIgnoreCase))
MSBuildTaskHost (2)
BinaryTranslator.cs (2)
1029_writer.Write(list[i]); 1068T value = list[i];
PresentationBuildTasks (13)
Microsoft\Build\Tasks\Windows\UidManager.cs (2)
692Uid currentUid = _uids[i]; 732return _uids[index];
MS\Internal\Tasks\IncrementalCompileAnalyzer.cs (1)
416FileUnit xamlfile = modifiedXamlFiles[i];
src\Microsoft.DotNet.Wpf\src\PresentationCore\MS\Internal\Media\XamlSerializationHelper.cs (1)
205curPoint = point3Ds[i] ;
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\BamlRecordWriter.cs (3)
1592List<ValueDeferRecord> srRecords = staticResourceRecordList[j]; 1595ValueDeferRecord srRecord = srRecords[k]; 1677valueDeferRecord = _staticResourceRecordList[_staticResourceRecordList.Count-1];
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlInt32CollectionSerializer.cs (5)
100last = ints[i-1].Value; 101cur = ints[i].Value; 169ints[i].Value 184ints[i].Value 199ints[i].Value
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlTypeMapper.cs (1)
3270ClrNamespaceAssemblyPair mapping = namespaceAssemblyPair[j];
PresentationCore (533)
MS\Internal\DpiUtil\DpiUtil.cs (2)
185if (UIElement.DpiScaleXValues[index] == pixelsPerInchX / DpiUtil.DefaultPixelsPerInch && 186UIElement.DpiScaleYValues[index] == pixelsPerInchY / DpiUtil.DefaultPixelsPerInch)
MS\Internal\Ink\Bezier.cs (2)
71Point p = points[x]; 567return (Vector)_bezierControlPoints[index];
MS\Internal\Ink\CuspData.cs (32)
71_nodes.Insert(index, _nodes[index - 1] + (XY(index) - XY(index - 1)).Length); 94if (_nodes[j] - _nodes[i] >= rError) 96CDataPoint cdp = _points[i]; 100CDataPoint cdp2 = _points[j]; 107if (0 > _points[i].TanPrev) 111if (_nodes[i] - _nodes[j] >= rError) 113CDataPoint cdp = _points[i]; 121if (0 > _points[i].TanNext) 123CDataPoint cdp = _points[i]; 128if (0 > _points[i].TanPrev) 130CDataPoint cdp = _points[i]; 162if (_cusps[m] <= iCurrent) 170return _cusps[m + 1]; 181return new Vector(_points[i].Point.X, _points[i].Point.Y); 202return _nodes[i]; 213return _points[nodeIndex].Index; 248i_1 = _points[nAt].TanPrev; 256i_2 = _points[i_1].TanPrev; 263i_1 = _points[nAt].TanNext; 271i_2 = _points[i_1].TanNext; 282i_2 = _points[nAt].TanPrev; 290i_3 = _points[i_2].TanPrev; 295nAt = _points[nAt].TanNext; 444if (_nodes[iNext] - _nodes[iPoint] >= _span) 454if (_nodes[iPoint] - _nodes[iPrev] >= _span) 520_span = 0.75f * (_nodes[count - 1] * _nodes[count - 1]) / (count * _dist);
MS\Internal\Ink\ErasingStroke.cs (5)
176StrokeFIndices lastFragment = eraseAt[i]; 215if (eraseAt[eraseAt.Count - 1].IsFull) 223StrokeFIndices lastFragment = eraseAt[index - 1]; 226if (DoubleUtil.AreClose(eraseAt[index].BeginFIndex, StrokeFIndices.BeforeFirst)) 228lastFragment.EndFIndex = eraseAt[index].EndFIndex;
MS\Internal\Ink\ExtendedPropertyCollection.cs (9)
48if (_extendedProperties[i].Equals(that[x])) 108if (_extendedProperties[x].Id == attributeId) 137copied.Add(_extendedProperties[x].Clone()); 238ExtendedProperty currentProperty = _extendedProperties[i]; 282return _extendedProperties[index]; 339_extendedProperties[_optimisticIndex].Id == id) 341return _extendedProperties[_optimisticIndex]; 347if (_extendedProperties[i].Id == id) 349return _extendedProperties[i];
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (2)
70if (guid.Equals(_customGuids[i])) 232Guid guid = (Guid)_customGuids[i];
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (22)
103if (0 == (byte)(charData[charData.Count - 1])) 1571KnownTagCache.KnownTagIndex tag = (KnownTagCache.KnownTagIndex)strd.Template[cTags]; 1578buttonCount = (uint)strd.Template[cTags]; 1585Guid guid = guidList.FindGuid(strd.Template[cTags]); 1607tags.Add(strd.Template[cTags]); 1625Guid guid = guidList.FindGuid(tags[i]); 1636stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(guid, tags[i], block)); 2224cbTotal += SerializationHelper.VarSize((_strokeDescriptorTable[count]).Size) + (_strokeDescriptorTable[count]).Size; 2234cbData += EncodeStrokeDescriptor(strm, _strokeDescriptorTable[count]); 2256cSize += _metricTable[i].Size; 2281block = _metricTable[i]; 2304cbData += SerializationHelper.Encode(strm, (uint)strd.Template[count]); 2331TransformDescriptor xform = _transformTable[i]; 2366cbTotal += EncodeTransformDescriptor(strm, _transformTable[i], false); 2376cbTotal += EncodeTransformDescriptor(strm, _transformTable[i], true); 2485DrawingAttributes drawingAttributes = _drawingAttributesTable[i]; 2498DrawingAttributes drawingAttributes = _drawingAttributesTable[i]; 2546if (strokeDescriptor.IsEqual(_strokeDescriptorTable[descriptorIndex])) 2564MetricBlock block = _metricTable[tmp]; 2599if (true == xform.Compare(_transformTable[i])) 2621if (true == drattrs.Equals(_drawingAttributesTable[i]))
MS\Internal\Ink\InkSerializedFormat\StrokeDescriptor.cs (2)
44if( _strokeDescriptor[i] != strd.Template[i] )
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (3)
168KnownTagCache.KnownTagIndex tag = strokeDescriptor.Template[iTag - 1]; 177tag = strokeDescriptor.Template[iTag]; 207iTag += (int)((uint)strokeDescriptor.Template[iTag]) + 1;
MS\Internal\Ink\Lasso.cs (31)
80return _points[index]; 131if (!DoubleUtil.AreClose(_points[last].Y,point.Y)) 133isHigher = (point.Y < _points[last].Y); 139Point prevLassoPoint = _points[_points.Count - 1]; 142Point lassoPoint = _points[i]; 213Point lassoLastPoint = _points[_points.Count - 1]; 395si.InBegin = crossingList[x - 1].FIndices.EndFIndex; 396si.HitBegin = crossingList[x - 1].FIndices.BeginFIndex; 397currentSegmentWithinLasso = SegmentWithinLasso(crossingList[x - 1].EndNode, si.InBegin); 416si.InEnd = crossingList[x].FIndices.BeginFIndex; 426si.HitEnd = crossingList[x].FIndices.EndFIndex; 427currentSegmentWithinLasso = SegmentWithinLasso(crossingList[x].StartNode, si.InEnd); 431if (!currentSegmentWithinLasso && !SegmentWithinLasso(crossingList[x].EndNode, si.HitEnd)) 434si.HitBegin = crossingList[x].FIndices.BeginFIndex; 446StrokeIntersection previousIntersection = strokeIntersections[strokeIntersections.Count - 1]; 512Point lastPoint = _points[_points.Count - 1]; 721X = points[i].X + (intersection - i) * (points[i + 1].X - points[i].X), 722Y = points[i].Y + (intersection - i) * (points[i + 1].Y - points[i].Y) 742bounds.Union(points[j]); 773Rect newRect = new Rect(points[count - 1], point); 783Rect currRect = new Rect(points[i], points[i+1]); 789double s = FindIntersection(points[count-1] - points[i], /*hitBegin*/ 790point - points[i], /*hitEnd*/ 792points[i+1] - points[i] /*orgEnd*/);
MS\Internal\Ink\StrokeIntersection.cs (4)
195inFIndices[inFIndices.Count - 1].EndFIndex >= 199StrokeFIndices sfiPrevious = inFIndices[inFIndices.Count - 1]; 227hitFIndices[hitFIndices.Count - 1].EndFIndex >= 231StrokeFIndices sfiPrevious = hitFIndices[hitFIndices.Count - 1];
MS\Internal\Ink\StrokeRenderer.cs (9)
163connectingQuadPoints[i] = connectingQuadPoints[j]; 173Point temp = connectingQuadPoints[i]; 174connectingQuadPoints[i] = connectingQuadPoints[j]; 805temp = dcPoints[i]; 806dcPoints[i] = dcPoints[j]; 870context.BeginFigure(points[points.Count - 1], //start point 935Point next = points[i]; 950Point sizePoint = points[i + 1]; 952Point arcToPoint = points[i + 2];
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (15)
402hitTestEdgeList[i].Project(_objectToViewport); 1031Vector v1 = mousePos - edges[i]._p1Transformed; 1032Vector v2 = edges[i]._p2Transformed - edges[i]._p1Transformed; 1052currClosest = edges[i]._p1Transformed; 1060currClosest = edges[i]._p1Transformed; 1066currClosest = edges[i]._p2Transformed; 1070currClosest = edges[i]._p1Transformed + (numer / denom) * v2; 1084closestIntersection = ((currClosest - edges[i]._p1Transformed).Length / Math.Sqrt(denom) * 1085(edges[i]._uv2 - edges[i]._uv1)) + edges[i]._uv1; 1089closestIntersection = edges[i]._uv1; 1179result.Union(edges[i]._p1Transformed); 1180result.Union(edges[i]._p2Transformed);
src\Microsoft.DotNet.Wpf\src\Common\Graphics\exports.cs (5)
1060if (_others[i]._key == key) 1129_first = _others[j]; 1185value = _others[index]._value; 1229return _others[index - 1]._key; 1295if (others[i]._key == key)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\Ink\BitStream.cs (1)
447buffer = _targetBuffer[_targetBuffer.Count - 1];
System\Windows\Automation\Peers\AutomationPeer.cs (13)
555AutomationPeer child = children[i]; 1262result[i] = ProviderFromPeer(controlledPeers[i]); 1493_children[i]._parent = this; 1494_children[i]._index = i; 1495_children[i]._hwnd = _hwnd; 1518peer = _children[_children.Count - 1]; 1544&& parent._children[_index] == this ) 1546sibling = parent._children[_index + 1]; 1567&& parent._children[_index] == this ) 1569sibling = parent._children[_index - 1]; 1767found = children[i].GetPeerFromPoint(point); 1906hs.Add(oldChildren[i]); 1918AutomationPeer child = _children[i];
System\Windows\dataobject.cs (1)
1258string formatString = formats[i];
System\Windows\FreezableCollection.cs (7)
154OnFreezablePropertyChanged(/* oldValue = */ _collection[i], /* newValue = */ null); 232T oldValue = _collection[index]; 305return _collection[index]; 492array.SetValue(_collection[i], index + i); 622DependencyObject inheritanceChild = _collection[i]; 800T newValue = source._collection[i]; 892T item = _collection[i];
System\Windows\Ink\IncrementalHitTester.cs (8)
98_strokeInfos[i].Detach(); 186if (localRemoved[j] == _strokeInfos[i].Stroke) 211if (_strokeInfos[i].Stroke != _strokes[i]) 233StrokeInfo strokeInfo = _strokeInfos[x]; 254StrokeInfo strokeInfo = _strokeInfos[x]; 265Debug.Assert(_strokeInfos[x].Stroke == _strokes[x]); 532StrokeInfo strokeInfo = this.StrokeInfos[x]; 561StrokeHitEventArgs eventArgs = strokeHitEventArgCollection[x];
System\Windows\Ink\Stroke.cs (4)
298bezierLength += GetDistanceBetweenPoints(bezierPoints[x - 1], bezierPoints[x]); 315bezierPoints[x], 342bezierPoints[bezierPoints.Count - 1],
System\Windows\Input\AccessKeyManager.cs (2)
240UIElement target = targets[i] as UIElement; 383IInputElement element = possibleElements[i];
System\Windows\Input\Command\CommandManager.cs (4)
603if ((!execute || !ExecuteCommandBinding(sender, exArgs, list[i].Item2)) && 604(execute || !CanExecuteCommandBinding(sender, canExArgs, list[i].Item2))) continue; 606Type classType = list[i].Item1; 607while (++i < list.Count && list[i].Item1 == classType)
System\Windows\Input\Command\InputBindingCollection.cs (3)
161return _innerBindingList[index]; 175oldInputBinding = _innerBindingList[index]; 313oldInputBinding = _innerBindingList[index];
System\Windows\Input\ManipulationDevice.cs (1)
138_manipulators[i].Updated -= OnManipulatorUpdated;
System\Windows\Input\ManipulationInertiaStartingEventArgs.cs (1)
245processor.SetParameters(_inertiaParameters[i]);
System\Windows\Input\Stylus\Common\DynamicRenderer.cs (1)
1018StrokeInfo siCur = _strokeInfoList[i];
System\Windows\Input\Stylus\Common\StylusPointCollection.cs (1)
100this.Add(points[x]);
System\Windows\Input\Stylus\Common\StylusPointDescription.cs (6)
52infos[RequiredXIndex].Id != StylusPointPropertyIds.X || 53infos[RequiredYIndex].Id != StylusPointPropertyIds.Y || 54infos[RequiredPressureIndex].Id != StylusPointPropertyIds.NormalPressure) 70if (seenIds.Contains(infos[x].Id)) 74if (infos[x].IsButton) 86seenIds.Add(infos[x].Id);
System\Windows\Input\Stylus\Common\TabletDeviceCollection.cs (1)
76return TabletDevices[index];
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (2)
83DependencyObject curV = _plugInCollectionList[i].Element as Visual; 89curV = _plugInCollectionList[i].Element as Visual;
System\Windows\Input\Stylus\Pointer\PointerTabletDeviceInfo.cs (3)
258Debug.Assert(properties[StylusPointDescription.RequiredXIndex /*0*/].Id == StylusPointPropertyIds.X || !seenX, 260Debug.Assert(properties[StylusPointDescription.RequiredYIndex /*1*/].Id == StylusPointPropertyIds.Y || !seenY, 262Debug.Assert(properties[StylusPointDescription.RequiredPressureIndex /*1*/].Id == StylusPointPropertyIds.NormalPressure /*2*/,
System\Windows\Input\Stylus\Wisp\PenContext.cs (3)
150Debug.Assert(propertyInfos[StylusPointDescription.RequiredXIndex /*0*/].Id == StylusPointPropertyIds.X, "X isn't where we expect it! Fix PenImc to ask for X at index 0"); 151Debug.Assert(propertyInfos[StylusPointDescription.RequiredYIndex /*0*/].Id == StylusPointPropertyIds.Y, "Y isn't where we expect it! Fix PenImc to ask for Y at index 1"); 378_contexts.OnPenOutOfRange(this, _tabletDeviceId, _stylusDevicesInRange[i], timestamp);
System\Windows\Input\Stylus\Wisp\PenContexts.cs (2)
281DependencyObject curV = _plugInCollectionList[i].Element as Visual; 287curV = _plugInCollectionList[i].Element as Visual;
System\Windows\Input\Stylus\Wisp\PenThreadPool.cs (1)
102if (_penThreadWeakRefList[i].TryGetTarget(out candidatePenThread)
System\Windows\Input\Stylus\Wisp\PenThreadWorker.cs (4)
933Debug.Assert(properties[StylusPointDescription.RequiredXIndex /*0*/].Id == StylusPointPropertyIds.X, "X isn't where we expect it! Fix PenImc to ask for X at index 0"); 934Debug.Assert(properties[StylusPointDescription.RequiredYIndex /*1*/].Id == StylusPointPropertyIds.Y, "Y isn't where we expect it! Fix PenImc to ask for Y at index 1"); 1034PenContext pc = penContextRefs[i]; 1088PenContext pc = penContextRefs[i];
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
1597storedStagingItems[stagingItemCount - 1].Input.RoutedEvent == Stylus.StylusMoveEvent)
System\Windows\Input\TouchDevice.cs (7)
436TouchDevice touchDevice = _activeDevices[i]; 468TouchDevice touchDevice = _activeDevices[i]; 810TouchDevice touchDevice = _activeDevices[i]; 1146TouchDevice device = _activeDevices[i]; 1175TouchDevice device = _activeDevices[i]; 1221TouchDevice device = _activeDevices[i]; 1241TouchDevice device = _activeDevices[i];
System\Windows\InterOp\HwndTarget.cs (2)
2304DpiScale newDpiScale = new DpiScale(UIElement.DpiScaleXValues[dpiFlags.Index], UIElement.DpiScaleYValues[dpiFlags.Index]);
System\Windows\Media\Animation\Clock.cs (3)
1423return parentChildren[_childIndex + 1]; 4279children[childIndex].BuildInfoRecursive(builder, depth); 4303Clock child = (Clock)children[index].Target;
System\Windows\Media\Animation\ClockGroup.cs (10)
133Clock child = _children[index]; 292if (_children[c].NeedsPostfixTraversal) // Traverse deeper if this is part of the visited tree subset 294ClockGroup group = _children[c] as ClockGroup; 315(_children[c].InternalNextTickNeededTime.HasValue && _children[c].InternalNextTickNeededTime < InternalNextTickNeededTime)) 317InternalNextTickNeededTime = _children[c].InternalNextTickNeededTime; 352Clock current = _children[childIndex]; 438Clock child = _children[c]; 552_children[childIndex].UpdateDescendantsWithUnresolvedDuration(); 553if (_children[childIndex].HasDescendantsWithUnresolvedDuration)
System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (2)
745KeyTimeBlock block = unspecifiedBlocks[j]; 884(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (11)
103BooleanKeyFrame keyFrame = (BooleanKeyFrame)sourceCollection._keyFrames[i].Clone(); 124BooleanKeyFrame keyFrame = (BooleanKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145BooleanKeyFrame keyFrame = (BooleanKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166BooleanKeyFrame keyFrame = (BooleanKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (2)
837KeyTimeBlock block = unspecifiedBlocks[j]; 976(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (11)
103ByteKeyFrame keyFrame = (ByteKeyFrame)sourceCollection._keyFrames[i].Clone(); 124ByteKeyFrame keyFrame = (ByteKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145ByteKeyFrame keyFrame = (ByteKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166ByteKeyFrame keyFrame = (ByteKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (2)
744KeyTimeBlock block = unspecifiedBlocks[j]; 883(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (11)
103CharKeyFrame keyFrame = (CharKeyFrame)sourceCollection._keyFrames[i].Clone(); 124CharKeyFrame keyFrame = (CharKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145CharKeyFrame keyFrame = (CharKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166CharKeyFrame keyFrame = (CharKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (2)
837KeyTimeBlock block = unspecifiedBlocks[j]; 976(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (11)
103ColorKeyFrame keyFrame = (ColorKeyFrame)sourceCollection._keyFrames[i].Clone(); 124ColorKeyFrame keyFrame = (ColorKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145ColorKeyFrame keyFrame = (ColorKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166ColorKeyFrame keyFrame = (ColorKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (2)
837KeyTimeBlock block = unspecifiedBlocks[j]; 976(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (11)
103DecimalKeyFrame keyFrame = (DecimalKeyFrame)sourceCollection._keyFrames[i].Clone(); 124DecimalKeyFrame keyFrame = (DecimalKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145DecimalKeyFrame keyFrame = (DecimalKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166DecimalKeyFrame keyFrame = (DecimalKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (2)
837KeyTimeBlock block = unspecifiedBlocks[j]; 976(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (11)
103DoubleKeyFrame keyFrame = (DoubleKeyFrame)sourceCollection._keyFrames[i].Clone(); 124DoubleKeyFrame keyFrame = (DoubleKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145DoubleKeyFrame keyFrame = (DoubleKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166DoubleKeyFrame keyFrame = (DoubleKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (2)
837KeyTimeBlock block = unspecifiedBlocks[j]; 976(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (11)
103Int16KeyFrame keyFrame = (Int16KeyFrame)sourceCollection._keyFrames[i].Clone(); 124Int16KeyFrame keyFrame = (Int16KeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145Int16KeyFrame keyFrame = (Int16KeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166Int16KeyFrame keyFrame = (Int16KeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (2)
837KeyTimeBlock block = unspecifiedBlocks[j]; 976(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (11)
103Int32KeyFrame keyFrame = (Int32KeyFrame)sourceCollection._keyFrames[i].Clone(); 124Int32KeyFrame keyFrame = (Int32KeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145Int32KeyFrame keyFrame = (Int32KeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166Int32KeyFrame keyFrame = (Int32KeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (2)
837KeyTimeBlock block = unspecifiedBlocks[j]; 976(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (11)
103Int64KeyFrame keyFrame = (Int64KeyFrame)sourceCollection._keyFrames[i].Clone(); 124Int64KeyFrame keyFrame = (Int64KeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145Int64KeyFrame keyFrame = (Int64KeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166Int64KeyFrame keyFrame = (Int64KeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (2)
744KeyTimeBlock block = unspecifiedBlocks[j]; 883(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (11)
103MatrixKeyFrame keyFrame = (MatrixKeyFrame)sourceCollection._keyFrames[i].Clone(); 124MatrixKeyFrame keyFrame = (MatrixKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145MatrixKeyFrame keyFrame = (MatrixKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166MatrixKeyFrame keyFrame = (MatrixKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (2)
744KeyTimeBlock block = unspecifiedBlocks[j]; 883(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (11)
103ObjectKeyFrame keyFrame = (ObjectKeyFrame)sourceCollection._keyFrames[i].Clone(); 124ObjectKeyFrame keyFrame = (ObjectKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145ObjectKeyFrame keyFrame = (ObjectKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166ObjectKeyFrame keyFrame = (ObjectKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (2)
838KeyTimeBlock block = unspecifiedBlocks[j]; 977(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (11)
103Point3DKeyFrame keyFrame = (Point3DKeyFrame)sourceCollection._keyFrames[i].Clone(); 124Point3DKeyFrame keyFrame = (Point3DKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145Point3DKeyFrame keyFrame = (Point3DKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166Point3DKeyFrame keyFrame = (Point3DKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (2)
837KeyTimeBlock block = unspecifiedBlocks[j]; 976(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (11)
103PointKeyFrame keyFrame = (PointKeyFrame)sourceCollection._keyFrames[i].Clone(); 124PointKeyFrame keyFrame = (PointKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145PointKeyFrame keyFrame = (PointKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166PointKeyFrame keyFrame = (PointKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (2)
838KeyTimeBlock block = unspecifiedBlocks[j]; 977(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (11)
103QuaternionKeyFrame keyFrame = (QuaternionKeyFrame)sourceCollection._keyFrames[i].Clone(); 124QuaternionKeyFrame keyFrame = (QuaternionKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145QuaternionKeyFrame keyFrame = (QuaternionKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166QuaternionKeyFrame keyFrame = (QuaternionKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (2)
837KeyTimeBlock block = unspecifiedBlocks[j]; 976(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (11)
103RectKeyFrame keyFrame = (RectKeyFrame)sourceCollection._keyFrames[i].Clone(); 124RectKeyFrame keyFrame = (RectKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145RectKeyFrame keyFrame = (RectKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166RectKeyFrame keyFrame = (RectKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (2)
838KeyTimeBlock block = unspecifiedBlocks[j]; 977(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (11)
103Rotation3DKeyFrame keyFrame = (Rotation3DKeyFrame)sourceCollection._keyFrames[i].Clone(); 124Rotation3DKeyFrame keyFrame = (Rotation3DKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145Rotation3DKeyFrame keyFrame = (Rotation3DKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166Rotation3DKeyFrame keyFrame = (Rotation3DKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (2)
837KeyTimeBlock block = unspecifiedBlocks[j]; 976(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (11)
103SingleKeyFrame keyFrame = (SingleKeyFrame)sourceCollection._keyFrames[i].Clone(); 124SingleKeyFrame keyFrame = (SingleKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145SingleKeyFrame keyFrame = (SingleKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166SingleKeyFrame keyFrame = (SingleKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (2)
837KeyTimeBlock block = unspecifiedBlocks[j]; 976(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (11)
103SizeKeyFrame keyFrame = (SizeKeyFrame)sourceCollection._keyFrames[i].Clone(); 124SizeKeyFrame keyFrame = (SizeKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145SizeKeyFrame keyFrame = (SizeKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166SizeKeyFrame keyFrame = (SizeKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (2)
744KeyTimeBlock block = unspecifiedBlocks[j]; 883(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (11)
103StringKeyFrame keyFrame = (StringKeyFrame)sourceCollection._keyFrames[i].Clone(); 124StringKeyFrame keyFrame = (StringKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145StringKeyFrame keyFrame = (StringKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166StringKeyFrame keyFrame = (StringKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (2)
838KeyTimeBlock block = unspecifiedBlocks[j]; 977(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (11)
103Vector3DKeyFrame keyFrame = (Vector3DKeyFrame)sourceCollection._keyFrames[i].Clone(); 124Vector3DKeyFrame keyFrame = (Vector3DKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145Vector3DKeyFrame keyFrame = (Vector3DKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166Vector3DKeyFrame keyFrame = (Vector3DKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (2)
837KeyTimeBlock block = unspecifiedBlocks[j]; 976(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (11)
103VectorKeyFrame keyFrame = (VectorKeyFrame)sourceCollection._keyFrames[i].Clone(); 124VectorKeyFrame keyFrame = (VectorKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 145VectorKeyFrame keyFrame = (VectorKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 166VectorKeyFrame keyFrame = (VectorKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 181canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 306OnFreezablePropertyChanged(_keyFrames[i], null); 431OnFreezablePropertyChanged(_keyFrames[index], null); 461return _keyFrames[index]; 472if (value != _keyFrames[index]) 474OnFreezablePropertyChanged(_keyFrames[index], value); 477Debug.Assert(_keyFrames[index] != null);
System\Windows\Media\Animation\ParallelTimeline.cs (1)
102Duration childEndOfActivePeriod = children[childIndex].EndOfActivePeriod;
System\Windows\Media\Animation\TimelineClockCollection.cs (1)
288return list[index];
System\Windows\Media\Animation\WeakRefEnumerator.cs (1)
134WeakReference currentRef = _list[_readIndex];
System\Windows\Media\Effects\ShaderEffect.cs (13)
211if (_floatRegisters[i] != null) 225if (_samplerData[i] != null) 483if (!list[position].HasValue) 510if (!_samplerData[position].HasValue) 522SamplerData? oldSampler = _samplerData[position]; 625MilColorF? v = _floatRegisters[i]; 642MilColorI? v = _intRegisters[i]; 659bool? v = _boolRegisters[i]; 680SamplerData? ssn = _samplerData[i]; 702SamplerData? ssn = _samplerData[i]; 738T? v = list[i]; 761SamplerData? ssn = _samplerData[i]; 798SamplerData? ssn = _samplerData[i];
System\Windows\Media\Visual.cs (6)
4700if (index < 3 && UIElement.DpiScaleXValues[index] != 0 && UIElement.DpiScaleYValues[index] != 0) 4702dpi = new DpiScale(UIElement.DpiScaleXValues[index], UIElement.DpiScaleYValues[index]); 4708dpi = new DpiScale(UIElement.DpiScaleXValues[actualIndex], UIElement.DpiScaleYValues[actualIndex]);
System\Windows\Media3D\Matrix3DStack.cs (1)
85return _stack[_stack.Count - 1];
System\Windows\Media3D\RayHitTestParameters.cs (2)
123RayHitTestResult result = results[i]; 157HitTestResultBehavior behavior = resultCallback(results[i]);
PresentationFramework (777)
MS\Internal\Annotations\Component\AdornerPresentationContext.cs (1)
433if (adorners[index - 1].AnnotationComponent.ZOrder <= adorner.AnnotationComponent.ZOrder)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (17)
122ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 123ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 126HighlightSegment highlightSegment = _segments[i]; 169_segments[seg].UpdateOwners(); 173ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 174ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 201ITextPointer invalidateStart = _segments[startSeg].Segment.Start; 202ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 208_segments[i].AddActiveOwner(highlightRange); 210_segments[i].RemoveActiveOwner(highlightRange); 244highlightSegment = _segments[i]; 353HighlightSegment highlightSegment = _segments[ind]; 443invalidateEnd = _segments[ind].Segment.End; 456HighlightSegment highlightSegment = _segments[i]; 480HighlightSegment highlightSegment = _segments[i]; 502HighlightSegment highlightSegment = _segments[i]; 672if (_owners[i].Priority < owner.Priority)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (9)
908Debug.Assert(components[i].HighlightAnchor != null, "Missing highlight anchor component"); 909active[i] = components[i].HighlightAnchor.IsSelected(selection); 911components[i].SetSelected(false); 918components[i].SetSelected(true); 974components[i].CheckPosition(pos); 1028if (Compare(_components[i], component) > 0) 1036_components[i].SetTabIndex(i); 1052if (_components[ind] == component) 1062_components[ind].SetTabIndex(ind);
MS\Internal\Annotations\TextAnchor.cs (14)
124if (_segments[i].Contains(textPointer)) 175if ((_segments[i].Start.CompareTo(other._segments[i].Start) != 0) || 176(_segments[i].End.CompareTo(other._segments[i].End) != 0)) 294current = anchor._segments[currentIndex]; 396currentSegment = anchor._segments[current]; 519return _segments.Count > 0 ? _segments[_segments.Count - 1].End : null; 548textBuffer.Append(TextRangeBase.GetTextInternal(_segments[i].Start, _segments[i].End)); 602TextSegment segment = orderedList[i]; 630if (newSegment.Start.CompareTo(_segments[i].Start) < 0) 635if (i > 0 && newSegment.Start.CompareTo(_segments[i - 1].End) < 0) 639if (i < _segments.Count && newSegment.End.CompareTo(_segments[i].Start) > 0)
MS\Internal\Controls\InkCanvasSelectionAdorner.cs (3)
165if (_elementsBounds[i] != hatchBounds[i]) 244Rect hatchRect = _elementsBounds[i];
MS\Internal\Data\CollectionViewGroupRoot.cs (3)
349node = list[index]; 363if (list[k].Group == parentGroup) 365parentNode = list[k];
MS\Internal\Data\LiveShapingList.cs (1)
719dp = s_dpList[_dpIndex];
MS\Internal\Documents\ContentHostHelper.cs (3)
112if (pageViews[i].DocumentPage is FlowDocumentPage) 114textView = (ITextView)((IServiceProvider)pageViews[i].DocumentPage).GetService(typeof(ITextView)); 124ich = pageViews[i].DocumentPage.Visual as IContentHost;
MS\Internal\Documents\DocumentGrid.cs (1)
2937RowCacheChange change = args.Changes[i];
MS\Internal\Documents\FlowDocumentPaginator.cs (3)
435AsyncRequest asyncRequest = _asyncRequests[index]; 623_asyncRequests[index].Cancel(); 788AsyncRequest asyncRequest = _asyncRequests[index];
MS\Internal\Documents\MultiPageTextView.cs (21)
155ReadOnlyCollection<TextSegment> textSegments = _pageTextViews[i].TextSegments; 169Geometry pageGeometry = _pageTextViews[i].GetTightBoundingGeometryFromTextPositions(startPositionInTextSegment, endPositionInTextSegment); 172Transform transform = _pageTextViews[i].RenderScope.TransformToAncestor(_renderScope).AffineTransform; 650if (!_pageTextViews[i].IsValid) 691textSegments.AddRange(_pageTextViews[i].TextSegments); 721_pageTextViews[index].Updated -= new EventHandler(HandlePageTextViewUpdated); 1076textViewBounds = TransformToAncestor(_pageTextViews[i].RenderScope, new Rect(_pageTextViews[i].RenderScope.RenderSize)); 1079textView = _pageTextViews[i]; 1090textViewBounds = TransformToAncestor(_pageTextViews[i].RenderScope, new Rect(_pageTextViews[i].RenderScope.RenderSize)); 1117textView = _pageTextViews[i]; 1142if (_pageTextViews[i].Contains(position)) 1144textView = _pageTextViews[i]; 1167if (_pageTextViews[i].DocumentPageView.PageNumber == pageNumber) 1169textView = _pageTextViews[i]; 1197if (_pageTextViews[i].DocumentPageView.PageNumber == newPageNumber) 1199textView = _pageTextViews[i]; 1205int currentPageNumber = _pageTextViews[i].DocumentPageView.PageNumber; 1212textView = _pageTextViews[i]; 1222textView = _pageTextViews[i];
MS\Internal\Documents\PageCache.cs (5)
259Size pageSize = _cache[pageNumber].PageSize; 294return _cache[pageNumber].Dirty; 712if (_cache[i].Dirty || !dirtyOnly) 795if (newEntry.PageSize != _cache[index].PageSize || 796newEntry.Dirty != _cache[index].Dirty)
MS\Internal\Documents\RowCache.cs (16)
244return _rowCache[index]; 258return _rowCache[GetRowIndexForPageNumber(pageNumber)]; 278RowInfo rowInfo = _rowCache[i]; 319double rowOffset = Math.Round(_rowCache[i].VerticalOffset, _findOffsetPrecision); 320double rowHeight = Math.Round(_rowCache[i].RowSize.Height, _findOffsetPrecision); 418double rowOffset = Math.Round(_rowCache[i].VerticalOffset, _findOffsetPrecision); 455RowInfo currentRow = _rowCache[i]; 604RowInfo lastRow = _rowCache[_rowCache.Count - 1]; 687AddRow(tempRows[i]); 887RowInfo lastRow = _rowCache[_rowCache.Count - 1]; 974RowInfo lastRow = _rowCache[_rowCache.Count - 1]; 1014RowInfo currentRow = _rowCache[rowIndex]; 1068RowInfo oldRowInfo = _rowCache[index]; 1081RowInfo row = _rowCache[i]; 1108RowInfo row = _rowCache[i]; 1204PageCacheChange pageChange = args.Changes[i];
MS\Internal\Documents\TextBoxView.cs (81)
512return _visualChildren[index]; 653int startOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, startPosition.Offset); 654int endOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, endPosition.Offset); 672bool firstLinePartiallyCovered = _lineMetrics[firstLineIndex].Offset < startOffset || 673_lineMetrics[firstLineIndex].EndOffset > endOffset; 674bool lastLinePartiallyCovered = _lineMetrics[lastLineIndex].Offset < startOffset || 675_lineMetrics[lastLineIndex].EndOffset > endOffset; 697double contentOffset = GetContentOffset(_lineMetrics[lineIndex].Width, alignment); 698Rect rect = new Rect(contentOffset, lineIndex * _lineHeight, _lineMetrics[lineIndex].Width, _lineHeight); 701ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].EndOffset, LogicalDirection.Backward); 741nextLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex + linesMoved].Offset, LogicalDirection.Forward); 787if (position.Offset > _lineMetrics[lineIndex].Offset) 846if (nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == _lineMetrics[lineIndex].EndOffset && 860else if (nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == _lineMetrics[lineIndex].Offset && 909if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength == _lineMetrics[lineIndex].Offset) 942ITextPointer start = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset, LogicalDirection.Forward); 943ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength, LogicalDirection.Forward); 1063int lastValidOffset = _lineMetrics[_lineMetrics.Count - 1].EndOffset; 1075int newLastValidOffset = _lineMetrics[_lineMetrics.Count - 1].EndOffset; 1147LineRecord record = _lineMetrics[index]; 1266ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[_lineMetrics.Count - 1].EndOffset, LogicalDirection.Forward); 1535LineRecord metrics = _lineMetrics[lineIndex]; 1625LineRecord record = _lineMetrics[index]; 1692LineRecord metrics = _lineMetrics[lineIndex]; 1845LineRecord metrics = _lineMetrics[lineIndex]; 1922if (_visualChildren[i] == null || _visualChildren[i].DiscardOnArrange) 1924RemoveVisualChild(_visualChildren[i]); 1928_visualChildren[i] = _visualChildren[j]; 1960RemoveVisualChild(_visualChildren[i]); 2007int startOffset = Math.Max(_lineMetrics[lineIndex].Offset, unclippedStartOffset); 2008int endOffset = Math.Min(_lineMetrics[lineIndex].EndOffset, unclippedEndOffset); 2015if (unclippedStartOffset == _lineMetrics[lineIndex].EndOffset) 2041Invariant.Assert(endOffset == _lineMetrics[lineIndex].Offset || 2042endOffset == _lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength); 2060if (unclippedEndOffset >= _lineMetrics[lineIndex].EndOffset) 2066double contentOffset = GetContentOffset(_lineMetrics[lineIndex].Width, alignment); 2067Rect rect = new Rect(contentOffset + _lineMetrics[lineIndex].Width, lineIndex * _lineHeight, endOfParaGlyphWidth, _lineHeight); 2093int lineStartOffset = _lineMetrics[lineIndex].Offset; 2094int lineEndOffset = _lineMetrics[lineIndex].EndOffset; 2111if (unclippedStartOffset == _lineMetrics[lineIndex].EndOffset) 2123Invariant.Assert(endOffset == _lineMetrics[lineIndex].Offset || 2124endOffset == _lineMetrics[lineIndex].Offset + _lineMetrics[lineIndex].ContentLength); 2139if (unclippedEndOffset >= _lineMetrics[lineIndex].EndOffset) 2145double contentOffset = GetContentOffset(_lineMetrics[lineIndex].Width, alignment); 2146Rect rect = new Rect(contentOffset + _lineMetrics[lineIndex].Width, 0, endOfParaGlyphWidth, _lineHeight); 2201lineOffset = _lineMetrics[_lineMetrics.Count - 1].EndOffset; 2291if (range.StartIndex > _lineMetrics[_lineMetrics.Count - 1].EndOffset) 2311if (range.StartIndex > _lineMetrics[_lineMetrics.Count - 1].EndOffset) 2352_lineMetrics[i].Offset += delta; 2369lineOffset = _lineMetrics[lineIndex].Offset; 2409if (endOffset > _lineMetrics[_lineMetrics.Count - 1].EndOffset) 2412endOffset = _lineMetrics[_lineMetrics.Count - 1].EndOffset; 2426_lineMetrics[i].Offset += delta; 2443lineOffset = _lineMetrics[lineIndex].Offset; 2453(range.StartIndex > lineOffset || range.StartIndex + -delta < _lineMetrics[lineIndex].EndOffset)) 2486int originalEndOffset = _lineMetrics[lineIndex].EndOffset; 2487lineOffset = _lineMetrics[lineIndex].Offset; 2500if (originalEndOffset != _lineMetrics[lineIndex].EndOffset) 2519lineOffset != _lineMetrics[lineIndex].Offset)) 2522lineOffset >= _lineMetrics[lineIndex].EndOffset) 2541lineOffset + line.Length <= _lineMetrics[lineIndex].Offset) 2555Invariant.Assert(lineOffset < _lineMetrics[lineIndex].EndOffset); 2557var curLine = _lineMetrics[lineIndex]; 2609desiredSize.Width = Math.Max(desiredSize.Width, _lineMetrics[i].Width); 2677_viewportLineVisuals[lineIndex - _viewportLineVisualsIndex + i] = oldLineVisuals[lineIndex - oldLineVisualsIndex + i]; 2684if (oldLineVisuals[i] != null) 2686oldLineVisuals[i].DiscardOnArrange = true; 2692if (oldLineVisuals[i] != null) 2694oldLineVisuals[i].DiscardOnArrange = true; 2712lineVisual = _viewportLineVisuals[lineIndex - _viewportLineVisualsIndex]; 2749_viewportLineVisuals[lineIndex - _viewportLineVisualsIndex] != null) 2752_viewportLineVisuals[lineIndex - _viewportLineVisualsIndex].DiscardOnArrange = true; 2779if (_viewportLineVisuals[start + i] != null) 2781_viewportLineVisuals[start + i].DiscardOnArrange = true; 2884_lineMetrics[_lineMetrics.Count - 1].EndOffset >= position.Offset; 2945int viewportStart = _lineMetrics[firstLineIndex].Offset; 2946int viewportEnd = _lineMetrics[lastLineIndex].EndOffset;
MS\Internal\Documents\TextContainerHelper.cs (5)
475if (ancestorsStart[depth - 1] == ancestorsEnd[depth - 1]) 477element = ancestorsStart[depth - 1]; 488elementStart = positionsStart[depth - 1]; 489elementEnd = positionsEnd[depth - 1];
MS\Internal\Documents\UndoManager.cs (7)
636return UndoStack[_topUndoIndex] as IUndoUnit; 704undoStack.Add(_undoStack[i]); 711undoStack.Add(_undoStack[i]); 753undoStack.Add(_undoStack[i]); 923return _undoStack[index]; 949_undoStack[i - count] = _undoStack[i]; 1124IUndoUnit unit = (IUndoUnit)UndoStack[_topUndoIndex];
MS\Internal\Globalization\BamlResourceSerializer.cs (1)
98_bamlTreeStack.Push(children[i]);
MS\Internal\Globalization\BamlTreeMap.cs (1)
607BamlTreeNode child = (BamlTreeNode)node.Children[i];
MS\Internal\Globalization\BamlTreeNode.cs (3)
62return _nodeList[i]; 120BamlTreeNode child = children[i]; 507if (_children[i].NodeType == BamlNodeType.Property)
MS\Internal\Globalization\BamlTreeUpdater.cs (2)
62KeyValuePair<BamlLocalizableResourceKey, BamlLocalizableResource> entry = deferredResources[i]; 300BamlTreeNode child = oldChildren[i];
MS\Internal\Helper.cs (7)
759if (itemValues[i].Key == dpIndex) 761return itemValues[i].Value; 787if (itemValues[j].Key == dpIndex) 812if (itemValues[i].Key == dpIndex) 890if (itemValues[i].Key == dpIndex) 892value = itemValues[i].Value; 1033KeyValuePair<int, object> itemValue = itemValuesList[i];
MS\Internal\Ink\ClipboardProcessor.cs (2)
339string xml = XamlWriter.Save(elements[i]); 345inkCanvasSelection.UpdateElementBounds(elements[i], newElement, transform);
MS\Internal\Ink\HighContrastHelper.cs (2)
95WeakReference weakRef = __highContrastCallbackList[j]; 151WeakReference weakRef = __highContrastCallbackList[j];
MS\Internal\Ink\LassoHelper.cs (5)
76Point point = points[i]; 205if (false == DoubleUtil.AreClose(_lasso[last].Y, point.Y)) 207isHigher = point.Y < _lasso[last].Y; 213Point prevLassoPoint = _lasso[_lasso.Count - 1]; 217Point lassoPoint = _lasso[i];
MS\Internal\LayoutDump.cs (1)
369DumpUIElement(writer, uiElements[index], visualParent, true);
MS\Internal\PtsHost\BreakRecordTable.cs (26)
68Invariant.Assert(_breakRecords[pageNumber - 1] != null, "Invalid BreakRecordTable entry."); 69breakRecord = _breakRecords[pageNumber - 1].BreakRecord; 89Invariant.Assert(_breakRecords[pageNumber] != null, "Invalid BreakRecordTable entry."); 90pageRef = _breakRecords[pageNumber].DocumentPage; 129Invariant.Assert(_breakRecords[pageNumber] != null, "Invalid BreakRecordTable entry."); 130textSegments = _breakRecords[pageNumber].TextSegments; 286if (_breakRecords[pageNumber].BreakRecord != null && 287_breakRecords[pageNumber].BreakRecord != entry.BreakRecord) 289_breakRecords[pageNumber].BreakRecord.Dispose(); 291if (_breakRecords[pageNumber].DocumentPage != null && 292_breakRecords[pageNumber].DocumentPage.Target != null && 293_breakRecords[pageNumber].DocumentPage.Target != entry.DocumentPage.Target) 295((FlowDocumentPage)_breakRecords[pageNumber].DocumentPage.Target).Dispose(); 324Invariant.Assert(_breakRecords[pageNumber - 1] != null, "Invalid BreakRecordTable entry."); 325return (_breakRecords[pageNumber - 1].BreakRecord != null); 355Invariant.Assert(_breakRecords[_breakRecords.Count - 1] != null, "Invalid BreakRecordTable entry."); 356return (_breakRecords[_breakRecords.Count - 1].BreakRecord == null); 385Invariant.Assert(_breakRecords[index] != null, "Invalid BreakRecordTable entry."); 386pageRef = _breakRecords[index].DocumentPage; 391_breakRecords[index].DocumentPage = null; 411Invariant.Assert(_breakRecords[index] != null, "Invalid BreakRecordTable entry."); 413pageRef = _breakRecords[index].DocumentPage; 418_breakRecords[index].BreakRecord?.Dispose(); 442Invariant.Assert(_breakRecords[pageStart] != null, "Invalid BreakRecordTable entry."); 446dependentMax = _breakRecords[pageStart].DependentMax; 453textSegments = _breakRecords[pageStart].TextSegments;
MS\Internal\PtsHost\FigureParaClient.cs (2)
219BaseParaClient floatingElement = _pageContextOfThisPage.FloatingElementList[index]; 779ParagraphResult paragraphResult = floatingElementList[i].CreateParagraphResult();
MS\Internal\PtsHost\FloaterParaClient.cs (2)
224BaseParaClient floatingElement = _pageContextOfThisPage.FloatingElementList[index]; 788ParagraphResult paragraphResult = floatingElementList[i].CreateParagraphResult();
MS\Internal\PtsHost\FlowDocumentPage.cs (2)
341transformedRectangles.Add(transform.TransformBounds(rectangles[index])); 386ParagraphResult paragraphResult = floatingElementList[i].CreateParagraphResult();
MS\Internal\PtsHost\Line.cs (1)
712GlyphRun run = glyphRunsCollection[runIndex];
MS\Internal\PtsHost\PtsCache.cs (46)
185if (!_contextPool[index].InUse && 186_contextPool[index].IsOptimalParagraphEnabled == ptsContext.IsOptimalParagraphEnabled) 197_contextPool[index].IsOptimalParagraphEnabled = ptsContext.IsOptimalParagraphEnabled; 198_contextPool[index].PtsHost = new PtsHost(); 199_contextPool[index].PtsHost.Context = CreatePTSContext(index, textFormattingMode); 205if (_contextPool[index].IsOptimalParagraphEnabled) 207ptsContext.TextFormatter = _contextPool[index].TextFormatter; 211_contextPool[index].InUse = true; 212_contextPool[index].Owner = new WeakReference(ptsContext); 214return _contextPool[index].PtsHost; 254if (_contextPool[index].PtsHost == ptsHost) 260PTS.Validate(PTS.GetFloaterHandlerInfo(ref _contextPool[index].FloaterInit, pobjectinfo)); 273if (_contextPool[index].PtsHost == ptsHost) 279PTS.Validate(PTS.GetTableObjHandlerInfo(ref _contextPool[index].TableobjInit, pobjectinfo)); 314PtsContext ptsContext = _contextPool[index].Owner.Target as PtsContext; 317Invariant.Assert(_contextPool[index].PtsHost.Context == ptsContext.Context, "PTS Context mismatch."); 318_contextPool[index].Owner = new WeakReference(null); 319_contextPool[index].InUse = false; 325if (!_contextPool[index].InUse) 330Invariant.Assert(_contextPool[index].PtsHost.Context != IntPtr.Zero, "PTS Context handle is not valid."); 331PTS.IgnoreError(PTS.DestroyDocContext(_contextPool[index].PtsHost.Context)); 332Invariant.Assert(_contextPool[index].InstalledObjects != IntPtr.Zero, "Installed Objects handle is not valid."); 333PTS.IgnoreError(PTS.DestroyInstalledObjectsInfo(_contextPool[index].InstalledObjects)); 336_contextPool[index].TextPenaltyModule?.Dispose(); 376if (_contextPool[index].PtsHost.Context == ptsContext.Context) 378_contextPool[index].Owner = new WeakReference(null); 379_contextPool[index].InUse = false; 400if (!_contextPool[index].InUse) 402Invariant.Assert(_contextPool[index].PtsHost.Context != IntPtr.Zero, "PTS Context handle is not valid."); 403PTS.Validate(PTS.DestroyDocContext(_contextPool[index].PtsHost.Context)); 404Invariant.Assert(_contextPool[index].InstalledObjects != IntPtr.Zero, "Installed Objects handle is not valid."); 405PTS.Validate(PTS.DestroyInstalledObjectsInfo(_contextPool[index].InstalledObjects)); 408_contextPool[index].TextPenaltyModule?.Dispose(); 430ptsHost = _contextPool[index].PtsHost; 434InitInstalledObjectsInfo(ptsHost, ref _contextPool[index].SubtrackParaInfo, ref _contextPool[index].SubpageParaInfo, out installedObjects, out installedObjectsCount); 435_contextPool[index].InstalledObjects = installedObjects; 438InitGenericInfo(ptsHost, (IntPtr)(index + 1), installedObjects, installedObjectsCount, ref _contextPool[index].ContextInfo); 441InitFloaterObjInfo(ptsHost, ref _contextPool[index].FloaterInit); 442InitTableObjInfo(ptsHost, ref _contextPool[index].TableobjInit); 445if (_contextPool[index].IsOptimalParagraphEnabled) 451_contextPool[index].TextPenaltyModule = penaltyModule; 452_contextPool[index].ContextInfo.ptsPenaltyModule = ptsPenaltyModule; 453_contextPool[index].TextFormatter = TextFormatter.CreateFromContext(textFormatterContext, textFormattingMode); 459GC.SuppressFinalize(_contextPool[index].TextPenaltyModule); 463PTS.Validate(PTS.CreateDocContext(ref _contextPool[index].ContextInfo, out context));
MS\Internal\PtsHost\PtsHelper.cs (2)
82Visual paraVisual = floatingElementList[index].Visual; 519Rect rect = rectangleList[index];
MS\Internal\PtsHost\PtsHost.cs (4)
1968if (attachedObjects[objectIndex] is FigureObject figureObject) 1976FloaterObject floaterObject = (FloaterObject)attachedObjects[objectIndex]; 2083if (attachedObjects[objectIndex] is FigureObject figureObject) 2091FloaterObject floaterObject = (FloaterObject)attachedObjects[objectIndex];
MS\Internal\PtsHost\PtsPage.cs (1)
1186BaseParaClient floatingElement = _pageContextOfThisPage.FloatingElementList[index];
MS\Internal\PtsHost\SubpageParaClient.cs (2)
158BaseParaClient floatingElement = _pageContextOfThisPage.FloatingElementList[index]; 698ParagraphResult paragraphResult = floatingElementList[i].CreateParagraphResult();
MS\Internal\PtsHost\TextParaClient.cs (7)
308PTS.FSRECT rectTransform = new PTS.FSRECT(rectangles[index]); 1267UIElement uiElement = (UIElement)inlineObjects[i].Element; 1301UIElement uiElement = (UIElement)inlineObjects[i].Element; 1553TextParaLineResult lastLineResult = (TextParaLineResult)lines[lines.Count - 1]; 1615TextParaLineResult lastLineResult = (TextParaLineResult)lines[lines.Count - 1]; 2121Rect r = rectangles[i]; 2231Rect r = rectangles[i];
MS\Internal\PtsHost\TextParagraph.cs (17)
944TextElement textElement = textElements[index]; 1061InlineObject obj = _inlineObjects[i]; 1145_attachedObjects[index].Para.ClearUpdateInfo(); 1212BaseParagraph attachedObjectPara = _attachedObjects[index].Para; 1236_attachedObjects[index].Para.InvalidateFormatCache(); 1382AttachedObject attachedObject = _attachedObjects[index]; 1524ErrorHandler.Assert(objectsNew == null || (objectsNew[0].Dcp >= dcpStart && objectsNew[objectsNew.Count-1].Dcp <= dcpLim), ErrorHandler.SubmitInvalidList); 1539while (end > 0 && objectsCached[end-1].Dcp >= dcpLim) --end; 1541while (start > 0 && objectsCached[start-1].Dcp >= dcpStart) --start; 1552objectsCached[index].Dispose(); 1571T oldEmbeddedObject = objectsCached[start]; 1575T newEmbeddedObject = objectsNew[idx]; 1601objectsCached[start].Dispose(); 1644while (first < objectsCached.Count && objectsCached[first].Dcp < dcpStart) 1649while (last < objectsCached.Count && objectsCached[last].Dcp < dcpStart + cchDeleted) 1659objectsCached[index].Dispose(); 1667objectsCached[last].Dcp += cchDiff;
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (1)
151iids[i] = interfaceTableEntries[i].IID;
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.net5.cs (1)
95nativeEntries[i] = entries[i];
System\Windows\Annotations\AnnotationService.cs (3)
971IAttachedAnnotation match = FindAnnotationInList(existingAnnotations[i], attachedAnnotations); 972if ((match != null) && AttachedAnchorsEqual(match, existingAnnotations[i])) 977dirtyAnnotations.Add(existingAnnotations[i]);
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
809if (this.Index != -1 && parent != null && parent.Children != null && this.Index < parent.Children.Count && parent.Children[this.Index] == this)
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (1)
928if (this.Index != -1 && parent != null && parent.Children != null && this.Index < parent.Children.Count && parent.Children[this.Index] == this)
System\Windows\Automation\Peers\FlowDocumentPageViewerAutomationPeer.cs (1)
44if (children[children.Count-1] is DocumentAutomationPeer)
System\Windows\Automation\Peers\GridViewAutomationPeer.cs (1)
240return ElementProxy.StaticWrap(columns[column], lvpeer);
System\Windows\Automation\Peers\GridViewCellAutomationPeer.cs (1)
108GridViewColumnHeader header = gridview.HeaderRowPresenter.ActualColumnHeaders[Column];
System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
294ItemAutomationPeer peer = recentlyRealizedPeers[i];
System\Windows\Automation\Peers\ItemAutomationPeer.cs (1)
135if(this.Index != -1 && parent != null && parent.Children != null && this.Index < parent.Children.Count && parent.Children[this.Index] == this)
System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
592KeyValuePair<object, T> pair = _list[i]; 652KeyValuePair<object, T> pair = _list[i];
System\Windows\BroadcastEventHelper.cs (1)
268DependencyObject d = eventRoute[i];
System\Windows\Controls\AlternationConverter.cs (1)
42return _values[index];
System\Windows\Controls\CustomDictionarySources.cs (4)
104Uri uri = _uriList[index]; 121return _uriList[index]; 126Uri oldUri = _uriList[index]; 260return _uriList[index];
System\Windows\Controls\DataGrid.cs (14)
434return DisplayIndexMap[displayIndex]; 2187_selectedCells.AddRegion(rowIndex, columnIndexRanges[i], 1, columnIndexRanges[i + 1]); 2243_selectedCells.AddRegion(newItemIndex, columnIndexRanges[i], 1, columnIndexRanges[i + 1]); 3692_selectedCells.AddRegion(rowIndex, columnIndexRanges[i], 1, columnIndexRanges[i + 1]); 4512ItemInfo rowInfo = e.RemovedInfos[i]; 4520ItemInfo rowInfo = e.AddedInfos[i]; 7254if (GroupingSortDescriptionIndices[i] >= e.NewStartingIndex) 7265if (GroupingSortDescriptionIndices[i] > e.OldStartingIndex) 7269else if (GroupingSortDescriptionIndices[i] == e.OldStartingIndex) 7307Items.SortDescriptions.RemoveAt(GroupingSortDescriptionIndices[i] - i); 7741ItemInfo info = _pendingInfos[i];
System\Windows\Controls\DataGridCellsPanel.cs (27)
177RealizedColumnsBlock rcb = blockList[i]; 189RealizedColumnsBlock nextRcb = blockList[i + 1]; 195measureWidth += GetColumnEstimatedMeasureWidthSum(blockList[blockList.Count - 1].EndIndex + 1, parentDataGrid.Columns.Count - 1, averageColumnWidth); 477if (indexList[i] != indexList[i - 1] + 1) 481resultList.Add(new RealizedColumnsBlock(startIndex, indexList[i - 1], 0)); 485RealizedColumnsBlock lastRealizedColumnsBlock = resultList[resultList.Count - 1]; 487resultList.Add(new RealizedColumnsBlock(startIndex, indexList[i - 1], startIndexOffset)); 490startIndex = indexList[i]; 497resultList.Add(new RealizedColumnsBlock(startIndex, indexList[i], 0)); 501RealizedColumnsBlock lastRealizedColumnsBlock = resultList[resultList.Count - 1]; 503resultList.Add(new RealizedColumnsBlock(startIndex, indexList[i], startIndexOffset)); 765UIElement child = _realizedChildren[realizedChildIndex]; 1005if (realizedColumnDisplayIndices[displayIndexListIterator] == displayIndex) 1009else if (realizedColumnDisplayIndices[displayIndexListIterator] > displayIndex) 1043RealizedColumnsBlock block = (blockCount > 0 ? blockList[blockIndex] : new RealizedColumnsBlock(-1, -1, -1)); 1193realizedChild = _realizedChildren[realizedIndex]; 1336RealizedColumnsBlock lastBlock = blockList[blockList.Count - 1]; 1337RealizedColumnsBlock lastDisplayIndexBlock = displayIndexBlockList[displayIndexBlockList.Count - 1]; 1399j < additionalChildrenCount && additionalChildIndices[j] <= childIndex; j++) 1427UIElement child = children[additionalChildIndices[i]] as UIElement; 1546RealizedColumnsBlock block = blockList[i]; 1564RealizedColumnsBlock lastBlock = blockList[blockList.Count - 1]; 1584RealizedColumnsBlock block = blockList[blockIndex++]; 1611block = blockList[blockIndex++]; 1649RealizedColumnsBlock block = blockList[j]; 1658int childColumnIndex = (displayIndex < 0 ? -1 : displayIndexMap[displayIndex]);
System\Windows\Controls\DataGridColumnCollection.cs (11)
228return this[DisplayIndexMap[displayIndex]]; 362int columnIndex = DisplayIndexMap[oldDisplayIndex]; 672if (DisplayIndexMap[i] >= columnIndex && i != newDisplayIndex) 693if (DisplayIndexMap[i] >= columnIndex) 729Debug.Assert(DisplayIndexMap[i] >= 0 && DisplayIndexMap[i] < Count, "DisplayIndex map entry doesn't point to a valid column"); 939DataGridColumn column = unResolvedColumns[i]; 962DataGridColumn column = unResolvedColumns[i]; 990DataGridColumn column = partialResolvedColumns[i]; 1003DataGridColumn column = partialResolvedColumns[i]; 1013DataGridColumn column = unResolvedColumns[i];
System\Windows\Controls\DataGridRowClipboardEventArgs.cs (1)
71DataGridClipboardHelper.FormatCell(ClipboardRowContent[i].Content, i == 0 /* firstCell */, i == count - 1 /* lastCell */, sb, format);
System\Windows\Controls\DefinitionBase.cs (4)
791Grid parentGrid = (Grid)(_registry[i].Parent); 843GridLength currentGridLength = _registry[i].UserSizeValueCache; 876sharedMinSize = Math.Max(sharedMinSize, _registry[i]._minSize); 884DefinitionBase definitionBase = _registry[i];
System\Windows\Controls\GridViewColumnCollection.cs (10)
246int actualIndex = _actualIndices[oldIndex]; 252_actualIndices[targetIndex] = _actualIndices[targetIndex + 1]; 259_actualIndices[targetIndex] = _actualIndices[targetIndex - 1]; 265return new GridViewColumnCollectionChangedEventArgs(NotifyCollectionChangedAction.Move, _columns[actualIndex], newIndex, oldIndex, actualIndex); 295int actualIndex = _actualIndices[index]; 296GridViewColumn column = _columns[actualIndex]; 318int i = _actualIndices[sourceIndex]; 327int i = _actualIndices[sourceIndex]; 346_columns[i].ActualIndex = i; 405int oldColumnActualIndex = _actualIndices[index];
System\Windows\Controls\GridViewHeaderRowPresenter.cs (4)
393_floatingHeader.Arrange(new Rect(new Point(_currentPos.X - _relativeStartPos.X, 0), HeadersPositionList[_startColumnIndex].Size)); 828if (!DoubleUtil.AreClose(column.DesiredWidth, DesiredWidthList[column.ActualIndex])) 1344Rect rect = HeadersPositionList[i]; 1375return new Point(HeadersPositionList[index].X, 0);
System\Windows\Controls\GridViewRowPresenter.cs (2)
416UIElement cell = children[indexList[i]]; 551if (!DoubleUtil.AreClose(column.DesiredWidth, DesiredWidthList[column.ActualIndex]))
System\Windows\Controls\Panel.cs (1)
1042_zLut[i] = (int)(stableKeyValues[i] & 0xffffffff);
System\Windows\Controls\PopupControlService.cs (14)
1388Point p = points[i]; 1392int d = points[j].Y - p.Y; 1393if (d > 0 || (d == 0 && (points[j].X > p.X))) 1395points[j + 1] = points[j]; 1425int Y = points[currentIndex].Y; 1430Point leftmost = points[currentIndex]; 1432while (next<N && points[next].Y == Y) 1436Point rightmost = points[next - 1]; 1479if (Cross(leftmost, points[minIndex], points[minIndex - 1]) > 0) 1492if (Cross(rightmost, points[maxIndex], points[wrapIndex]) < 0) 1509points[i + delta] = points[i]; 1516points[i + delta] = points[i];
System\Windows\Controls\Primitives\Selector.cs (6)
2769return _list[index]; 2813ItemInfo info = _list[i]; 2818_list[j] = _list[i]; 2855_set.Add(_list[i], _list[i]); 2879result = (index < 0) ? null : _list[index];
System\Windows\Controls\Primitives\ToolBarOverflowPanel.cs (1)
74UIElement child = generatedItemsCollection[i];
System\Windows\Controls\Primitives\ToolBarPanel.cs (4)
60UIElement child = _generatedItemsCollection[i]; 446RemoveChild(_generatedItemsCollection[pos.Index + i]); 467RemoveChild(_generatedItemsCollection[pos.Index + i]); 492UIElement child = _generatedItemsCollection[fromPos.Index + i];
System\Windows\Controls\SelectionChangedEventArgs.cs (2)
55_removedItems[i] = unselectedInfos[i].Item; 61_addedItems[i] = selectedInfos[i].Item;
System\Windows\Controls\TextAdaptor.cs (2)
542ranges[i] = new TextRangeAdaptor(this, visibleTextSegments[i].Start, visibleTextSegments[i].End, _textPeer);
System\Windows\Controls\TextBlock.cs (2)
3518return (index == 0) ? _firstLine : _subsequentLines[index - 1]; 3744_subsequentLines[i].Dispose(false);
System\Windows\Controls\TextRangeAdaptor.cs (1)
2097elements[i] = ProviderFromPeer(peers[i]);
System\Windows\Controls\TextSearch.cs (2)
203if (_charsEntered.Count > 0 && string.Compare(_charsEntered[_charsEntered.Count - 1], nextChar, true, GetCulture(_attachedTo)) == 0) 268string lastChar = _charsEntered[_charsEntered.Count - 1];
System\Windows\Controls\ToolBarTray.cs (27)
357List<ToolBar> band = _bands[bandIndex].Band; 362ToolBar toolBar = band[toolBarIndex]; 374ToolBar toolBar = band[toolBarIndex]; 391_bands[bandIndex].Thickness = bandThickness; 421List<ToolBar> band = _bands[bandIndex].Band; 423double bandThickness = _bands[bandIndex].Thickness; 432ToolBar toolBar = band[toolBarIndex]; 543List<ToolBar> band = _bands[currentBand].Band; 557ToolBar prevToolBar = band[toolBarIndex - 1]; 604ToolBar nextToolBar = band[toolBarIndex + 1]; 643List<ToolBar> oldBand = _bands[currentBand].Band; 647ToolBar currentToolBar = oldBand[i]; 671ToolBar toolBar = band[i]; 688ToolBar toolBar = band[i]; 708totalMinLenght += band[i].MinLength; 719ToolBar toolBar = band[i]; 736ToolBar toolBar = band[i]; 756totalMaxLength += band[i].MaxLength; 766List<ToolBar> newBand = _bands[newBandNumber].Band; 779ToolBar currentToolBar = newBand[i]; 814bandOffset += _bands[i].Thickness; 842List<ToolBar> band = _bands[bandIndex].Band; 845ToolBar toolBar = band[toolBarIndex]; 864List<ToolBar> band = _bands[bandIndex].Band; 867ToolBar toolBar = band[toolBarIndex]; 883int currentBandNumber = ((_bands[i].Band)[0]).Band; 920if (toolBar.BandIndex < band[i].BandIndex)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (30)
159CellRegion region = _regions[i]; 186if (_regions[i].Contains(columnIndex, rowIndex)) 206AddRegionToList(_regions[i], list); 245_count += _regions[i].Size; 315CellRegion region = _regions[i]; 405count += _regions[i].Size; 775if (!_regions[i].IsEmpty) 797CellRegion region = _regions[i]; 840CellRegion region = _regions[i]; 843CellRegion subRegion = addList[c]; 867CellRegion region = _regions[i]; 868if (region.Union(addList[c])) 881_regions.Add(addList[c]); 911CellRegion region = _regions[i]; 994CellRegion keptRegion = keepRegions[i]; 1026CellRegion keptRegion = keepRegions[i]; 1082CellRegion keptRegion = slideRegions[i]; 1098CellRegion movedRegion = movedRegions[i]; 1110CellRegion keptRegion = slideRegions[i]; 1167CellRegion keptRegion = keepRegions[i]; 1214CellRegion keptRegion = keepRegions[i]; 1273CellRegion keptRegion = slideRegions[i]; 1288CellRegion movedRegion = movedRegions[i]; 1300CellRegion keptRegion = slideRegions[i]; 1355CellRegion region = collection._regions[i]; 1374CellRegion region = c1._regions[i]; 1382CellRegion region = orig2._regions[i]; 1510if (_regions[i].Intersects(rowRegion)) 1536CellRegion region = _regions[i]; 1586CellRegion region = regions[i];
System\Windows\Controls\VirtualizingStackPanel.cs (21)
4518if (LayoutDoubleUtil.AreClose(offset, offsetList[i])) 4538args[i+7] = offsetList[i]; 4549viewport.X = offsetList[offsetList.Count-1]; 4553viewport.Y = offsetList[offsetList.Count-1]; 5673newOffset += (childOffsetList[count-1] - childOffsetList[0]); 5701args[i + 2] = offsetList[i]; 9211Debug.Assert(_realizedChildren[position.Index] == child, "_realizedChildren is corrupt!"); 9227Debug.Assert(_realizedChildren[i] == children[i], "Realized and visual children must match"); 9246UIElement child = _realizedChildren[realizedChildIndex]; 9285realizedChild = _realizedChildren[realizedIndex]; 10941if (DoubleUtil.AreClose(previouslyMeasuredOffsets[i], offset)) 12091s_TargetToTraceListMap[i].Item2.Flush(-1); 12104s_TargetToTraceListMap[i].Item2.Add(record); 12487WeakReference<ItemsControl> wr = s_TargetToTraceListMap[i].Item1; 12491traceList = s_TargetToTraceListMap[i].Item2; 12546TraceList traceList = s_TargetToTraceListMap[i].Item2; 12558WeakReference<ItemsControl> wr = s_TargetToTraceListMap[i].Item1; 12562TraceList traceList = s_TargetToTraceListMap[i].Item2; 12598_traceList[_flushIndex].Write(_writer); 12817writer.Write(children[i]); 12894ChildInfo ci = _realizedChildren[i];
System\Windows\Data\BindingExpressionBase.cs (3)
2343object errorContent = errors[i]; 2348if (ItemsControl.EqualsEx(toRemove[j].ErrorContent, errorContent)) 2458WeakDependencySource prior = tempList[k];
System\Windows\Data\CollectionView.cs (1)
1843ProcessCollectionChanged(changeLog[currentIndex]);
System\windows\Documents\CaretElement.cs (1)
464TextSegment segment = textSegments[i];
System\Windows\Documents\FixedDSBuilder.cs (3)
111FixedNode fn = (FixedNode)_fixedNodes[index]; 192fn = (FixedNode)_fixedNodes[startIndex]; 202fn = (FixedNode)_fixedNodes[i];
System\Windows\Documents\FixedElement.cs (1)
343((FixedElement)_children[i]).DumpTree(indent+1);
System\Windows\Documents\FixedFlowMap.cs (4)
131return _flowOrder[fp]; 170_flowOrder[i].SetFp(i); 242flowNode = _flowOrder[flowNode.Fp + 1]; 365_flowOrder[i].IncreaseFp();
System\Windows\Documents\FixedPageStructure.cs (4)
513somElements = _fixedTextBuilder.FixedFlowMap.FlowNodes[fn.Fp].FixedSOMElements; 571somElements = _fixedTextBuilder.FixedFlowMap.FlowNodes[fn.Fp].FixedSOMElements; 822flowNode = this.FixedTextBuilder.FixedFlowMap.FlowNodes[startIdx++]; 834flowNode = this.FixedTextBuilder.FixedFlowMap.FlowNodes[startIdx++];
System\Windows\Documents\FixedSOMContainer.cs (3)
121FixedNode thisObjLastNode = This.FixedNodes[This.FixedNodes.Count - 1]; 124FixedNode otherObjLastNode = compared.FixedNodes[compared.FixedNodes.Count - 1]; 152if (box.CompareTo(_semanticBoxes[i]) == 1)
System\Windows\Documents\FixedSOMFixedBlock.cs (5)
41FixedSOMTextRun run = this.SemanticBoxes[this.SemanticBoxes.Count - 2] as FixedSOMTextRun; 128run = _semanticBoxes[i] as FixedSOMTextRun; 159Debug.Assert(SemanticBoxes[i] is FixedSOMTextRun || SemanticBoxes[i] is FixedSOMImage); 160SemanticBoxes[i].Render(dc, i.ToString(),debugVisual);
System\Windows\Documents\FixedSOMLineCollection.cs (12)
82if (line < ranges[i].Line - maxSeparation) 92else if (line < ranges[i].Line + maxSeparation) 94ranges[i].AddRange(start, end); 124if (lines[i].Line < parallelLowEnd) 130if (lines[i].Line <= parallelHighEnd) 138if (lines[i].Line >= parallelLowEnd && lines[i].Line <= parallelHighEnd) 143} while (i>=0 && lines[i].Line >= parallelLowEnd); 146while (i<lines.Count && lines[i].Line <= parallelHighEnd) 150int rangeIndex = lines[i].GetLineAt(perpLowEnd + allowedMargin); 153double end = lines[i].End[rangeIndex];
System\Windows\Documents\FixedSOMLineRanges.cs (9)
18if (start > End[i] + _minLineSeparation) 22else if (end + _minLineSeparation < Start[i]) 31if (Start[i] < start) 33start = Start[i]; 35if (End[i] > end) 37end = End[i]; 56if (line > End[i]) 66if (startIndex == endIndex && line <= End[startIndex] && line >= Start[startIndex])
System\Windows\Documents\FixedSOMPage.cs (3)
52FixedSOMGroup group = _semanticBoxes[i] as FixedSOMGroup; 63groupBoxes[j].Render(dc, boxIndex.ToString(), debugVisuals); 69_semanticBoxes[i].Render(dc, boxIndex.ToString(), debugVisuals);
System\Windows\Documents\FixedSOMPageConstructor.cs (41)
590FixedSOMTextRun lastLine = fixedBlock.SemanticBoxes[fixedBlock.SemanticBoxes.Count - 1] as FixedSOMTextRun; 610compareLine = fixedBlock.SemanticBoxes[fixedBlock.SemanticBoxes.Count-1] as FixedSOMTextRun; 681FixedSOMElement element = fixedBlock.SemanticBoxes[fixedBlock.SemanticBoxes.Count - 1] as FixedSOMElement; 771double dropLine = horizontal[h].Line + minLineSeparation; 773for (int hSeg = 0; hSeg < horizontal[h].Count; hSeg++) 776double hStart = horizontal[h].Start[hSeg] - minLineSeparation; 777double hEnd = horizontal[h].End[hSeg] + minLineSeparation; 781while (v < vertical.Count && vertical[v].Line < hStart) 785for (; v < vertical.Count && vertical[v].Line < hEnd; v++) 787int vSeg = vertical[v].GetLineAt(dropLine); 790double vBottom = vertical[v].End[vSeg]; 791if (vCellStart != -1 && horizontal[h2].Line < vBottom + minLineSeparation && 792horizontal[h2].End[hSeg2] + minLineSeparation > vertical[v].Line) 795double top = horizontal[h].Line; 796double bottom = horizontal[h2].Line; 797double left = vertical[vCellStart].Line; 798double right = vertical[v].Line; 822for (h2 = h + 1; h2 < horizontal.Count && horizontal[h2].Line < vBottom + minLineSeparation; h2++) 824hSeg2 = horizontal[h2].GetLineAt(vertical[v].Line + minLineSeparation); 873FixedSOMTable table1 = boxes[i] as FixedSOMTable; 879FixedSOMTable table2 = boxes[j] as FixedSOMTable; 890FixedSOMFixedBlock box1 = boxes[i] as FixedSOMFixedBlock; 898FixedSOMFixedBlock box2 = boxes[j] as FixedSOMFixedBlock; 1050if (tables[i].BoundingRect.Contains(tables[j].BoundingRect) && 1051tables[i].AddContainer(tables[j])) 1055else if (tables[j].BoundingRect.Contains(tables[i].BoundingRect) && 1056tables[j].AddContainer(tables[i])) 1079if (_fixedSOMPage.SemanticBoxes[i] is FixedSOMFixedBlock && 1080table.AddContainer(_fixedSOMPage.SemanticBoxes[i] as FixedSOMContainer)) 1103FixedSOMTable innerTable = cell.SemanticBoxes[i] as FixedSOMTable; 1143nextPageElement = container.SemanticBoxes[i] as FixedSOMPageElement;
System\Windows\Documents\FixedSOMTable.cs (9)
55_semanticBoxes[i].Render(dc, $"{label} {i}",debugVisual); 179FixedSOMTableRow row = this.SemanticBoxes[i] as FixedSOMTableRow; 207FixedSOMTableRow row = (FixedSOMTableRow)(this.SemanticBoxes[r]); 214cell = (FixedSOMTableCell)row.SemanticBoxes[idx]; 222cell = (FixedSOMTableCell)row.SemanticBoxes[idx+1]; 245FixedSOMTableRow row = (FixedSOMTableRow)(this.SemanticBoxes[r]); 266FixedSOMTableRow row = (FixedSOMTableRow)(this.SemanticBoxes[r]); 268if (idx + 1 < row.SemanticBoxes.Count && row.SemanticBoxes[idx + 1].BoundingRect.Left == nextCol) 274((FixedSOMTableCell)row.SemanticBoxes[idx]).ColumnSpan++;
System\Windows\Documents\FixedSOMTableRow.cs (1)
54_semanticBoxes[i].Render(dc, $"{label}:{i}", debugVisual);
System\Windows\Documents\FixedTextBuilder.cs (18)
182FixedPageStructure pageStructure = _pageStructures[pageIndex]; 284FixedPageStructure ps = _pageStructures[currentNode.Page]; 325return _pageStructures[pageIndex].FindSnapToLine(pt); 332return _pageStructures[pageIndex].FirstLine; 366FlowNode fn = _pageStructures[pageIndex].FlowStart; 378FlowNode fn = _pageStructures[pageIndex].FlowEnd; 1321LogicalHyperlink hyperlink = _hyperlinks[i]; 1346if (r.IntersectsWith(_hyperlinks[i].BoundingRect)) 1348Geometry combined = Geometry.Combine(g, _hyperlinks[i].Geometry, GeometryCombineMode.Intersect, Transform.Identity); 1351return _hyperlinks[i]; 1477FixedSOMTextRun lastRun = _textRuns[_textRuns.Count - 1]; 1502if (_fixedNodes.Count == 0 || _fixedNodes[_fixedNodes.Count - 1] != element.FixedNode) 1551_pageStructure.SetFlowBoundary(_flowNodes[0], _flowNodes[_flowNodes.Count-1]); 1638run = _textRuns[i]; 1651if (_nodesInLine.Count == 0 || _nodesInLine[_nodesInLine.Count - 1] != run.FixedNode) 1659if (i>0 && _builder._IsNonContiguous(_textRuns[i-1], run, comparison)) 1661_textRuns[i-1].Text = $"{_textRuns[i - 1].Text} ";
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (3)
433if (text == hasErrorsCache[index].Text) 441result = hasErrorsCache[index]; 473hasErrorsCache[index] = hasErrorsCache[index-1];
System\windows\Documents\TextEditorDragDrop.cs (1)
613TextSegment textSegment = selection._TextSegments[i];
System\Windows\Documents\TextRange.cs (1)
1622TextSegment textSegment = _textSegments[i];
System\Windows\Documents\TextRangeBase.cs (7)
84if (thisRange._TextSegments[i].Contains(textPointer)) 397TextSegment textSegment = thisRange._TextSegments[i]; 466TextSegment textSegment = thisRange._TextSegments[i]; 1200return thisRange._TextSegments[thisRange._TextSegments.Count - 1].End; 1270textSegment = thisRange._TextSegments[i]; 1919ITextPointer end = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End; 2039ITextPointer finalEnd = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End;
System\Windows\Documents\TextRangeEditTables.cs (3)
407TextSegment segment = textSegments[i]; 422end = textSegments[textSegments.Count - 1].End; 987ClearTableCells(textSegments[i]);
System\Windows\Documents\TextRangeSerialization.cs (1)
348TextSegment textSegment = textSegments[i];
System\windows\Documents\TextSelection.cs (2)
416movingPosition = thisSelection.TextSegments[thisSelection.TextSegments.Count - 1].Start; 1902else if (movingPosition.CompareTo(thisSelection.TextSegments[thisSelection.TextSegments.Count-1].Start) == 0)
System\windows\Documents\TextSelectionHighlightLayer.cs (4)
88textSegment = textSegments[segmentIndex]; 119textSegment = textSegments[segmentIndex]; 154textSegment = textSegments[segmentIndex]; 309return textRange._TextSegments[0].Start.CompareTo(textRange._TextSegments[textRange._TextSegments.Count - 1].End) == 0;
System\Windows\Documents\TextStore.cs (10)
1361CompositionEventRecord previousRecord = (this.CompositionEventList.Count == 0) ? null : this.CompositionEventList[this.CompositionEventList.Count - 1]; 3625CompositionEventRecord record = this.CompositionEventList[i]; 4745s_TargetToTraceListMap[i].Item2.Flush(-1); 4758s_TargetToTraceListMap[i].Item2.Add(record); 4968WeakReference<FrameworkElement> wr = s_TargetToTraceListMap[i].Item1; 4972traceList = s_TargetToTraceListMap[i].Item2; 5027TraceList traceList = s_TargetToTraceListMap[i].Item2; 5039WeakReference<FrameworkElement> wr = s_TargetToTraceListMap[i].Item1; 5043TraceList traceList = s_TargetToTraceListMap[i].Item2; 5079_traceList[_flushIndex].Write(_writer);
System\Windows\Documents\WinRTSpellerInteropExtensions.cs (2)
91var substToken = GetSpellCheckCleanSubstitutionToken(spellChecker, text, allTokens[allTokens.Count - 1], missingFragment); 128var substToken = GetSpellCheckCleanSubstitutionToken(spellChecker, text, allTokens[allTokens.Count - 1], missingFragment);
System\Windows\Documents\WpfPayload.cs (4)
436Image image = _images[imageIndex]; 507if (ImagesAreIdentical(GetBitmapSourceFromImage(_images[i]), GetBitmapSourceFromImage(image))) 510Invariant.Assert(imageContentType == GetImageContentType(_images[i].Source.ToString()), $"Image content types expected to be consistent: {imageContentType} vs. {GetImageContentType(_images[i].Source.ToString())}");
System\Windows\FrameworkContextData.cs (2)
61WalkerEntry walkerEntry = _currentWalkers[last]; 77WalkerEntry walkerEntry = _currentWalkers[last];
System\Windows\Input\KeyboardNavigation.cs (4)
3495object item = _list[i].Target; 3522object item = _list[i].Target; 3554if (_list[i].IsAlive) 3556_list[destIndex++] = _list[i];
System\Windows\Markup\Baml2006\Baml2006KeyRecord.cs (2)
67Debug.Assert(StaticResources[StaticResources.Count - 1] is StaticResource); 68return StaticResources[StaticResources.Count - 1] as StaticResource;
System\Windows\Markup\Baml2006\Baml2006Reader.cs (5)
834object value = _context.KeyList[_context.CurrentKey - 1].StaticResources[resourceId]; 1215KeyRecord record = _context.KeyList[_context.CurrentKey]; 1895Object resource = _context.KeyList[_context.CurrentKey - 1].StaticResources[resourceId];
System\Windows\Markup\Baml2006\Baml2006ReaderContext.cs (1)
54return KeyList[KeyList.Count - 1];
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (4)
317result = _bamlString[stringId]; 568bamlAssembly = _bamlAssembly[assemblyId]; 592object type = _bamlType[typeId]; 621Object property = _bamlProperty[propertyId];
System\Windows\Markup\BamlReader.cs (5)
484_currentBamlRecord = _currentStaticResourceRecords[_currentStaticResourceRecordIndex++]; 924(BamlOptimizedStaticResourceRecord)_currentKeyInfo.StaticResources[bamlPropertyWithStaticResourceIdRecord.StaticResourceId][0]; 1379BamlKeyInfo keyInfo = _deferKeys[_deferKeys.Count-1]; 1746_currentStaticResourceRecords = _currentKeyInfo.StaticResources[bamlRecord.StaticResourceId]; 2748xmlns = xmlnsList[i];
System\Windows\Markup\BamlRecordReader.cs (3)
1879object[] staticResourceValues = ParserContext.StaticResourcesStack[ParserContext.StaticResourcesStack.Count-1]; 1958object[] staticResourceValues = ParserContext.StaticResourcesStack[ParserContext.StaticResourcesStack.Count-1]; 4298d = _stackDataFactoryCache[_stackDataFactoryCache.Count-1];
System\Windows\Markup\BamlRecordWriter.cs (3)
1592List<ValueDeferRecord> srRecords = staticResourceRecordList[j]; 1595ValueDeferRecord srRecord = srRecords[k]; 1677valueDeferRecord = _staticResourceRecordList[_staticResourceRecordList.Count-1];
System\Windows\Markup\Primitives\MarkupWriter.cs (10)
290entry.Predecessors = _entries[existingIndex].Predecessors; 317Entry predEntry = _entries[predIndex]; 319Entry keyEntry = _entries[keyIndex]; 347_entries[i].Link = Entry.UNSEEN; 361if (_entries[index].Link == Entry.UNSEEN) 364_entries[index].Link = Entry.INDFS; 367if (_entries[index].Predecessors != null) 369foreach (int predIndex in _entries[index].Predecessors) 383_entries[_lastIndex].Link = index; 414Entry entry = _entries[index];
System\Windows\Markup\XamlTypeMapper.cs (1)
3270ClrNamespaceAssemblyPair mapping = namespaceAssemblyPair[j];
System\Windows\Media\Animation\Generated\ThicknessAnimationUsingKeyFrames.cs (2)
841KeyTimeBlock block = unspecifiedBlocks[j]; 980(segmentLengths[i] / totalLength) * pacedBlockDuration.TotalMilliseconds);
System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (11)
102ThicknessKeyFrame keyFrame = (ThicknessKeyFrame)sourceCollection._keyFrames[i].Clone(); 123ThicknessKeyFrame keyFrame = (ThicknessKeyFrame)sourceCollection._keyFrames[i].CloneCurrentValue(); 144ThicknessKeyFrame keyFrame = (ThicknessKeyFrame)sourceCollection._keyFrames[i].GetAsFrozen(); 165ThicknessKeyFrame keyFrame = (ThicknessKeyFrame)sourceCollection._keyFrames[i].GetCurrentValueAsFrozen(); 180canFreeze &= Freezable.Freeze(_keyFrames[i], isChecking); 305OnFreezablePropertyChanged(_keyFrames[i], null); 430OnFreezablePropertyChanged(_keyFrames[index], null); 460return _keyFrames[index]; 471if (value != _keyFrames[index]) 473OnFreezablePropertyChanged(_keyFrames[index], value); 476Debug.Assert(_keyFrames[index] != null);
System\Windows\Navigation\Journal.cs (10)
91return _journalEntryList[index]; 127return _journalEntryList[_currentEntryIndex]; 257} while (IsNavigable(_journalEntryList[index]) == false); 280JournalEntry oldEntry = _journalEntryList[_currentEntryIndex]; 390return _journalEntryList[fwdEntryIndex]; 458JournalEntry je = _journalEntryList[i]; 483JournalEntry theEntry = _journalEntryList[index]; 511JournalEntry entry = _journalEntryList[i]; 539JournalEntry je = _journalEntryList[index]; 581} while (!IsNavigable(_journalEntryList[index]));
System\Windows\ResourcesChangeInfo.cs (2)
248if (_oldDictionaries[i].Contains(key)) 259if (_newDictionaries[i].Contains(key))
System\Windows\Shell\JumpList.cs (1)
824successList.Add(jumpItems[i].JumpItem);
System\Windows\StaticResourceExtension.cs (1)
246AmbientPropertyValue ambientValue = ambientList[i];
System\Windows\StyleHelper.cs (9)
2227DependencyObject walk = templateChain[i]; 2258DependencyObject walk = templateChain[i]; 2522TriggerAction action = actionsList[i]; 3525if (dictionaries[i].HasImplicitStyles) 4350InvokePropertyTriggerActions( triggerList[i], container, dp, changedArgs, sourceChildIndex, 4801InvokeActions(actionList[i].TriggerBase, 4802triggerContainer, actionList[i].TriggerActionCollection, 5280InvokeDataTriggerActions( triggerList[i], container, binding, e, 5437DependencyObject child = styledChildren[childIndex - 1];
System\Windows\SystemResources.cs (1)
1223_resourceCache.Remove(keys[i]);
System\Windows\TemplateContent.cs (2)
263PropertyValue value = sharedProperties[i]; 329PropertyValue sdp = sharedProperties[i];
System\Windows\ThemeDictionaryExtension.cs (3)
124ThemeDictionaryInfo info = _themeDictionaryInfos[i]; 199info = _themeDictionaryInfos[i]; 235ThemeDictionaryInfo info = _themeDictionaryInfos[i];
System\Windows\TriggerActionCollection.cs (6)
77InheritanceContextHelper.RemoveContextFromObject(_owner, _rawList[i]); 89TriggerAction oldValue = _rawList[index]; 163return _rawList[index]; 169object oldValue = _rawList[index]; 228return _rawList[index]; 269_rawList[i].Seal(containingTrigger);
System\Windows\Window.cs (1)
3630IntPtr hWnd = _threadWindowHandles[i];
PresentationFramework.Aero (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
356Freezable freezable = _freezableCache[index]; 371if (_freezableCache[index] == null)
PresentationFramework.Aero2 (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
356Freezable freezable = _freezableCache[index]; 371if (_freezableCache[index] == null)
PresentationFramework.AeroLite (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
356Freezable freezable = _freezableCache[index]; 371if (_freezableCache[index] == null)
PresentationFramework.Classic (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
356Freezable freezable = _freezableCache[index]; 371if (_freezableCache[index] == null)
PresentationFramework.Luna (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
356Freezable freezable = _freezableCache[index]; 371if (_freezableCache[index] == null)
PresentationFramework.Royale (2)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
356Freezable freezable = _freezableCache[index]; 371if (_freezableCache[index] == null)
ReachFramework (75)
AlphaFlattener\Flattener.cs (48)
309PrimitiveInfo info = commands[i]; 342DisplayList.PrintPrimitive(commands[i], i, true); 361commands[i]?.SetID(i); 371PrimitiveInfo info = commands[i]; 423PrimitiveInfo pi = _dl.Commands[i]; 429_dl.Commands[j].underlay.Remove(i); 441_dl.Commands[j].overlapHasTransparency--; 444_dl.Commands[j].overlap.Remove(i); 558commands[k].underlay.Remove(i); 559commands[k].underlay.Add(j); 567commands[k].overlap.Remove(i); 568commands[k].overlap.Add(j); 579commands[k].underlay.Remove(j); 580commands[k].underlay.Add(i); 588commands[k].overlap.Remove(j); 589commands[k].overlap.Add(i); 608PrimitiveInfo pj = commands[j]; 619int i = pj.underlay[n]; 621PrimitiveInfo pi = commands[i]; 642SwitchCommands(commands, i, commands[i], i + 1, commands[i + 1], false); 662PrimitiveInfo pi = commands[i]; 672qi = commands[pi.underlay[pi.underlay.Count - 1]]; 739commands[pi.underlay[k]].overlapHasTransparency--; 766PrimitiveInfo qi = commands[pi.underlay[j]]; 772int under = pi.underlay[k]; 774commands[under].overlap.Remove(i); 775commands[under].overlapHasTransparency--; 792List<int> l = commands[i].underlay; 800oldUnderlay[i].Add(l[j]); 833PrimitiveInfo pi = commands[i]; 845PrimitiveInfo qi = commands[pi.overlap[j]]; 867PrimitiveInfo pj = commands[j]; 871if ((pj.underlay[pj.underlay.Count - 1] == i) && pj.FullyCovers(pi) && !pi.FullyCovers(pj)) 906PrimitiveInfo pi = commands[i]; 923commands[j].underlay.Remove(i); 934commands[j].overlap.Remove(i); 977PrimitiveInfo pi = commands[i]; 986DisplayList.PrintPrimitive(commands[i], i, false); 1001DisplayList.LeftPad(transparentCluster[i].DebugBounds, 0), 1002DisplayList.LeftPad(transparentCluster[i].DebugPrimitives, 0), 1003transparentCluster[i].DebugRasterize); 1026PrimitiveInfo pi = commands[i]; 1051ctx.DrawRectangle(null, pen, transparentCluster[i].DebugBounds);
AlphaFlattener\Optimizer.cs (16)
69Primitive primitive = commands[i].primitive; 135commands[i].m_cluster = c; 174if (!addedPrimitives[primIndex] && commands[primIndex] != null) 176PrimitiveInfo primitive = commands[primIndex]; 180Cluster cluster = transparentCluster[clusterIndex]; 259Rect bounds = commands[i].GetClippedBounds(); 275if ((commands[j] != null) && m_primitives.IndexOf(j) < 0) 289if (m_primitives.IndexOf(c.m_primitives[i]) < 0) 291m_primitives.Add(c.m_primitives[i]); 312PrimitiveInfo pi = commands[i]; 400PrimitiveInfo pi = commands[i]; 411Cluster c = transparentCluster[j]; 448if (transparentCluster[i].m_bounds.IntersectsWith(transparentCluster[j].m_bounds)) 450transparentCluster[i].MergeWith(transparentCluster[j]);
AlphaFlattener\PrimitiveList.cs (5)
303return (_commands[index]).bounds; 314if (list[i] == n) 319if (list[i] > n) 338PrimitiveInfo pi = _commands[one]; 347PrimitiveInfo qi = _commands[two];
AlphaFlattener\PrimitiveRenderer.cs (4)
332PrimitiveInfo pi = _commands[_overlapping[s]] as PrimitiveInfo; 350topPI = _commands[_overlapping[start]] as PrimitiveInfo;
Serialization\DrawingContextFlattener.cs (2)
159return _fullTransform[_fullTransform.Count - 1]; 177return _fullClip[_fullClip.Count - 1];
Replay (1)
Replay.cs (1)
157var compilerCall = compilerCalls[index];
Roslyn.VisualStudio.DiagnosticsWindow (1)
OptionPages\ForceLowMemoryMode.cs (1)
123var block = _blocks[b];
RunTests (1)
TestRunner.cs (1)
95var task = running[i];
Stress.ApiService (2)
TestMetrics.cs (1)
49sum += uploadSpeed[i];
TraceCreator.cs (1)
128var a = _allActivities[Random.Shared.Next(0, _allActivities.Count)];
Swaggatherer (11)
SwaggathererApplication.cs (11)
66var input = ReadInput(Input.Values[i]); 73if (HasComplexSegment(entries[i])) 75Out.WriteLine("Skipping route with complex segment: " + entries[i].Template.TemplateText); 85var entry = entries[i]; 86var precedence = RoutePrecedence.ComputeInbound(entries[i].Template); 96Out.WriteLine("Duplicate route template: " + entries[i].Template.TemplateText); 109entries[i].RequestUrl = GenerateRequestUrl(entries[i].Template); 110if (entries[i].RequestUrl == null) 112Out.WriteLine("Failed to create a request for: " + entries[i].Template.TemplateText); 188var other = others[j];
System.CodeDom (2)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (2)
245type.TypeArguments.Add(typeArgumentList[i]); 263TypeArguments.Add(typeArgumentList[i]);
System.Collections (1)
System\Collections\Generic\SortedSet.cs (1)
1447if (Remove(matches[i]))
System.Collections.Concurrent (1)
System\Collections\Concurrent\BlockingCollection.cs (1)
1405if (collections[i]._occupiedNodes.AvailableWaitHandle == handles[index])
System.Collections.Immutable (6)
System\Collections\Immutable\ImmutableSortedSet_1.cs (6)
1152if (comparer.Compare(list[i], list[i - 1]) != 0) 1154list[index++] = list[i]; 1210if (comparer.Compare(list[i], list[i - 1]) != 0) 1212list[index++] = list[i];
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\ValidationAttributeStore.cs (1)
252if (object.ReferenceEquals(attr, attributes[i]))
System.ComponentModel.Composition (2)
Microsoft\Internal\Collections\WeakReferenceCollection.cs (1)
50if (object.ReferenceEquals(_items[i].Target, item))
System\ComponentModel\Composition\Hosting\AtomicComposition.cs (1)
157Action action = _revertActionList[i];
System.ComponentModel.TypeConverter (31)
System\ComponentModel\Design\Serialization\ContextStack.cs (3)
38return _contextStack[_contextStack.Count - 1]; 55return _contextStack[_contextStack.Count - 1 - level]; 115context = _contextStack[idx];
System\ComponentModel\EventDescriptorCollection.cs (3)
322EventDescriptor? currentEvent = eventList[j]; 343if (eventList[i] != null) 345_events[foundCount++] = eventList[i];
System\ComponentModel\MaskedTextProvider.cs (18)
492CharDescriptor chDex = _stringDescriptor[position]; 714CharDescriptor chDex = _stringDescriptor[position]; 1014CharDescriptor chDex = _stringDescriptor[testPosition]; 1116CharDescriptor chDex = _stringDescriptor[testPosition]; 1169CharDescriptor chDex = _stringDescriptor[position]; 1311CharDescriptor chDex = _stringDescriptor[srcPos]; 1349CharDescriptor chDex = _stringDescriptor[srcPos]; 1399CharDescriptor chDex = _stringDescriptor[position]; 1413CharDescriptor chDex = _stringDescriptor[position]; 1592CharDescriptor chDex = _stringDescriptor[srcPos]; 1632CharDescriptor chDex = _stringDescriptor[srcPos]; 1933CharDescriptor chDex = _stringDescriptor[testPosition]; 2027CharDescriptor chDex = _stringDescriptor[position]; 2041CharDescriptor charDex = _stringDescriptor[position]; 2171CharDescriptor charDex = _stringDescriptor[position]; 2348CharDescriptor chDex = _stringDescriptor[position]; 2493CharDescriptor chDex = _stringDescriptor[position]; 2625CharDescriptor chDex = _stringDescriptor[index];
System\ComponentModel\MemberDescriptor.cs (2)
350object? typeId = list[i]?.TypeId; 362list[savedIndex] = list[i];
System\ComponentModel\PropertyDescriptorCollection.cs (3)
340PropertyDescriptor? currentProp = propList[j]; 361if (propList[i] != null) 363_properties[foundCount++] = propList[i]!;
System\ComponentModel\ReflectTypeDescriptionProvider.ReflectedTypeData.cs (2)
122Attribute attr = attributes[idx]; 139attributes[next++] = attributes[idx];
System.Configuration.ConfigurationManager (4)
System\Configuration\BaseConfigurationRecord.cs (2)
1302SectionInput locationInput = locationInputs[i]; 2168SectionInput input = sectionRecord.IndirectLocationInputs[i];
System\Configuration\SectionRecord.cs (2)
110internal SectionInput LastLocationInput => HasLocationInputs ? LocationInputs[LocationInputs.Count - 1] : null; 122=> HasIndirectLocationInputs ? IndirectLocationInputs[IndirectLocationInputs.Count - 1] : null;
System.Console (2)
System\TermInfo.Database.cs (2)
259extendedStrings.Add(names[iName], values[iValue]);
System.Data.Common (44)
System\Data\Common\DataColumnMappingCollection.cs (2)
351_items[index].Parent = null; 383_items[index].Parent = null;
System\Data\Common\DataTableMappingCollection.cs (1)
288_items[index].Parent = null;
System\Data\DataColumnCollection.cs (1)
537DataColumn col = column._dependentColumns[i];
System\Data\DataRelation.cs (1)
434DataRelation[] relations = list[i].NestedParentRelations;
System\Data\DataTable.cs (19)
1000Index ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy() 1128Index index = _indexes[i]; 3189Index index = _indexes[i]; 3771Index ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy() 3797Index ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy() 3818Index ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy() 3841Index ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy() 3880if (row.HasVersion(version) && ((states & _indexes[indexCount].RecordStates) != DataViewRowState.None)) 3882int index = _indexes[indexCount].GetIndex(recordNo); 3886_indexes[indexCount].DeleteRecordFromIndex(index); // this will delete the record from index and MUSt not fire event 3916if ((states & _indexes[indexCount].RecordStates) != DataViewRowState.None) 3918positionIndexes[indexCount] = _indexes[indexCount].InsertRecordToIndex(recordNo); 4075Index ndx = _shadowIndexes[i]; // shadowindexes may change, see ShadowIndexCopy() 6389DataRelation[] relations = tableList[i].NestedParentRelations; 6392if (rel != null && rel.ParentTable == tableList[i]) 6394foreach (DataRow r in tableList[i].Rows) 7152if (columns[i].Table == this) 7155DataColumn dc = columns[i]; 7205DataColumn dc = columns[i];
System\Data\DataView.cs (1)
1739object[] rows = arraylist[i];
System\Data\DataViewListener.cs (1)
195DataViewListener listener = listeners[i];
System\Data\Filter\AggregateNode.cs (1)
123DataColumn dataColumn = list[i];
System\Data\Filter\LookupNode.cs (1)
72DataColumn dataColumn = list[i];
System\Data\Filter\NameNode.cs (1)
67DataColumn dataColumn = list[i];
System\Data\ProviderBase\SchemaMapping.cs (3)
546if (null != items[i]) 548DataColumn? column = (items[i] as DataColumn); 555DataTable? table = (items[i] as DataTable);
System\Data\RecordManager.cs (1)
103record = _freeRecordList[_freeRecordList.Count - 1];
System\Data\Select.cs (2)
213Index ndx = _table._indexes[i]; 269Index ndx = _table._indexes[i];
System\Data\Selection.cs (4)
1033if (ReferenceEquals(list[i], item)) 1120TElem? listener = _listeners[i]; 1147Debug.Assert((-1 == nullIndex) || (null == _listeners[nullIndex]), "non-null listener"); 1151if (null == _listeners[i])
System\Data\SortExpressionBuilder.cs (2)
102int result = compare(a[i], b[i]);
System\Xml\XmlDataDocument.cs (3)
3080Debug.Assert(tableList[readPos] != null, "Temp Array is not supposed to reach to null"); 3081foreach (DataRelation r in tableList[readPos].ChildRelations) 3118foreach (DataRelation r in tableList[counter].ChildRelations)
System.Data.Odbc (8)
Common\System\Data\ProviderBase\DbConnectionPool.cs (3)
356_objectList[i]?.DoNotPoolThisConnection(); 1068DbConnectionInternal obj = _objectList[i]; 1109DbConnectionInternal obj = reclaimedObjects[i];
System\Data\Odbc\OdbcParameterCollectionHelper.cs (5)
140return InnerList[index]; 150return InnerList[index]; 200if (value == items[i]) 259OdbcParameter item = items[index]; 270OdbcParameter item = items[index];
System.Diagnostics.DiagnosticSource (5)
System\Diagnostics\ActivityTagsCollection.cs (3)
66return index < 0 ? null : _list[index].Value; 257value = _list[index].Value; 275if (_list[i].Key == key)
System\Diagnostics\Metrics\InstrumentAdvice.cs (2)
63if (comparer.Compare(values[i - 1], values[i]) >= 0)
System.Diagnostics.Process (1)
System\Diagnostics\Process.cs (1)
599newThreadsArray[i] = new ProcessThread(_isRemoteMachine, _processId, (ThreadInfo)_processInfo._threadInfoList[i]);
System.Diagnostics.TraceSource (8)
System\Diagnostics\Switch.cs (3)
81if (s_switches[i].TryGetTarget(out _)) 83buffer.Add(s_switches[i]); 280if (s_switches[i].TryGetTarget(out Switch? swtch))
System\Diagnostics\TraceListeners.cs (2)
31return _list[i]!; 214return _list[index];
System\Diagnostics\TraceSource.cs (3)
52if (s_tracesources[i].TryGetTarget(out _)) 54buffer.Add(s_tracesources[i]); 170if (s_tracesources[i].TryGetTarget(out TraceSource? tracesource))
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
136KeyValuePairEncodingRange previousKeyValueRange = keyValuePairEncodingRanges[keyValuePairEncodingRanges.Count - 1];
System.Formats.Nrbf (5)
System\Formats\Nrbf\ArraySingleObjectRecord.cs (1)
40SerializationRecord record = Records[recordIndex];
System\Formats\Nrbf\ArraySingleStringRecord.cs (1)
54SerializationRecord record = Records[recordIndex];
System\Formats\Nrbf\ClassRecord.cs (2)
118=> MemberValues[ClassInfo.MemberNames[memberName]] switch 130object? value = MemberValues[index];
System\Formats\Nrbf\MemberTypeInfo.cs (1)
43BinaryType type = info[i].BinaryType;
System.IO.Packaging (26)
System\IO\Packaging\InterleavedZipPackagePartStream.PieceDirectory.cs (9)
221pieceStreamInfo.Stream = _zipStreamManager.Open(_sortedPieceInfoList[pieceNumber].ZipArchiveEntry, 273_pieceStreamInfoList[i].Stream.Dispose(); 289_pieceStreamInfoList[i].Stream.Flush(); 306_pieceStreamInfoList[i].Stream.Close(); 339return _pieceStreamInfoList[pieceNumber]; 347PieceStreamInfo currentPieceStreamInfo = _pieceStreamInfoList[_indexOfLastPieceStreamInfoAccessed]; 361Stream pieceStream = _zipStreamManager.Open(_sortedPieceInfoList[pieceNumber].ZipArchiveEntry, 377return _pieceStreamInfoList[pieceNumber]; 395_sortedPieceInfoList[pieceNumber].ZipArchiveEntry.Delete();
System\IO\Packaging\Package.cs (1)
437precedingPartName = (partIndex[partIndex.Count - 1]);
System\IO\Packaging\PackagePart.cs (1)
779if (IsStreamClosed(_requestedStreams[i]))
System\IO\Packaging\ZipPackage.cs (15)
587if (pieces[i].PieceNumber != 0) 591_ignoredItemHelper.AddItemForStrayPiece(pieces[i]); 598normalizedPrefixNameForCurrentSequence = pieces[i].NormalizedPrefixName; 605if (pieces[i].NormalizedPrefixName != normalizedPrefixNameForCurrentSequence) 608if (pieces[i].PieceNumber == 0) 616normalizedPrefixNameForCurrentSequence = pieces[i].NormalizedPrefixName; 630if (pieces[i].PieceNumber != i - startIndexOfCurrentSequence) 640if (pieces[i].IsLastPiece) 686PackUriHelper.ValidatedPartUri partUri = pieces[startIndex].PartUri!; 1096if (partPieces[pieceNumber].PieceNumber != pieceNumber) 1104if (partPieces[pieceNumber].IsLastPiece) 1418zipFileInfoNameList.Add(pieces[i].ZipArchiveEntry.FullName); 1423if (pieces[startIndex].PartUri != null) 1425UpdateExtensionDictionary(pieces[startIndex].PartUri!, pieces[startIndex].NormalizedPrefixName);
System.IO.Pipelines (1)
System\IO\Pipelines\PipeCompletionCallbacks.cs (1)
32var callback = _callbacks[i];
System.Linq (3)
System\Linq\Select.SpeedOpt.cs (3)
408_selector(_source[i]); 432return _selector(_source[index]); 457return _selector(_source[len - 1]);
System.Linq.AsyncEnumerable (1)
System\Linq\ToAsyncEnumerable.cs (1)
49yield return source[i];
System.Linq.Expressions (19)
System\Dynamic\ExpandoClass.cs (1)
60ExpandoClass? klass = infos[i].Target as ExpandoClass;
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (10)
295Debug.Assert(key > buckets[buckets.Count - 1].Key); 309List<SwitchLabel> first = buckets[buckets.Count - 2]; 310List<SwitchLabel> second = buckets[buckets.Count - 1]; 312if (!FitsInBucket(first, second[second.Count - 1].Key, second.Count)) 328List<SwitchLabel> last = buckets[buckets.Count - 1]; 535EmitSwitchBucket(info, buckets[first]); 546EmitSwitchBucket(info, buckets[first]); 554EmitConstant(buckets[mid - 1][^1].Constant); 608int len = (int)(bucket[bucket.Count - 1].Key - bucket[0].Key + 1); 623Debug.Assert(key == bucket[bucket.Count - 1].Key + 1);
System\Linq\Expressions\Compiler\StackSpiller.Temps.cs (1)
118temp = _freeTemps[i];
System\Linq\Expressions\Interpreter\InstructionList.cs (5)
220Instruction instruction = _instructions[_instructions.Count - 1]; 250internal Instruction GetInstruction(int index) => _instructions[index]; 406if (_instructions[instructionIndex] is IBoxableInstruction instruction) 770Debug.Assert(_instructions[_instructions.Count - 1] == NullCheckInstruction.Instance); 947_instructions[branchIndex] = ((OffsetInstruction)_instructions[branchIndex]).Fixup(offset);
System\Linq\Expressions\Interpreter\LocalVariables.cs (2)
121if (scope.ChildScopes != null && scope.ChildScopes[curChild].Start == i) 124VariableScope child = scope.ChildScopes[curChild];
System.Linq.Parallel (14)
System\Linq\Parallel\QueryOperators\Unary\ReverseQueryOperator.cs (2)
152currentElement = _buffer[_bufferIndex.Value].First; 153currentKey = _buffer[_bufferIndex.Value].Second;
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipQueryOperator.cs (6)
253currentElement = _buffer[_bufferIndex.Value].First; 254currentKey = _buffer[_bufferIndex.Value].Second; 258|| _keyComparer.Compare(_buffer[_bufferIndex.Value].Second, _sharedIndices.MaxValue) <= 0; 285if (_keyComparer.Compare(_buffer[_bufferIndex.Value].Second, minKey) > 0) 287currentElement = _buffer[_bufferIndex.Value].First; 288currentKey = _buffer[_bufferIndex.Value].Second;
System\Linq\Parallel\QueryOperators\Unary\TakeOrSkipWhileQueryOperator.cs (5)
356currentElement = _buffer[_bufferIndex.Value].First; 357currentKey = _buffer[_bufferIndex.Value].Second; 378if (_keyComparer.Compare(_buffer[_bufferIndex.Value].Second, _operatorState._currentLowKey) >= 0) 380currentElement = _buffer[_bufferIndex.Value].First; 381currentKey = _buffer[_bufferIndex.Value].Second;
System\Linq\Parallel\Utils\Sorting.cs (1)
292sortedValues[i] = values[indices[i]];
System.Net.Http (13)
System\Net\Http\MultipartContent.cs (3)
168HttpContent content = _nestedContent[contentIndex]; 213HttpContent content = _nestedContent[contentIndex]; 264HttpContent nestedContent = _nestedContent[contentIndex];
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (5)
587while (freeIndex < list.Count && list[freeIndex].IsUsable(nowTicks, pooledConnectionLifetime, pooledConnectionIdleTimeout)) 599toDispose.Add(list[freeIndex]); 607while (current < list.Count && !list[current].IsUsable(nowTicks, pooledConnectionLifetime, pooledConnectionIdleTimeout)) 609toDispose.Add(list[current]); 617list[freeIndex++] = list[current++];
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (5)
571while (freeIndex < list.Count && list[freeIndex].IsUsable(nowTicks, pooledConnectionLifetime, pooledConnectionIdleTimeout)) 583toDispose.Add(list[freeIndex]); 591while (current < list.Count && !list[current].IsUsable(nowTicks, pooledConnectionLifetime, pooledConnectionIdleTimeout)) 593toDispose.Add(list[current]); 601list[freeIndex++] = list[current++];
System.Net.HttpListener (3)
System\Net\Managed\ChunkStream.cs (2)
114Chunk chunk = _chunks[i]; 199Chunk ch = _chunks[i];
System\Net\Managed\HttpEndPointListener.cs (1)
280ListenerPrefix p = list[i];
System.Net.Mail (1)
System\Net\Mail\MailAddressCollection.cs (1)
46Add(result[i]);
System.Net.NetworkInformation (5)
System\Net\NetworkInformation\GatewayIPAddressInformationCollection.cs (1)
47return _addresses[index];
System\Net\NetworkInformation\InternalIPAddressCollection.cs (1)
62return _addresses[index];
System\Net\NetworkInformation\IPAddressInformationCollection.cs (1)
66return _addresses[index];
System\Net\NetworkInformation\MulticastIPAddressInformationCollection.cs (1)
66return _addresses[index];
System\Net\NetworkInformation\UnicastIPAddressInformationCollection.cs (1)
67return _addresses[index];
System.Net.Primitives (2)
System\Net\CookieContainer.cs (2)
871pathList = (PathList)m_domainTable[domainAttribute[i]]!; 899m_domainTable.Remove(domainAttribute[i]);
System.Net.Quic (4)
System\Net\Quic\Internal\MsQuicConfiguration.Cache.cs (4)
84if (!CertificateThumbprints[i].AsSpan().SequenceEqual(other.CertificateThumbprints[i])) 97if (ApplicationProtocols[i] != other.ApplicationProtocols[i])
System.Net.Requests (3)
System\Net\TimerThread.cs (1)
148s_queuesCache.Remove(garbage[i]);
System\Net\WebRequest.cs (2)
108Current = prefixList[i]; 276Current = prefixList[i];
System.Net.Security (4)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
747if (clientProto.SequenceEqual(protocolList[i].Protocol.Span))
System\Net\Security\SslStream.Protocol.cs (1)
515clientCertificate = filteredCerts[i];
System\Net\Security\SslStreamCertificateContext.Linux.cs (2)
309string url = MakeUrl(_ocspUrls[i], rentedChars); 324_ocspUrls[0] = _ocspUrls[i];
System.ObjectModel (3)
System\Collections\ObjectModel\KeyedCollection.cs (3)
144if (comparer.Equals(GetKeyForItem(Items[i]), key)) 199TKey key = GetKeyForItem(Items[index]); 211TKey oldKey = GetKeyForItem(Items[index]);
System.Private.CoreLib (31)
src\libraries\System.Private.CoreLib\src\System\AggregateException.cs (2)
174_innerExceptions[i] = innerExceptionInfos[i].SourceException; 311ReadOnlyCollection<Exception> currentInnerExceptions = exceptionsToFlatten[nDequeueIndex++].InnerExceptions;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
175get => this[index];
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
4344WeakReference<EventSource> weakRef = s_EventSources[i];
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Icu.cs (2)
154datePatternsList[i] = NormalizeDatePattern(datePatternsList[i]); 241if (shortDatePatterns[i] == shortDatePatterns[0])
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (2)
503cultures[i] = new CultureInfo(context.strings[i]); 530if (string.Equals(context.strings[i], _sRealName, StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfoScanner.cs (1)
527result[i] = m_dateWords[i];
src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseCalendar.Icu.cs (2)
119eras[i].era = eras.Count - i; 122eras[i].englishEraName = abbrevEnglishEraNames[startIndex];
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (1)
280Type enclosingType = nestings[i];
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
57ParseStartupHook(ref startupHooks[i], startupHookParts[i]);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskExceptionHolder.cs (1)
271combinedExceptions[i] = exceptions[i].SourceException;
src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
634availableId = _freeIds[freeIdCount - 1];
src\libraries\System.Private.CoreLib\src\System\Threading\TimerQueue.Portable.cs (2)
101TimerQueue timer = timers[i]; 111timers[i] = timers[lastIndex];
src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Unix.NonAndroid.cs (1)
359currentPath = toExplore[toExplore.Count - 1];
src\System\GC.CoreCLR.cs (7)
619if (s_notifications[i].LowMemoryPercent <= s_previousMemoryLoad && s_previousMemoryLoad <= s_notifications[i].HighMemoryPercent 620&& !(s_notifications[i].LowMemoryPercent <= currentMemoryLoad && currentMemoryLoad <= s_notifications[i].HighMemoryPercent)) 622s_notifications[i].Notification(); 627s_notifications[last++] = s_notifications[i]; 773if (s_notifications[i].Notification == notification)
src\System\Reflection\Emit\DynamicILGenerator.cs (1)
979return m_tokens[token];
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (1)
576currentMethod = m_containingType.m_listMethods[i];
src\System\Reflection\Emit\RuntimeTypeBuilder.cs (3)
1504interfaceTokens[i] = m_module.GetTypeTokenInternal(m_typeInterfaces[i]); 1531constraints[i] = m_module.GetTypeTokenInternal(m_typeInterfaces[i]); 1581RuntimeMethodBuilder meth = m_listMethods[i];
src\System\RuntimeType.CoreCLR.cs (1)
1342if (propertyInfo.EqualsSig(cache[j]))
System.Private.DataContractSerialization (61)
src\libraries\Common\src\System\CodeDom\CodeTypeReference.cs (2)
245type.TypeArguments.Add(typeArgumentList[i]); 263TypeArguments.Add(typeArgumentList[i]);
System\Runtime\Serialization\ClassDataContract.cs (27)
370childElementNamespaces[i + baseChildElementNamespaceCount] = GetChildNamespaceToDeclare(this, Members[i].MemberType, dictionary); 475if (Members[i].RequiresMemberAccessForSet()) 479if (Members[i].MemberInfo is FieldInfo) 484Members[i].MemberInfo.Name), 492Members[i].MemberInfo.Name), 558if (Members[i].RequiresMemberAccessForGet()) 562if (Members[i].MemberInfo is FieldInfo) 567Members[i].MemberInfo.Name), 575Members[i].MemberInfo.Name), 713MemberNames[i + baseMemberCount] = dictionary.Add(Members[i].Name); 737Members[i].Name = memberNames[i]; 738MemberNames[i] = dictionary.Add(Members[i].Name); 1005&& membersInHierarchy[endIndex]._member.Name == membersInHierarchy[endIndex + 1]._member.Name 1006&& membersInHierarchy[endIndex]._ns == membersInHierarchy[endIndex + 1]._ns) 1008membersInHierarchy[endIndex]._member.ConflictingMember = membersInHierarchy[endIndex + 1]._member; 1011if (membersInHierarchy[endIndex + 1]._member.HasConflictingNameAndType) 1017hasConflictingType = (membersInHierarchy[endIndex]._member.MemberType != membersInHierarchy[endIndex + 1]._member.MemberType); 1027membersInHierarchy[j]._member.HasConflictingNameAndType = true; 1425membersDictionary.Add(Members[i].Name, Members[i]); 1431if (membersDictionary.TryGetValue(dataContract.Members[i].Name, out DataMember? dataMember)) 1433if (dataMember.Equals(dataContract.Members[i], checkedContracts)) 1445dataContractMembersList.Add(dataContract.Members[i]);
System\Runtime\Serialization\CodeGenerator.cs (1)
177return _argList[index];
System\Runtime\Serialization\DataContract.cs (4)
2402_nestedParamCounts[level] = _nestedParamCounts[level] + count; 2425return _paramGenericInfos[paramIndex].GetExpandedXmlName().Name; 2437namespaces.Append(' ').Append(_paramGenericInfos[j].GetXmlNamespace()); 2460parametersFromBuiltInNamespaces = DataContract.IsBuiltInNamespace(_paramGenericInfos[j].GetXmlNamespace());
System\Runtime\Serialization\DataContractSet.cs (2)
153DataMember dataMember = classDataContract.Members[i]; 592Type conflictingType = types[i];
System\Runtime\Serialization\EnumDataContract.cs (6)
143_childElementNames[i] = dictionary.Add(Members[i].Name); 288if (longValue == Values[i]) 300long current = Values[i]; 380string memberName = Members[i].Name; 427memberNames1[i] = Members[i].Name; 428memberNames2[i] = enumContract.Members[i].Name;
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
366DataMember dataMember = classContract.Members[i]; 429if (members[i].IsRequired)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
242DataMember member = classContract.Members[i];
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (1)
214DataMember member = classContract.Members[i];
System\Runtime\Serialization\ReflectionReader.cs (1)
217members[childElementIndex + i] = classContract.Members[i];
System\Runtime\Serialization\ReflectionXmlFormatReader.cs (1)
148requiredMembers[memberCount] = members[i].IsRequired;
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (3)
149DataMember member = classContract.Members[i]; 247if (name == members[j].Name) 248return CheckIfConflictingMembersHaveDifferentTypes(members[j]);
System\Runtime\Serialization\SchemaExporter.cs (5)
131DataMember dataMember = classDataContract.Members[i]; 325if (genericArgumentCounts[nestedLevel - 1] == 0) 439facet.Value = enumDataContract.Members[i].Name; 440if (enumDataContract.Values[i] != GetDefaultEnumValue(enumDataContract.IsFlags, i)) 441facet.Annotation = GetSchemaAnnotation(EnumerationValueAnnotationName, enumDataContract.GetStringFromEnumValue(enumDataContract.Values[i]), schema);
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
425DataMember dataMember = classContract.Members[i]; 482requiredMembers[memberCount] = members[i].IsRequired;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (3)
312DataMember member = classContract.Members[i]; 807if (name == members[j].Name) 808return CheckIfConflictingMembersHaveDifferentTypes(members[j]);
System.Private.Windows.Core (2)
System\Private\Windows\Ole\FormatEnumerator.cs (1)
65ComTypes.FORMATETC current = _formats[_current];
Windows\Win32\System\Com\ComPointerList.cs (1)
20public T* this[int index] => (T*)_pointers[index];
System.Private.Xml (91)
System\Xml\Core\XmlEventCache.cs (2)
116page = _pages[idxPage]; 270page = _pages[idxPage];
System\Xml\Dom\DocumentXmlWriter.cs (7)
380parent.InsertAfter(_fragment[i], _start); 393parent.InsertBefore(_fragment[i], _start); 400_start.PrependChild(_fragment[i]); 407_start.AppendChild(_fragment[i]); 437XmlAttribute? attr = _fragment[i] as XmlAttribute; 448XmlAttribute? attr = _fragment[i] as XmlAttribute; 480parent.InsertAfter(_fragment[i], fragment0);
System\Xml\Dom\DocumentXPathNavigator.cs (1)
1816XmlAttributeCollection attributes = elements[i].Attributes;
System\Xml\Dom\XmlNamedNodeMap.SmallXmlNodeList.cs (1)
46return list[index];
System\Xml\Dom\XPathNodeList.cs (1)
77return _list[index];
System\Xml\Schema\ContentValidator.cs (11)
1464int[] transition = transitionTable[state]!; 1937RangePositionInfo lastrpos = runningPositions[matchCount]; 1938runningPositions[matchCount] = runningPositions[k]; 1975rposInfo = runningPositions[j]; 1982RangePositionInfo newRPosInfo = runningPositions[matchCount]; 2007newRPosInfo = runningPositions[j]; 2016currentRunningPosition = runningPositions[j].curpos; 2046Debug.Assert(runningPositions[i].curpos != null); 2047expectedPos.Or(runningPositions[i].curpos); 2089Debug.Assert(runningPositions[i].curpos != null); 2090expectedPos.Or(runningPositions[i].curpos);
System\Xml\Schema\Preprocessor.cs (1)
780schema.Items.Remove(removeItemsList[i]);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
582schema.Items.Remove(removeItemsList[i]);
System\Xml\Schema\XmlSchemaObjectTable.cs (8)
36Debug.Assert(_entries[matchedIndex].qname == name); 53Debug.Assert(_entries[matchedIndex].qname == name); 72Debug.Assert(_entries[matchedIndex].qname == name); 82if ((object)_entries[index].xso == (object)xso) 199array.SetValue(_entries[i].qname, arrayIndex++); 252array.SetValue(_entries[i].xso, arrayIndex++); 320currentValue = _entries[currentIndex].xso; 321currentKey = _entries[currentIndex].qname;
System\Xml\Schema\XmlSchemaSet.cs (6)
1013substitutionGroup.Members.Add(newMembers[i]); 1315if (reprocessList[i].BaseUri != null && reprocessList[i].BaseUri!.OriginalString.Length != 0) 1317_schemaLocations.Remove(reprocessList[i].BaseUri!); 1325if (cKey!.chameleonLocation.Equals(reprocessList[i].BaseUri)) 1331if (cKey.originalSchema == null || Ref.ReferenceEquals(cKey.originalSchema, reprocessList[i]))
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
557a.SetValue(collectionMember[i], i);
System\Xml\Serialization\XmlReflectionImporter.cs (1)
908MemberMapping member = members[i]!;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (3)
1104ilg.MarkLabel(caseLabels[i]); 1105ilg.Ldc(retValues[i]); 2003AttributeAccessor attribute = attributes[i];
System\Xml\Serialization\XmlSerializationWriterILGen.cs (4)
647ilg.MarkLabel(caseLabels[i]); 648ilg.Ldc(retValues[i]); 695ilg.MarkLabel(caseLabels[i]); 696ilg.Ldc(retValues[i]);
System\Xml\XPath\Internal\CacheAxisQuery.cs (2)
43return outputBuffer[count++]; 57return outputBuffer[count - 1];
System\Xml\XPath\Internal\CacheOutputQuery.cs (2)
54return outputBuffer[count++]; 68return outputBuffer[count - 1];
System\Xml\XPath\Internal\ClonableStack.cs (2)
20T result = base[last]; 27return base[base.Count - 1];
System\Xml\XPath\Internal\FollSiblingQuery.cs (1)
42if (parent.IsSamePosition(_parentStk[i]))
System\Xml\XPath\Internal\PreSiblingQuery.cs (1)
34if (nav1.IsSamePosition(parentStk[i]))
System\Xml\XPath\Internal\Query.cs (2)
113switch (CompareNodes(buffer[r - 1], nav)) 129switch (CompareNodes(buffer[m], nav))
System\Xml\XPath\Internal\QueryBuilder.cs (1)
448argList.Add(ProcessNode((AstNode)args[count], Flags.None, out argProps));
System\Xml\XPath\Internal\SortQuery.cs (2)
85return _results[count++].Node; 99return _results[count - 1].Node;
System\Xml\XPath\Internal\XPathParser.cs (2)
536AstNode arg = (AstNode)argList[i]; 556AstNode arg = (AstNode)argList[i];
System\Xml\Xsl\Runtime\DocumentOrderComparer.cs (1)
64if (navRoot.IsSamePosition(_roots[idx]))
System\Xml\Xsl\Runtime\DodSequenceMerge.cs (2)
83IEnumerator<XPathNavigator> sequence = _sequencesToMerge[_sequencesToMerge.Count - 1]; 122int cmp = _runtime.ComparePosition(sequence.Current, _sequencesToMerge[i].Current);
System\Xml\Xsl\Runtime\XslNumber.cs (4)
224TokenInfo? periodicSeparator = 2 < cFormats ? _tokens[cFormats - 2] : s_defaultSeparator; 225TokenInfo? periodicFormat = 0 < cFormats ? _tokens[cFormats - 1] : s_defaultFormat; 241TokenInfo? thisSeparator = haveFormat ? _tokens[formatIndex + 0] : periodicSeparator; 246TokenInfo? thisFormat = haveFormat ? _tokens[formatIndex + 1] : periodicFormat;
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
197return _decimalFormatters[idx].Format(value);
System\Xml\Xsl\XmlQueryTypeFactory.cs (6)
271if (itemType.IsSubtypeOf(accumulator[i])) 277if (accumulator[i].IsSubtypeOf(itemType)) 748XmlQueryType t = members[i]; 816TF.Serialize(writer, _members[i]); 903if (!_members[i].IsNotRtf) 951get { return _members[index]; }
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (3)
762if (templates[templates.Count - 1] == dependentTemplate) 1410var node = content[split]; 1471newtemplate.AddContent(content[t]);
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
259_curStylesheet.Imports[i] = LoadStylesheet(importHrefs[i], /*include:*/false);
System\Xml\Xsl\XsltOld\NumberAction.cs (5)
519sufix = tokens[cFormats - 1]; 522FormatInfo periodicSeparator = 2 < cFormats ? tokens[cFormats - 2]! : s_defaultSeparator; 523FormatInfo periodicFormat = 0 < cFormats ? tokens[cFormats - 1]! : s_defaultFormat; 535FormatInfo thisSeparator = haveFormat ? tokens[formatIndex + 0]! : periodicSeparator; 540FormatInfo thisFormat = haveFormat ? tokens[formatIndex + 1]! : periodicFormat;
System\Xml\Xsl\XsltOld\Processor.cs (5)
339_queryList[i] = Query.Clone(queryStore[i].CompiledQuery.QueryTree); 363_keyList[i] = _rootAction.KeyList[i].Clone(); 514return _queryStore[key].CompiledQuery.Expression; 520TheQuery theQuery = _queryStore[key]; 535TheQuery theQuery = _queryStore[key];
System.Reflection.DispatchProxy (3)
System\Reflection\DispatchProxyGenerator.cs (3)
288args[i] = _fields[i].FieldType; 306il.Emit(OpCodes.Stfld, _fields[i]); 486il.Emit(OpCodes.Ldfld, _fields[MethodInfosFieldAndCtorParameterIndex]); // MethodInfo[] _methodInfos
System.Reflection.Emit (20)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeNameBuilder.cs (1)
280Type enclosingType = nestings[i];
System\Reflection\Emit\ILGeneratorImpl.cs (5)
93ExceptionBlock currentExBlock = _exceptionStack[_exceptionStack.Count - 1]; 140ExceptionBlock currentExBlock = _exceptionStack[_exceptionStack.Count - 1]; 183ExceptionBlock currentExBlock = _exceptionStack[_exceptionStack.Count - 1]; 211ExceptionBlock currentExBlock = _exceptionStack[_exceptionStack.Count - 1]; 746ExceptionBlock currentExBlock = _exceptionStack[_exceptionStack.Count - 1];
System\Reflection\Emit\ModuleBuilderImpl.cs (11)
479spBlobBuilder.WriteCompressedInteger(sequencePoints[i].Offset - sequencePoints[i - 1].Offset); 483spBlobBuilder.WriteCompressedInteger(sequencePoints[i].Offset); 486if (sequencePoints[i].IsHidden) 493SerializeDeltaLinesAndColumns(spBlobBuilder, sequencePoints[i]); 499spBlobBuilder.WriteCompressedInteger(sequencePoints[i].StartLine); 500spBlobBuilder.WriteCompressedInteger(sequencePoints[i].StartColumn); 504spBlobBuilder.WriteCompressedSignedInteger(sequencePoints[i].StartLine - previousNonHiddenStartLine); 505spBlobBuilder.WriteCompressedSignedInteger(sequencePoints[i].StartColumn - previousNonHiddenStartColumn); 508previousNonHiddenStartLine = sequencePoints[i].StartLine; 509previousNonHiddenStartColumn = sequencePoints[i].StartColumn;
System\Reflection\Emit\TypeBuilderImpl.cs (3)
131MethodBuilderImpl method = _methodDefinitions[i]; 1310if (im.InterfaceMethods[i].Equals(mapping[j].ifaceMethod)) 1312im.TargetMethods[i] = mapping[j].targetMethod;
System.Reflection.Metadata (27)
System\Reflection\Internal\Utilities\EnumerableExtensions.cs (3)
39int result = comparison(source[left], source[right]); 49yield return source[index];
System\Reflection\Metadata\Ecma335\Encoding\ControlFlowBuilder.cs (4)
43int labelTargetOffset = labels[Label.Id - 1]; 120Debug.Assert(_branches.Count == 0 || operandOffset > _branches[_branches.Count - 1].OperandOffset); 149int offset = _labels[label.Id - 1]; 350branch = _branches[branchIndex];
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (20)
1474if (_classLayoutTable[i - 1].Parent >= _classLayoutTable[i].Parent) 1485if (_fieldLayoutTable[i - 1].Field >= _fieldLayoutTable[i].Field) 1497if (_fieldRvaTable[i - 1].Field >= _fieldRvaTable[i].Field) 1514current = _genericParamTable[i]; 1534if (_genericParamConstraintTable[i - 1].Owner > _genericParamConstraintTable[i].Owner) 1545if (_implMapTable[i - 1].MemberForwarded >= _implMapTable[i].MemberForwarded) 1556if (_interfaceImplTable[i - 1].Class > _interfaceImplTable[i].Class) 1567if (_methodImplTable[i - 1].Class > _methodImplTable[i].Class) 1578if (_nestedClassTable[i - 1].NestedClass >= _nestedClassTable[i].NestedClass) 1597current = _localScopeTable[i]; 1625if (_stateMachineMethodTable[i - 1].MoveNextMethod >= _stateMachineMethodTable[i].MoveNextMethod)
System.Security.Claims (13)
System\Security\Claims\ClaimsIdentity.cs (4)
323yield return _instanceClaims[i]; 328if (_externalClaims[j] != null) 330foreach (Claim claim in _externalClaims[j]) 473if (object.ReferenceEquals(_instanceClaims[i], claim))
System\Security\Claims\ClaimsPrincipal.cs (9)
383if (_identities[i] != null) 385claim = _identities[i].FindFirst(type); 409if (_identities[i] != null) 411if (_identities[i].HasClaim(match)) 437if (_identities[i] != null) 439if (_identities[i].HasClaim(type, value)) 489if (_identities[i] != null) 491if (_identities[i].HasClaim(_identities[i].RoleClaimType, role))
System.Security.Cryptography (19)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (2)
55CryptographicAttributeObject existing = _list[index]; 104return _list[index];
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (4)
331ReadOnlyMemory<byte> bagValue = serializedBags[i].BagValue; 336switch (serializedBags[i].BagId) 365bag ??= new Pkcs12SafeBag.UnknownBag(serializedBags[i].BagId, bagValue); 367bag.Attributes = PkcsHelpers.MakeAttributeCollection(serializedBags[i].BagAttributes);
System\Security\Cryptography\AsnEncodedDataCollection.cs (1)
44return _list[index];
System\Security\Cryptography\X509Certificates\CertificatePolicy.cs (2)
83CertificatePolicyMappingAsn mapping = policy.PolicyMapping[iMapping]; 160_policies[i] = ReadPolicy(chain[i]);
System\Security\Cryptography\X509Certificates\CertificateRevocationListBuilder.cs (1)
250if (serialNumber.SequenceEqual(_revoked[i].Serial))
System\Security\Cryptography\X509Certificates\OpenSslX509ChainProcessor.cs (4)
313X509Certificate2 downloadedCert = downloadedCerts[i]; 1039if (list[i].Status == statusCode) 1052if (list[i].Status == statusCode) 1065if (list[i].Status == statusCode)
System\Security\Cryptography\X509Certificates\X500DistinguishedName.cs (2)
114yield return parsedAttributes[i]; 121yield return parsedAttributes[i];
System\Security\Cryptography\X509Certificates\X500DistinguishedNameBuilder.cs (1)
349_writer.WriteEncodedValue(_encodedComponents[i]);
System\Security\Cryptography\X509Certificates\X500NameEncoder.ManagedDecode.cs (1)
89AsnReader rdnReader = rdnReaders[loc];
System\Security\Cryptography\X509Certificates\X509ExtensionCollection.cs (1)
46return _list[index];
System.Security.Cryptography.Pkcs (8)
src\libraries\Common\src\System\Security\Cryptography\CryptographicAttributeObjectCollection.cs (2)
55CryptographicAttributeObject existing = _list[index]; 104return _list[index];
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (4)
331ReadOnlyMemory<byte> bagValue = serializedBags[i].BagValue; 336switch (serializedBags[i].BagId) 365bag ??= new Pkcs12SafeBag.UnknownBag(serializedBags[i].BagId, bagValue); 367bag.Attributes = PkcsHelpers.MakeAttributeCollection(serializedBags[i].BagAttributes);
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (1)
44return _recipients[index];
System\Security\Cryptography\Pkcs\Pkcs12Info.cs (1)
127contentsArray[i] = new Pkcs12SafeContents(authSafeData[i]);
System.ServiceModel.NetFramingBase (12)
System\ServiceModel\Channels\ConnectionPool.cs (6)
109_endpointPools.Remove(endpointKeysToRemove[i]); 140result.CloseIdleConnection(itemsToClose[i], timeoutHelper.RemainingTime()); 335var valueTask = CloseItemAsync(itemsToClose[i], timeoutHelper.RemainingTime()); 360AbortItem(idleItemsToClose[i]); 365AbortItem(_busyConnections[i]); 463CloseIdleConnection(itemsToClose[i], timeoutHelper.RemainingTime());
System\ServiceModel\Channels\ConnectionPoolRegistry.cs (4)
37if (registryEntry[i].IsCompatible(settings) && registryEntry[i].TryOpen()) 39result = registryEntry[i]; 87if (ReferenceEquals(registryEntry[i], pool))
System\ServiceModel\Channels\IdlingCommunicationPool.cs (1)
222_parent.CloseIdleConnection(itemsToClose[i], timeoutHelper.RemainingTime());
System\ServiceModel\Security\SecurityUtilsEx.cs (1)
146IIdentity identity = identities[i];
System.ServiceModel.Primitives.Tests (1)
ServiceModel\MessageContractTest.4.4.0.cs (1)
311errorBuilder.AppendLine(String.Format("{0}", headerValues[i]));
System.ServiceModel.Syndication (1)
System\ServiceModel\XmlBuffer.cs (1)
115Section section = _sections[sectionIndex];
System.Text.Json (17)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (3)
106T next = nodes[i]; 153sortedNodes[--idx] = nodes[nextIndex]; 158if (adjacency[i] is { } childMap && nextIndex < childMap.Length && childMap[nextIndex])
System\Text\Json\Nodes\JsonArray.cs (8)
92jsonArray.Add(list[i]?.DeepCloneCore()); 118if (!DeepEquals(currentList[i], otherList[i])) 155list[i]?.AssignParent(this); 176list[i]?.AssignParent(this); 231return List[index]; 237DetachParent(List[index]); 368properties[i].Value = _node.List[i];
System\Text\Json\Nodes\JsonArray.IList.cs (3)
44DetachParent(list[i]); 112JsonNode? item = List[index]; 180DetachParent(list[index + i]);
System\Text\Json\Serialization\ConfigurationList.cs (1)
33return _list[index];
System\Text\Json\Serialization\Converters\Collection\ListOfTConverter.cs (2)
49elementConverter.Write(writer, list[index], options); 56TElement element = list[index];
System.Text.Json.SourceGeneration (3)
src\libraries\System.Text.Json\Common\JsonHelpers.cs (3)
106T next = nodes[i]; 153sortedNodes[--idx] = nodes[nextIndex]; 158if (adjacency[i] is { } childMap && nextIndex < childMap.Length && childMap[nextIndex])
System.Text.RegularExpressions (73)
System\Text\RegularExpressions\MatchCollection.cs (1)
81return _matches[i];
System\Text\RegularExpressions\Regex.Cache.cs (4)
100s_cacheDictionary.TryRemove(s_cacheList[i].Key, out _); 237long min = Volatile.Read(ref s_cacheList[minListIndex].LastAccessStamp); 243long next = Volatile.Read(ref s_cacheList[nextIndex].LastAccessStamp); 254s_cacheDictionary.TryRemove(s_cacheList[minListIndex].Key, out _);
System\Text\RegularExpressions\RegexCharClass.cs (6)
483(char First, char Last) range = rangeList[i]; 1647(char First, char Last) currentRange = rangelist[i]; 1692for (last = rangelist[j].Last; ; i++) 1701if ((currentRange = rangelist[i]).First > last + 1) 1712rangelist[j] = (rangelist[j].First, last); 1723rangelist[j] = rangelist[i];
System\Text\RegularExpressions\RegexCompiler.cs (5)
1093maxDistance = Math.Max(maxDistance, sets[i].Distance); 1122if (sets[setIndex].Distance != 0) 1124Ldc(sets[setIndex].Distance); 1129EmitMatchCharacterClass(sets[setIndex].Set); 6213Call(MakeUnsafeAs(list[index].GetType())); // provide JIT with details necessary to devirtualize calls on this instance
System\Text\RegularExpressions\RegexFindOptimizations.cs (7)
326char[]? chars = i < fixedDistanceSets.Count ? fixedDistanceSets[i].Chars : null; 327bool invalidChars = chars is not { Length: 1 } || fixedDistanceSets[i].Negated; 334(i > 0 && fixedDistanceSets[i].Distance != fixedDistanceSets[i - 1].Distance + 1)) 338best = (vsb.ToString(), fixedDistanceSets[start].Distance); 739FixedDistanceSet nextSet = sets[i]; 767FixedDistanceSet nextSet = sets[i];
System\Text\RegularExpressions\RegexNode.cs (28)
663if (branches[i].Kind == RegexNodeKind.Empty) 687RegexNode startNode = branches[start]; 695while (endExclusive < branches.Count && branches[endExclusive].FindBranchOneOrMultiStart() is not null) 708char c = branches[compare].FindBranchOneOrMultiStart()!.FirstCharOfOneOrMulti(); 711while (compare < endExclusive && branches[compare].FindBranchOneOrMultiStart()!.FirstCharOfOneOrMulti() == c) 723RegexNode nextChild = branches[next]; 972at = children[i]; 985atChildren[k].Parent = this; 1023prev = children[j]; 1098Debug.Assert(children[startingIndex].Children is List<RegexNode> { Count: >= 2 }); 1104RegexNode required = children[startingIndex].Child(0); 1120RegexNode other = children[endingIndex].Child(0); 1142((List<RegexNode>)children[i].Children!).RemoveAt(0); 1143newAlternate.AddChild(children[i]); 1180RegexNode child = children[i]; 1193children[j] = children[i]; 1234RegexNode? startingNode = children[startingIndex].FindBranchOneOrMultiStart(); 1254startingNode = children[endingIndex].FindBranchOneOrMultiStart(); 1312RegexNode branch = children[i]; 1552RegexNode at = children[i]; 1566atChildren[k].Parent = this; 1633RegexNode currentNode = children[current]; 1634RegexNode nextNode = children[next]; 1780children[nextSave++] = children[next]; 1834ProcessNode(children[i], children[i + 1]); 2228subsequent = peers[currentIndex + 1]; 2866curChild = stack[stack.Count - 1];
System\Text\RegularExpressions\RegexParser.cs (2)
1834string name = _capnamelist[i]; 1889next = (k == oldcapnamelist.Count) ? -1 : (int)_capnames[oldcapnamelist[k]]!;
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (8)
47resultStrings[i] = results[i].ToString(); 180StringBuilder newSb = new StringBuilder().Append(results[existing]); 189results[existing].Append(setChars[0]); 310StringBuilder suffix = allBranchResults[i]; 313StringBuilder newSb = new StringBuilder().Append(results[existing]); 322results[existing].Append(allBranchResults[0]); 530if (results[i].Set == RegexCharClass.AnyClass) 556RegexFindOptimizations.FixedDistanceSet result = results[i];
System\Text\RegularExpressions\Symbolic\SparseIntMap.cs (2)
40int entryKey = dense[idx].Key; 69Debug.Assert(_dense[index].Key == key);
System\Text\RegularExpressions\Symbolic\SymbolicRegexBuilder.cs (2)
166if (!seenElems.Add(nodes[i])) 181or = SymbolicRegexNode<TSet>.CreateAlternate(this, nodes[i], or, deduplicated: true);
System\Text\RegularExpressions\Symbolic\SymbolicRegexNode.cs (7)
550if (!seenElems.Contains(elems[i])) 552seenElems.Add(elems[i]); 568or = CreateAlternate(builder, elems[i], or, deduplicated: true); 577or = CreateAlternate(builder, elems[i], or, deduplicated: true); 1394elems[i] = elems[i].StripEffects(builder); 1471(SymbolicRegexNode<TSet> node, DerivativeEffect[] effects) = alternativesAndEffects[i]; 1509(SymbolicRegexNode<TSet> node, DerivativeEffect[] effects) = alternativesAndEffects[i];
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (1)
123(char lower, char upper) = ranges[i];
System.Text.RegularExpressions.Generator (54)
RegexGenerator.Emitter.cs (5)
615lines[i] = $" {lines[i]}"; 1253maxDistance = Math.Max(maxDistance, sets[i].Distance); 1295string spanIndex = $"span[i{(sets[setIndex].Distance > 0 ? $" + {sets[setIndex].Distance}" : "")}]"; 1296string charInClassExpr = MatchCharacterClass(spanIndex, sets[setIndex].Set, negate: false, additionalDeclarations, requiredHelpers);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (6)
483(char First, char Last) range = rangeList[i]; 1647(char First, char Last) currentRange = rangelist[i]; 1692for (last = rangelist[j].Last; ; i++) 1701if ((currentRange = rangelist[i]).First > last + 1) 1712rangelist[j] = (rangelist[j].First, last); 1723rangelist[j] = rangelist[i];
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexFindOptimizations.cs (5)
326char[]? chars = i < fixedDistanceSets.Count ? fixedDistanceSets[i].Chars : null; 327bool invalidChars = chars is not { Length: 1 } || fixedDistanceSets[i].Negated; 334(i > 0 && fixedDistanceSets[i].Distance != fixedDistanceSets[i - 1].Distance + 1)) 338best = (vsb.ToString(), fixedDistanceSets[start].Distance);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexNode.cs (28)
663if (branches[i].Kind == RegexNodeKind.Empty) 687RegexNode startNode = branches[start]; 695while (endExclusive < branches.Count && branches[endExclusive].FindBranchOneOrMultiStart() is not null) 708char c = branches[compare].FindBranchOneOrMultiStart()!.FirstCharOfOneOrMulti(); 711while (compare < endExclusive && branches[compare].FindBranchOneOrMultiStart()!.FirstCharOfOneOrMulti() == c) 723RegexNode nextChild = branches[next]; 972at = children[i]; 985atChildren[k].Parent = this; 1023prev = children[j]; 1098Debug.Assert(children[startingIndex].Children is List<RegexNode> { Count: >= 2 }); 1104RegexNode required = children[startingIndex].Child(0); 1120RegexNode other = children[endingIndex].Child(0); 1142((List<RegexNode>)children[i].Children!).RemoveAt(0); 1143newAlternate.AddChild(children[i]); 1180RegexNode child = children[i]; 1193children[j] = children[i]; 1234RegexNode? startingNode = children[startingIndex].FindBranchOneOrMultiStart(); 1254startingNode = children[endingIndex].FindBranchOneOrMultiStart(); 1312RegexNode branch = children[i]; 1552RegexNode at = children[i]; 1566atChildren[k].Parent = this; 1633RegexNode currentNode = children[current]; 1634RegexNode nextNode = children[next]; 1780children[nextSave++] = children[next]; 1834ProcessNode(children[i], children[i + 1]); 2228subsequent = peers[currentIndex + 1]; 2866curChild = stack[stack.Count - 1];
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexParser.cs (2)
1834string name = _capnamelist[i]; 1889next = (k == oldcapnamelist.Count) ? -1 : (int)_capnames[oldcapnamelist[k]]!;
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (8)
47resultStrings[i] = results[i].ToString(); 180StringBuilder newSb = new StringBuilder().Append(results[existing]); 189results[existing].Append(setChars[0]); 310StringBuilder suffix = allBranchResults[i]; 313StringBuilder newSb = new StringBuilder().Append(results[existing]); 322results[existing].Append(allBranchResults[0]); 530if (results[i].Set == RegexCharClass.AnyClass) 556RegexFindOptimizations.FixedDistanceSet result = results[i];
System.Threading.Tasks.Dataflow (10)
Blocks\BatchBlock.cs (3)
996KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>> sourceAndMessage = reserved[i]; 1048KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>> sourceAndMessage = reserved[i]; 1094KeyValuePair<ISourceBlock<T>, KeyValuePair<DataflowMessageHeader, T>> sourceAndMessage = reserved[i];
Internal\QueuedMap.cs (6)
80_freeIndex = _storage[_freeIndex].Key; 100_storage[_tailIndex] = new KeyValuePair<int, T>(newIndex, _storage[_tailIndex].Value); 123item = _storage[_headIndex].Value; 126int newHeadIndex = _storage[_headIndex].Key; 143for (int idx = _freeIndex; idx != TERMINATOR_INDEX; idx = _storage[idx].Key) 146_storage[index] = new KeyValuePair<int, T>(_storage[index].Key, item);
Internal\SourceCore.cs (1)
428_messages.Enqueue(itemsAsList[i]);
System.Windows.Controls.Ribbon (32)
Microsoft\Windows\Automation\Peers\RibbonAutomationPeer.cs (1)
192ribbonTabs[i].ForceEnsureChildren();
Microsoft\Windows\Controls\KeyTipService.cs (7)
1003DependencyObject newActiveElement = activeKeyTipElements[newActiveElementIndex++]; 1009DependencyObject currentActiveElement = _currentActiveKeyTipElements[i]; 1014newActiveElement = activeKeyTipElements[newActiveElementIndex++]; 1512keyTipControl = current._cachedKeyTipControls[count - 1]; 1629if (!handlerList[i].IsAlive) 1650KeyTipFocusEventHandler current = handlerList[i].Target as KeyTipFocusEventHandler; 1675KeyTipFocusEventHandler current = handlerList[i].Target as KeyTipFocusEventHandler;
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (5)
77StarLayoutInfo starLayoutInfo = _starLayoutCombinations[starLayoutIndex]; 99StarLayoutInfo starLayoutInfo = _starLayoutCombinations[starLayoutIndex]; 283StarLayoutInfo starLayoutInfo = _starLayoutCombinations[starLayoutIndex]; 366StarLayoutInfo starLayoutInfo = _starLayoutCombinations[starLayoutIndex]; 374StarLayoutInfo starLayoutInfo = _starLayoutCombinations[starLayoutIndex];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupsPanel.cs (4)
477StarLayoutInfo baseStarInfo = starInfoList[index]; 481StarLayoutInfo starInfo = starInfoList[i]; 508remainingStarWeight += starInfoList[i].RequestedStarWeight; 514StarLayoutInfo starInfo = starInfoList[i];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonMenuItemsPanel.cs (2)
181if (_registeredStarLayoutProviders.Contains(InvalidateRegisteredLayoutProvidersList[i])) 183UnregisterStarLayoutProvider(InvalidateRegisteredLayoutProvidersList[i]);
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonQuickAccessToolBarPanel.cs (5)
59UIElement childToMove = GeneratedChildren[args.OldPosition.Index]; 183UIElement generatedChild = generatedItems[i]; 314Debug.Assert(object.ReferenceEquals(InternalChildren[j], GeneratedChildren[j])); 328Debug.Assert(object.ReferenceEquals(QAT.OverflowPanel.Children[overflowPanelIndex], GeneratedChildren[k])); 329UIElement currentChild = GeneratedChildren[k];
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonTabHeadersPanel.cs (5)
516double maxTabHeaderWidth = elementSizes[sizeCount - 1] - clipWidth; 519double currentWidth = elementSizes[sizeCount - 1 - i]; 572return desiredPaddings[sizeCount - 1]; 576double maxDesiredPadding = desiredPaddings[sizeCount - 1] - delta; 579double currentDesiredPadding = desiredPaddings[sizeCount - 1 - i];
Microsoft\Windows\Controls\TextSearchInternal.cs (3)
119if (_charsEntered.Count > 0 && string.Compare(_charsEntered[_charsEntered.Count - 1], nextChar, true, GetCulture(_attachedTo)) == 0) 260if (_charsEntered.Count > 0 && string.Compare(_charsEntered[_charsEntered.Count - 1], nextChar, true, GetCulture(_attachedTo)) == 0) 326string lastChar = _charsEntered[_charsEntered.Count - 1];
System.Windows.Forms (213)
System\Windows\Forms\Application.ThreadContext.cs (2)
370_parkingWindows[i].Destroy(); 886filter = _messageFilterSnapshot[i];
System\Windows\Forms\AutoCompleteStringCollection.cs (3)
28return _data[index]; 32OnCollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Remove, _data[index])); 171string value = _data[index];
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
246newAttributes.Add(attributeList[i]);
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (3)
127typeInfos[i] = (ITypeInfo*)handles[i]; 797enumBuilder.DefineLiteral(strings[i], vars[i]);
System\Windows\Forms\Control.ControlCollection.cs (1)
348Control control = (Control)InnerList[index]!;
System\Windows\Forms\Control.cs (2)
5392indexes[i] = holders[i].OriginalIndex; 5421controls[i] = holders[i].Control!;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxAccessibleObject.cs (1)
136Entry item = entries[index];
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.cs (5)
164OwnerComboBoxAccessibleObject?.ItemAccessibleObjects.Remove(InnerList[index]); 221return InnerList[index].Item; 275destination[i + arrayIndex] = InnerList[i].Item; 290destination.SetValue(InnerList[i], i + index); 410InnerList[index].Item = value.OrThrowIfNull();
System\Windows\Forms\Controls\ComboBox\ComboBox.ObjectCollection.EntryEnumerator.cs (1)
67return _entries[_current].Item;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (18)
956DataGridViewColumn dataGridViewColumn = autoFillColumns[columnEntry]; 972DataGridViewColumn dataGridViewColumn = autoFillColumns[columnEntry]; 995DataGridViewColumn dataGridViewColumn = autoFillColumns[columnEntry]; 1023DataGridViewColumn dataGridViewColumn = autoFillColumns[columnEntry]; 1035DataGridViewColumn dataGridViewColumn = autoFillColumns[columnEntry]; 1048DataGridViewColumn dataGridViewColumn = autoFillColumns[columnEntry]; 1066DataGridViewColumn dataGridViewColumn = autoFillColumns[columnEntry]; 1077DataGridViewColumn dataGridViewColumn = autoFillColumns[columnEntry]; 1087DataGridViewColumn dataGridViewColumn = autoFillColumns[columnEntry]; 1106DataGridViewColumn dataGridViewColumn = autoFillColumns[columnEntry]; 1117DataGridViewColumn dataGridViewColumn = autoFillColumns[columnEntry]; 1136DataGridViewColumn dataGridViewColumn = autoFillColumns[columnEntry]; 1173DataGridViewColumn dataGridViewColumn = autoFillColumns[columnEntry]; 1193DataGridViewColumn dataGridViewColumn = autoFillColumns[columnEntry]; 1220DataGridViewColumn dataGridViewColumn = autoFillColumns[columnEntry]; 1598if (!boundColumns[j].IsBrowsableInternal) 1610boundColumns[j].DataPropertyName, 1626dataGridViewCols.Add(boundColumns[j]);
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (5)
67get => _items[index]; 84DataGridViewCell oldDataGridViewCell = _items[index]; 128return _items[dataGridViewColumn.Index]; 314if (_items[i] == cell) 343DataGridViewCell dataGridViewCell = _items[index];
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (36)
81public DataGridViewColumn this[int index] => _items[index]; 95DataGridViewColumn dataGridViewColumn = _items[i]; 215DataGridViewColumn dataGridViewColumn = initialColumns[index]; 224sortedColumns.Add(initialColumns[smallestIndex]); 340DataGridViewColumn dataGridViewColumn = _items[i]; 358int displayIndex1 = _items[columnIndex1].DisplayIndex; 359int displayIndex2 = _items[columnIndex2].DisplayIndex; 370DataGridViewColumn dataGridViewColumn = _items[displayIndex]; 379dataGridViewColumn = _items[columnIndex]; 399if (index != -1 && _items[index] == column) 441if (_items[columnIndex].StateIncludes(includeFilter)) 462if (_items[columnIndex].StateIncludes(correctedIncludeFilter) && 463_items[columnIndex].Resizable == DataGridViewTriState.True) 479Debug.Assert(_items[toColumnIndex].StateIncludes(includeFilter)); 482DataGridViewColumn? dataGridViewColumn = _items[fromColumnIndex]; 484while (dataGridViewColumn != _items[toColumnIndex]) 510_itemsSorted[_lastAccessedSortedIndex] == dataGridViewColumn) 518if (dataGridViewColumn.Index == _itemsSorted[index].Index) 538if (_items[columnIndex].StateIncludes(includeFilter)) 540weightSum += _items[columnIndex].FillWeight; 578if (_items[columnIndex].StateIncludes(includeFilter)) 580columnsWidth += _items[columnIndex].Thickness; 615DataGridViewColumn dataGridViewColumn = _itemsSorted[index]; 659DataGridViewColumn dataGridViewColumn = _itemsSorted[index]; 699DataGridViewColumn dataGridViewColumn = _itemsSorted[index]; 746DataGridViewColumn dataGridViewColumn = _items[index]; 764return columnFound ? _items[indexMin] : null; 771DataGridViewColumn dataGridViewColumn = _itemsSorted[index]; 819DataGridViewColumn dataGridViewColumn = _items[index]; 837return columnFound ? _items[indexMax] : null; 844DataGridViewColumn dataGridViewColumn = _itemsSorted[index]; 999if (_items[i] == dataGridViewColumn) 1019DataGridViewColumn dataGridViewColumn = _items[i]; 1063DataGridViewColumn dataGridViewColumn = _items[index]; 1169if (_itemsSorted[index + 1].DisplayIndex != 1170_itemsSorted[index].DisplayIndex + 1)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.ObjectCollection.cs (1)
157return InnerArray[index];
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (16)
112public DataGridViewRow SharedRow(int rowIndex) => SharedList[rowIndex]; 503DataGridViewElementStates rowState = _rowStates[indexSource] & ~dgvesRemove; 576DataGridViewElementStates rowTemplateState = _rowStates[indexSource] & ~dgvesRemove; 1209if (index != -1 && _items[index] == row) 1270rowsHeight += _items[rowIndex].GetHeight(rowIndex); 1298rowsHeight += _items[rowIndex].GetHeight(rowIndex); 1316rowsHeight += _items[rowIndex].GetHeight(rowIndex); 2273if ((dataGridViewCell.State & ~(dataGridViewCell.CellStateFromColumnRowStates(_rowStates[index]))) != 0) 2295if (((_rowStates[rowIndex] & state) != 0) != value) 2304_rowStates[rowIndex] = _rowStates[rowIndex] | state; 2308_rowStates[rowIndex] = _rowStates[rowIndex] & ~state; 2366return _rowStates[rowIndex]; 2414(_items[rowIndex1], _items[rowIndex2]) = (_items[rowIndex2], _items[rowIndex1]); 2415(_rowStates[rowIndex1], _rowStates[rowIndex2]) = (_rowStates[rowIndex2], _rowStates[rowIndex1]);
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedCellCollection.cs (2)
53get { return _items[index]; } 83return _items[index];
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedColumnCollection.cs (2)
49get { return _items[index]; } 69public DataGridViewColumn this[int index] => _items[index];
System\Windows\Forms\Controls\DataGridView\DataGridViewSelectedRowCollection.cs (2)
38get { return _items[index]; } 58public DataGridViewRow this[int index] => _items[index];
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
439Original original = _originals[i];
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (7)
42if ((_imageInfoCollection[i] is ImageInfo image) && (image.Name is not null) && (image.Name.Length != 0)) 476if ((_imageInfoCollection[i] is not null) && 477(WindowsFormsUtils.SafeCompareStrings(_imageInfoCollection[i].Name, key, ignoreCase: true))) 486if ((_imageInfoCollection[i] is not null) && 487(WindowsFormsUtils.SafeCompareStrings(_imageInfoCollection[i].Name, key, ignoreCase: true))) 583if (_imageInfoCollection[index] is null) 588_imageInfoCollection[index].Name = name;
System\Windows\Forms\Controls\Labels\LinkLabel.cs (13)
844if ((_links[i].State & LinkState.Hover) == LinkState.Hover) 846_links[i].State |= LinkState.Active; 849if (_links[i].Enabled) 851FocusLink = _links[i]; 878if ((_links[i].State & LinkState.Active) == LinkState.Active) 880_links[i].State &= ~LinkState.Active; 881InvalidateLink(_links[i]); 1198_links[i].State &= ~(LinkState.Hover | LinkState.Active); 1453if (_links[i] == _focusLink) 1584FocusLink = _links[newFocus]; 1648if (_links[i] == focusLink) 1669Link left = _links[x]; 1679Link right = _links[y];
System\Windows\Forms\Controls\Labels\LinkLabel.LinkCollection.cs (1)
28return _owner._links[index];
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (1)
92return _owner._listViewItems[index];
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (2)
81indices[i] = _owner._savedSelectedItems[i].Index; 119return _owner._savedSelectedItems[index].Index;
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (2)
67cloned[i] = _owner._savedSelectedItems[i]; 144return _owner._savedSelectedItems[index];
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
38get => List[index];
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (4)
28get => Items[index]; 31if (value != Items[index]) 33MoveToGroup(Items[index], null); 35MoveToGroup(Items[index], _group);
System\Windows\Forms\Controls\ListView\ListViewItem.cs (3)
1278info.AddValue($"SubItem{i}", _subItems[i], typeof(ListViewSubItem)); 1332_listView.SetItemText(itemIndex, index, _subItems[index].Text); 1339_listView.SetItemText(itemIndex, i, _subItems[i].Text);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (6)
50return _owner._subItems[index]; 57ListViewSubItem oldSubItem = _owner._subItems[index]; 202_owner._subItems[i].ReleaseUiaProvider(); 246if (_owner._subItems[index] == subItem) 350_owner._subItems[index]._owner = null; 351_owner._subItems[index].ReleaseUiaProvider();
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (5)
1532if (CompareDayAndMonth(_annualBoldDates[i], date)) 1542if (CompareDayAndMonth(_annualBoldDates[j], date)) 1562if (DateTime.Compare(_boldDates[i].Date, toRemove) == 0) 1583if (CompareDayAndMonth(_monthlyBoldDates[i], date)) 1593if (CompareDayAndMonth(_monthlyBoldDates[j], date))
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
2184if (!tabAttribute.TabClasses.Contains(tabClasses[j])) 3987_toolStrip.Items.Add(buttonList[j]);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyTabCollection.cs (1)
53return _ownerPropertyGrid._tabs[index].Tab;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiSelectRootGridEntry.PropertyMerger.cs (4)
40commonProperties[i], 59firstPropertyDescriptors[i] = firstProperties[i][0]; 72properties[i], 284var propertyDescriptors = sortedMergedEntries[start + offset];
System\Windows\Forms\Controls\TabControl\TabControl.cs (4)
733return _tabPages[index]; 1042if (_tabPages[i].Equals(tabPage)) 1061return _tabPages[index]; 1088result[i] = _tabPages[i];
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1957dropDowns[i].Visible = false;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (4)
48return (ToolStripItem)(InnerList[index]); 69return (ToolStripItem)InnerList[index]; 308get { return InnerList[index]; } 437: (ToolStripItem)InnerList[index];
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelRowCollection.cs (2)
35return (ToolStripPanelRow)(InnerList[index]); 123get { return InnerList[index]; }
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (2)
151var cell = (ToolStripPanelCell)(InnerList[index]); 162ToolStripPanelCell cell = (ToolStripPanelCell)(InnerList[i]);
System\Windows\Forms\Controls\UpDown\NumericUpDownAccelerationCollection.cs (2)
31if (acceleration.Seconds < _items[index].Seconds) 141get { return _items[index]; }
System\Windows\Forms\DataBinding\BindingsCollection.cs (1)
33public Binding this[int index] => _list[index]!;
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (2)
68return _window?.ControlItems[currentIndex + 1].AccessibilityObject; 81return _window?.ControlItems[currentIndex - 1].AccessibilityObject;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (7)
194ControlItem item = _items[i]; 218blinkPhase += _items[i].BlinkPhase; 234if (_items[i].Id == id) 236_items[i].ToolTipShown = toolTipShown; 243if (_items[j].ToolTipShown) 311ControlItem item = _items[i]; 320ControlItem item = _items[i];
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
48return _owner.ControlItems[index].AccessibilityObject;
System\Windows\Forms\Form.cs (9)
3496ownedForms[i].Dispose(); 4811if (!Application.OpenForms.Contains(ownedForms[i])) 4813ownedForms[i].OnFormClosed(fce); 4839if (ownedForms[i] is not null && !Application.OpenForms.Contains(ownedForms[i])) 4841ownedForms[i].OnFormClosing(fce); 6637ownedForms[i].OnFormClosing(cfe); 6706ownedForms[i].OnClosed(fc); 6708ownedForms[i].OnFormClosed(fc);
System\Windows\Forms\Internal\ItemArray.cs (7)
90if ((_entries[i].State & stateMask) != 0) 164return _entries[actualIndex].Item; 179return _entries[actualIndex]; 188return (_entries[index].State & stateMask) == stateMask; 258_entries[index].Item = item; 268_entries[index].State |= stateMask; 272_entries[index].State &= ~stateMask;
System\Windows\Forms\Internal\ItemArray.EntryEnumerator.cs (2)
50var entry = _items._entries[_current]; 100return _items._entries[_current].Item;
System\Windows\Forms\Layout\ArrangedElementCollection.cs (6)
22internal virtual IArrangedElement this[int index] => InnerList[index]; 33if (InnerList[i] != other.InnerList[i]) 65InnerList[fromIndex] = InnerList[toIndex]; 115destinationList.InnerList[destinationIndex++] = sourceList.InnerList[sourceIndex++]; 140get => InnerList[index];
System\Windows\Forms\Layout\TableLayout.cs (2)
1472LayoutInfo layoutInfo1 = layoutInfos[i]; 1478LayoutInfo layoutInfo2 = layoutInfos[j];
System\Windows\Forms\Layout\TableLayout.ReservationGrid.cs (5)
23if (column >= _rows[rowOffset].Length) 28return _rows[rowOffset][column]; 40if (column >= _rows[rowOffset].Length) 42_rows[rowOffset].Length = column + 1; 49_rows[rowOffset][column] = true;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (2)
59get => _innerList[index]; 115TableLayoutStyle style = _innerList[index];
System.Windows.Forms.Design (113)
System\ComponentModel\Design\DesignerActionPanel.cs (11)
378Line line = _lines[i]; 495while ((index < (_lineYPositions.Count - 1)) && (_lineYPositions[index + 1] <= originalClip.Top)) 503Line line = _lines[i]; 504int yPos = _lineYPositions[i]; 505int lineHeight = _lineHeights[i]; 783if (_lines[i] is TextBoxPropertyLine line) 792if (_lines[i] is TextBoxPropertyLine line) 834newLines.Add(categoryList[i]); 857LineInfo newLineInfo = newLines[i]; 862Line oldLine = _lines[i]; 893Line excessLine = _lines[i];
System\ComponentModel\Design\MenuCommandService.cs (4)
267string key = _globalVerbs[i].Text; 268verbsOrder.Add(_globalVerbs[i]); 277DesignerVerb designerActionVerb = designerActionVerbs[i]; 298DesignerVerb value = verbsOrder[i];
System\ComponentModel\Design\ReferenceService.cs (2)
179if (ReferenceEquals(_references[i].SitedComponent, component)) 273references[i] = _references[i].Reference;
System\ComponentModel\Design\SelectionService.cs (2)
233object component = _selection[i]; 403(_selection[primaryIndex], _selection[0]) = (_selection[0], _selection[primaryIndex]);
System\ComponentModel\Design\Serialization\StatementContext.cs (8)
61if (ReferenceEquals(_table[idx].Owner, statementOwner)) 63if (_table[idx].Statements is not null) 98if (ReferenceEquals(_table[idx].Owner, statementOwner)) 100if (_table[idx].Statements is null) 105return _table[idx].Statements; 222if (_table._table[_position].Statements is null) 224_table._table[_position] = new TableEntry(_table._table[_position].Owner, []); 227TableEntry entry = _table._table[_position];
System\ComponentModel\Design\UndoEngine.UndoUnit.cs (14)
145if (_events[i] is AddRemoveUndoEvent addEvt && !addEvt.NextUndoAdds) 149else if (_events[i] is ChangeUndoEvent changeEvt && ChangeEventsSymmetric(changeEvt.ComponentChangingEventArgs, e)) 153else if (_events[i] is RenameUndoEvent) 176if (_events[i] is ChangeUndoEvent ce && ChangeEventsSymmetric(ce.ComponentChangingEventArgs, e) && i != _events.Count - 1) 216ChangeUndoEvent ce = _changeEvents[idx]; 292changeEvt = _events[idx] as ChangeUndoEvent; 296if (_events[idx] is AddRemoveUndoEvent evt && evt.OpenComponent == e.Component) 309if (_events[i] is not ChangeUndoEvent) 443if (_events[groupIdx].CausesSideEffects) 455(_events[beforeIdx]).BeforeUndo(UndoEngine); 460(_events[undoIdx]).Undo(UndoEngine); 495if (_events[groupIdx].CausesSideEffects) 507(_events[beforeIdx]).BeforeUndo(UndoEngine); 512(_events[undoIdx]).Undo(UndoEngine);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
344return _behaviorStack[index + 1];
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (13)
277SnapLine snapLine = snapLines[i]; 291SnapLine targetSnapLine = targetSnapLines[j]; 304int pri = (int)snapLines[i].Priority; 345if (line.LineType != tempLines[j].LineType) 367Line[]? diffs = Line.GetDiffs(line, tempLines[j]); 451int pri = (int)snapLines[i].Priority; 463(((int)snapLines[i].Priority == highestPriority) || 464((int)snapLines[i].Priority == (int)SnapLinePriority.Always))) 466StoreSnapLine(snapLines[i], dragBounds); 763if (IsWithinValidRange(snapLines[snapLineIndex].Offset, min, max)) 906Line curLine = currentLines[i]; 1106_targetHorizontalSnapLines[i].AdjustOffset(_dragOffset.Y); 1111_targetVerticalSnapLines[i].AdjustOffset(_dragOffset.X);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (6)
425_dragComponents[j].dragComponent = temp[j]; 514_dragComponents[i].dragComponent = originalControls[i]; 576_dragComponents[i].dragComponent = originalControls[i]; 694Control dragControl = (Control)_dragObjects[i]; 945Control dragControl = (Control)_dragObjects[i]; 947_dragComponents[i].dragComponent = _dragObjects[i];
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
351_resizeComponents[i].resizeControl = components[i];
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (15)
126_rightStyle.style = _styles[_rightStyle.index]; 130_leftStyle.style = _styles[_leftStyle.index]; 213if (_styles[i].SizeType != SizeType.AutoSize && widths[i] >= DesignerUtils.s_minimumSizeDrag) 226if (_styles[i].SizeType != SizeType.AutoSize && widths[i] >= DesignerUtils.s_minimumSizeDrag) 280if (_styles[rightIndex].SizeType == SizeType.Absolute && 281_styles[leftIndex].SizeType == SizeType.Absolute) 307else if (_styles[rightIndex].SizeType == SizeType.Percent && 308_styles[leftIndex].SizeType == SizeType.Percent) 312if (_styles[i].SizeType == SizeType.Percent) 323PropertyDescriptor prop = TypeDescriptor.GetProperties(_styles[i])[isColumn ? "Width" : "Height"]; 324prop?.SetValue(_styles[i], newSize); 330int absIndex = _styles[rightIndex].SizeType == SizeType.Absolute ? rightIndex : leftIndex; 331PropertyDescriptor prop = TypeDescriptor.GetProperties(_styles[absIndex])[isColumn ? "Width" : "Height"]; 340float curAbsStyleSize = (float)prop.GetValue(_styles[absIndex]); 348prop.SetValue(_styles[absIndex], newAbsSize);
System\Windows\Forms\Design\CommandSet.cs (3)
1728if (shorterList[shortIndex] != longerList[longIndex]) 1733commonDesigner = shorterList[shortIndex];
System\Windows\Forms\Design\ComponentTray.cs (5)
922TrayControl control = (TrayControl)_controls[i]; 928return ((TrayControl)_controls[targetIndex]).Component; 940return ((TrayControl)_controls[targetIndex]).Component; 1777prevCtl = _controls[index - 1]; 1799prevCtl = _controls[index - 1];
System\Windows\Forms\Design\DataGridViewDesigner.cs (2)
689columnsToBeAdded[i].DisplayIndex = -1; 690dataGridView.Columns.Add(columnsToBeAdded[i]);
System\Windows\Forms\Design\DesignerFrame.cs (3)
450Control c = _overlayList[index]; 465Control overlayControl = _overlayList[i]; 482Control overlayControl = _overlayList[i];
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (10)
640originalControls.Add(_dragControls[j]); 643if (_primaryDragControl.Equals(_dragControls[j])) 645_primaryDragControl = (Control)tempList[j]; 648_dragControls[j] = (Control)tempList[j]; 672if (_primaryDragControl.Equals(_dragControls[i])) 677children.Add(_dragControls[i]); 678children.SetChildIndex(_dragControls[i], _insertionIndex); 681SelectionService.SetSelectedComponents(new IComponent[] { _dragControls[i] }, SelectionTypes.Add); 694_dragControls[i] = originalControls[i]; 761_primaryDragControl = _dragControls[primaryIndex];
System\Windows\Forms\Design\ImageListDesigner.OriginalImageCollection.cs (2)
55return (ImageListImage)_items[index]; 153ImageListImage imageListImage = (ImageListImage)_items[i];
System\Windows\Forms\Design\MaskDesignerDialog.cs (5)
403MaskDescriptor descriptor = _maskDescriptors[index]; 426MaskDescriptor descriptor = _maskDescriptors[selectedIndex]; 489selectedMaskDex = _maskDescriptors[selectedIndex]; 621MaskDescriptor maskDescriptor = _maskDescriptors[selectedIndex]; 712selectedMaskDex = _maskDescriptors[selectedIndex];
System\Windows\Forms\Design\NavigationalTableLayoutPanel.cs (2)
39RadioButton radioButton = radioButtons[i]; 52radioButtons[focusIndex].Focus();
System\Windows\Forms\Design\TabControlDesigner.cs (3)
511if (!(dragControls[i] is Control) || (dragControls[i] is Control && !(dragControls[i] is TabPage)))
System\Windows\Forms\Design\TabOrder.cs (1)
620ctl = _tabControls[i];
System.Windows.Forms.Primitives (5)
System\Windows\Forms\Automation\UiaTextProvider.cs (4)
92result[scan++] = rectArray[i].X; 93result[scan++] = rectArray[i].Y; 94result[scan++] = rectArray[i].Width; 95result[scan++] = rectArray[i].Height;
System\Windows\Forms\NonNullCollection.cs (1)
24get => _list[index];
System.Windows.Forms.Primitives.TestUtilities (1)
DeviceContextState.cs (1)
130_currentState = _savedStates[index];
System.Windows.Forms.Tests (7)
BindingNavigatorTests.cs (3)
100ToolStripItem item = items[i]; 102Assert.Equal(itemNames[i], item.Name.Trim()); 103Assert.Equal(itemTexts[i], item.Text.Trim());
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
38Person person = persons[i];
System\Windows\Forms\BindingSourceTests.cs (1)
766get => _innerList[index];
System\Windows\Forms\ComboBoxTests.cs (1)
2587MeasureItemEventArgs e = ownerDrawComboBox.MeasureItemEventArgs[i];
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (1)
794_ => listViewItems[e.ItemIndex],
System.Xaml (42)
System\Xaml\Context\NameFixupGraph.cs (3)
366NameFixupToken meToken = markupExtensionTokens[i]; 377NameFixupToken token = dependencies[j]; 411NameFixupToken token = dependencies[j];
System\Xaml\Context\XamlContext.cs (1)
285typeArgs[i] = GetXamlTypeOrUnknown(typeNames[i]);
System\Xaml\InfosetObjects\XamlObjectWriter.cs (4)
1259PositionalParameterDescriptor pparam = rawArgs[i]; 1263rawArgs[i].Value; 2623PendingCollectionAdd pendingAdd = pendingCollection[token.Target.TemporaryCollectionIndex]; 2633PendingCollectionAdd pendingAdd = pendingCollection[token.Target.TemporaryCollectionIndex];
System\Xaml\Parser\NodeStreamSorter.cs (7)
58_seenStack[_startObjectDepth].SeenInstancingProperty = false; 59_seenStack[_startObjectDepth].SeenOutOfOrderCtorDirective = false; 69get { return _seenStack[_startObjectDepth].SeenInstancingProperty; } 70set { _seenStack[_startObjectDepth].SeenInstancingProperty = value; } 75get { return _seenStack[_startObjectDepth].SeenOutOfOrderCtorDirective; } 76set { _seenStack[_startObjectDepth].SeenOutOfOrderCtorDirective = value; } 571int ctorIdx = _moveList[i];
System\Xaml\Parser\XamlPullParser.cs (2)
580yield return savedPrefixDefinitions[i]; 766yield return _savedPrefixDefinitions[i];
System\Xaml\Parser\XamlScanner.cs (3)
605XamlAttribute attr = attrList[i]; 736if (KS.Eq(_attributes[i].Name.ScopedName, XamlLanguage.Uid.Name)) 755XamlAttribute attr = _attributes[_nextAttribute++];
System\Xaml\Schema\TypeReflector.cs (1)
1208Remove(listOfNulls[i]);
System\Xaml\XamlNodeList.cs (1)
110return _nodeList[idx];
System\Xaml\XamlObjectReader.cs (12)
1075var memberInfo = (MemberMarkupInfo)Properties[i]; 1095var property = properties[i]; 3072entry.Predecessors = _entries[existingIndex].Predecessors; 3100Entry predEntry = _entries[predIndex]; 3102Entry keyEntry = _entries[keyIndex]; 3131_entries[i].Link = Entry.UNSEEN; 3145if (_entries[index].Link == Entry.UNSEEN) 3148_entries[index].Link = Entry.INDFS; 3151if (_entries[index].Predecessors is not null) 3153foreach (int predIndex in _entries[index].Predecessors) 3167_entries[_lastIndex].Link = index; 3199Entry entry = _entries[index];
System\Xaml\XamlSchemaContext.cs (2)
1431return (T)this[index].Target; 1461array[i + arrayIndex] = (T)this[i].Target;
System\Xaml\XamlXmlWriter.cs (6)
1973writer.ppStateInfo.NodesList[i].Insert(0, new XamlNode(XamlNodeType.StartMember, member)); 1974writer.ppStateInfo.NodesList[i].Add(new XamlNode(XamlNodeType.EndMember)); 2077writer.ppStateInfo.NodesList[writer.ppStateInfo.NodesList.Count - 1].Add(node); 2097writer.ppStateInfo.NodesList[writer.ppStateInfo.NodesList.Count - 1].Add(node); 2114writer.ppStateInfo.NodesList[writer.ppStateInfo.NodesList.Count - 1].Add(node); 2143writer.ppStateInfo.NodesList[writer.ppStateInfo.NodesList.Count - 1].Add(node);
UIAutomationClientSideProviders (6)
MS\Internal\AutomationProxies\ClickablePoint.cs (2)
421CPRect ro = listIn[i]; 440CPRect r = rectList[i];
MS\Internal\AutomationProxies\WinEventTracker.cs (4)
237EventCreateParams ecp = eventCreateParams[index]; 290EventCreateParams ecp = eventCreateParams[index]; 403EventCreateParams ecp = eventCreateParams[index]; 437EventCreateParams ecp = eventCreateParams[index];
VBCSCompiler (3)
src\Compilers\Server\VBCSCompiler\AnalyzerConsistencyChecker.cs (2)
116var resolvedPath = resolvedPaths[i]; 117var loadedAssembly = loadedAssemblies[i];
src\Compilers\Server\VBCSCompiler\ServerDispatcher.cs (1)
272var current = _connectionList[i];
WindowsBase.Tests (24)
System\Windows\WeakEventManagerTests.cs (24)
1209manager.ProtectedAddHandler(source, handlers[i]); 1215Assert.Same(handlers[j].Target, list[j]); 1575manager.ProtectedAddListener(source, listeners[i]); 1581Assert.Same(listeners[j], list[j]); 2092manager.ProtectedAddHandler(source, handlers[i]); 2096manager.ProtectedRemoveHandler(source, handlers[removeIndex]); 2107Assert.Same(expectedHandlers[i].Target, list[i]); 2118manager.ProtectedRemoveHandler(source, expectedHandlers[i]); 2517manager.ProtectedAddListener(source, listeners[i]); 2521manager.ProtectedRemoveListener(source, listeners[removeIndex]); 2532Assert.Equal(expectedListeners[i], list[i]); 2543manager.ProtectedRemoveListener(source, expectedListeners[i]); 3575list.Add(listeners[i]); 3580Assert.Same(listeners[j], list[j]); 3896list.AddHandler(handlers[i]); 3901Assert.Same(handlers[j].Target, list[j]); 5351list.Add(listeners[i]); 5355list.Remove(listeners[removeIndex]); 5363Assert.Equal(expectedListeners[i], list[i]); 5369list.Remove(expectedListeners[i]); 5610list.AddHandler(handlers[i]); 5614list.RemoveHandler(handlers[removeIndex]); 5622Assert.Same(expectedHandlers[i].Target, list[i]); 5628list.RemoveHandler(expectedHandlers[i]);
WindowsFormsIntegration (3)
System\Windows\Integration\ApplicationInterop.cs (3)
326if (!_internalList[i].IsAlive) 371if (_internalList[i].IsAlive) 373if (_internalList[i].Target as T == obj)
WinFormsControlsTest (4)
DataGridViewInVirtualModeTest.cs (2)
63TestCustomer customer = e.RowIndex == _rowInEdit ? _customerInEdit : _customers[e.RowIndex]; 89TestCustomer customer = _customers[e.RowIndex];
DragDrop.cs (2)
372if (_pictureBoxList[i] is not null) 374LoadCat(_pictureBoxList[i], new Bitmap(bitmapFiles[0]));
xunit.assert (2)
Sdk\AssertHelper.cs (1)
575 if (VerifyEquivalence(expectedValue, actualValues[actualIdx], strict, "", expectedRefs, actualRefs, depth) == null)
Sdk\CollectionTracker.cs (1)
741 printedValues.Append(ArgumentFormatter.Format(items[idx], depth));