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

  • Home
  • SEARCH
  • 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 80493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:18:41+00:00 2026-05-10T21:18:41+00:00

I just came over this syntax in some of the questions in this forum,

  • 0

I just came over this syntax in some of the questions in this forum, but Google and any other searchengine tends to block out anything but letters and number in the search so it is impossible to search out ‘=>’.

So can anyone tell me what it is and how it is used?

  • 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. 2026-05-10T21:18:41+00:00Added an answer on May 10, 2026 at 9:18 pm

    It’s the lambda operator.

    From C# 3 to C# 5, this was only used for lambda expressions. These are basically a shorter form of the anonymous methods introduced in C# 2, but can also be converted into expression trees.

    As an example:

    Func<Person, string> nameProjection = p => p.Name; 

    is equivalent to:

    Func<Person, string> nameProjection = delegate (Person p) { return p.Name; }; 

    In both cases you’re creating a delegate with a Person parameter, returning that person’s name (as a string).

    In C# 6 the same syntax is used for expression-bodied members, e.g.

    // Expression-bodied property public int IsValid => name != null && id != -1;  // Expression-bodied method public int GetHashCode() => id.GetHashCode(); 

    See also:

    • What’s the difference between anonymous methods (C# 2.0) and lambda expressions (C# 3.0)
    • What is a Lambda?
    • C# Lambda expression, why should I use this?

    (And indeed many similar questions – try the lambda and lambda-expressions tags.)

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

Sidebar

Ask A Question

Stats

  • Questions 59k
  • Answers 59k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Neither. It's application/rss+xml http://www.rssboard.org/rss-mime-type-application.txt May 11, 2026 at 9:01 am
  • added an answer Have a look at the System.Diagnostics namespace. Lots of goodies… May 11, 2026 at 9:00 am
  • added an answer Looking at your revised .INI file, it looks right on.… May 11, 2026 at 9:00 am

Related Questions

I just came over this syntax in some of the questions in this forum,
I just came across an interesting situation in JavaScript. I have a class with
I just came across this code and a few Google searches turn up no
I just came onto a project with a pretty huge code base. I'm mostly
I just came across this question about initializing local variables. Many of the answers
I just came across this idiom in some open-source Python, and I choked on
I just came across the question - is the access of an object safely
I just came across a C++ SDK that makes heavy use of this really
I just bought Visual Studio 2008 Professional and it came with SQL Server 2005
I just played with Java file system API, and came down with the following

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.