CIL: Difference between revisions

Jump to navigation Jump to search
2 bytes added ,  16 years ago
fix: 'pinned' italic
[unchecked revision][unchecked revision]
(+ unmanaged code)
(fix: 'pinned' italic)
Line 9:
 
===Unsafe code===
Although pointers are not possible in managed code, CIL supports unmanaged code which does have support for pointers. Unmanaged code is contained in blocks of code which is marked 'unsafe', and in C# it uses the same syntax as C and C++. Objects can be _pinned_''pinned'' so that the [[garbage collector]] doesn't move the data around and pointers remain valid. Using unsafe code is perfectly legal, although discouraged in normal application programming, and may be used to write kernel-level methods.
 
==Metadata==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu