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 ...

Get From Java to C#: A Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.