Inconsistent accessibility error with the following c# code. Why?

后端 未结 3 838
小鲜肉
小鲜肉 2020-11-29 09:12

Whats wrong with the following c# code? Compiler reports this error:

Inconsistent accessibility: parameter type \'ClassLibrary1.Interface1\' is less accessible than

3条回答
  •  余生分开走
    2020-11-29 09:54

    second solution is If your interface is not public then dont make your class public where you are making a handle of interface.

提交回复
热议问题