84 references to RemoveAll
Aspire.Dashboard (1)
src\Shared\ConsoleLogs\LogEntries.cs (1)
36_pauseViewModels.RemoveAll(pause => pause.EndTime is not null);
Aspire.Hosting (1)
src\Shared\ConsoleLogs\LogEntries.cs (1)
36_pauseViewModels.RemoveAll(pause => pause.EndTime is not null);
dotnet-svcutil-lib.Tests (2)
TestInit.cs (2)
475fileLines1.RemoveAll(l => exceptLines.Any(ex => l.Contains(ex))); 476fileLines2.RemoveAll(l => exceptLines.Any(ex => l.Contains(ex)));
GenerateDocumentationAndConfigFiles (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
222list.RemoveAll(static o => o is null); 299list.RemoveAll(static o => o is null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
104operations.RemoveAll(o => o == null || !o.TextSpan.IntersectsWith(span));
Metrics (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
222list.RemoveAll(static o => o is null); 299list.RemoveAll(static o => o is null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
104operations.RemoveAll(o => o == null || !o.TextSpan.IntersectsWith(span));
Metrics.Legacy (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
222list.RemoveAll(static o => o is null); 299list.RemoveAll(static o => o is null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
104operations.RemoveAll(o => o == null || !o.TextSpan.IntersectsWith(span));
Microsoft.AspNetCore.Mvc.TagHelpers (1)
TagHelperOutputExtensions.cs (1)
244listOfClasses.RemoveAll(x => x.Equals(encodedClassValue));
Microsoft.AspNetCore.Server.Kestrel.Core (1)
KestrelConfigurationLoader.cs (1)
406endpointsToStop.RemoveAll(o => o.EndpointConfig == endpoint);
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
TestConnectionMultiplexer.cs (1)
290list.RemoveAll((item) => item.Item1 == subscriberId);
Microsoft.CodeAnalysis (1)
MetadataReader\MetadataHelpers.cs (1)
921int removed = nestedNamespaces.RemoveAll(pair => (object)pair.Key == null);
Microsoft.CodeAnalysis.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
222list.RemoveAll(static o => o is null); 299list.RemoveAll(static o => o is null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
104operations.RemoveAll(o => o == null || !o.TextSpan.IntersectsWith(span));
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
222list.RemoveAll(static o => o is null); 299list.RemoveAll(static o => o is null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
104operations.RemoveAll(o => o == null || !o.TextSpan.IntersectsWith(span));
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
222list.RemoveAll(static o => o is null); 299list.RemoveAll(static o => o is null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
104operations.RemoveAll(o => o == null || !o.TextSpan.IntersectsWith(span));
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
222list.RemoveAll(static o => o is null); 299list.RemoveAll(static o => o is null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
104operations.RemoveAll(o => o == null || !o.TextSpan.IntersectsWith(span));
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
222list.RemoveAll(static o => o is null); 299list.RemoveAll(static o => o is null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
104operations.RemoveAll(o => o == null || !o.TextSpan.IntersectsWith(span));
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
222list.RemoveAll(static o => o is null); 299list.RemoveAll(static o => o is null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
104operations.RemoveAll(o => o == null || !o.TextSpan.IntersectsWith(span));
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
222list.RemoveAll(static o => o is null); 299list.RemoveAll(static o => o is null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
104operations.RemoveAll(o => o == null || !o.TextSpan.IntersectsWith(span));
Microsoft.CodeAnalysis.UnitTests (2)
Collections\ImmutableSegmentedListBuilderTest.cs (1)
436int expected = bcl.RemoveAll(test);
Collections\ImmutableSegmentedListTest.cs (1)
843expected.RemoveAll(test);
Microsoft.CodeAnalysis.Workspaces (5)
Rename\ConflictEngine\MutableConflictResolution.cs (1)
55RelatedLocations.RemoveAll(r => conflictLocationDocumentIds.Contains(r.DocumentId));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
222list.RemoveAll(static o => o is null); 299list.RemoveAll(static o => o is null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
104operations.RemoveAll(o => o == null || !o.TextSpan.IntersectsWith(span));
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
1339newList.RemoveAll(p => _projectReferencesRemovedInBatch.Contains(p));
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseExtensions.cs (1)
266_ = contentsList.RemoveAll(u => u is null);
Microsoft.Extensions.DependencyInjection (1)
DependencyInjectionEventSource.cs (1)
156_providers.RemoveAll(static p => !p.TryGetTarget(out _));
Microsoft.Maui (1)
WeakList.cs (1)
71 _list.RemoveAll(w => !w.TryGetTarget(out _));
Microsoft.Maui.Controls (2)
Interactivity\EventTrigger.cs (1)
58 _associatedObjects.RemoveAll(wr =>
MessagingCenter.cs (1)
253 _subscriptions[key].RemoveAll(sub => sub.CanBeRemoved() || sub.Subscriber.Target == subscriber);
Microsoft.Maui.Essentials (2)
VersionTracking\VersionTracking.shared.cs (2)
260 versionTrail[versionsKey].RemoveAll(v => v == CurrentVersion); 268 versionTrail[buildsKey].RemoveAll(b => b == CurrentBuild);
Microsoft.ML.AutoML (2)
AutoMLExperiment\IStopTrainingManager.cs (1)
154_managers.RemoveAll(manager.Equals);
TransformInference\TransformInference.cs (1)
450concatColNames.RemoveAll(s => s == groupColumnName);
Microsoft.ML.Core (4)
Data\IFileHandle.cs (1)
190_streams.RemoveAll(s => !s.CanRead);
Data\ProgressReporter.cs (1)
451_infos.RemoveAll(x => x.IsFinished);
Environment\HostEnvironmentBase.cs (2)
141_children.RemoveAll(r => r.TryGetTarget(out IHost _) == false); 420_children.RemoveAll(r => r.TryGetTarget(out IHost _) == false);
Microsoft.ML.Data (4)
Transforms\NormalizeColumnDbl.cs (2)
1891_values.RemoveAll(TFloat.IsNaN); 1967_values[i].RemoveAll(TFloat.IsNaN);
Transforms\NormalizeColumnSng.cs (2)
2054_values.RemoveAll(TFloat.IsNaN); 2131_values[i].RemoveAll(TFloat.IsNaN);
Microsoft.ML.TimeSeries (1)
RootCauseAnalyzer.cs (1)
527valueMapAsList.RemoveAll(kv => kv.Key == best);
Roslyn.Diagnostics.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
222list.RemoveAll(static o => o is null); 299list.RemoveAll(static o => o is null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
104operations.RemoveAll(o => o == null || !o.TextSpan.IntersectsWith(span));
System.ComponentModel.Composition (1)
Microsoft\Internal\Collections\WeakReferenceCollection.cs (1)
61_items.RemoveAll(w => !w.IsAlive);
System.IO.Compression (2)
System\IO\Compression\ZipBlocks.cs (2)
341extraFields.RemoveAll(ef => 364extraFields.RemoveAll(field => field.Tag == TagConstant);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (2)
2032exceptionalChildren.RemoveAll(t => t.IsExceptionObservedByParent); // RemoveAll has better performance than doing it ourselves 4595list.RemoveAll(l => l == null);
System.Reflection.Context (1)
System\Reflection\Context\Projection\ProjectingType.cs (1)
133matchingMembers.RemoveAll(member => !string.Equals(member.Name, name, comparisonType));
System.Text.Json (1)
System\Text\Json\Nodes\JsonArray.IList.cs (1)
129return List.RemoveAll(node =>
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexCharClass.cs (1)
1996temp.RemoveAll(kvp => kvp.Value.Length != 1);
System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
532results.RemoveAll(s => s.Set == RegexCharClass.AnyClass);
System.Text.RegularExpressions.Generator (2)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (1)
1996temp.RemoveAll(kvp => kvp.Value.Length != 1);
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexPrefixAnalyzer.cs (1)
532results.RemoveAll(s => s.Set == RegexCharClass.AnyClass);
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
3539if (_tabs.RemoveAll(i => i.Scope >= classification) > 0)
Test.Utilities (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
222list.RemoveAll(static o => o is null); 299list.RemoveAll(static o => o is null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
104operations.RemoveAll(o => o == null || !o.TextSpan.IntersectsWith(span));
Text.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\BottomUpBaseIndentationFinder.cs (2)
222list.RemoveAll(static o => o is null); 299list.RemoveAll(static o => o is null);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
104operations.RemoveAll(o => o == null || !o.TextSpan.IntersectsWith(span));