A
Andy Fish
Consider the following code fragment
public class Wrapper {
protected enum E { IN, OUT };
public class C {
protected void foo(E e) { }
}
}
I want the class C to be accessible from outside the wrapper class, but not
the method foo. Compiling this gives the error:
Inconsistent accessibility: parameter type Wrapper.E' is less accessible
than method Wrapper.C.foo
but the accessibility of both types is "protected"
public class Wrapper {
protected enum E { IN, OUT };
public class C {
protected void foo(E e) { }
}
}
I want the class C to be accessible from outside the wrapper class, but not
the method foo. Compiling this gives the error:
Inconsistent accessibility: parameter type Wrapper.E' is less accessible
than method Wrapper.C.foo
but the accessibility of both types is "protected"