How to write unmanaged code and how to identify whether the
code is managed / unmanaged ?

Answer Posted / narayansahu

you can only write unmanaged code in c# not in vb.net
you can only call unmanaged code in vb.net. calling and
writing unmanaged code are different things.

To identify whether the code is managed or not open the
file in ildasm in VS.Net Command prompt.
Also you can use a .Net tool called dumpbin, which can be
used to check the headers.

or open the dll in notepad and check for "V e r s i o n".
If you find that, it is managed assembly.

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Classic ASP and ASP.Net?

764


What is the difference between cache and cookies?

707


What is protected configuration?

823


How information about the user's locale can be accessed?

783


How do you sign out from forms authentication?

742


Define a web service in .net?

810


What is asp.net mvc5? : Asp.Net MVC

754


What is server side in asp.net?

694


What is comparevalidator?

709


What are the two types of web pages?

696


What are the modes of updation in an updatepanel? What are triggers of an updatepanel?

696


What is Web API?

827


What is enableviewstate?

723


Difference between overriding and overloading?

896


Does google crawl redirects?

706