Using unsafe and fixed : Unsafe : Unsafe C# Examples


C# Examples » Unsafe » Unsafe »

 

Using unsafe and fixed






Any code that uses pointers must be marked as unsafe by using the unsafe keyword.
You can mark an individual statement or an entire method unsafe.


The fixed modifier is often used when working with pointers.
The fixed modifier prevents a managed variable from being moved by the garbage collector.




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Unsafe
» Unsafe