Managed vs. Unmanaged Code
•Objects
in the heap moved around as needed
•
•CLR
updates references to these objects
•
•What
if you pass a reference to unmanaged code?
•code
that takes memory management into its own hands
–You
first ask CLR to pin the object in memory
•then
pass the reference to unmanaged code