1152 references to Predicate
Aspire.Hosting.MySql.Tests (1)
MySqlFunctionalTests.cs (1)
26private static readonly Predicate<string> s_mySqlReadyText = log => log.Contains("ready for connections") && log.Contains("port: 3306");
Aspire.Hosting.Testing.Tests (4)
tests\Aspire.Hosting.TestUtilities\Utils\LoggerNotificationExtensions.cs (4)
62public static Task WaitForTextAsync(this DistributedApplication app, Predicate<string> predicate, CancellationToken cancellationToken = default) 73public static Task WaitForTextAsync(this DistributedApplication app, Predicate<string> predicate, string? resourceName = null, CancellationToken cancellationToken = default) 122private static async Task WatchNotifications(DistributedApplication app, string? resourceName, Predicate<string> predicate, TaskCompletionSource tcs, CancellationTokenSource cancellationTokenSource) 160private static async Task WatchResourceLogs(TaskCompletionSource tcs, string resourceId, Predicate<string> predicate, ResourceLoggerService resourceLoggerService, CancellationTokenSource cancellationTokenSource)
Aspire.Hosting.TestUtilities (4)
Utils\LoggerNotificationExtensions.cs (4)
62public static Task WaitForTextAsync(this DistributedApplication app, Predicate<string> predicate, CancellationToken cancellationToken = default) 73public static Task WaitForTextAsync(this DistributedApplication app, Predicate<string> predicate, string? resourceName = null, CancellationToken cancellationToken = default) 122private static async Task WatchNotifications(DistributedApplication app, string? resourceName, Predicate<string> predicate, TaskCompletionSource tcs, CancellationTokenSource cancellationTokenSource) 160private static async Task WatchResourceLogs(TaskCompletionSource tcs, string resourceId, Predicate<string> predicate, ResourceLoggerService resourceLoggerService, CancellationTokenSource cancellationTokenSource)
Aspire.Playground.Tests (4)
tests\Aspire.Hosting.TestUtilities\Utils\LoggerNotificationExtensions.cs (4)
62public static Task WaitForTextAsync(this DistributedApplication app, Predicate<string> predicate, CancellationToken cancellationToken = default) 73public static Task WaitForTextAsync(this DistributedApplication app, Predicate<string> predicate, string? resourceName = null, CancellationToken cancellationToken = default) 122private static async Task WatchNotifications(DistributedApplication app, string? resourceName, Predicate<string> predicate, TaskCompletionSource tcs, CancellationTokenSource cancellationTokenSource) 160private static async Task WatchResourceLogs(TaskCompletionSource tcs, string resourceId, Predicate<string> predicate, ResourceLoggerService resourceLoggerService, CancellationTokenSource cancellationTokenSource)
GenerateDocumentationAndConfigFiles (79)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
838public static readonly Predicate<T> True = t => true;
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (25)
222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 223public bool Exists(Predicate<T> match) 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 227public T? Find(Predicate<T> match) 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 231public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 235public int FindIndex(Predicate<T> match) 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 239public int FindIndex(int startIndex, Predicate<T> match) 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 243public int FindIndex(int startIndex, int count, Predicate<T> match) 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 247public T? FindLast(Predicate<T> match) 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 251public int FindLastIndex(Predicate<T> match) 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 255public int FindLastIndex(int startIndex, Predicate<T> match) 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 270public int FindLastIndex(int startIndex, int count, Predicate<T> match) 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 385public ImmutableSegmentedList<T> RemoveAll(Predicate<T> match) 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/> 600public bool TrueForAll(Predicate<T> match) 621IImmutableList<T> IImmutableList<T>.RemoveAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (24)
94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 95public bool Exists(Predicate<T> match) 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 99public T? Find(Predicate<T> match) 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 103public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 107public int FindIndex(Predicate<T> match) 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 111public int FindIndex(int startIndex, Predicate<T> match) 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 115public int FindIndex(int startIndex, int count, Predicate<T> match) 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 119public T? FindLast(Predicate<T> match) 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 123public int FindLastIndex(Predicate<T> match) 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 127public int FindLastIndex(int startIndex, Predicate<T> match) 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 131public int FindLastIndex(int startIndex, int count, Predicate<T> match) 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 188public int RemoveAll(Predicate<T> match) 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/> 223public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (12)
137public readonly bool Exists(Predicate<T> match) 140public readonly T? Find(Predicate<T> match) 143public readonly ImmutableSegmentedList<T> FindAll(Predicate<T> match) 146public readonly int FindIndex(Predicate<T> match) 149public readonly int FindIndex(int startIndex, Predicate<T> match) 152public readonly int FindIndex(int startIndex, int count, Predicate<T> match) 155public readonly T? FindLast(Predicate<T> match) 158public readonly int FindLastIndex(Predicate<T> match) 161public readonly int FindLastIndex(int startIndex, Predicate<T> match) 173public readonly int FindLastIndex(int startIndex, int count, Predicate<T> match) 273public int RemoveAll(Predicate<T> match) 332public readonly bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
834public int RemoveWhere(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (12)
573public bool Exists(Predicate<T> match) 576public T? Find(Predicate<T> match) 593public SegmentedList<T> FindAll(Predicate<T> match) 611public int FindIndex(Predicate<T> match) 614public int FindIndex(int startIndex, Predicate<T> match) 617public int FindIndex(int startIndex, int count, Predicate<T> match) 643public T? FindLast(Predicate<T> match) 660public int FindLastIndex(Predicate<T> match) 663public int FindLastIndex(int startIndex, Predicate<T> match) 666public int FindLastIndex(int startIndex, int count, Predicate<T> match) 1086public int RemoveAll(Predicate<T> match) 1302public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
219public int FindIndex(Predicate<T> match) 222public int FindIndex(int startIndex, Predicate<T> match) 225public int FindIndex(int startIndex, int count, Predicate<T> match) 279public void RemoveAll(Predicate<T> match)
ilc (1)
Program.cs (1)
753string set1name, string set2name, Predicate<T> filter)
illink (1)
Microsoft.AspNetCore.Razor.Utilities.Shared (4)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
219public int FindIndex(Predicate<T> match) 222public int FindIndex(int startIndex, Predicate<T> match) 225public int FindIndex(int startIndex, int count, Predicate<T> match) 279public void RemoveAll(Predicate<T> match)
Microsoft.Build (82)
Construction\ProjectElementContainer.cs (3)
761private static bool TrySearchLeftSiblings(ProjectElement initialElement, Predicate<ProjectElement> siblingIsAcceptable, out ProjectElement referenceSibling) 766private static bool TrySearchRightSiblings(ProjectElement initialElement, Predicate<ProjectElement> siblingIsAcceptable, out ProjectElement referenceSibling) 773Predicate<ProjectElement> siblingIsAcceptable,
src\5057ed6cf5d6323b\ImmutableSegmentedList`1.cs (25)
222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 223public bool Exists(Predicate<T> match) 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 227public T? Find(Predicate<T> match) 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 231public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 235public int FindIndex(Predicate<T> match) 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 239public int FindIndex(int startIndex, Predicate<T> match) 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 243public int FindIndex(int startIndex, int count, Predicate<T> match) 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 247public T? FindLast(Predicate<T> match) 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 251public int FindLastIndex(Predicate<T> match) 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 255public int FindLastIndex(int startIndex, Predicate<T> match) 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 270public int FindLastIndex(int startIndex, int count, Predicate<T> match) 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 385public ImmutableSegmentedList<T> RemoveAll(Predicate<T> match) 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/> 600public bool TrueForAll(Predicate<T> match) 621IImmutableList<T> IImmutableList<T>.RemoveAll(Predicate<T> match)
src\5057ed6cf5d6323b\ImmutableSegmentedList`1+Builder.cs (24)
94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 95public bool Exists(Predicate<T> match) 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 99public T? Find(Predicate<T> match) 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 103public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 107public int FindIndex(Predicate<T> match) 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 111public int FindIndex(int startIndex, Predicate<T> match) 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 115public int FindIndex(int startIndex, int count, Predicate<T> match) 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 119public T? FindLast(Predicate<T> match) 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 123public int FindLastIndex(Predicate<T> match) 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 127public int FindLastIndex(int startIndex, Predicate<T> match) 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 131public int FindLastIndex(int startIndex, int count, Predicate<T> match) 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 188public int RemoveAll(Predicate<T> match) 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/> 223public bool TrueForAll(Predicate<T> match)
src\5057ed6cf5d6323b\ImmutableSegmentedList`1+ValueBuilder.cs (12)
137public readonly bool Exists(Predicate<T> match) 140public readonly T? Find(Predicate<T> match) 143public readonly ImmutableSegmentedList<T> FindAll(Predicate<T> match) 146public readonly int FindIndex(Predicate<T> match) 149public readonly int FindIndex(int startIndex, Predicate<T> match) 152public readonly int FindIndex(int startIndex, int count, Predicate<T> match) 155public readonly T? FindLast(Predicate<T> match) 158public readonly int FindLastIndex(Predicate<T> match) 161public readonly int FindLastIndex(int startIndex, Predicate<T> match) 173public readonly int FindLastIndex(int startIndex, int count, Predicate<T> match) 273public int RemoveAll(Predicate<T> match) 332public readonly bool TrueForAll(Predicate<T> match)
src\9f0d3f3da306d8cf\IEnumerableExtensions.cs (1)
863public static readonly Predicate<T> True = t => true;
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedHashSet`1.cs (1)
834public int RemoveWhere(Predicate<T> match)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedList`1.cs (12)
573public bool Exists(Predicate<T> match) 576public T? Find(Predicate<T> match) 593public SegmentedList<T> FindAll(Predicate<T> match) 611public int FindIndex(Predicate<T> match) 614public int FindIndex(int startIndex, Predicate<T> match) 617public int FindIndex(int startIndex, int count, Predicate<T> match) 643public T? FindLast(Predicate<T> match) 660public int FindLastIndex(Predicate<T> match) 663public int FindLastIndex(int startIndex, Predicate<T> match) 666public int FindLastIndex(int startIndex, int count, Predicate<T> match) 1086public int RemoveAll(Predicate<T> match) 1302public bool TrueForAll(Predicate<T> match)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.pooledobjects\5.0.0-1.25277.114\contentFiles\cs\netstandard2.0\ArrayBuilder.cs (4)
214public int FindIndex(Predicate<T> match) 217public int FindIndex(int startIndex, Predicate<T> match) 220public int FindIndex(int startIndex, int count, Predicate<T> match) 274public void RemoveAll(Predicate<T> match)
Microsoft.Build.NuGetSdkResolver (3)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
129public static int SingleIndex<T>(this IList<T> lst, Predicate<T> isMatch) 155public static int FirstIndex<T>(this IList<T> lst, Predicate<T> isMatch) 169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
Microsoft.CodeAnalysis (81)
Compilation\Compilation.cs (2)
2509Predicate<ISymbolInternal>? filterOpt, 2634Predicate<ISymbolInternal>? filterOpt,
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
838public static readonly Predicate<T> True = t => true;
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (25)
222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 223public bool Exists(Predicate<T> match) 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 227public T? Find(Predicate<T> match) 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 231public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 235public int FindIndex(Predicate<T> match) 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 239public int FindIndex(int startIndex, Predicate<T> match) 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 243public int FindIndex(int startIndex, int count, Predicate<T> match) 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 247public T? FindLast(Predicate<T> match) 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 251public int FindLastIndex(Predicate<T> match) 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 255public int FindLastIndex(int startIndex, Predicate<T> match) 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 270public int FindLastIndex(int startIndex, int count, Predicate<T> match) 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 385public ImmutableSegmentedList<T> RemoveAll(Predicate<T> match) 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/> 600public bool TrueForAll(Predicate<T> match) 621IImmutableList<T> IImmutableList<T>.RemoveAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (24)
94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 95public bool Exists(Predicate<T> match) 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 99public T? Find(Predicate<T> match) 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 103public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 107public int FindIndex(Predicate<T> match) 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 111public int FindIndex(int startIndex, Predicate<T> match) 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 115public int FindIndex(int startIndex, int count, Predicate<T> match) 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 119public T? FindLast(Predicate<T> match) 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 123public int FindLastIndex(Predicate<T> match) 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 127public int FindLastIndex(int startIndex, Predicate<T> match) 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 131public int FindLastIndex(int startIndex, int count, Predicate<T> match) 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 188public int RemoveAll(Predicate<T> match) 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/> 223public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (12)
137public readonly bool Exists(Predicate<T> match) 140public readonly T? Find(Predicate<T> match) 143public readonly ImmutableSegmentedList<T> FindAll(Predicate<T> match) 146public readonly int FindIndex(Predicate<T> match) 149public readonly int FindIndex(int startIndex, Predicate<T> match) 152public readonly int FindIndex(int startIndex, int count, Predicate<T> match) 155public readonly T? FindLast(Predicate<T> match) 158public readonly int FindLastIndex(Predicate<T> match) 161public readonly int FindLastIndex(int startIndex, Predicate<T> match) 173public readonly int FindLastIndex(int startIndex, int count, Predicate<T> match) 273public int RemoveAll(Predicate<T> match) 332public readonly bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
834public int RemoveWhere(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (12)
573public bool Exists(Predicate<T> match) 576public T? Find(Predicate<T> match) 593public SegmentedList<T> FindAll(Predicate<T> match) 611public int FindIndex(Predicate<T> match) 614public int FindIndex(int startIndex, Predicate<T> match) 617public int FindIndex(int startIndex, int count, Predicate<T> match) 643public T? FindLast(Predicate<T> match) 660public int FindLastIndex(Predicate<T> match) 663public int FindLastIndex(int startIndex, Predicate<T> match) 666public int FindLastIndex(int startIndex, int count, Predicate<T> match) 1086public int RemoveAll(Predicate<T> match) 1302public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
219public int FindIndex(Predicate<T> match) 222public int FindIndex(int startIndex, Predicate<T> match) 225public int FindIndex(int startIndex, int count, Predicate<T> match) 279public void RemoveAll(Predicate<T> match)
Microsoft.CodeAnalysis.Analyzers (79)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
838public static readonly Predicate<T> True = t => true;
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (25)
222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 223public bool Exists(Predicate<T> match) 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 227public T? Find(Predicate<T> match) 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 231public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 235public int FindIndex(Predicate<T> match) 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 239public int FindIndex(int startIndex, Predicate<T> match) 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 243public int FindIndex(int startIndex, int count, Predicate<T> match) 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 247public T? FindLast(Predicate<T> match) 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 251public int FindLastIndex(Predicate<T> match) 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 255public int FindLastIndex(int startIndex, Predicate<T> match) 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 270public int FindLastIndex(int startIndex, int count, Predicate<T> match) 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 385public ImmutableSegmentedList<T> RemoveAll(Predicate<T> match) 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/> 600public bool TrueForAll(Predicate<T> match) 621IImmutableList<T> IImmutableList<T>.RemoveAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (24)
94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 95public bool Exists(Predicate<T> match) 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 99public T? Find(Predicate<T> match) 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 103public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 107public int FindIndex(Predicate<T> match) 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 111public int FindIndex(int startIndex, Predicate<T> match) 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 115public int FindIndex(int startIndex, int count, Predicate<T> match) 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 119public T? FindLast(Predicate<T> match) 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 123public int FindLastIndex(Predicate<T> match) 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 127public int FindLastIndex(int startIndex, Predicate<T> match) 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 131public int FindLastIndex(int startIndex, int count, Predicate<T> match) 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 188public int RemoveAll(Predicate<T> match) 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/> 223public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (12)
137public readonly bool Exists(Predicate<T> match) 140public readonly T? Find(Predicate<T> match) 143public readonly ImmutableSegmentedList<T> FindAll(Predicate<T> match) 146public readonly int FindIndex(Predicate<T> match) 149public readonly int FindIndex(int startIndex, Predicate<T> match) 152public readonly int FindIndex(int startIndex, int count, Predicate<T> match) 155public readonly T? FindLast(Predicate<T> match) 158public readonly int FindLastIndex(Predicate<T> match) 161public readonly int FindLastIndex(int startIndex, Predicate<T> match) 173public readonly int FindLastIndex(int startIndex, int count, Predicate<T> match) 273public int RemoveAll(Predicate<T> match) 332public readonly bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
834public int RemoveWhere(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (12)
573public bool Exists(Predicate<T> match) 576public T? Find(Predicate<T> match) 593public SegmentedList<T> FindAll(Predicate<T> match) 611public int FindIndex(Predicate<T> match) 614public int FindIndex(int startIndex, Predicate<T> match) 617public int FindIndex(int startIndex, int count, Predicate<T> match) 643public T? FindLast(Predicate<T> match) 660public int FindLastIndex(Predicate<T> match) 663public int FindLastIndex(int startIndex, Predicate<T> match) 666public int FindLastIndex(int startIndex, int count, Predicate<T> match) 1086public int RemoveAll(Predicate<T> match) 1302public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
219public int FindIndex(Predicate<T> match) 222public int FindIndex(int startIndex, Predicate<T> match) 225public int FindIndex(int startIndex, int count, Predicate<T> match) 279public void RemoveAll(Predicate<T> match)
Microsoft.CodeAnalysis.AnalyzerUtilities (79)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
838public static readonly Predicate<T> True = t => true;
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (25)
222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 223public bool Exists(Predicate<T> match) 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 227public T? Find(Predicate<T> match) 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 231public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 235public int FindIndex(Predicate<T> match) 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 239public int FindIndex(int startIndex, Predicate<T> match) 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 243public int FindIndex(int startIndex, int count, Predicate<T> match) 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 247public T? FindLast(Predicate<T> match) 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 251public int FindLastIndex(Predicate<T> match) 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 255public int FindLastIndex(int startIndex, Predicate<T> match) 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 270public int FindLastIndex(int startIndex, int count, Predicate<T> match) 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 385public ImmutableSegmentedList<T> RemoveAll(Predicate<T> match) 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/> 600public bool TrueForAll(Predicate<T> match) 621IImmutableList<T> IImmutableList<T>.RemoveAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (24)
94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 95public bool Exists(Predicate<T> match) 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 99public T? Find(Predicate<T> match) 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 103public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 107public int FindIndex(Predicate<T> match) 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 111public int FindIndex(int startIndex, Predicate<T> match) 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 115public int FindIndex(int startIndex, int count, Predicate<T> match) 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 119public T? FindLast(Predicate<T> match) 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 123public int FindLastIndex(Predicate<T> match) 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 127public int FindLastIndex(int startIndex, Predicate<T> match) 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 131public int FindLastIndex(int startIndex, int count, Predicate<T> match) 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 188public int RemoveAll(Predicate<T> match) 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/> 223public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (12)
137public readonly bool Exists(Predicate<T> match) 140public readonly T? Find(Predicate<T> match) 143public readonly ImmutableSegmentedList<T> FindAll(Predicate<T> match) 146public readonly int FindIndex(Predicate<T> match) 149public readonly int FindIndex(int startIndex, Predicate<T> match) 152public readonly int FindIndex(int startIndex, int count, Predicate<T> match) 155public readonly T? FindLast(Predicate<T> match) 158public readonly int FindLastIndex(Predicate<T> match) 161public readonly int FindLastIndex(int startIndex, Predicate<T> match) 173public readonly int FindLastIndex(int startIndex, int count, Predicate<T> match) 273public int RemoveAll(Predicate<T> match) 332public readonly bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
834public int RemoveWhere(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (12)
573public bool Exists(Predicate<T> match) 576public T? Find(Predicate<T> match) 593public SegmentedList<T> FindAll(Predicate<T> match) 611public int FindIndex(Predicate<T> match) 614public int FindIndex(int startIndex, Predicate<T> match) 617public int FindIndex(int startIndex, int count, Predicate<T> match) 643public T? FindLast(Predicate<T> match) 660public int FindLastIndex(Predicate<T> match) 663public int FindLastIndex(int startIndex, Predicate<T> match) 666public int FindLastIndex(int startIndex, int count, Predicate<T> match) 1086public int RemoveAll(Predicate<T> match) 1302public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
219public int FindIndex(Predicate<T> match) 222public int FindIndex(int startIndex, Predicate<T> match) 225public int FindIndex(int startIndex, int count, Predicate<T> match) 279public void RemoveAll(Predicate<T> match)
Microsoft.CodeAnalysis.CodeStyle (79)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
838public static readonly Predicate<T> True = t => true;
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (25)
222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 223public bool Exists(Predicate<T> match) 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 227public T? Find(Predicate<T> match) 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 231public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 235public int FindIndex(Predicate<T> match) 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 239public int FindIndex(int startIndex, Predicate<T> match) 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 243public int FindIndex(int startIndex, int count, Predicate<T> match) 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 247public T? FindLast(Predicate<T> match) 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 251public int FindLastIndex(Predicate<T> match) 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 255public int FindLastIndex(int startIndex, Predicate<T> match) 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 270public int FindLastIndex(int startIndex, int count, Predicate<T> match) 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 385public ImmutableSegmentedList<T> RemoveAll(Predicate<T> match) 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/> 600public bool TrueForAll(Predicate<T> match) 621IImmutableList<T> IImmutableList<T>.RemoveAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (24)
94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 95public bool Exists(Predicate<T> match) 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 99public T? Find(Predicate<T> match) 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 103public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 107public int FindIndex(Predicate<T> match) 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 111public int FindIndex(int startIndex, Predicate<T> match) 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 115public int FindIndex(int startIndex, int count, Predicate<T> match) 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 119public T? FindLast(Predicate<T> match) 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 123public int FindLastIndex(Predicate<T> match) 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 127public int FindLastIndex(int startIndex, Predicate<T> match) 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 131public int FindLastIndex(int startIndex, int count, Predicate<T> match) 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 188public int RemoveAll(Predicate<T> match) 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/> 223public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (12)
137public readonly bool Exists(Predicate<T> match) 140public readonly T? Find(Predicate<T> match) 143public readonly ImmutableSegmentedList<T> FindAll(Predicate<T> match) 146public readonly int FindIndex(Predicate<T> match) 149public readonly int FindIndex(int startIndex, Predicate<T> match) 152public readonly int FindIndex(int startIndex, int count, Predicate<T> match) 155public readonly T? FindLast(Predicate<T> match) 158public readonly int FindLastIndex(Predicate<T> match) 161public readonly int FindLastIndex(int startIndex, Predicate<T> match) 173public readonly int FindLastIndex(int startIndex, int count, Predicate<T> match) 273public int RemoveAll(Predicate<T> match) 332public readonly bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
834public int RemoveWhere(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (12)
573public bool Exists(Predicate<T> match) 576public T? Find(Predicate<T> match) 593public SegmentedList<T> FindAll(Predicate<T> match) 611public int FindIndex(Predicate<T> match) 614public int FindIndex(int startIndex, Predicate<T> match) 617public int FindIndex(int startIndex, int count, Predicate<T> match) 643public T? FindLast(Predicate<T> match) 660public int FindLastIndex(Predicate<T> match) 663public int FindLastIndex(int startIndex, Predicate<T> match) 666public int FindLastIndex(int startIndex, int count, Predicate<T> match) 1086public int RemoveAll(Predicate<T> match) 1302public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
219public int FindIndex(Predicate<T> match) 222public int FindIndex(int startIndex, Predicate<T> match) 225public int FindIndex(int startIndex, int count, Predicate<T> match) 279public void RemoveAll(Predicate<T> match)
Microsoft.CodeAnalysis.CSharp (37)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
2886Predicate<TypeWithAnnotations> lowerPredicate; 3374Predicate<TypeWithAnnotations>? predicate, 3418Predicate<TypeWithAnnotations>? predicate,
Compilation\CSharpCompilation.cs (7)
3019internal ImmutableArray<Diagnostic> GetDiagnostics(CompilationStage stage, bool includeEarlierStages, Predicate<ISymbolInternal>? symbolFilter, CancellationToken cancellationToken) 3029internal void GetDiagnostics(CompilationStage stage, bool includeEarlierStages, DiagnosticBag diagnostics, Predicate<ISymbolInternal>? symbolFilter, CancellationToken cancellationToken) 3042private void GetDiagnosticsWithoutSeverityFiltering(CompilationStage stage, bool includeEarlierStages, BindingDiagnosticBag builder, Predicate<Symbol>? symbolFilter, CancellationToken cancellationToken) 3353filterOpt: filterTree is object ? (Predicate<Symbol>?)(s => IsDefinedOrImplementedInSourceTree(s, filterTree, filterSpan)) : (Predicate<Symbol>?)null, 3395private ReadOnlyBindingDiagnostic<AssemblySymbol> GetSourceDeclarationDiagnostics(SyntaxTree? syntaxTree = null, TextSpan? filterSpanWithinTree = null, Func<IEnumerable<Diagnostic>, SyntaxTree, TextSpan?, IEnumerable<Diagnostic>>? locationFilterOpt = null, Predicate<Symbol>? symbolFilter = null, CancellationToken cancellationToken = default) 3644Predicate<ISymbolInternal>? filterOpt,
Compiler\MethodCompiler.cs (4)
38private readonly Predicate<Symbol>? _filterOpt; // If not null, limit analysis to specific symbols 88BindingDiagnosticBag diagnostics, Predicate<Symbol>? filterOpt, SynthesizedEntryPointSymbol.AsyncForwardEntryPoint? entryPointOpt, CancellationToken cancellationToken) 116Predicate<Symbol>? filterOpt, 2534private static bool PassesFilter(Predicate<Symbol> filterOpt, Symbol symbol)
Declarations\DeclarationTable.cs (3)
171private static readonly Predicate<Declaration> s_isNamespacePredicate = d => d.Kind == DeclarationKind.Namespace; 172private static readonly Predicate<Declaration> s_isTypePredicate = d => d.Kind != DeclarationKind.Namespace; 184private static ISet<string> GetNames(Declaration declaration, Predicate<Declaration> predicate)
Symbols\MergedNamespaceSymbol.cs (1)
120internal override void ForceComplete(SourceLocation locationOpt, Predicate<Symbol> filter, CancellationToken cancellationToken)
Symbols\Source\SourceAssemblySymbol.cs (1)
906internal override void ForceComplete(SourceLocation? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceComplexParameterSymbol.cs (1)
1574internal override void ForceComplete(SourceLocation locationOpt, Predicate<Symbol> filter, CancellationToken cancellationToken)
Symbols\Source\SourceConstructorSymbol.cs (1)
286internal sealed override void ForceComplete(SourceLocation? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceEnumConstantSymbol.cs (1)
103internal sealed override void ForceComplete(SourceLocation? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceEventSymbol.cs (1)
77internal override void ForceComplete(SourceLocation? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceFieldLikeEventSymbol.cs (1)
219internal override void ForceComplete(SourceLocation? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
573internal override void ForceComplete(SourceLocation? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceMemberFieldSymbol.cs (1)
315internal sealed override void ForceComplete(SourceLocation? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceMemberMethodSymbol.cs (1)
898internal override void ForceComplete(SourceLocation? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceModuleSymbol.cs (1)
226internal override void ForceComplete(SourceLocation? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceNamespaceSymbol_Completion.cs (1)
13internal override void ForceComplete(SourceLocation? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
462internal sealed override void ForceComplete(SourceLocation locationOpt, Predicate<Symbol> filter, CancellationToken cancellationToken)
Symbols\Source\SourceParameterSymbol.cs (1)
173internal override void ForceComplete(SourceLocation locationOpt, Predicate<Symbol> filter, CancellationToken cancellationToken)
Symbols\Source\SourcePropertySymbol.cs (1)
166internal override void ForceComplete(SourceLocation? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourcePropertySymbolBase.cs (1)
1821internal override void ForceComplete(SourceLocation? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Symbols\Source\SourceTypeParameterSymbol.cs (1)
350internal override void ForceComplete(SourceLocation locationOpt, Predicate<Symbol> filter, CancellationToken cancellationToken)
Symbols\Symbol.cs (2)
51internal virtual void ForceComplete(SourceLocation? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken) 968internal static void ForceCompleteMemberConditionally(SourceLocation? locationOpt, Predicate<Symbol>? filter, Symbol member, CancellationToken cancellationToken)
Symbols\Tuples\TupleFieldSymbol.cs (1)
150internal override void ForceComplete(SourceLocation? locationOpt, Predicate<Symbol>? filter, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.CSharp.Features (1)
BraceCompletion\CurlyBraceCompletionService.cs (1)
84private static readonly Predicate<SuppressOperation> s_predicate = o => o.Option.IsOn(SuppressOption.NoWrapping);
Microsoft.CodeAnalysis.Extensions.Package (79)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
838public static readonly Predicate<T> True = t => true;
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (25)
222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 223public bool Exists(Predicate<T> match) 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 227public T? Find(Predicate<T> match) 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 231public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 235public int FindIndex(Predicate<T> match) 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 239public int FindIndex(int startIndex, Predicate<T> match) 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 243public int FindIndex(int startIndex, int count, Predicate<T> match) 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 247public T? FindLast(Predicate<T> match) 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 251public int FindLastIndex(Predicate<T> match) 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 255public int FindLastIndex(int startIndex, Predicate<T> match) 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 270public int FindLastIndex(int startIndex, int count, Predicate<T> match) 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 385public ImmutableSegmentedList<T> RemoveAll(Predicate<T> match) 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/> 600public bool TrueForAll(Predicate<T> match) 621IImmutableList<T> IImmutableList<T>.RemoveAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (24)
94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 95public bool Exists(Predicate<T> match) 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 99public T? Find(Predicate<T> match) 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 103public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 107public int FindIndex(Predicate<T> match) 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 111public int FindIndex(int startIndex, Predicate<T> match) 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 115public int FindIndex(int startIndex, int count, Predicate<T> match) 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 119public T? FindLast(Predicate<T> match) 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 123public int FindLastIndex(Predicate<T> match) 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 127public int FindLastIndex(int startIndex, Predicate<T> match) 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 131public int FindLastIndex(int startIndex, int count, Predicate<T> match) 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 188public int RemoveAll(Predicate<T> match) 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/> 223public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (12)
137public readonly bool Exists(Predicate<T> match) 140public readonly T? Find(Predicate<T> match) 143public readonly ImmutableSegmentedList<T> FindAll(Predicate<T> match) 146public readonly int FindIndex(Predicate<T> match) 149public readonly int FindIndex(int startIndex, Predicate<T> match) 152public readonly int FindIndex(int startIndex, int count, Predicate<T> match) 155public readonly T? FindLast(Predicate<T> match) 158public readonly int FindLastIndex(Predicate<T> match) 161public readonly int FindLastIndex(int startIndex, Predicate<T> match) 173public readonly int FindLastIndex(int startIndex, int count, Predicate<T> match) 273public int RemoveAll(Predicate<T> match) 332public readonly bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
834public int RemoveWhere(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (12)
573public bool Exists(Predicate<T> match) 576public T? Find(Predicate<T> match) 593public SegmentedList<T> FindAll(Predicate<T> match) 611public int FindIndex(Predicate<T> match) 614public int FindIndex(int startIndex, Predicate<T> match) 617public int FindIndex(int startIndex, int count, Predicate<T> match) 643public T? FindLast(Predicate<T> match) 660public int FindLastIndex(Predicate<T> match) 663public int FindLastIndex(int startIndex, Predicate<T> match) 666public int FindLastIndex(int startIndex, int count, Predicate<T> match) 1086public int RemoveAll(Predicate<T> match) 1302public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
219public int FindIndex(Predicate<T> match) 222public int FindIndex(int startIndex, Predicate<T> match) 225public int FindIndex(int startIndex, int count, Predicate<T> match) 279public void RemoveAll(Predicate<T> match)
Microsoft.CodeAnalysis.NetAnalyzers (4)
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotPassDisposablesIntoUnawaitedTasks.cs (1)
205public static bool AnyWhere<T>(this IEnumerable<T> collection, Predicate<T> predicate, out IList<T> matches)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (3)
152public int FindIndex(Predicate<T> match) 155public int FindIndex(int startIndex, Predicate<T> match) 158public int FindIndex(int startIndex, int count, Predicate<T> match)
Microsoft.CodeAnalysis.Razor.Compiler (5)
Language\Legacy\TextReaderExtensions.cs (4)
70public static string ReadUntil(this TextReader reader, Predicate<char> condition) 87Predicate<char> condition, 116public static string ReadWhile(this TextReader reader, Predicate<char> condition) 133Predicate<char> condition,
Language\TagHelperCollection.cs (1)
326public TagHelperCollection Where(Predicate<TagHelperDescriptor> predicate)
Microsoft.CodeAnalysis.ResxSourceGenerator (79)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
838public static readonly Predicate<T> True = t => true;
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (25)
222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 223public bool Exists(Predicate<T> match) 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 227public T? Find(Predicate<T> match) 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 231public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 235public int FindIndex(Predicate<T> match) 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 239public int FindIndex(int startIndex, Predicate<T> match) 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 243public int FindIndex(int startIndex, int count, Predicate<T> match) 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 247public T? FindLast(Predicate<T> match) 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 251public int FindLastIndex(Predicate<T> match) 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 255public int FindLastIndex(int startIndex, Predicate<T> match) 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 270public int FindLastIndex(int startIndex, int count, Predicate<T> match) 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 385public ImmutableSegmentedList<T> RemoveAll(Predicate<T> match) 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/> 600public bool TrueForAll(Predicate<T> match) 621IImmutableList<T> IImmutableList<T>.RemoveAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (24)
94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 95public bool Exists(Predicate<T> match) 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 99public T? Find(Predicate<T> match) 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 103public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 107public int FindIndex(Predicate<T> match) 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 111public int FindIndex(int startIndex, Predicate<T> match) 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 115public int FindIndex(int startIndex, int count, Predicate<T> match) 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 119public T? FindLast(Predicate<T> match) 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 123public int FindLastIndex(Predicate<T> match) 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 127public int FindLastIndex(int startIndex, Predicate<T> match) 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 131public int FindLastIndex(int startIndex, int count, Predicate<T> match) 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 188public int RemoveAll(Predicate<T> match) 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/> 223public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (12)
137public readonly bool Exists(Predicate<T> match) 140public readonly T? Find(Predicate<T> match) 143public readonly ImmutableSegmentedList<T> FindAll(Predicate<T> match) 146public readonly int FindIndex(Predicate<T> match) 149public readonly int FindIndex(int startIndex, Predicate<T> match) 152public readonly int FindIndex(int startIndex, int count, Predicate<T> match) 155public readonly T? FindLast(Predicate<T> match) 158public readonly int FindLastIndex(Predicate<T> match) 161public readonly int FindLastIndex(int startIndex, Predicate<T> match) 173public readonly int FindLastIndex(int startIndex, int count, Predicate<T> match) 273public int RemoveAll(Predicate<T> match) 332public readonly bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
834public int RemoveWhere(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (12)
573public bool Exists(Predicate<T> match) 576public T? Find(Predicate<T> match) 593public SegmentedList<T> FindAll(Predicate<T> match) 611public int FindIndex(Predicate<T> match) 614public int FindIndex(int startIndex, Predicate<T> match) 617public int FindIndex(int startIndex, int count, Predicate<T> match) 643public T? FindLast(Predicate<T> match) 660public int FindLastIndex(Predicate<T> match) 663public int FindLastIndex(int startIndex, Predicate<T> match) 666public int FindLastIndex(int startIndex, int count, Predicate<T> match) 1086public int RemoveAll(Predicate<T> match) 1302public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
219public int FindIndex(Predicate<T> match) 222public int FindIndex(int startIndex, Predicate<T> match) 225public int FindIndex(int startIndex, int count, Predicate<T> match) 279public void RemoveAll(Predicate<T> match)
Microsoft.CodeAnalysis.VisualBasic (12)
Compilation\MethodCompiler.vb (8)
31Private ReadOnly _filterOpt As Predicate(Of Symbol) ' If not Nothing, limit analysis to specific symbols 90filter As Predicate(Of Symbol), 165Dim filter As Predicate(Of Symbol) = Nothing 218filter As Predicate(Of Symbol), 540Private Function CompileNamedTypeAsync(symbol As NamedTypeSymbol, filter As Predicate(Of Symbol)) As Task 553Private Sub CompileNamedType(containingType As NamedTypeSymbol, filter As Predicate(Of Symbol)) 1221filter As Predicate(Of Symbol), 2158Private Shared Function PassesFilter(filterOpt As Predicate(Of Symbol), symbol As Symbol) As Boolean
Compilation\VisualBasicCompilation.vb (1)
2459filterOpt As Predicate(Of ISymbolInternal),
Declarations\DeclarationTable.vb (3)
232Private Shared ReadOnly s_isNamespacePredicate As Predicate(Of Declaration) = Function(d) d.Kind = DeclarationKind.Namespace 233Private Shared ReadOnly s_isTypePredicate As Predicate(Of Declaration) = Function(d) d.Kind <> DeclarationKind.Namespace 243Private Shared Function GetNames(declaration As Declaration, predicate As Predicate(Of Declaration)) As ICollection(Of String)
Microsoft.CodeAnalysis.Workspaces (80)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (1)
253private static readonly Predicate<string> s_isNotNullOrEmpty = s => !string.IsNullOrEmpty(s);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
838public static readonly Predicate<T> True = t => true;
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (25)
222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 223public bool Exists(Predicate<T> match) 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 227public T? Find(Predicate<T> match) 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 231public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 235public int FindIndex(Predicate<T> match) 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 239public int FindIndex(int startIndex, Predicate<T> match) 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 243public int FindIndex(int startIndex, int count, Predicate<T> match) 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 247public T? FindLast(Predicate<T> match) 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 251public int FindLastIndex(Predicate<T> match) 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 255public int FindLastIndex(int startIndex, Predicate<T> match) 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 270public int FindLastIndex(int startIndex, int count, Predicate<T> match) 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 385public ImmutableSegmentedList<T> RemoveAll(Predicate<T> match) 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/> 600public bool TrueForAll(Predicate<T> match) 621IImmutableList<T> IImmutableList<T>.RemoveAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (24)
94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 95public bool Exists(Predicate<T> match) 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 99public T? Find(Predicate<T> match) 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 103public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 107public int FindIndex(Predicate<T> match) 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 111public int FindIndex(int startIndex, Predicate<T> match) 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 115public int FindIndex(int startIndex, int count, Predicate<T> match) 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 119public T? FindLast(Predicate<T> match) 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 123public int FindLastIndex(Predicate<T> match) 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 127public int FindLastIndex(int startIndex, Predicate<T> match) 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 131public int FindLastIndex(int startIndex, int count, Predicate<T> match) 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 188public int RemoveAll(Predicate<T> match) 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/> 223public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (12)
137public readonly bool Exists(Predicate<T> match) 140public readonly T? Find(Predicate<T> match) 143public readonly ImmutableSegmentedList<T> FindAll(Predicate<T> match) 146public readonly int FindIndex(Predicate<T> match) 149public readonly int FindIndex(int startIndex, Predicate<T> match) 152public readonly int FindIndex(int startIndex, int count, Predicate<T> match) 155public readonly T? FindLast(Predicate<T> match) 158public readonly int FindLastIndex(Predicate<T> match) 161public readonly int FindLastIndex(int startIndex, Predicate<T> match) 173public readonly int FindLastIndex(int startIndex, int count, Predicate<T> match) 273public int RemoveAll(Predicate<T> match) 332public readonly bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
834public int RemoveWhere(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (12)
573public bool Exists(Predicate<T> match) 576public T? Find(Predicate<T> match) 593public SegmentedList<T> FindAll(Predicate<T> match) 611public int FindIndex(Predicate<T> match) 614public int FindIndex(int startIndex, Predicate<T> match) 617public int FindIndex(int startIndex, int count, Predicate<T> match) 643public T? FindLast(Predicate<T> match) 660public int FindLastIndex(Predicate<T> match) 663public int FindLastIndex(int startIndex, Predicate<T> match) 666public int FindLastIndex(int startIndex, int count, Predicate<T> match) 1086public int RemoveAll(Predicate<T> match) 1302public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
219public int FindIndex(Predicate<T> match) 222public int FindIndex(int startIndex, Predicate<T> match) 225public int FindIndex(int startIndex, int count, Predicate<T> match) 279public void RemoveAll(Predicate<T> match)
Microsoft.DotNet.HotReload.Watch (1)
FileWatcher\FileWatcher.cs (1)
180public async Task<ChangedPath?> WaitForFileChangeAsync(Predicate<ChangedPath> acceptChange, Action? startedWatching, CancellationToken cancellationToken)
Microsoft.Maui (4)
Core\Extensions\VisualTreeElementExtensions.cs (2)
309 static List<IVisualTreeElement> GetVisualTreeElementsInternal(IVisualTreeElement visualElement, Predicate<Rect> intersectElementBounds) 318 static void Impl(IVisualTreeElement visualElement, Predicate<Rect> intersectElementBounds, List<IVisualTreeElement> elements)
Extensions\EnumerableExtensions.cs (2)
152 var listPredicate = new Predicate<T>(predicate); 158 var arrayPredicate = new Predicate<T>(predicate);
Microsoft.ML.TestFrameworkCommon (3)
parent\parent\src\Common\tests\RetryHelper.cs (3)
16private static readonly Predicate<Exception> _defaultRetryWhenFunc = p => true; 24public static void Execute(Action test, int maxAttempts = 5, Func<int, int>? backoffFunc = null, Predicate<Exception>? retryWhen = null, [CallerMemberName] string? testName = null) 74public static async Task ExecuteAsync(Func<Task> test, int maxAttempts = 5, Func<int, int>? backoffFunc = null, Predicate<Exception>? retryWhen = null, [CallerMemberName] string? testName = null)
Microsoft.ML.Tokenizers.Data.Tests (3)
parent\parent\src\Common\tests\RetryHelper.cs (3)
16private static readonly Predicate<Exception> _defaultRetryWhenFunc = p => true; 24public static void Execute(Action test, int maxAttempts = 5, Func<int, int>? backoffFunc = null, Predicate<Exception>? retryWhen = null, [CallerMemberName] string? testName = null) 74public static async Task ExecuteAsync(Func<Task> test, int maxAttempts = 5, Func<int, int>? backoffFunc = null, Predicate<Exception>? retryWhen = null, [CallerMemberName] string? testName = null)
Microsoft.ML.Tokenizers.Tests (3)
parent\parent\src\Common\tests\RetryHelper.cs (3)
16private static readonly Predicate<Exception> _defaultRetryWhenFunc = p => true; 24public static void Execute(Action test, int maxAttempts = 5, Func<int, int>? backoffFunc = null, Predicate<Exception>? retryWhen = null, [CallerMemberName] string? testName = null) 74public static async Task ExecuteAsync(Func<Task> test, int maxAttempts = 5, Func<int, int>? backoffFunc = null, Predicate<Exception>? retryWhen = null, [CallerMemberName] string? testName = null)
Microsoft.TemplateEngine.Edge (1)
Installers\NuGet\NuGetManagedTemplatePackage.cs (1)
180private void UpdateOrRemoveValue<TKey, TValue>(IDictionary<TKey, TValue> dict, TKey key, TValue? value, Predicate<TValue> condition)
Microsoft.TemplateEngine.Utils (1)
DictionaryExtensions.cs (1)
84public static bool TryAdd<TKey, TValue>(this IDictionary<TKey, TValue> dict, TKey key, TValue value, Predicate<TValue> condition)
mscorlib (1)
parent\ref\mscorlib.cs (1)
388[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Predicate<>))]
netstandard (1)
netstandard.cs (1)
1352[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Predicate<>))]
NuGet.Build.Tasks (3)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
129public static int SingleIndex<T>(this IList<T> lst, Predicate<T> isMatch) 155public static int FirstIndex<T>(this IList<T> lst, Predicate<T> isMatch) 169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
NuGet.CommandLine.XPlat (3)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
129public static int SingleIndex<T>(this IList<T> lst, Predicate<T> isMatch) 155public static int FirstIndex<T>(this IList<T> lst, Predicate<T> isMatch) 169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
NuGet.Commands (3)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
129public static int SingleIndex<T>(this IList<T> lst, Predicate<T> isMatch) 155public static int FirstIndex<T>(this IList<T> lst, Predicate<T> isMatch) 169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
NuGet.DependencyResolver.Core (3)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
129public static int SingleIndex<T>(this IList<T> lst, Predicate<T> isMatch) 155public static int FirstIndex<T>(this IList<T> lst, Predicate<T> isMatch) 169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
NuGet.Frameworks (3)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
129public static int SingleIndex<T>(this IList<T> lst, Predicate<T> isMatch) 155public static int FirstIndex<T>(this IList<T> lst, Predicate<T> isMatch) 169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
NuGet.PackageManagement (3)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
129public static int SingleIndex<T>(this IList<T> lst, Predicate<T> isMatch) 155public static int FirstIndex<T>(this IList<T> lst, Predicate<T> isMatch) 169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
NuGet.Packaging (3)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
129public static int SingleIndex<T>(this IList<T> lst, Predicate<T> isMatch) 155public static int FirstIndex<T>(this IList<T> lst, Predicate<T> isMatch) 169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
NuGet.Versioning (3)
src\nuget-client\build\Shared\SharedExtensions.cs (3)
129public static int SingleIndex<T>(this IList<T> lst, Predicate<T> isMatch) 155public static int FirstIndex<T>(this IList<T> lst, Predicate<T> isMatch) 169public static bool Any<T>(this IReadOnlyList<T> lst, Predicate<T> isMatch)
PresentationFramework (20)
MS\Internal\Data\CollectionViewProxy.cs (1)
96public override Predicate<object> Filter
MS\Internal\Data\EnumerableCollectionView.cs (1)
107public override Predicate<object> Filter
MS\Internal\Data\IndexedEnumerable.cs (5)
49internal IndexedEnumerable(IEnumerable collection, Predicate<object> filterCallback) 356private Predicate<object> FilterCallback 701private Predicate<object> _filterCallback; 711public FilteredEnumerator(IndexedEnumerable indexedEnumerable, IEnumerable enumerable, Predicate<object> filterCallback) 765private Predicate<object> _filterCallback;
MS\Internal\Helper.cs (1)
1418Predicate<DependencyObject> predicate)
System\Windows\Controls\ItemCollection.cs (3)
628public override Predicate<object> Filter 2296private Predicate<object> MyFilter 2475public Predicate<object> _filter; // storage for Filter when _collectionView is not available
System\Windows\Data\CollectionView.cs (2)
209public virtual Predicate<object> Filter 2137private Predicate<object> _filter;
System\Windows\Data\CollectionViewSource.cs (4)
1003Predicate<object> filter; 1119private Predicate<object> FilterWrapper 1234public Predicate<object> FilterWrapper 1253private Predicate<object> _filterWrapper;
System\Windows\Data\ListCollectionView.cs (3)
426public override Predicate<object> Filter 2305protected Predicate<object> ActiveFilter 3312private Predicate<object> _activeFilter;
Roslyn.Diagnostics.Analyzers (79)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
838public static readonly Predicate<T> True = t => true;
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (25)
222/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 223public bool Exists(Predicate<T> match) 226/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 227public T? Find(Predicate<T> match) 230/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 231public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 234/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 235public int FindIndex(Predicate<T> match) 238/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 239public int FindIndex(int startIndex, Predicate<T> match) 242/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 243public int FindIndex(int startIndex, int count, Predicate<T> match) 246/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 247public T? FindLast(Predicate<T> match) 250/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 251public int FindLastIndex(Predicate<T> match) 254/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 255public int FindLastIndex(int startIndex, Predicate<T> match) 269/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 270public int FindLastIndex(int startIndex, int count, Predicate<T> match) 384/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 385public ImmutableSegmentedList<T> RemoveAll(Predicate<T> match) 599/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/> 600public bool TrueForAll(Predicate<T> match) 621IImmutableList<T> IImmutableList<T>.RemoveAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+Builder.cs (24)
94/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 95public bool Exists(Predicate<T> match) 98/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 99public T? Find(Predicate<T> match) 102/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 103public ImmutableSegmentedList<T> FindAll(Predicate<T> match) 106/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 107public int FindIndex(Predicate<T> match) 110/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 111public int FindIndex(int startIndex, Predicate<T> match) 114/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 115public int FindIndex(int startIndex, int count, Predicate<T> match) 118/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 119public T? FindLast(Predicate<T> match) 122/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 123public int FindLastIndex(Predicate<T> match) 126/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 127public int FindLastIndex(int startIndex, Predicate<T> match) 130/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 131public int FindLastIndex(int startIndex, int count, Predicate<T> match) 187/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 188public int RemoveAll(Predicate<T> match) 222/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/> 223public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (12)
137public readonly bool Exists(Predicate<T> match) 140public readonly T? Find(Predicate<T> match) 143public readonly ImmutableSegmentedList<T> FindAll(Predicate<T> match) 146public readonly int FindIndex(Predicate<T> match) 149public readonly int FindIndex(int startIndex, Predicate<T> match) 152public readonly int FindIndex(int startIndex, int count, Predicate<T> match) 155public readonly T? FindLast(Predicate<T> match) 158public readonly int FindLastIndex(Predicate<T> match) 161public readonly int FindLastIndex(int startIndex, Predicate<T> match) 173public readonly int FindLastIndex(int startIndex, int count, Predicate<T> match) 273public int RemoveAll(Predicate<T> match) 332public readonly bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (1)
834public int RemoveWhere(Predicate<T> match)
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (12)
573public bool Exists(Predicate<T> match) 576public T? Find(Predicate<T> match) 593public SegmentedList<T> FindAll(Predicate<T> match) 611public int FindIndex(Predicate<T> match) 614public int FindIndex(int startIndex, Predicate<T> match) 617public int FindIndex(int startIndex, int count, Predicate<T> match) 643public T? FindLast(Predicate<T> match) 660public int FindLastIndex(Predicate<T> match) 663public int FindLastIndex(int startIndex, Predicate<T> match) 666public int FindLastIndex(int startIndex, int count, Predicate<T> match) 1086public int RemoveAll(Predicate<T> match) 1302public bool TrueForAll(Predicate<T> match)
src\roslyn\src\Dependencies\PooledObjects\ArrayBuilder.cs (4)
219public int FindIndex(Predicate<T> match) 222public int FindIndex(int startIndex, Predicate<T> match) 225public int FindIndex(int startIndex, int count, Predicate<T> match) 279public void RemoveAll(Predicate<T> match)
System.Collections (1)
System\Collections\Generic\SortedSet.cs (1)
1425public int RemoveWhere(Predicate<T> match)
System.Collections.Immutable (68)
System\Collections\Immutable\IImmutableList.cs (2)
121/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the elements 127IImmutableList<T> RemoveAll(Predicate<T> match);
System\Collections\Immutable\ImmutableArray_1.Builder.cs (2)
538/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the elements 541public void RemoveAll(Predicate<T> match)
System\Collections\Immutable\ImmutableArray_1.cs (3)
742/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the elements 748public ImmutableArray<T> RemoveAll(Predicate<T> match) 1131IImmutableList<T> IImmutableList<T>.RemoveAll(Predicate<T> match)
System\Collections\Immutable\ImmutableList_1.Builder.cs (12)
362public bool Exists(Predicate<T> match) => _root.Exists(match); 376public T? Find(Predicate<T> match) => _root.Find(match); 391public ImmutableList<T> FindAll(Predicate<T> match) => _root.FindAll(match); 406public int FindIndex(Predicate<T> match) => _root.FindIndex(match); 420public int FindIndex(int startIndex, Predicate<T> match) => _root.FindIndex(startIndex, match); 435public int FindIndex(int startIndex, int count, Predicate<T> match) => _root.FindIndex(startIndex, count, match); 449public T? FindLast(Predicate<T> match) => _root.FindLast(match); 464public int FindLastIndex(Predicate<T> match) => _root.FindLastIndex(match); 479public int FindLastIndex(int startIndex, Predicate<T> match) => _root.FindLastIndex(startIndex, match); 497public int FindLastIndex(int startIndex, int count, Predicate<T> match) => _root.FindLastIndex(startIndex, count, match); 677public bool TrueForAll(Predicate<T> match) => _root.TrueForAll(match); 729public int RemoveAll(Predicate<T> match)
System\Collections\Immutable\ImmutableList_1.cs (25)
373/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the elements 379public ImmutableList<T> RemoveAll(Predicate<T> match) 588/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the elements 596public bool Exists(Predicate<T> match) => _root.Exists(match); 603/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the element 610public T? Find(Predicate<T> match) => _root.Find(match); 617/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the elements 625public ImmutableList<T> FindAll(Predicate<T> match) => _root.FindAll(match); 633/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the element 640public int FindIndex(Predicate<T> match) => _root.FindIndex(match); 649/// <param name="match">The <see cref="Predicate{T}"/> delegate that defines the conditions of the element to search for.</param> 654public int FindIndex(int startIndex, Predicate<T> match) => _root.FindIndex(startIndex, match); 664/// <param name="match">The <see cref="Predicate{T}"/> delegate that defines the conditions of the element to search for.</param> 669public int FindIndex(int startIndex, int count, Predicate<T> match) => _root.FindIndex(startIndex, count, match); 676/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the element 683public T? FindLast(Predicate<T> match) => _root.FindLast(match); 691/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the element 698public int FindLastIndex(Predicate<T> match) => _root.FindLastIndex(match); 707/// <param name="match">The <see cref="Predicate{T}"/> delegate that defines the conditions of the element 713public int FindLastIndex(int startIndex, Predicate<T> match) => _root.FindLastIndex(startIndex, match); 724/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the element 731public int FindLastIndex(int startIndex, int count, Predicate<T> match) => _root.FindLastIndex(startIndex, count, match); 786/// The <see cref="Predicate{T}"/> delegate that defines the conditions to check against 794public bool TrueForAll(Predicate<T> match) => _root.TrueForAll(match); 847IImmutableList<T> IImmutableList<T>.RemoveAll(Predicate<T> match) => this.RemoveAll(match);
System\Collections\Immutable\ImmutableList_1.Node.cs (24)
454/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the elements 460internal Node RemoveAll(Predicate<T> match) 955/// The <see cref="Predicate{T}"/> delegate that defines the conditions to check against 963internal bool TrueForAll(Predicate<T> match) 983/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the elements 991internal bool Exists(Predicate<T> match) 1011/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the element 1018internal T? Find(Predicate<T> match) 1038/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the elements 1046internal ImmutableList<T> FindAll(Predicate<T> match) 1077/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the element 1084internal int FindIndex(Predicate<T> match) 1098/// <param name="match">The <see cref="Predicate{T}"/> delegate that defines the conditions of the element to search for.</param> 1103internal int FindIndex(int startIndex, Predicate<T> match) 1119/// <param name="match">The <see cref="Predicate{T}"/> delegate that defines the conditions of the element to search for.</param> 1124internal int FindIndex(int startIndex, int count, Predicate<T> match) 1153/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the element 1160internal T? FindLast(Predicate<T> match) 1184/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the element 1191internal int FindLastIndex(Predicate<T> match) 1205/// <param name="match">The <see cref="Predicate{T}"/> delegate that defines the conditions of the element 1211internal int FindLastIndex(int startIndex, Predicate<T> match) 1229/// The <see cref="Predicate{T}"/> delegate that defines the conditions of the element 1236internal int FindLastIndex(int startIndex, int count, Predicate<T> match)
System.ComponentModel.Composition.Registration (24)
System\ComponentModel\Composition\Registration\PartBuilder.cs (21)
28private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type>> _propertyExports; 29private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type>> _propertyImports; 30private readonly List<Tuple<Predicate<Type>, Action<Type, ExportBuilder>>> _interfaceExports; 32internal Predicate<Type> SelectType { get; } 34internal PartBuilder(Predicate<Type> selectType) 40_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type>>(); 41_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type>>(); 42_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type, ExportBuilder>>>(); 89public PartBuilder ExportInterfaces(Predicate<Type> interfaceFilter) 99public PartBuilder ExportInterfaces(Predicate<Type> interfaceFilter, 110public PartBuilder ExportProperties(Predicate<PropertyInfo> propertyFilter) 117public PartBuilder ExportProperties(Predicate<PropertyInfo> propertyFilter, 128public PartBuilder ExportProperties<T>(Predicate<PropertyInfo> propertyFilter) 135public PartBuilder ExportProperties<T>(Predicate<PropertyInfo> propertyFilter, 146public PartBuilder ImportProperties(Predicate<PropertyInfo> propertyFilter) 153public PartBuilder ImportProperties(Predicate<PropertyInfo> propertyFilter, 163public PartBuilder ImportProperties<T>(Predicate<PropertyInfo> propertyFilter) 170public PartBuilder ImportProperties<T>(Predicate<PropertyInfo> propertyFilter, 316foreach (Tuple<Predicate<Type>, Action<Type, ExportBuilder>> exportSpecification in _interfaceExports) 430foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type> importSpecification in _propertyImports) 470foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type> exportSpecification in _propertyExports)
System\ComponentModel\Composition\Registration\PartBuilderOfT.cs (1)
144internal PartBuilder(Predicate<Type> selectType) : base(selectType)
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (2)
69public PartBuilder<T> ForTypesMatching<T>(Predicate<Type> typeFilter) 79public PartBuilder ForTypesMatching(Predicate<Type> typeFilter)
System.Composition.Convention (34)
System\Composition\Convention\ConventionBuilder.cs (2)
90public PartConventionBuilder<T> ForTypesMatching<T>(Predicate<Type> typeFilter) 105public PartConventionBuilder ForTypesMatching(Predicate<Type> typeFilter)
System\Composition\Convention\PartConventionBuilder.cs (31)
33private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type>> _propertyExports; 34private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>>> _propertyImports; 35private readonly List<Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>>> _interfaceExports; 36private readonly List<Predicate<MethodInfo>> _methodImportsSatisfiedNotifications; 38internal Predicate<Type> SelectType { get; } 40internal PartConventionBuilder(Predicate<Type> selectType) 44_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type>>(); 45_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>>>(); 46_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>>>(); 47_methodImportsSatisfiedNotifications = new List<Predicate<MethodInfo>>(); 136public PartConventionBuilder ExportInterfaces(Predicate<Type> interfaceFilter) 158public PartConventionBuilder ExportInterfaces(Predicate<Type> interfaceFilter, 167private PartConventionBuilder ExportInterfacesImpl(Predicate<Type> interfaceFilter, 179public PartConventionBuilder ExportProperties(Predicate<PropertyInfo> propertyFilter) 192public PartConventionBuilder ExportProperties(Predicate<PropertyInfo> propertyFilter, 201private PartConventionBuilder ExportPropertiesImpl(Predicate<PropertyInfo> propertyFilter, 214public PartConventionBuilder ExportProperties<T>(Predicate<PropertyInfo> propertyFilter) 228public PartConventionBuilder ExportProperties<T>(Predicate<PropertyInfo> propertyFilter, 237private PartConventionBuilder ExportPropertiesImpl<T>(Predicate<PropertyInfo> propertyFilter, 249public PartConventionBuilder ImportProperties(Predicate<PropertyInfo> propertyFilter) 262public PartConventionBuilder ImportProperties(Predicate<PropertyInfo> propertyFilter, 271private PartConventionBuilder ImportPropertiesImpl(Predicate<PropertyInfo> propertyFilter, 284public PartConventionBuilder ImportProperties<T>(Predicate<PropertyInfo> propertyFilter) 298public PartConventionBuilder ImportProperties<T>(Predicate<PropertyInfo> propertyFilter, 307private PartConventionBuilder ImportPropertiesImpl<T>(Predicate<PropertyInfo> propertyFilter, 310Predicate<PropertyInfo> typedFilter = pi => pi.PropertyType.Equals(typeof(T)) && (propertyFilter == null || propertyFilter(pi)); 319public PartConventionBuilder NotifyImportsSatisfied(Predicate<MethodInfo> methodFilter) 512foreach (Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>> exportSpecification in _interfaceExports) 624foreach (Predicate<MethodInfo> notification in _methodImportsSatisfiedNotifications) 676foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>> importSpecification in _propertyImports) 713foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type> exportSpecification in _propertyExports)
System\Composition\Convention\PartConventionBuilderOfT.cs (1)
200internal PartConventionBuilder(Predicate<Type> selectType) : base(selectType)
System.Data.Common (6)
System\Data\DataView.cs (5)
39/// IFilter will allow LinqDataView to wrap <see cref='System.Predicate&lt;DataRow&gt;'/> instead of using a DataExpression 163internal DataView(DataTable table, System.Predicate<DataRow>? predicate, System.Comparison<DataRow>? comparison, DataViewRowState RowState) 337internal Predicate<DataRow>? RowPredicate 355internal readonly Predicate<DataRow> _predicateFilter; 358internal RowPredicateFilter(Predicate<DataRow> predicate)
System\Data\LinqDataView.cs (1)
57Predicate<DataRow>? predicate_system,
System.Diagnostics.DiagnosticSource (8)
System\Diagnostics\DiagnosticListener.cs (4)
64public virtual IDisposable Subscribe(IObserver<KeyValuePair<string, object?>> observer, Predicate<string>? isEnabled) 73Predicate<string> localIsEnabled = isEnabled; 282internal Predicate<string>? IsEnabled1Arg; 434Predicate<string>? isEnabled1Arg, Func<string, object?, object?, bool>? isEnabled3Arg,
System\Diagnostics\DsesFilterAndTransform.cs (1)
518Predicate<string>? eventNameFilterPredicate = null;
System\Diagnostics\Metrics\AggregationManager.cs (3)
22private readonly List<Predicate<Instrument>> _instrumentConfigFuncs = new(); 116private void Include(Predicate<Instrument> instrumentFilter) 344foreach (Predicate<Instrument> filter in _instrumentConfigFuncs)
System.IO.Pipelines (2)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (2)
220public bool TryDequeueIf(Predicate<T>? predicate, [MaybeNullWhen(false)] out T result) 251private bool TryDequeueIfSlow(Predicate<T>? predicate, Segment segment, T[] array, [MaybeNullWhen(false)] out T result)
System.Private.CoreLib (30)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (2)
220public bool TryDequeueIf(Predicate<T>? predicate, [MaybeNullWhen(false)] out T result) 251private bool TryDequeueIfSlow(Predicate<T>? predicate, Segment segment, T[] array, [MaybeNullWhen(false)] out T result)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Array.cs (11)
1466public static bool Exists<T>(T[] array, Predicate<T> match) 1522public static T? Find<T>(T[] array, Predicate<T> match) 1544public static T[] FindAll<T>(T[] array, Predicate<T> match) 1579public static int FindIndex<T>(T[] array, Predicate<T> match) 1589public static int FindIndex<T>(T[] array, int startIndex, Predicate<T> match) 1599public static int FindIndex<T>(T[] array, int startIndex, int count, Predicate<T> match) 1630public static T? FindLast<T>(T[] array, Predicate<T> match) 1652public static int FindLastIndex<T>(T[] array, Predicate<T> match) 1662public static int FindLastIndex<T>(T[] array, int startIndex, Predicate<T> match) 1672public static int FindLastIndex<T>(T[] array, int startIndex, int count, Predicate<T> match) 2610public static bool TrueForAll<T>(T[] array, Predicate<T> match)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (1)
1231public int RemoveWhere(Predicate<T> match)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (12)
505public bool Exists(Predicate<T> match) 508public T? Find(Predicate<T> match) 525public List<T> FindAll(Predicate<T> match) 543public int FindIndex(Predicate<T> match) 546public int FindIndex(int startIndex, Predicate<T> match) 549public int FindIndex(int startIndex, int count, Predicate<T> match) 574public T? FindLast(Predicate<T> match) 591public int FindLastIndex(Predicate<T> match) 594public int FindLastIndex(int startIndex, Predicate<T> match) 597public int FindLastIndex(int startIndex, int count, Predicate<T> match) 962public int RemoveAll(Predicate<T> match) 1168public bool TrueForAll(Predicate<T> match)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\Contracts.cs (4)
516public static bool ForAll(int fromInclusive, int toExclusive, Predicate<int> predicate) 538public static bool ForAll<T>(IEnumerable<T> collection, Predicate<T> predicate) 563public static bool Exists(int fromInclusive, int toExclusive, Predicate<int> predicate) 584public static bool Exists<T>(IEnumerable<T> collection, Predicate<T> predicate)
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
426[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Predicate<>))]
System.Security.Claims (11)
System\Security\Claims\ClaimsIdentity.cs (4)
601public virtual IEnumerable<Claim> FindAll(Predicate<Claim> match) 606IEnumerable<Claim> Core(Predicate<Claim> match) 650public virtual Claim? FindFirst(Predicate<Claim> match) 695public virtual bool HasClaim(Predicate<Claim> match)
System\Security\Claims\ClaimsPrincipal.cs (7)
281public virtual IEnumerable<Claim> FindAll(Predicate<Claim> match) 286IEnumerable<Claim> Core(Predicate<Claim> match) 306/// <remarks>Each <see cref="ClaimsIdentity"/> is called. <seealso cref="ClaimsIdentity.FindAll(Predicate{Claim})"/>.</remarks> 335public virtual Claim? FindFirst(Predicate<Claim> match) 361/// <remarks>Each <see cref="ClaimsIdentity"/> is called. <seealso cref="ClaimsIdentity.FindFirst(Predicate{Claim})"/>.</remarks> 391public virtual bool HasClaim(Predicate<Claim> match) 415/// <remarks>Each <see cref="ClaimsIdentity"/> is called. <seealso cref="ClaimsIdentity.HasClaim(Predicate{Claim})"/>.</remarks>
System.Security.Cryptography (2)
System\Security\Cryptography\X509Certificates\CertificateExtensionsCommon.cs (2)
12Predicate<X509Certificate2>? matchesConstraints = null) 48Predicate<X509Certificate2>? matchesConstraints = null)
System.Threading.Channels (2)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (2)
220public bool TryDequeueIf(Predicate<T>? predicate, [MaybeNullWhen(false)] out T result) 251private bool TryDequeueIfSlow(Predicate<T>? predicate, Segment segment, T[] array, [MaybeNullWhen(false)] out T result)
System.Threading.Tasks.Dataflow (20)
Base\DataflowBlock.cs (5)
56Predicate<TOutput> predicate) 76Predicate<TOutput> predicate) 100private readonly Predicate<T> _userProvidedPredicate; 106internal FilteredLinkPropagator(ISourceBlock<T> source, ITargetBlock<T> target, Predicate<T> predicate) 1562public bool TryReceive(Predicate<TOutput>? filter, [MaybeNullWhen(false)] out TOutput item)
Base\IReceivableSourceBlock.cs (1)
25bool TryReceive(Predicate<TOutput>? filter, [MaybeNullWhen(false)] out TOutput item);
Blocks\BatchBlock.cs (1)
127public bool TryReceive(Predicate<T[]>? filter, [NotNullWhen(true)] out T[]? item)
Blocks\BatchedJoinBlock.cs (2)
132public bool TryReceive(Predicate<Tuple<IList<T1>, IList<T2>>>? filter, [NotNullWhen(true)] out Tuple<IList<T1>, IList<T2>>? item) 384public bool TryReceive(Predicate<Tuple<IList<T1>, IList<T2>, IList<T3>>>? filter, [NotNullWhen(true)] out Tuple<IList<T1>, IList<T2>, IList<T3>>? item)
Blocks\BroadcastBlock.cs (2)
151public bool TryReceive(Predicate<T>? filter, [MaybeNullWhen(false)] out T item) { return _source.TryReceive(filter, out item); } 561internal bool TryReceive(Predicate<TOutput>? filter, [MaybeNullWhen(false)] out TOutput item)
Blocks\BufferBlock.cs (1)
186public bool TryReceive(Predicate<T>? filter, [MaybeNullWhen(false)] out T item) { return _source.TryReceive(filter, out item); }
Blocks\JoinBlock.cs (2)
116public bool TryReceive(Predicate<Tuple<T1, T2>>? filter, [NotNullWhen(true)] out Tuple<T1, T2>? item) 335public bool TryReceive(Predicate<Tuple<T1, T2, T3>>? filter, [NotNullWhen(true)] out Tuple<T1, T2, T3>? item)
Blocks\TransformBlock.cs (1)
347public bool TryReceive(Predicate<TOutput>? filter, [MaybeNullWhen(false)] out TOutput item)
Blocks\TransformManyBlock.cs (1)
559public bool TryReceive(Predicate<TOutput>? filter, [MaybeNullWhen(false)] out TOutput item) { return _source.TryReceive(filter, out item); }
Blocks\WriteOnceBlock.cs (1)
256public bool TryReceive(Predicate<T>? filter, [MaybeNullWhen(false)] out T item)
Internal\SourceCore.cs (1)
275internal bool TryReceive(Predicate<TOutput>? filter, [MaybeNullWhen(false)] out TOutput item)
src\runtime\src\libraries\Common\src\System\Collections\Concurrent\SingleProducerSingleConsumerQueue.cs (2)
220public bool TryDequeueIf(Predicate<T>? predicate, [MaybeNullWhen(false)] out T result) 251private bool TryDequeueIfSlow(Predicate<T>? predicate, Segment segment, T[] array, [MaybeNullWhen(false)] out T result)
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Generated\TreeHelper.cs (3)
95Predicate<DependencyObject> predicate) 134Predicate<DependencyObject> predicate) 228Predicate<DependencyObject> predicate)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (1)
1150Predicate<DependencyObject> cancelPredicate,