[ACCEPTED]-Inconsistent accessibility error with the following c# code. Why?-c#
Accepted answer
your "Interface1" isn't public..
public interface Interface1<T>
{
bool IsDataValid();
/* Other interfaces */
}
0
Mark your interface as public:
public interface Interface1<T>
If you leave 3 out the accessibility label, it defaults 2 to internal
, that is, only accessible to other classes 1 within the assembly.
second solution is If your interface is 2 not public then dont make your class public 1 where you are making a handle of interface.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.