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)
Aspire.Hosting (4)
Aspire.Hosting.Azure (1)
dotnet-svcutil-lib (13)
dotnet-user-jwts (2)
illink (1)
InMemory.FunctionalTests (1)
Microsoft.Analyzers.Local (1)
Microsoft.AspNetCore.Components (3)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (6)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.RazorPages (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.Routing (5)
Microsoft.AspNetCore.Routing.Abstractions (1)
Microsoft.AspNetCore.Server.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
Microsoft.Build (3)
Microsoft.Build.Engine.UnitTests (1)
Microsoft.Build.Tasks.Core (1)
Microsoft.CodeAnalysis (6)
Microsoft.CodeAnalysis.CodeStyle (2)
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Microsoft.CodeAnalysis.Features (5)
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.Workspaces (6)
Microsoft.CSharp (2)
Microsoft.Extensions.AI.Abstractions (4)
Microsoft.Extensions.AsyncState (2)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Maui (3)
Microsoft.Maui.Controls (7)
Microsoft.Maui.Controls.SourceGen (1)
Microsoft.Maui.Controls.Xaml (1)
Microsoft.Maui.Graphics (12)
Microsoft.ML.CodeGenerator (2)
Microsoft.ML.Core (2)
Microsoft.ML.Data (9)
Microsoft.ML.FastTree (1)
Microsoft.ML.LightGbm (1)
Microsoft.ML.OnnxTransformer (1)
Microsoft.ML.Sweeper (1)
Microsoft.ML.TestFramework (3)
Microsoft.ML.TimeSeries (3)
Microsoft.ML.Tokenizers (4)
Microsoft.ML.TorchSharp (2)
Microsoft.ML.Transforms (1)
Microsoft.NET.StringTools (2)
PresentationCore (59)
PresentationFramework (68)
PresentationFramework.Aero (1)
PresentationFramework.Aero2 (1)
PresentationFramework.AeroLite (1)
PresentationFramework.Classic (1)
PresentationFramework.Luna (1)
PresentationFramework.Royale (1)
ReachFramework (5)
System.Collections.Immutable (2)
System.ComponentModel.Composition (1)
System.ComponentModel.TypeConverter (4)
System.Data.Common (4)
System.Data.Odbc (1)
System.Diagnostics.DiagnosticSource (1)
System.Diagnostics.TraceSource (2)
System.Formats.Nrbf (3)
System.Linq.Expressions (2)
System.Net.Http (2)
System.Net.Security (1)
System.Private.CoreLib (8)
System.Private.DataContractSerialization (1)
System.Private.Xml (14)
System.Reflection.Metadata (1)
System.Text.Json (2)
System.Text.RegularExpressions (15)
System.Text.RegularExpressions.Generator (8)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
573results[i] = result;
System.Threading.Tasks.Dataflow (10)
System.Windows.Forms (22)
System.Windows.Forms.Design (8)
System.Windows.Forms.Primitives (1)
System.Windows.Forms.Primitives.TestUtilities (1)
System.Windows.Forms.Tests (1)
System.Xaml (2)
VBCSCompiler (1)
WinFormsControlsTest (1)
4720 references to Item
Aspire.Dashboard (22)
Aspire.Hosting (3)
Aspire.Hosting.Analyzers (2)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.Dapr (1)
Aspire.Hosting.Nats.Tests (1)
Aspire.Playground.Tests (2)
CodeGenerator (4)
ConfigurationSchemaGenerator (1)
CSharpSyntaxGenerator (8)
DesignSurface (8)
dotnet-svcutil.xmlserializer (1)
dotnet-svcutil-lib (177)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
83Attr a = attrSet[i];
dotnet-svcutil-lib.Tests (4)
dotnet-user-jwts (18)
HtmlGenerationWebSite (1)
IIS.LongTests (3)
IIS.Microbenchmarks (1)
IIS.NewHandler.FunctionalTests (3)
IIS.NewShim.FunctionalTests (3)
IISExpress.FunctionalTests (3)
illink (20)
InMemory.FunctionalTests (23)
IOperationGenerator (3)
Microsoft.Analyzers.Extra (1)
Microsoft.Analyzers.Extra.Tests (4)
Microsoft.Analyzers.Local (1)
Microsoft.Analyzers.Local.Tests (5)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Analyzers (1)
Microsoft.AspNetCore.Antiforgery (6)
Microsoft.AspNetCore.App.Analyzers (6)
Microsoft.AspNetCore.Authentication.Cookies (1)
Microsoft.AspNetCore.Components (12)
Microsoft.AspNetCore.Components.Endpoints (4)
Microsoft.AspNetCore.Components.Performance (1)
Microsoft.AspNetCore.Components.Server (6)
Microsoft.AspNetCore.Components.Tests (1)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.Components.WebAssembly (2)
Microsoft.AspNetCore.Components.WebView (1)
Microsoft.AspNetCore.Components.WebView.Test (5)
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
Microsoft.AspNetCore.CookiePolicy.Test (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
Microsoft.AspNetCore.Grpc.Swagger (2)
Microsoft.AspNetCore.Hosting (3)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
Microsoft.AspNetCore.Http.Connections (6)
Microsoft.AspNetCore.Http.Extensions (4)
Microsoft.AspNetCore.Http.Microbenchmarks (15)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
Microsoft.AspNetCore.HttpLogging (7)
Microsoft.AspNetCore.Mvc.Abstractions (5)
Microsoft.AspNetCore.Mvc.Core (26)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
Microsoft.AspNetCore.Mvc.RazorPages (3)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (8)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (31)
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)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.OutputCaching.Tests (2)
Microsoft.AspNetCore.Razor (4)
Microsoft.AspNetCore.Razor.Runtime (3)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
Microsoft.AspNetCore.ResponseCaching.Tests (2)
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
Microsoft.AspNetCore.Rewrite (2)
Microsoft.AspNetCore.Routing (31)
Microsoft.AspNetCore.Routing.Abstractions (1)
Microsoft.AspNetCore.Routing.Microbenchmarks (3)
Microsoft.AspNetCore.Routing.Tests (4)
Microsoft.AspNetCore.Security.Microbenchmarks (1)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
Microsoft.AspNetCore.Server.IIS (3)
Microsoft.AspNetCore.Server.Kestrel.Core (12)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (3)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (6)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (3)
Microsoft.AspNetCore.Shared.Tests (4)
Microsoft.AspNetCore.SignalR.Client.Tests (6)
Microsoft.AspNetCore.SignalR.Common (6)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (6)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (6)
Microsoft.AspNetCore.SignalR.Specification.Tests (6)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (6)
Microsoft.AspNetCore.StaticAssets (2)
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
Microsoft.AspNetCore.WebUtilities (4)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
Microsoft.Build (46)
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];
Microsoft.Build.Engine.OM.UnitTests (20)
Microsoft.Build.Engine.UnitTests (27)
Microsoft.Build.Framework (2)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.Build.Tasks.Core (52)
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));
Microsoft.Build.Tasks.UnitTests (9)
Microsoft.Build.UnitTests.Shared (6)
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (40)
Microsoft.CodeAnalysis.CodeStyle (19)
Microsoft.CodeAnalysis.CodeStyle.Fixes (12)
Microsoft.CodeAnalysis.CSharp (6)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (11)
Microsoft.CodeAnalysis.CSharp.Features (4)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (46)
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)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (8)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (2)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
Microsoft.CodeAnalysis.Features (23)
Microsoft.CodeAnalysis.Features.Test.Utilities (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Microsoft.CodeAnalysis.Scripting (3)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.UnitTests (9)
Microsoft.CodeAnalysis.Workspaces (33)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (9)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
Microsoft.CSharp (46)
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\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.Data.Analysis (32)
Microsoft.Data.Analysis.Tests (4)
Microsoft.DotNet.Helix.Client (1)
Microsoft.DotNet.SignTool (5)
Microsoft.Extensions.AI (4)
Microsoft.Extensions.AI.Abstractions (4)
Microsoft.Extensions.AI.Abstractions.Tests (1)
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)
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)
Microsoft.Extensions.AsyncState (1)
Microsoft.Extensions.Caching.Memory (5)
Microsoft.Extensions.Compliance.Testing (2)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.Xml (2)
Microsoft.Extensions.DependencyInjection (7)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Extensions.Diagnostics (1)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Diagnostics.Testing (4)
Microsoft.Extensions.FileProviders.Composite (1)
Microsoft.Extensions.FileProviders.Embedded (4)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Http (2)
Microsoft.Extensions.Http.Diagnostics (4)
Microsoft.Extensions.Http.Polly.Tests (1)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Abstractions (2)
Microsoft.Extensions.Logging.Generators (6)
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
Microsoft.Extensions.Options.SourceGeneration (2)
Microsoft.Extensions.Primitives (1)
Microsoft.Extensions.Telemetry (3)
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
Microsoft.Gen.Logging (1)
Microsoft.Gen.Logging.Unit.Tests (2)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.MetadataExtractor.Unit.Tests (2)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.Metrics.Unit.Tests (2)
Microsoft.Gen.MetricsReports.Unit.Tests (2)
Microsoft.Interop.SourceGeneration (3)
Microsoft.Maui (13)
Microsoft.Maui.Controls (206)
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]);
Microsoft.Maui.Controls.Build.Tasks (7)
Microsoft.Maui.Controls.Compatibility (17)
Microsoft.Maui.Controls.SourceGen (1)
Microsoft.Maui.Controls.Xaml (4)
Microsoft.Maui.Essentials (1)
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];
Microsoft.Maui.Graphics.Skia (2)
Microsoft.ML.AutoML (2)
Microsoft.ML.CodeGenerator (4)
Microsoft.ML.CodeGenerator.Tests (2)
Microsoft.ML.Core (32)
Microsoft.ML.Core.Tests (12)
Microsoft.ML.Data (69)
Microsoft.ML.DataView (5)
Microsoft.ML.Ensemble (6)
Microsoft.ML.FastTree (46)
Microsoft.ML.LightGbm (3)
Microsoft.ML.Mkl.Components (4)
Microsoft.ML.OnnxConverter (2)
Microsoft.ML.OnnxTransformerTest (8)
Microsoft.ML.Parquet (2)
Microsoft.ML.PerformanceTests (1)
Microsoft.ML.ResultProcessor (11)
Microsoft.ML.Samples (24)
Microsoft.ML.SamplesUtils (2)
Microsoft.ML.StandardTrainers (6)
Microsoft.ML.Sweeper (8)
Microsoft.ML.TestFramework (7)
Microsoft.ML.Tests (23)
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);
Microsoft.ML.TimeSeries (49)
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)
Microsoft.ML.TorchSharp (44)
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();
Microsoft.ML.Transforms (40)
Microsoft.Net.Http.Headers (1)
Microsoft.NET.StringTools (9)
Microsoft.NET.StringTools.net35 (1)
Microsoft.VisualBasic.Core (12)
Microsoft.VisualStudio.LanguageServices (23)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
MSBuild (1)
MSBuildTaskHost (2)
PresentationBuildTasks (13)
PresentationCore (533)
PresentationFramework (777)
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\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));
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\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];
PresentationFramework.Aero (2)
PresentationFramework.Aero2 (2)
PresentationFramework.AeroLite (2)
PresentationFramework.Classic (2)
PresentationFramework.Luna (2)
PresentationFramework.Royale (2)
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);
Replay (1)
Roslyn.VisualStudio.DiagnosticsWindow (1)
RunTests (1)
Stress.ApiService (2)
Swaggatherer (11)
System.CodeDom (2)
System.Collections (1)
System.Collections.Concurrent (1)
System.Collections.Immutable (6)
System.ComponentModel.Annotations (1)
System.ComponentModel.Composition (2)
System.ComponentModel.TypeConverter (31)
System.Configuration.ConfigurationManager (4)
System.Console (2)
System.Data.Common (44)
System.Data.Odbc (8)
System.Diagnostics.DiagnosticSource (5)
System.Diagnostics.Process (1)
System.Diagnostics.TraceSource (8)
System.Formats.Cbor (1)
System.Formats.Nrbf (5)
System.IO.Packaging (26)
System.IO.Pipelines (1)
System.Linq (3)
System.Linq.AsyncEnumerable (1)
System.Linq.Expressions (19)
System.Linq.Parallel (14)
System.Net.Http (13)
System.Net.HttpListener (3)
System.Net.Mail (1)
System.Net.NetworkInformation (5)
System.Net.Primitives (2)
System.Net.Quic (4)
System.Net.Requests (3)
System.Net.Security (4)
System.ObjectModel (3)
System.Private.CoreLib (31)
System.Private.DataContractSerialization (61)
System.Private.Windows.Core (2)
System.Private.Xml (91)
System.Reflection.DispatchProxy (3)
System.Reflection.Emit (20)
System.Reflection.Metadata (27)
System.Security.Claims (13)
System.Security.Cryptography (19)
System.Security.Cryptography.Pkcs (8)
System.ServiceModel.NetFramingBase (12)
System.ServiceModel.Primitives.Tests (1)
System.ServiceModel.Syndication (1)
System.Text.Json (17)
System.Text.Json.SourceGeneration (3)
System.Text.RegularExpressions (73)
System.Text.RegularExpressions.Generator (54)
System.Threading.Tasks.Dataflow (10)
System.Windows.Controls.Ribbon (32)
System.Windows.Forms (213)
System.Windows.Forms.Design (113)
System.Windows.Forms.Primitives (5)
System.Windows.Forms.Primitives.TestUtilities (1)
System.Windows.Forms.Tests (7)
System.Xaml (42)
UIAutomationClientSideProviders (6)
VBCSCompiler (3)
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)
WinFormsControlsTest (4)
xunit.assert (2)