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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:35:12+00:00 2026-05-23T18:35:12+00:00

I work on developing application using winforms in C#. While developing, I want to

  • 0

I work on developing application using winforms in C#. While developing, I want to use many small methods e.g. resetPerticularCombo(), so the code remains as clean as possible. But the problem is making methods for 3-5 lines of code could lead to too many method calls, I have heard that while compiling Visual Studio 2008 takes care of this thing using code inlining.

My query is that, should I rely on this feature and go ahead with the usage of small helper methods or I should use inlining myself?

  • 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-23T18:35:13+00:00Added an answer on May 23, 2026 at 6:35 pm

    You shouldn’t worry about having large number of method calls until you’ve proved that it’s a problem. It’s very unlikely (IMO) that this will actually cause an issue, and if it gives you more readable code, that’s the most important thing.

    But test the performance all the time to see whether it’s acceptable. Find out where the bottleneck in your code is, whether by profiling or other techniques, and consider micro-optimizing just at the points where it’ll make the most difference.

    In my experience micro-optimizing at the “use fewer methods” sort of level is almost always pointless compared with higher level changes (e.g. going from a list lookup to a dictionary lookup, etc).

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

Sidebar

Related Questions

I am developing web application using asp.net, but i want to work on asp
I have 5 years of work experience in developing WEB and WIN application using
I'm developing an application on two different machines (home and work) and while the
I'm developing a small web application using Microsoft Silverlight 3. I'm using Microsoft Expressin
Developing an application using SWT to work in both Linux and Windows. I created
Background: I'm developing a WinForms application using C# with an OpenFileDialog & FileBrowserDialog that
I'm developing a desktop application using Java. I want to put an icon (with
I'm developing an application to work on S40 platform for Nokia devices using Netbeans
I'm developing an application to achieve work in background through a Windows Service. I've
Hi I am developing an application that needs to work with a complex domain

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.