O'Reilly logo

From Java to C#: A Developer's Guide by Heng Ngee Mok

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

29.1. Definitions

With so many new terms flying about, it is appropriate to clear the air before moving on. Table 29.1 defines some terms which will be needed in the discussion that follows.

Table 29.1. Definitions of managed versus unmanaged, and safe versus unsafe codes
TermMeaning
Managed codesCodes which run within the confines of the .NET CLR. Managed codes are first compiled into IL codes, then executed on-the-fly by the CLR. All your C# codes are managed – you cannot write unmanaged codes using C#.
Unmanaged codesCodes which do not run in the CLR, and are totally independent of it. Unmanaged codes will be native codes written for a specific operating system. Examples include legacy DLL files which run on top of the Win32 API directly.
Safe ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required