40 references to ForEach
Aspire.Hosting (1)
ResourceBuilderExtensions.cs (1)
2316.ForEach(w => builder.Resource.Annotations.Remove(w));
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
2347.ForEach(w => resource.Resource.Annotations.Remove(w));
dotnet-svcutil-lib (3)
CommandProcessorOptions.cs (1)
680this.Project.EndOfLifeTargetFrameworks?.ToList().ForEach(tfx => this.AddWarning(string.Format(CultureInfo.CurrentCulture, SR.WrnOutOfSupportTargetFrameworkFormat, tfx)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
535httpAuthAssertions.ForEach(delegate (XmlElement element) { bindingAssertions.Remove(element); });
Metadata\ServiceDescriptorFactory.cs (1)
101removeKeys.ForEach((k) => _cache.Remove(k));
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
385fileNamesWithValidationFailures.ForEach(fileName => Console.Error.WriteLine($" {fileName}"));
Microsoft.AspNetCore.Authentication.OAuth (1)
ClaimActionCollection.cs (1)
28itemsToRemove.ForEach(map => Actions.Remove(map));
Microsoft.Build (1)
BuildCheck\Acquisition\BuildCheckAcquisitionModule.cs (1)
57.ForEach(t => checkContext.DispatchAsComment(MessageImportance.Normal, "CustomCheckBaseTypeNotAssignable", t.Name, t.Assembly));
Microsoft.Build.Utilities.Core (1)
ToolLocationHelper.cs (1)
2935diskRoots.ForEach(x => x = x.Trim());
Microsoft.CodeAnalysis.NetAnalyzers (1)
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotPassDisposablesIntoUnawaitedTasks.cs (1)
141usingBlocks.ForEach(u => usingLocals.AddRange(u.Locals));
Microsoft.DotNet.Build.Tasks.Installers (1)
src\CreateWixBuildWixpack.cs (1)
247.ForEach(comment => comment.Remove());
Microsoft.Extensions.AI.Tests (2)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (2)
1980output.ForEach(m => m.MessageId = Guid.NewGuid().ToString("N")); 2062output.ForEach(m => m.MessageId = Guid.NewGuid().ToString("N"));
Microsoft.Gen.ContextualOptions (1)
ContextualOptionsGenerator.cs (1)
50type.Diagnostics.ForEach(context.ReportDiagnostic);
Microsoft.Maui (3)
Animations\AnimationManager.cs (2)
88 animations.ForEach(OnAnimationTick); 133 animations.ForEach(ForceFinish);
HotReload\HotReloadHelper.cs (1)
149 onHotReloadMethods.ForEach(x => executeStaticMethod(x));
Microsoft.ML.CodeGenerator (2)
CodeGenerator\CSharp\CodeGenerator.cs (1)
229usings.ForEach(t =>
CodeGenerator\CSharp\PipelineExtension.cs (1)
47usings.ForEach(t =>
Microsoft.ML.Core.Tests (1)
UnitTests\TestHosts.cs (1)
84children[currentHost].ForEach(x => queue.Enqueue(x));
Microsoft.ML.TestFramework (1)
BaseTestPredictorsMaml.cs (1)
195files.ForEach(file => CheckEqualityNormalized(dir, file, digitsOfPrecision: digitsOfPrecision, parseOption: parseOption));
Microsoft.ML.TorchSharp (3)
AutoFormerV2\ObjectDetectionMetrics.cs (1)
65objectLabelListIn?.ForEach(objectLabelList =>
AutoFormerV2\ObjectDetectionTrainer.cs (1)
252label.DenseValues().ToList().ForEach(x => uniqueLabels.Add(x));
NasBert\NerTrainer.cs (1)
139targets.ForEach(x =>
Microsoft.TestPlatform.CrossPlatEngine (6)
EventHandlers\PathConverter.cs (5)
89testCases.ToList().ForEach(tc => UpdateTestCase(tc, updateDirection)); 111attachmentSets.ToList().ForEach(i => UpdateAttachmentSet(i, updateDirection)); 118attachmentSets.ToList().ForEach(i => UpdateAttachmentSet(i, updateDirection)); 125attachmentSet.Attachments.ToList().ForEach(a => UpdateAttachment(a, updateDirection)); 162testRunCriteriaWithSources.AdapterSourceMap.ToList().ForEach(adapter =>
TestEngine.cs (1)
534missingRuntimeProvider.SourceDetails.ForEach(detail =>
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
1174targetFrameworkInfos.ForEach(tfi =>
NuGet.Commands (1)
RestoreCommand\Utility\PackageSpecFactory.cs (1)
175targetFrameworkInfos.ForEach(tfi =>
NuGet.DependencyResolver.Core (1)
Remote\RemoteDependencyWalker.cs (1)
64transitiveCentralPackageVersionNodes.ForEach(node => transitiveCentralPackageVersions.AddParentsToNode(node));
NuGet.PackageManagement (1)
Utility\XElementExtensions.cs (1)
259.ForEach(e => RemoveAttributes(e, condition));
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (1)
156oldDisposableExports.ForEach(disposable => disposable.Dispose());
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (2)
1075toDispose?.ForEach(c => c.Dispose()); 1145Task.Factory.StartNew(static s => ((List<HttpConnectionBase>)s!).ForEach(c => c.Dispose()), toDispose,
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
521results.ForEach(r => Debug.Assert(
System.Text.RegularExpressions.Generator (1)
src\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
521results.ForEach(r => Debug.Assert(
TestShop.AppHost (1)
AppHost.cs (1)
96.WithUrls(c => c.Urls.ForEach(u => u.DisplayText = $"Online store ({u.Endpoint?.EndpointName})"))