Tech Stuff with Rybo
An overview of technical problems and my solutions for them.
Showing posts with label
Inaccessible Parameter
.
Show all posts
Showing posts with label
Inaccessible Parameter
.
Show all posts
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.
Older Posts
Home
Subscribe to:
Posts (Atom)