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 are the ways to sending the data in ASP.NET page?

563


What is a web farm?

594


Give an example of cookie abuse.

594


What is enableviewstate in asp net?

525


How can you enable impersonation in the web.config file?

558






What are the page life cycle events?

493


What is asp.net master page?

557


Is session stored in browser?

526


What are the differences between application object and session object?

492


How to use multiple scriptmanager controls in a web page?

601


How many types of file extensions for razor views in ASP.Net MVC?

574


What is directive in asp net?

539


Explain the difference between the web config and machine config.

623


Explain the main function of razor in asp.net? : asp.net mvc

585


Which tool you have done?

1478