• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

What is the difference between those delegate parameters?


what is the difference between those 2 parameter:

both parameter give the the class object to work with its fields. What do you think?
public delegate bool IsNewSummaryDelegate(Action<Summary> summary);
public delegate bool IsNewSummaryDelegate(Summary sumamry);

Open in new window

  • 2
1 Solution
Anurag AgarwalPython DeveloperCommented:
Can you please give the defination of "Action", As it seems to be a user defined class object.

Anurag AgarwalPython DeveloperCommented:
Apologies for the first reply.. I replied in hurry..

The first method accepts a argument Action which means - It is accepting a method that takes single parameter of Type Summary.

The second method is accepting a Summary type object.

For more information visit the following link


MSFanboyAuthor Commented:
damn i was lazy could have browsed for myself :P
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now