48 references to ForEach
dotnet-svcutil-lib (3)
CommandProcessorOptions.cs (1)
674
this.Project.EndOfLifeTargetFrameworks?.ToList().
ForEach
(tfx => this.AddWarning(string.Format(CultureInfo.CurrentCulture, SR.WrnOutOfSupportTargetFrameworkFormat, tfx)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
535
httpAuthAssertions.
ForEach
(delegate (XmlElement element) { bindingAssertions.Remove(element); });
Metadata\ServiceDescriptorFactory.cs (1)
101
removeKeys.
ForEach
((k) => _cache.Remove(k));
GenerateDocumentationAndConfigFiles (1)
Program.cs (1)
385
fileNamesWithValidationFailures.
ForEach
(fileName => Console.Error.WriteLine($" {fileName}"));
Microsoft.AspNetCore.Authentication.OAuth (1)
ClaimActionCollection.cs (1)
28
itemsToRemove.
ForEach
(map => Actions.Remove(map));
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)
74
_registrationContext.Results.
ForEach
(result => result.CheckRule.Id.ShouldBe("BC0102"));
Microsoft.Build.Engine.OM.UnitTests (1)
Construction\ElementLocationPublic_Tests.cs (1)
133
values.
ForEach
(value => attributeLocations.Add(value.Key + ":" + value.Value.LocationString));
Microsoft.Build.Utilities.Core (1)
ToolLocationHelper.cs (1)
2934
diskRoots.
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)
333
result.
ForEach
((reference) => Verify(reference, expectedMatchedLines));
344
result.
ForEach
((reference) => Verify(reference, expectedMatchedLines));
355
result.
ForEach
((reference) => Verify(reference, expectedMatchedLines));
Microsoft.DotNet.SignCheckLibrary (8)
Logging\Log.cs (8)
43
_loggers.
ForEach
(p => p.WriteMessage(message));
48
_loggers.
ForEach
(p => p.WriteMessage(verbosity, message));
53
_loggers.
ForEach
(p => p.WriteMessage(verbosity, message, values));
58
_loggers.
ForEach
(p => p.WriteError(message));
63
_loggers.
ForEach
(p => p.WriteError(verbosity, message));
68
_loggers.
ForEach
(p => p.WriteError(verbosity, message, values));
73
_loggers.
ForEach
(p => p.WriteLine());
88
_loggers.
ForEach
(p => p.Close());
Microsoft.DotNet.SignTool (1)
src\BatchSignUtil.cs (1)
386
trackList.
ForEach
(x => trackedSet.Add(x.FileContentKey));
Microsoft.DotNet.SignTool.Tests (1)
SignToolTests.cs (1)
2056
fakeBuildEngine.LogErrorEvents.
ForEach
(a => a.Message.Should().EndWithEquivalent(" does not exist." ));
Microsoft.Gen.ContextualOptions (1)
ContextualOptionsGenerator.cs (1)
50
type.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)
229
usings.
ForEach
(t =>
CodeGenerator\CSharp\PipelineExtension.cs (1)
47
usings.
ForEach
(t =>
Microsoft.ML.Core.Tests (1)
UnitTests\TestHosts.cs (1)
84
children[currentHost].
ForEach
(x => queue.Enqueue(x));
Microsoft.ML.TestFramework (1)
BaseTestPredictorsMaml.cs (1)
195
files.
ForEach
(file => CheckEqualityNormalized(dir, file, digitsOfPrecision: digitsOfPrecision, parseOption: parseOption));
Microsoft.ML.TorchSharp (3)
AutoFormerV2\ObjectDetectionMetrics.cs (1)
65
objectLabelListIn?.
ForEach
(objectLabelList =>
AutoFormerV2\ObjectDetectionTrainer.cs (1)
252
label.DenseValues().ToList().
ForEach
(x => uniqueLabels.Add(x));
NasBert\NerTrainer.cs (1)
139
targets.
ForEach
(x =>
System.ComponentModel.Composition (1)
System\ComponentModel\Composition\Hosting\ImportEngine.PartManager.cs (1)
156
oldDisposableExports.
ForEach
(disposable => disposable.Dispose());
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (2)
947
toDispose?.
ForEach
(c => c.Dispose());
1006
Task.Factory.StartNew(static s => ((List<HttpConnectionBase>)s!).
ForEach
(c => c.Dispose()), toDispose,
System.Text.RegularExpressions (1)
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
521
results.
ForEach
(r => Debug.Assert(
System.Text.RegularExpressions.Generator (1)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
521
results.
ForEach
(r => Debug.Assert(
System.Windows.Forms.UI.IntegrationTests (2)
Infra\ScreenRecordService.cs (2)
219
s_frames.
ForEach
(frame => frame.image.Dispose());
228
s_frames.
ForEach
(frame => frame.image.Dispose());
TestShop.AppHost (1)
Program.cs (1)
71
.WithUrls(c => c.Urls.
ForEach
(u => u.DisplayText = $"Online store ({u.Endpoint?.EndpointName})"))
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)
37
childForms.
ForEach
(childForm => childForm.Close());
xunit.console (2)
ConsoleRunner.cs (2)
256
TransformFactory.AvailableTransforms.
ForEach
(
313
xmlTransformers.
ForEach
(transformer => transformer(assembliesElement));