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 CS0207

The accessor ('accessor method') need not be declared unsafe if the property already is

If a property is defined as unsafe, then it is not valid syntax to also use the unsafe keyword on any of the property's accessors.

The following sample generates CS0207:

public class MyClass {
   unsafe public static int iii {
      unsafe get {   // CS0207, remove unsafe keyword
         return 0;
      }

      set {
      }
   }

   public static void Main() {
   }
}