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

  • Home
  • SEARCH
  • 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 424397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:16:33+00:00 2026-05-12T19:16:33+00:00

Is there any design reason for that (like the reason they gave up multi

  • 0

Is there any design reason for that (like the reason they gave up multi inheritance)?

or it just wasn’t important enough?

And same question applies for optional parameters in methods… this was already in the first version of vb.net… so it surely no laziness that cause MS not to allow optional parameters, probably architecture decision.. and it seems they had change of heart about that, because C# 4 is going to include that..

What was the decision and why did they give it up?

Edit:

Maybe readers didn’t fully understand me. I’m working lately on a calculation program (support numbers of any size, to the last digit), in which some methods are used millions of times per second.

Say I have a method called Add(int num), and this method is used quiet a lot with 1 as parameter (Add(1);), I’ve found out it is faster to implement a special method especially for one. And I don’t mean overloading – Writing a new method called AddOne, and literally copy the Add method into it, except that instead of using num I’m writing 1. This might seems horribly weird to you, but it’s actually faster.

(as much as ugly it is)

That made me wonder why C# doesn’t support manual inline which can be amazingly helpful here.

Edit 2:

I asked myself whether or not to add this. I’m very well familiar with the weirdness (and disadvantages) of choosing a platform such as dot net for such project, but I think dot net optimizations are more important than you think… especially features such as Any CPU etc.

  • 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-12T19:16:34+00:00Added an answer on May 12, 2026 at 7:16 pm

    To answer part of your question, see Eric Gunnerson’s blog post: Why doesn’t C# have an ‘inline’ keyword?

    A quote from his post:

    For C#, inlining happens at the JIT
    level, and the JIT generally makes a
    decent decision.

    EDIT: I’m not sure of the reason for delayed optional parameters support, however saying they “gave up” on it sounds as though they were expected to implement it based on our expectations of what other languages offered. I imagine it wasn’t high on their priority list and they had deadlines to get certain features out the door for each version. It probably didn’t rise in importance till now, especially since method overloading was an available alternative. Meanwhile we got generics (2.0), and the features that make LINQ possible etc. (3.0). I’m happy with the progression of the language; the aforementioned features are more important to me than getting support for optional parameters early on.

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

Sidebar

Related Questions

Are there any tools or plugins to design a Panel independently of a Form
Is there any plugins for Eclipse for portlet design and deployment? I have never
Are there any tools you would recommend for site architecture design and analysis? I've
Are there any good resources (books, authoritative guides, etc.) for design patterns or other
Is there any free or commercial component written in .NET (no COM interop) that
Is there any way to check whether a file is locked without using a
Is there any query which can return me the number of revisions made to
Is there any efficiency difference in an explicit vs implicit inner join? For example:
Is there any way to capture the MouseDown even from the .NET 2.0 TextBox
Is there any difference between int on_exit(void (*function)(int , void *), void *arg); and

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.