Answer Posted / 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 View All Answers
How to upload in video,mp4,in .net 4.5 ..?
What is the procedure on hardware that converts the ascii value to binary? : .NET Architecture
What is gui programming? : .NET Architecture
8. Oop-Why and were we use Interfacse and Abstract class.
Explain the difference between state server and sqlserver : Dot net architecture
What is .net mobile input validation. : Microsoft dot net mobile
Explain the difference between primary & secondary storage device? : Dot net architecture
Explain how does .net mobile work? : Microsoft dot net mobile
Explain 'managed' mean in the .NET context
Define dma? : Dot net architecture
Explain about cookie less session state? : .NET Architecture
what is the difference between master page and content page?
Explain the difference between l1 and l2 cache? : Dot net architecture
Is .net easier than java?
Explain about common language infrastructure?