Table of Contents

Class PredicateExtensions

Namespace
Existential
Assembly
Existential.Net.dll

Provides an extension method to create a new System.Predicate<T> that's the negation of the one on which the method was called.

public static class PredicateExtensions
Inheritance
System.Object
PredicateExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

Methods

Negate<T>(Predicate<T>)

Returns a predicate that's the negation of the predicate provided as parameter inPredicate.

public static Predicate<T> Negate<T>(this Predicate<T> inPredicate)

Parameters

inPredicate System.Predicate<T>

A predicate that will be converted into one that negates it.

Returns

System.Predicate<T>

A predicate wil be returned that's the negation of the predicate provided as parameter inPredicate.

Type Parameters

T

The type of the value to be assessed by the predicate.

Exceptions

System.Exception

It's possible that the System.Predicate<T> inPredicate may throw an exception when invoked.