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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:28:09+00:00 2026-05-12T18:28:09+00:00

Based on my understanding , i interpret the meaning of Func delegate as follows.Please

  • 0

Based on my understanding , i interpret the meaning of Func delegate as follows.Please correct them as and when it is needed.

Declaration : Func<int> dg ;

1. Could i interpret it as “a Delegate
pointing to a method that returns an
integer?”.

Declaration : Func<int,int> delg1=r=>2*r;

*2. Could i interpret it as ” ‘r’ is a lambda expression that itself is a parameter of
an integer type being evaluated as ‘2 * r’ and returns an int?
.*

Comparison : Delegate and lambda expression

3. if both Delegates and lambdas are working as function poiinters ,Where do there differ?.

Comparison : Are the following two declarations equal?

decl 1 : Func<int,int> fn=(r)=>45*r;

decl 2 : Expression<Func<int,int>> ex = (r) => r * 10;

4. if both of the above mentioned constructs are serving for the same purpose ,Where do there differ?.

  • 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-12T18:28:09+00:00Added an answer on May 12, 2026 at 6:28 pm

    1) Yes, but it would be more precise and accurate to say “a delegate referring to a method that takes no arguments and returns an integer”.

    2) No. “r” is not a lambda expression. “r” is used twice, first to declare a formal parameter of a lambda expression, and second as part of the body of that lambda expression. But “r” is not the lambda expression. The lambda expression is “r=>2*r”

    3) Lambdas and delegates are different things. A lambda is the abstract notion of “a function that does some thing”. A delegate type is the abstract notion of the type of things which are methods that take and return certain types. A particular delegate is a reference to such a method. A lambda is convertible to a compatible delegate type, and if you do so, at runtime, you get a delegate instance. But a lambda is convertible to other things as well, like an expression tree.

    4) They do not serve the same purpose. The expression tree is an object which represents the computation mentioned in the lambda. The delegate is an object which actually performs the computation mentioned in the lambda.

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

Sidebar

Related Questions

Based on my understanding, both of them essentially do the same thing (lets us
Does Gmail support RFC 821? I know it is using ESMTP. Based on understanding
Based on my understanding of the Java language, static variables can be initialized in
Normally ( Based on my understanding ) i have to follow a lot of
My understanding is that Java's implementation of regular expressions is based on Perl's. However,
I'm having difficulty understanding variable shadowing in JavaScript based on scopes. Consider this small
This question probably is based on my lack of understanding of the role of
I've been working with some ExternalDataExchange - based communication in WF recently. My understanding
Based on my understanding, SerializableAttribute provides no compile time checks, as it's all done
Based on my understanding, only I/O in NodeJS is non-blocking. If we do, for

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.