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 CS0627

the sysnative attribute cannot be placed on non-extern methods

The sysnative attribute must be used on methods that also use extern.

The following sample generates CS0627:

public class b {
   [sysnative] static public void mf() {   // CS0627
   }
   // try the following
   // [dllimport("mydll.dll")] static extern public void mf();
   // or 
   // [sysnative] static extern public void mf();
   public static void Main() {
   }
}