3

Possible Duplicate:
Managed and unmanaged code in .NET

Hi, If I am right, then code in my app that runs under CLR (all code written the standard way) is managed code. But except for GC, what other advantages there are? I would like to know the real examples (like GC), not theoretical differences.

Community
  • 1
  • 1
Mocco
  • 1,183
  • 2
  • 12
  • 25

2 Answers2

1

for example

  • no messing with pointers
  • no memory management (with some exceptions)
  • huge base class library
  • able to combine multiple .NET languages
Robert
  • 3,276
  • 1
  • 17
  • 26
1
  • Memory management
  • Thread management
  • Exception handling
  • Garbage collection
  • Security

http://en.wikipedia.org/wiki/Common_Language_Runtime

timothyclifford
  • 6,799
  • 7
  • 57
  • 85
  • Thanks. How it helpw in terms of security? – Mocco Mar 16 '11 at 13:11
  • 1
    CLR can block access to unauthorised users and also execution of unauthorised code. Adds an additional layer on top of what the OS offers. If you feel like a read: http://msdn.microsoft.com/en-us/magazine/cc188939.aspx – timothyclifford Mar 16 '11 at 23:53