|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
/unsafe (Enable Unsafe Mode)
Visual Studio .NET 2003
The /unsafe option allows code that uses the unsafe keyword to compile.
To set this compiler option in the Visual Studio development environment
- Open the project's Property Pages dialog box. For details, see Setting Visual C# Project Properties.
- Click the Configuration Properties folder.
- Click the Build property page.
- Modify the Allow unsafe code blocks property.
To set this compiler option programmatically
See AllowUnsafeBlocks Property.
in.cs for unsafe mode:
csc /unsafe in.cs