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 CS0551

Explicit interface implementation 'implementation' is missing accessor 'accessor'

A class that explicitly implements an interface's property must implement all the accessors that the interface defines.

The following sample generates CS0551:

interface ii {
   int i {
      get;
      set;
   }
}

public class a : ii {
   int ii.i {   // CS0551
      set {
      }
      /*
      implement the following accessor
      get {
         return 0;
      }
      */
   }
   public static void Main() {
   }
}

See Also

Property Declaration | Accessors