On Thu, 10 May 2007 11:17:33 -0700, azz131 <(E-Mail Removed)> wrote:
> [...]
> but i get an error "Inconsistent accessibility: parameter type
> 'ObjectArray.MainClass.MyClass' is less accessible than method
> 'ObjectArray.MainClass.show(ObjectArray.MainClass.MyClass)' (CS0051) - "
> What am i doing wrong?
The compiler is telling you that the access modifiers for the two things
don't match. In particular, your class is not public, but the method is.
That means even though your method is visible to callers outside of the
class, the type used in the parameter list is not. Since it's not nice to
publish a method to callers but keep the type of the parameter to that
method secret, the compiler complains.
Pete