Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8842315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:55:33+00:00 2026-06-14T10:55:33+00:00

A Predicate is just a Func which returns a boolean: Predicate<T1, T2, T3, …,Tn>

  • 0

A Predicate is just a Func which returns a boolean:

Predicate<T1, T2, T3, ...,Tn> = Func<T1, T2, T3, ...,Tn, bool> 

And an Action is just a Func which doesn’t return a value:

Action<T1, T2, T3, ...,Tn> = Func<T1, T2, T3, ...,Tn, void>

My question: Do Predicates or Actions have any additional properties or qualities which differentiate them to Funcs?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:55:34+00:00Added an answer on June 14, 2026 at 10:55 am

    Nope. None whatsoever. They are all just delegate types. The only distinction is that some methods take things like Predicate<T> (mainly older APIs), and some take the Func<> / Action<>. One advantage of the Func<> / Action<> approach is that the signature is obvious from the name (i.e. a Func<int,float,string> takes an int and a float, and returns a string), but that’s it. And even if the delegates have the same signature, they are not directly interchangeable (you can’t pass a Func<T,bool> instance into a method that takes Predicate<T>).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just invented a stupid little helper function: def has_one(seq, predicate=bool): Return whether there
I am very new to using predicates and just learned how to write: Predicate<int>
I am trying to create a PredicateBuilder<T> class which wraps an Expression<Func<T, bool>> and
I have a C# method which accepts a Predicate<Foo> and returns a list of
I'm having an issue with SWI-Prolog's delete/3 predicate. The easiest way is just a
I need a predicate routing which gives all the cities between start & end.
I Have a quite simple question that I just cant figure out. The method
I'm trying to get array of just specifying key's value in following array obj.
This is just a curiosity question I was wondering if anyone had a good
This is a little more complicated then just NSPredicate *predicate = [NSPredicate predicateWithFormat:@startDate >=

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.