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 7508325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:39:39+00:00 2026-05-29T22:39:39+00:00

//ok Action<int> CallbackWithParam1 = delegate { }; //error CS1593: Delegate ‘System.Action<int>’ does not take

  • 0
//ok
Action<int> CallbackWithParam1 = delegate { };    

//error CS1593: Delegate 'System.Action<int>' does not take 0 arguments
Action<int> CallbackWithParam2 = () => { };   

Just wondered why the discrepancy really. :-/

  • 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-05-29T22:39:41+00:00Added an answer on May 29, 2026 at 10:39 pm

    Jared is of course correct. To add a couple more details:

    • Almost no one uses the “skip the parameter list” syntax.
    • We have no scenario for lambdas that requires that feature.
    • The feature complicates type inference and overload resolution, and makes it more likely that both will fail.
    • What syntax would you like for the feature? Action<int> c = => {}; ??? I have no desire whatsoever to make => into a unary prefix operator.

    So on the one hand we have the list of pros:

    • Lambdas gain consistency with an unnecessary C# 2.0 feature that hardly anyone knows about or uses — a feature that frankly, we wish we’d never done in the first place

    and the cons:

    • implementation complicates already-complex type inference and overload resolution algorithms
    • feature leads to more bug possibilities for users with no corresponding gain in representational power.
    • no obviously nice syntax

    If you were given that list of pros and cons, what would you do? I hope “implement the feature” would not be your choice; it was not ours.

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

Sidebar

Related Questions

My Controller Action accepts int id. What to do when calling from View ActionLink
I have an overloaded action in my Controller: public ActionResult AssignList(int id) { ...
The following code is in the /Courses/Detail action: [AcceptVerbs(GET)] public ActionResult Detail(int id) {
I have two ways to program the same functionality. Method 1: doTheWork(int action) {
consider this class: class baseController { /* Action handler array*/ std::unordered_map<unsigned int, baseController*> actionControllers;
I have a simple web-site. Almost every action takes int toonId as an argument
i have the following code: @Override public boolean dispatchKeyEvent(KeyEvent event) { int action =
Here's my table schema [dbo].[Action_History]( [ActionID] [int] IDENTITY(1,1) NOT NULL, [objectID] [int] NOT NULL,
I have a controller action like: Public ActionResult MyAction(int[] stuff){} I make a JSON
I have two database tables with the following structure: actions: action_id int(11) primary key

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.