First time with this error - Inconsistent accessibility

后端 未结 3 1177
广开言路
广开言路 2021-01-20 15:11

This is my first time working with interfaces and proper namespace structure. When I compile I get the error below, I have no idea what it means. Any searches I do shows up

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-20 15:55

    The problem is IOperatorRequest is probably internal.

    UPDATE

    What I said is correct. Omitting modifier makes it internal.

    Classes and structs that are declared directly within a namespace (in other words, that are not nested within other classes or structs) can be either public or internal. Internal is the default if no access modifier is specified.

提交回复
热议问题