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)
680
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)
57
.
ForEach
(t => checkContext.DispatchAsComment(MessageImportance.Normal, "CustomCheckBaseTypeNotAssignable", t.Name, t.Assembly));
Microsoft.Build.Utilities.Core (1)
ToolLocationHelper.cs (1)
2935
diskRoots.
ForEach
(x => x = x.Trim());
Microsoft.CodeAnalysis.NetAnalyzers (1)
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotPassDisposablesIntoUnawaitedTasks.cs (1)
141
usingBlocks.
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)
1980
output.
ForEach
(m => m.MessageId = Guid.NewGuid().ToString("N"));
2062
output.
ForEach
(m => m.MessageId = Guid.NewGuid().ToString("N"));
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 =>
Microsoft.TestPlatform.CrossPlatEngine (6)
EventHandlers\PathConverter.cs (5)
89
testCases.ToList().
ForEach
(tc => UpdateTestCase(tc, updateDirection));
111
attachmentSets.ToList().
ForEach
(i => UpdateAttachmentSet(i, updateDirection));
118
attachmentSets.ToList().
ForEach
(i => UpdateAttachmentSet(i, updateDirection));
125
attachmentSet.Attachments.ToList().
ForEach
(a => UpdateAttachment(a, updateDirection));
162
testRunCriteriaWithSources.AdapterSourceMap.ToList().
ForEach
(adapter =>
TestEngine.cs (1)
534
missingRuntimeProvider.SourceDetails.
ForEach
(detail =>
NuGet.Build.Tasks.Console (1)
MSBuildStaticGraphRestore.cs (1)
1174
targetFrameworkInfos.
ForEach
(tfi =>
NuGet.Commands (1)
RestoreCommand\Utility\PackageSpecFactory.cs (1)
175
targetFrameworkInfos.
ForEach
(tfi =>
NuGet.DependencyResolver.Core (1)
Remote\RemoteDependencyWalker.cs (1)
64
transitiveCentralPackageVersionNodes.
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)
156
oldDisposableExports.
ForEach
(disposable => disposable.Dispose());
System.Net.Http (2)
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (2)
1075
toDispose?.
ForEach
(c => c.Dispose());
1145
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\runtime\src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
521
results.
ForEach
(r => Debug.Assert(
TestShop.AppHost (1)
AppHost.cs (1)
96
.WithUrls(c => c.Urls.
ForEach
(u => u.DisplayText = $"Online store ({u.Endpoint?.EndpointName})"))