Show/Hide Toolbars

XSharp

The -unsafe compiler option allows code that uses the unsafe keyword to compile.

Syntax

-unsafe  

Remarks

For more information about unsafe code, see Unsafe Code and Pointers.

To set this compiler option in the Visual Studio development environment

 

1.Open the project's Properties page.

2.Click the Language property page.

3.Set the Allow Unsafe Code property in the General Section

4.Click here to see the property page

Example

Compile in.prg for unsafe mode:

 

xsc -unsafe in.prg