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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:50:24+00:00 2026-05-14T04:50:24+00:00

can someone please tell why , Great Microsoft that created C# language and now

  • 0

can someone please tell why , Great Microsoft that created C# language and now we’re in C# 4.0 ,
dont have an important feature that C++\CLI has !!,which is to directly compile and link with un-managed c++ ??

  • 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-14T04:50:24+00:00Added an answer on May 14, 2026 at 4:50 am

    C# is a different language. It doesn’t have to include all the features of any other language in order to be useful to its user community. In particular, the emphasis in C# 4.0 has been to move in exactly the opposite direction to C++ by absorbing features from dynamic (scripting) languages instead. Also where C# shares features with C/C++ (e.g. pointers) they are segregated in a special “unsafe” mode to indicate that they are usually undesirable.

    Furthermore, as .NET is a multi-language platform, it isn’t necessary for every language to include all the features of every other language in order for them to interoperate. They can call each other very easily anyway.

    Note that C++ and C# fundamentally disagree with each other on the meanings of many keywords and operators. For example:

    class C { }
    

    (Leaving aside whether this should have a semi colon (optionally preceded by a comma-separated list of variable declarations) after it or not, which is going to be tricky to unify.)

    Should C be a native C++ class that can be allocated with unmanaged memory and passed to other native code without having to be pinned in the GC? Or should it be a .NET class that can be passed to other .NET libraries?

    Or how about:

    C c;
    

    Should that declare a reference to C, or create an instance of C?

    Or how about:

    new C()
    

    Should that allocate on the native C++ heap or on the GC .NET heap?

    In C++/CLI all these questions have to be resolved. Learning from the mess that occurred in previous versions, Microsoft clearly separated the two worlds within C++/CLI, by using different keywords, such as gcnew instead of new.

    If you attempted to allow C# to compile C++ as it is today, you’d have to rename many operations that are already fundamental to C#, breaking compatibility with all existing C# programs.

    What would be the point?

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

Sidebar

Related Questions

I have developed a Jersey Resource class. Can someone please tell me how can
Can someone please tell me how to use MaxBackupIndex in DailyRollingFileAppender.I know that the
can someone please tell me what in my ApplicationContext I have to use beans:bean
Can someone please tell me why this doesn't work? I'm trying to show and
Can someone please tell me how I can implement the following line of pseudo-code.
Can someone please tell me ehy in IE 6 div is not in center.
I can't seem to get this text to align vertically. Can someone please tell
I'm new to the world of Mac programming. Can someone please tell me what
Could someone please tell me which objects types can be tested using Regular Expressions
Can someone tell me please why the following example work in Firefox but not

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.