Essential C# Pointers and Unsafe Code  Suggest an edit

Compiling Unsafe Code

For compiling unsafe code, you have to specify the /unsafe command-line switch with command-line compiler.

For example, to compile a program named prog1.cs containing unsafe code, from command line, give the command:

csc /unsafe prog1.cs

If you are using Visual Studio IDE then you need to enable use of unsafe code in the project properties.

To do this:


Table Of Contents
22 Enum
25 GUID
107 Stream
108 Timers
137 Pointers and Unsafe Code
  ↑ ↓ to navigate     ↵ to select     Esc to close