48 references to ForEach
dotnet-svcutil-lib (3)
CommandProcessorOptions.cs (1)
673this.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));
Microsoft.AspNetCore.Authentication.OAuth (1)
ClaimActionCollection.cs (1)
28itemsToRemove.ForEach(map => Actions.Remove(map));
Microsoft.AspNetCore.Components.WebAssembly (2)
HotReload\HotReloadAgent.cs (2)
215handlerActions.ClearCache.ForEach(a => a(updatedTypes)); 216handlerActions.UpdateApplication.ForEach(a => a(updatedTypes));
Microsoft.Build (1)
BuildCheck\Acquisition\BuildCheckAcquisitionModule.cs (1)
55.ForEach(t => checkContext.DispatchAsComment(MessageImportance.Normal, "CustomCheckBaseTypeNotAssignable", t.Name, t.Assembly));
Microsoft.Build.BuildCheck.UnitTests (1)
DoubleWritesAnalyzer_Tests.cs (1)
77_registrationContext.Results.ForEach(result => result.CheckRule.Id.ShouldBe("BC0102"));
Microsoft.Build.Engine.OM.UnitTests (1)
Construction\ElementLocationPublic_Tests.cs (1)
133values.ForEach(value => attributeLocations.Add(value.Key + ":" + value.Value.LocationString));
Microsoft.Build.Utilities.Core (1)
ToolLocationHelper.cs (1)
2929diskRoots.ForEach(x => x = x.Trim());
Microsoft.CodeAnalysis.Rebuild.UnitTests (1)
DeterministicKeyBuilderTests.cs (1)
60.ForEach(x => x.Remove());
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
FindReferencesTests.cs (3)
333result.ForEach((reference) => Verify(reference, expectedMatchedLines)); 344result.ForEach((reference) => Verify(reference, expectedMatchedLines)); 355result.ForEach((reference) => Verify(reference, expectedMatchedLines));
Microsoft.DotNet.SignCheckLibrary (8)
Logging\Log.cs (8)
42_loggers.ForEach(p => p.WriteMessage(message)); 47_loggers.ForEach(p => p.WriteMessage(verbosity, message)); 52_loggers.ForEach(p => p.WriteMessage(verbosity, message, values)); 57_loggers.ForEach(p => p.WriteError(message)); 62_loggers.ForEach(p => p.WriteError(verbosity, message)); 67_loggers.ForEach(p => p.WriteError(verbosity, message, values)); 72_loggers.ForEach(p => p.WriteLine()); 77_loggers.ForEach(p => p.Close());
Microsoft.DotNet.SignTool (1)
src\BatchSignUtil.cs (1)
386trackList.ForEach(x => trackedSet.Add(x.FileContentKey));
Microsoft.DotNet.SignTool.Tests (1)
SignToolTests.cs (1)
2041fakeBuildEngine.LogErrorEvents.ForEach(a => a.Message.Should().EndWithEquivalent(" does not exist." ));
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.Maui.Controls (1)
Compatibility\Handlers\NavigationPage\iOS\NavigationRenderer.cs (1)
1109 _lines.ForEach(l => l.RemoveFromSuperview());
Microsoft.Maui.Controls.Compatibility (1)
iOS\Renderers\NavigationRenderer.cs (1)
981 _lines.ForEach(l => l.RemoveFromSuperview());
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 =>
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)
962toDispose?.ForEach(c => c.Dispose()); 1021Task.Factory.StartNew(static s => ((List<HttpConnectionBase>)s!).ForEach(c => c.Dispose()), toDispose,
System.Windows.Forms.UI.IntegrationTests (2)
Infra\ScreenRecordService.cs (2)
219s_frames.ForEach(frame => frame.image.Dispose()); 228s_frames.ForEach(frame => frame.image.Dispose());
WinFormsControlsTest (4)
CollectionEditors.cs (2)
34_stringList.ForEach(s => listView1.Items.Add(s)); 35_stringList.ForEach(s => comboBox1.Items.Add(s));
DragDrop.cs (1)
381=> _pictureBoxList.ForEach(pb => pb.Image = null);
FormOwnerTestForm.cs (1)
37childForms.ForEach(childForm => childForm.Close());
xunit.console (2)
ConsoleRunner.cs (2)
256TransformFactory.AvailableTransforms.ForEach( 313xmlTransformers.ForEach(transformer => transformer(assembliesElement));