Unsafe Code
Several CLR features classified as unsafe
- Closely tied to security system
- Must run in “fully-trusted” environment
Programmers can perform unverifiable operations w/o leaving CLR environment
Allows CLR to support languages with inherently unsafe features:
- Managed C++ cannot generate verifiable code
Examples:
- Pointer arithmetic
- Pinned objects