'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() { } }