TYPE
Predicate<T>
Delegate accepting a single T and returning bool.
Formal Syntax & Structure
csharp syntaxcsharp
Predicate<T>Working Example
Example Snippetcsharp
using System;Predicate<int> positive = n => n > 0;Console.WriteLine(positive(3));Delegate accepting a single T and returning bool.
Predicate<T>using System;Predicate<int> positive = n => n > 0;Console.WriteLine(positive(3));