/unsafe (Enable Unsafe Mode) (C# Compiler Options)
Visual Studio 2005
The /unsafe compiler option allows code that uses the unsafe keyword to compile.
/unsafe
For more information about unsafe code, see Unsafe Code and Pointers (C# Programming Guide).
To set this compiler option in the Visual Studio development environment
-
Open the project's Properties page. For details, see How to: Set Project Properties (C#, J#).
-
Click the Build property page.
-
Select the Allow Unsafe Code check box.
For information about how to set this compiler option programmatically, see AllowUnsafeBlocks.