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

The Archive Base Latest Questions

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

I have a C# VS10 project. I want its part to be pure C.

  • 0

I have a C# VS10 project. I want its part to be pure C. So I will have pure C library and A C# file that will have part with C code calling that pure Lib.

So I’ll have C part of code – not precompiled DLL but C code and C# code files. So is it possible to have inside one C# file C code like we have C code inside C++ code?

like Inline C code inside C#…

(I know it can sound strange but I really need it)

Is it possible? Will I have posebilety to pass data from that C part to 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-15T19:48:33+00:00Added an answer on May 15, 2026 at 7:48 pm

    There’s a CIL backend for gcc and a few other attempts to build C to CIL compilers. These will produce standard .Net libraries which can be called from C#, but they will be in separate projects. (You’d need to compile the C project into a library and reference it – although you could later merge them into a single assembly if required.) Unfortunately the tools available for C to CIL development are almost severely lacking, so I’d question whether it’s worthwhile rather than just wrapping it up with p/invoke. You’re also going to get a performance slowdown using it, which is half the reason to use p/invoke rather than writing managed code anyway.

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

Sidebar

Related Questions

I'm doing a project with a couple of other guys who have vs10, will
I have made a new Excel 2010 Add-in project, with VS10. When I run
I'm working from VS10 and have a master page that loads jQuery via: <script
Have written all the code in a silverlight class library (dll) and linked this
I am making some project using SFML. I have downloaded library from their official
Usually I code C# in VS10, but I have to code a small program
I have started an MVC 3 template project in VS10 and modified global.asax.cs as
I inherited a project that uses MvcMiniProfiler and now I have to go in
I have a Code folder in my asp.net mvc web project, I added a
I'm using VS10 and C# and I've encountered a weird problem. I have 2

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.