NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error CS0227

Unsafe code may only appear if compiling with /unsafe

If source code contains the unsafe keyword, then the /unsafe compiler option must also be used.

The following sample, when compiled without /unsafe, will generate CS0227:

public class a {
   unsafe public static void Main() {
   }
}