118 references to Predicate
mscorlib (37)
system\array.cs (11)
1089
public static bool Exists<T>(T[] array,
Predicate
<T> match) {
1093
public static T Find<T>(T[] array,
Predicate
<T> match) {
1111
public static T[] FindAll<T>(T[] array,
Predicate
<T> match) {
1130
public static int FindIndex<T>(T[] array,
Predicate
<T> match) {
1140
public static int FindIndex<T>(T[] array, int startIndex,
Predicate
<T> match) {
1150
public static int FindIndex<T>(T[] array, int startIndex, int count,
Predicate
<T> match) {
1176
public static T FindLast<T>(T[] array,
Predicate
<T> match) {
1194
public static int FindLastIndex<T>(T[] array,
Predicate
<T> match) {
1203
public static int FindLastIndex<T>(T[] array, int startIndex,
Predicate
<T> match) {
1212
public static int FindLastIndex<T>(T[] array, int startIndex, int count,
Predicate
<T> match) {
1903
public static bool TrueForAll<T>(T[] array,
Predicate
<T> match) {
system\collections\generic\list.cs (12)
416
public bool Exists(
Predicate
<T> match) {
420
public T Find(
Predicate
<T> match) {
434
public List<T> FindAll(
Predicate
<T> match) {
449
public int FindIndex(
Predicate
<T> match) {
455
public int FindIndex(int startIndex,
Predicate
<T> match) {
461
public int FindIndex(int startIndex, int count,
Predicate
<T> match) {
484
public T FindLast(
Predicate
<T> match) {
498
public int FindLastIndex(
Predicate
<T> match) {
504
public int FindLastIndex(int startIndex,
Predicate
<T> match) {
510
public int FindLastIndex(int startIndex, int count,
Predicate
<T> match) {
842
public int RemoveAll(
Predicate
<T> match) {
1023
public bool TrueForAll(
Predicate
<T> match) {
system\diagnostics\contracts\contracts.cs (4)
653
public static bool ForAll(int fromInclusive, int toExclusive,
Predicate
<int> predicate)
684
public static bool ForAll<T>(IEnumerable<T> collection,
Predicate
<T> predicate)
715
public static bool Exists(int fromInclusive, int toExclusive,
Predicate
<int> predicate)
745
public static bool Exists<T>(IEnumerable<T> collection,
Predicate
<T> predicate)
system\security\claims\ClaimsIdentity.cs (3)
760
public virtual IEnumerable<Claim> FindAll(
Predicate
<Claim> match)
818
public virtual bool HasClaim(
Predicate
<Claim> match)
881
public virtual Claim FindFirst(
Predicate
<Claim> match)
system\security\claims\ClaimsPrincipal.cs (3)
548
public virtual IEnumerable<Claim> FindAll(
Predicate
<Claim> match)
611
public virtual Claim FindFirst(
Predicate
<Claim> match)
674
public virtual bool HasClaim(
Predicate
<Claim> match)
system\threading\Tasks\ProducerConsumerQueues.cs (2)
325
public bool TryDequeueIf(
Predicate
<T> predicate, out T result)
357
private bool TryDequeueIfSlow(
Predicate
<T> predicate, ref Segment segment, ref T[] array, out T result)
system\threading\Tasks\Task.cs (2)
2266
private readonly static
Predicate
<Task> s_IsExceptionObservedByParentPredicate = new Predicate<Task>((t) => { return t.IsExceptionObservedByParent; });
4863
private readonly static
Predicate
<object> s_IsTaskContinuationNullPredicate =
PresentationFramework (20)
src\Framework\MS\Internal\Data\CollectionViewProxy.cs (1)
103
public override
Predicate
<object> Filter
src\Framework\MS\Internal\Data\EnumerableCollectionView.cs (1)
115
public override
Predicate
<object> Filter
src\Framework\MS\Internal\Data\IndexedEnumerable.cs (5)
62
internal IndexedEnumerable(IEnumerable collection,
Predicate
<object> filterCallback)
377
private
Predicate
<object> FilterCallback
725
private
Predicate
<object> _filterCallback;
735
public FilteredEnumerator(IndexedEnumerable indexedEnumerable, IEnumerable enumerable,
Predicate
<object> filterCallback)
793
Predicate
<object> _filterCallback;
src\Framework\MS\Internal\Helper.cs (1)
1450
Predicate
<DependencyObject> predicate)
src\Framework\System\Windows\Controls\ItemCollection.cs (3)
652
public override
Predicate
<object> Filter
2329
private
Predicate
<object> MyFilter
2508
public
Predicate
<object> _filter; // storage for Filter when _collectionView is not available
src\Framework\System\Windows\Data\CollectionView.cs (2)
225
public virtual
Predicate
<object> Filter
2183
Predicate
<object> _filter;
src\Framework\System\Windows\Data\CollectionViewSource.cs (4)
1007
Predicate
<object> filter;
1123
Predicate
<object> FilterWrapper
1238
public
Predicate
<object> FilterWrapper
1257
Predicate
<object> _filterWrapper;
src\Framework\System\Windows\Data\ListCollectionView.cs (3)
441
public override
Predicate
<object> Filter
2341
protected
Predicate
<object> ActiveFilter
3353
private
Predicate
<object> _activeFilter;
System (3)
compmod\system\collections\generic\sortedset.cs (1)
1639
public int RemoveWhere(
Predicate
<T> match) {
services\monitoring\system\diagnosticts\ProcessManager.cs (2)
1063
public static ProcessInfo[] GetProcessInfos(
Predicate
<int> processIdFilter = null) {
1133
static ProcessInfo[] GetProcessInfos(IntPtr dataPtr,
Predicate
<int> processIdFilter) {
System.Activities (1)
System\Activities\Validation\ValidationHelper.cs (1)
84
Predicate
<RuntimeArgument> checkIfArgumentIsBound = new Predicate<RuntimeArgument>(localArgument => CheckIfArgumentIsBound(localArgument, inputs));
System.Activities.Core.Presentation (4)
System\Activities\Core\Presentation\DynamicActivityPropertyChooser.xaml.cs (1)
52
public
Predicate
<DynamicActivityProperty> Filter
System\Activities\Core\Presentation\DynamicActivityPropertyChooserViewModel.cs (2)
18
private
Predicate
<DynamicActivityProperty> filter;
35
public
Predicate
<DynamicActivityProperty> Filter
System\Activities\Core\Presentation\FlowchartDesigner.Container.cs (1)
526
FlowNode CloneFlowElement(FlowNode flowElement,
Predicate
<AttachableMemberIdentifier> allowAttachableProperty = null)
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\BinaryHeap.cs (2)
102
public ICollection<KeyValuePair<TKey, TValue>> RemoveAll(
Predicate
<KeyValuePair<TKey, TValue>> func)
152
public ICollection<KeyValuePair<TKey, TValue>> TakeWhile(
Predicate
<TKey> func)
System.Activities.Presentation (18)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (1)
582
internal static ModelItem FindParent(this ModelItem item,
Predicate
<ModelItem> predicate)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelService.cs (1)
124
public abstract IEnumerable<ModelItem> Find(ModelItem startingItem,
Predicate
<Type> match);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelServiceImpl.cs (1)
38
public override IEnumerable<ModelItem> Find(ModelItem startingItem,
Predicate
<Type> match)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (10)
392
internal static IEnumerable<ModelItem> Find(ModelItem startingItem,
Predicate
<ModelItem> matcher, bool skipCollapsedAndUnrootable)
402
Predicate
<ModelItem> shouldSearchThroughProperties = (currentModelItem) => (!skipCollapsedAndUnrootable)
438
private static List<ModelItem> GetNeighbors(ModelItem currentModelItem,
Predicate
<ModelItem> extraShouldSearchThroughProperties)
515
internal static ModelItem FindFirst(ModelItem startingItem,
Predicate
<ModelItem> matcher)
520
internal static ModelItem FindFirst(ModelItem startingItem,
Predicate
<ModelItem> matcher,
Predicate
<ModelItem> extraShouldSearchThroughProperties)
862
internal static IList<ModelItem> DepthFirstSearch(ModelItem currentItem,
Predicate
<Type> filter,
Predicate
<ModelItem> shouldTraverseSubTree, bool preOrder)
870
private static void RecursiveDepthFirstSearch(ModelItem currentItem,
Predicate
<Type> filter,
Predicate
<ModelItem> shouldTraverseSubTree, IList<ModelItem> foundItems, HashSet<ModelItem> alreadyVisitedItems, bool preOrder)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelUtilities.cs (2)
78
internal static ModelItem ReverseFindFirst(ModelItem start,
Predicate
<ModelItem> matcher)
98
internal static void ReverseTraverse(ModelItem start,
Predicate
<ModelItem> shouldContinue)
System.Activities.Presentation\System\Activities\Presentation\View\Selection.cs (2)
60
public Selection(IEnumerable<ModelItem> selectedObjects,
Predicate
<ModelItem> match) {
103
public Selection(IEnumerable selectedObjects,
Predicate
<ModelItem> match) {
System.Activities.Presentation\System\Activities\Presentation\Xaml\ObjectToSourceLocationMapping.cs (1)
138
private static SourceLocation FindSrcLocation(Dictionary<object, SourceLocation> mapping,
Predicate
<object> predicate)
System.Core (1)
System\Collections\Generic\HashSet.cs (1)
872
public int RemoveWhere(
Predicate
<T> match) {
System.Data (24)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemExtensions.cs (1)
582
internal static ModelItem FindParent(this ModelItem item,
Predicate
<ModelItem> predicate)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelService.cs (1)
124
public abstract IEnumerable<ModelItem> Find(ModelItem startingItem,
Predicate
<Type> match);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelServiceImpl.cs (1)
38
public override IEnumerable<ModelItem> Find(ModelItem startingItem,
Predicate
<Type> match)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTreeManager.cs (10)
392
internal static IEnumerable<ModelItem> Find(ModelItem startingItem,
Predicate
<ModelItem> matcher, bool skipCollapsedAndUnrootable)
402
Predicate
<ModelItem> shouldSearchThroughProperties = (currentModelItem) => (!skipCollapsedAndUnrootable)
438
private static List<ModelItem> GetNeighbors(ModelItem currentModelItem,
Predicate
<ModelItem> extraShouldSearchThroughProperties)
515
internal static ModelItem FindFirst(ModelItem startingItem,
Predicate
<ModelItem> matcher)
520
internal static ModelItem FindFirst(ModelItem startingItem,
Predicate
<ModelItem> matcher,
Predicate
<ModelItem> extraShouldSearchThroughProperties)
862
internal static IList<ModelItem> DepthFirstSearch(ModelItem currentItem,
Predicate
<Type> filter,
Predicate
<ModelItem> shouldTraverseSubTree, bool preOrder)
870
private static void RecursiveDepthFirstSearch(ModelItem currentItem,
Predicate
<Type> filter,
Predicate
<ModelItem> shouldTraverseSubTree, IList<ModelItem> foundItems, HashSet<ModelItem> alreadyVisitedItems, bool preOrder)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelUtilities.cs (2)
78
internal static ModelItem ReverseFindFirst(ModelItem start,
Predicate
<ModelItem> matcher)
98
internal static void ReverseTraverse(ModelItem start,
Predicate
<ModelItem> shouldContinue)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\Selection.cs (2)
60
public Selection(IEnumerable<ModelItem> selectedObjects,
Predicate
<ModelItem> match) {
103
public Selection(IEnumerable selectedObjects,
Predicate
<ModelItem> match) {
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Xaml\ObjectToSourceLocationMapping.cs (1)
138
private static SourceLocation FindSrcLocation(Dictionary<object, SourceLocation> mapping,
Predicate
<object> predicate)
fx\src\data\System\Data\DataView.cs (6)
44
/// IFilter will allow LinqDataView to wrap <see cref='System.
Predicate
<DataRow>'/> instead of using a DataExpression
167
/// Allow construction of DataView with <see cref="System.
Predicate
<DataRow>"/> and <see cref="System.Comparison<DataRow>"/>
170
internal DataView(DataTable table, System.
Predicate
<DataRow> predicate, System.Comparison<DataRow> comparison, DataViewRowState RowState) {
382
internal System.
Predicate
<DataRow> RowPredicate {
396
internal readonly System.
Predicate
<DataRow> PredicateFilter;
399
internal RowPredicateFilter(System.
Predicate
<DataRow> predicate) {
System.Data.DataSetExtensions (1)
System\Data\LinqDataView.cs (1)
68
Predicate
<DataRow> predicate_system,
System.Data.Entity (3)
System\Data\Metadata\Edm\FilteredReadOnlyMetadataCollection.cs (3)
49
internal FilteredReadOnlyMetadataCollection(ReadOnlyMetadataCollection<TBase> collection,
Predicate
<TBase> predicate) : base(FilterCollection(collection, predicate))
62
private readonly
Predicate
<TBase> _predicate;
149
internal static List<TDerived> FilterCollection(ReadOnlyMetadataCollection<TBase> collection,
Predicate
<TBase> predicate)
System.Workflow.Runtime (2)
KeyedPriorityQueue.cs (2)
123
public V FindByPriority(P priority,
Predicate
<V> match)
170
private V Search(P priority, int i,
Predicate
<V> match)
WindowsBase (2)
Base\MS\Internal\GenericsInstances.cs (1)
32
private static
Predicate
<object> s_PM_Empty = new Predicate<object>(PredicateMethod);
Base\System\ComponentModel\ICollectionView.cs (1)
61
Predicate
<object> Filter{ get; set; }