How to solve the Error: Inconsistent accessibility: parameter type for generic c# interface?

后端 未结 5 826
不知归路
不知归路 2021-01-04 06:25

On writting this code into my project i am getting the error that

Error 1 Inconsistent accessibility: field type \'System.Collections.Gene

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-04 06:54

    Childrendata isn't public. How, then, do you expect someone calling addchild to be able to provide the required parameter?

    The obvious fixes are to change the accessibility of addchild or Childrendata.

提交回复
热议问题