what is managed code and managed data?

Answers were Sorted based on User's Feedback



what is managed code and managed data?..

Answer / pravin more

The Code Which Gets Execuated Under CLR is called Managed
Code.And Code Which Execuated Under O.S Is Called Unmanaged
Code.---Pravin More

Is This Answer Correct ?    2 Yes 0 No

what is managed code and managed data?..

Answer / jayakumar

Managed code is code that is written to target the services
of the Common Language Runtime.
In order to target these services, the code must provide a
minimum level of information (metadata) to the runtime.
All C#, Visual Basic .NET, and JScript .NET code is managed
by default.
Visual Studio .NET C++ code is not managed by default, but
the compiler can produce managed code by specifying a
command-line switch (/CLR).
Closely related to managed code is managed data--data that
is allocated and de- allocated by the Common Language
Runtime's garbage collector. C#, Visual Basic, and JScript
.NET data is managed by default.
C# data can, however, be marked as unmanaged through the use
of special keywords.
Visual Studio .NET C++ data is unmanaged by default (even
when using the /CLR switch), but when using Managed
Extensions for C++, a class can be marked as managed using
the __gc keyword. As the name suggests, this means that the
memory for instances of the class is managed by the garbage
collector.
In addition, the class becomes a full participating member
of the .NET Framework community, with the benefits and
restrictions that it brings. An example of a benefit is
proper interoperability with classes written in other
languages (for example, a managed C++ class can inherit from
a Visual Basic class).

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Dot Net AllOther Interview Questions

Explain Singleton design pattern in .net

0 Answers   Infosys,


11. diff b/w Dll and Exe

6 Answers   PCS,


what does dot in .net means

1 Answers  


What is the use of delegates

2 Answers  


What is a Windows Service and how does its lifecycle differ from a "standard" EXE?

2 Answers   Siebel Systems,






How to prevent my .NET DLL to be decompiled?

0 Answers   CDC,


which class library is used to find unique key?

1 Answers  


Which Binding best suits where a WCF Service and the client application resides in the same machine?

2 Answers   Cap Gemini,


how to add list of items in a web application and win application?

0 Answers   Six Sigma,


what is the difference between running an application with and without debugger?

0 Answers   Six Sigma,


what are the fundamental and common properties of .net controls?

0 Answers   Six Sigma,


2. What type of code (server or client) is found in a Code-Behind class?

1 Answers  


Categories