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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / padmaja

The code which is under control of clr is comes under
managed code.The code which is not comes under clr is
unmaged code.All IL code is managed code.com components
comes under unmanaged code.

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More ASP.NET Interview Questions

I am using a range validator and want to use dd mm yyyy format for accepting dates. I get a fairly generic "can't do that" type exception when I use this format for setting the minValue or maxValue properties for the range validator. How can I force it to accept my format?

1 Answers   FutureTech,


Explain the difference between overriding and overloading?

0 Answers  


What methods are fired during the page load?

2 Answers  


What is marshalling ? Is it a part of asp.net ?

0 Answers   MCN Solutions,


When we do partial refresh of a page using update panel how server knows it(which event occurs?)

2 Answers  






How can we prepairing Interview

0 Answers   ITcom, TCS,


How many types of validation controls are provided by ASP.NET?

8 Answers  


Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?

0 Answers   Siebel Systems,


I have one application, one user purchase some products in my application? and another person came he is also purchase some products?how can we identify which user purchase which items? my answer is by using session id? but i dont know how? can u give me programming for that?

1 Answers  


whats the best method to cal id in javascript

2 Answers  


Explain difference between friend and protected friend?

0 Answers  


Explain security types in asp.net?

0 Answers  


Categories