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 CS0161

'method': not all code paths return a value

A method that returns a value must have a return statement.

The following sample generates CS0161:

public class ii {
   int i   {
      get {   // CS0161
      // uncomment the following line to resolve
      // return 0;
      }
   }
}
public class a {
   public static void Main() {
   }
}