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 CS0050

Inconsistent accessibility: return type 'type' is less accessible than method 'method'

A public construct must return a publicly accessible object.

The following sample generates CS0050:

class MyClass {
// try the following line instead
// public class MyClass {
}

public class MyClass2 {
   public static MyClass MyMethod() { // CS0050
      return new MyClass();
   }
   public static void Main() {
   }
}