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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T18:53:04+00:00 2026-06-18T18:53:04+00:00

Working with Asp.Net MVC for quite some time now, but I am stuck on

  • 0

Working with Asp.Net MVC for quite some time now, but I am stuck on a very strange question. Everytime I create a model I make use of lambda expressions like:

@Html.EditorFor(model=>model.SomeProperty)

Why is Asp.Net MVC using such type of an architecture?

Why cant I just pass in a property using reflection?

Is using lambda expression faster? Because under the hoods what I think is that to get the property name it must be using the reflection.

  • 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-18T18:53:06+00:00Added an answer on June 18, 2026 at 6:53 pm

    Lambda > Reflection

    Using lambdas you get:

    • Design-time, strongly-typed property selectors.
    • Refactoring made easy using built-in Visual Studio refactoring tools.

    Thanks to lambdas, any API can know a lot of things from the property selector:

    • The property type.
    • The object of the property.
    • Inspect property metadata.

    In addition, check the method signature (http://msdn.microsoft.com/en-us/library/ee402949(v=vs.108).aspx):

    public static MvcHtmlString EditorFor<TModel, TValue>(
        this HtmlHelper<TModel> html,
        Expression<Func<TModel, TValue>> expression
    )
    

    It’s an expression tree rather than a regular lambda. This allows MVC (and again, any API) to manipulate the expression in order to add more behaviors prior to invoking it during run-time, without reflection emit.

    Learn more about expression trees:

    • http://msdn.microsoft.com/en-us/library/bb397951.aspx
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

working on asp.net MVC from quite some time now today stuck on a theoretical
Now I'm working with asp.net mvc, it's good framework. But, in future, I want
I've been working with asp.net MVC and am still not very good at it.
I've been working with ASP.NET(WebForm) for a while, but new to ASP.NET MVC. From
I am working on asp.net mvc project which is quite large in size. I
I've been working quite extensively with ASP.NET MVC and I find it extremely useful
I have been working with ASP.NET MVC for a couple of months now and
I´m working with ASP.NET MVC and went through some code and the syntax below
I'm working with ASP.NET MVC 4 in Visual Studio 2010 for the first time,
I've been working on an ASP.NET MVC project for about 8 months now. 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.