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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:16:49+00:00 2026-05-27T22:16:49+00:00

I did go through some MSDN documentations . I found extension methods also documented

  • 0

I did go through some MSDN documentations. I found extension methods also documented there.

I didn’t understand, why these base class libraries have extension methods? when they could have been added to that particular class library itself?

what is the advantage? difference ?

  • 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-27T22:16:50+00:00Added an answer on May 27, 2026 at 10:16 pm

    Extension methods as name suggests extends the functionality or usability of the target type.

    1. These methods can be added later (than type authoring time) after type has already been published.
    2. They can be written by different group of people
    3. Extension methods can target interfaces. (Alternative would have been to have a common base type having these methods or re-implementing them in each type)
    4. Different people can extend the same type differently as per their needs.

    Correct use of extension methods can remove orthogonal clutter from the actual type definition/implementation (instead focusing of the core functionality of the type within type definition).

    Take example of LINQ – by providing extension methods to IEnumerable, it could target vast number of already published types (and vast number of types that may written in future); it has separated orthogonal concern such as querying the type from the actual type.

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

Sidebar

Related Questions

I am working my way through some Objective-C code that I did not write
I am looking through some old code and found a piece that i cant'
I'm trying to refactor some code to achieve more throughput through parallelism. I did
I was browsing through a webpage which had some c FAQ's, I found this
I'm working through some javascript examples, and I just did this one: <!DOCTYPE html
We all know how to use <ctrl>-R to reverse search through history, but did
Did Microsoft abandon support for Windows Presentation Foundation (WPF) on Visual Studio 2005? There
Did anyone try that feature and has some feedback? Or Does anyone know some
I was reading through introductory articles about windows communication foundation on MSDN and it
I am going through some exam questions for the 70-536 exam and an actual

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.