Thursday, June 18, 2009

Error 1 Inconsistent accessibility: parameter x type is less accessible than method y

I was trying to pass an interface type to a method.

public void MyMethod(IMyInterface myI)
{
// ...
}

Make the interface public

public interface IMyInterface
{
// ..
}

This should solve this problem.

No comments:

Post a Comment