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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:28:11+00:00 2026-05-11T06:28:11+00:00

There are MANY overloads to UpdateModel in the ASP.NET MVC controller class. Some of

  • 0

There are MANY overloads to UpdateModel in the ASP.NET MVC controller class.

Some of them are generic, and some aren’t.

Obviously I want to use the generic version but I don’t see what it actually does for me? Isn’t UpdateModel just a way to populate the properties using reflection.

So what’s the difference between this:

        UpdateModel<ContestModel>(model); 

vs.

        UpdateModel(model); 

Is reflection just a bit faster if it knows the type – or is there another reason?

  • 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-11T06:28:12+00:00Added an answer on May 11, 2026 at 6:28 am

    There does not exist any UpdateModel overload without the generic type signature. What you are seeing, is how smart the compiler is. When calling a method with a generic signature and one of the parameters are that same generic type, the compiler infers the type for you.

    In other words, those two examples you posted, are exactly the same in the eyes of the compiler.

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

Sidebar

Related Questions

There were many questions about C++ template classes which contain static member variables, as
There are many errors here in SO, but this scenario I think its different.
There are many similar questions, but I didn't find one that gets straight to
There are many similar questions, however they don't answer the problem of a url
There are many services available for delivering content to users. I am looking for
There are many many posts and an infinite number of questions on how to
There are many questions like this but I can't find one that seems to
There are many threads and samples out there about typeahead ( https://gist.github.com/1866739 ) and
there are many articles for window and tab close detection, however, since the newest
There are many conflicting statements around. What is the best way to get the

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.