[ACCEPTED]-Inconsistent accessibility error with the following c# code. Why?-c#

Accepted answer
Score: 62

your "Interface1" isn't public..

public interface Interface1<T>
{
    bool IsDataValid();
    /* Other interfaces */
}

0

Score: 6

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.

Score: 1

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.

More Related questions