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

The Archive Base Latest Questions

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

A contractor where I work is using extension methods to implement CRUD on well-known

  • 0

A contractor where I work is using extension methods to implement CRUD on well-known internal classes that we own. I say it is better to use normal inheritance over extension methods for the following reasons.

  • Using extension methods obfuscates, hides & confuses the source of the CRUD methods.
  • I assume extension methods make heavy use of reflection (which is slower).

His logic is, “It’s compiled, so it’s fast.” Maybe I’m wrong…but just because it is compiled doesn’t mean it doesn’t use reflection, nor does it mean it is faster than normal inheritance.

So my questions are:

  1. How do extension methods work under-the-hood?
  2. Is it better to use inheritance or extension methods on WELL-KNOWN classes that you OWN?
  • 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-28T06:53:37+00:00Added an answer on May 28, 2026 at 6:53 am

    How do extension methods work under-the-hood?

    They’re just static methods; the compiler rewrites calls like myObject.MyExtensionMethod() to MyExtensionClass.MyExtensionMethod(myObject).

    Is it better to use inheretance or extension methods on WELL-KNOWN classes that you OWN?

    There’s not single answer to this question, it all depends on the context. But usually extension methods are most useful in those cases:

    • you don’t own the code for the extended type
    • the method targets an interface and will be the same for all implementations of this interface (e.g. IEnumerable<T> and Linq extension methods)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I work for a government contractor that is really picky about what software gets
I am doing short-term contract work for a company that is trying to implement
I have a request for some contract work from an organization that uses Excel
I was of the opinion that virtualization doesnt work in the super class constructor
I'm generating code in a visual studio extension using CodeDom and plain code strings.
I need to implement Sign Sign Out in Java using Spring Security. What CAS
I am using PHP 5.2.14 at work, so there is no namespace option for
I am using WPF and an MVVM pattern. All the comboboxes that are bound
I have started using Ninject 2 (downloaded from Github yesterday including the MVC extension
Currently I'm trying to understand dependency injection better and I'm using asp.net MVC to

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.