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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T08:18:23+00:00 2026-05-29T08:18:23+00:00

I have been working in C# for quite some time but come around this

  • 0

I have been working in C# for quite some time but come around this perennial question with colleagues now and then.

The question is: In an inherited class set — when calling a method should we use keywords ‘base.methodname and this.methodname’… irrespective of whether it is a overridden method or not?

My answer is: YES — its a good practice -use it because that is why those were created for.

Detailed explanation: Moreover the code is likely to undergo changes in terms of logic and maybe some IF-ELSE like conditions may come-in at a later date. So at that time, the developer has to be compelled to revisit each line of code and ensure that he/she makes the right choice of which method is being called — base.methodname() or this.methodname() ELSE the .NET framework will call the DEFAULT (i think its base.methodname()) and the entire logic can go for a toss.

What do other C# programmers think about it?

  • 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-29T08:18:23+00:00Added an answer on May 29, 2026 at 8:18 am

    Whether or not you use “this.” is a matter of opinion. Some like it because it is clear that you are calling something class level, others feel it is redundant noise.

    As for base – in my opinion you should only explicitly say “base.” if you want to call the base method explicitly and not an overridden method in the current class. Quite often the only place you should even see it is in the overridden method itself.

    Don’t call base just because it is the implementation in the base class that will be called. It is not meant to be a way of saying “I know the actual implementation is in the base class”, it is meant to be a way of saying “specifically do not call the implementation in this class, call the base one”. To use it in any other way partly defeats the point of inheritance.

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

Sidebar

Related Questions

I have been working on this for some time now and just cant quite
I have been working on XNA for quite some time, but was asked to
I have been working on this problem for quite some time and can't figure
I have been working with managing agile teams for quite some time. Now I'm
I've been working with C# and .NET for quite some time now, but am
I've been working with branches for quite some time now, but I always used
I have been using svn for quite some time now. But now I have
Have been working on this question for a couple hours and have come close
I've been working on my own implementation of ECMAScript for quite some time now.
Okay, I have been working for quite some time on a website for a

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.