Compiling Unsafe Code

suggest change

To compile unsafe code, pass the /unsafe switch to the command-line compiler.

For example, to compile a program named prog1.cs that contains unsafe code, run:

csc /unsafe prog1.cs

In Visual Studio, enable unsafe code in the project properties.

To do this:

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents