声明为“Private”的类型必须在另一个类型内Types declared 'Private' must be inside another type

在一种类型而不是在另一种类型内使用了 Private 修饰符。The Private modifier was used on a type not inside another type.

错误 ID: BC31089Error ID: BC31089

更正此错误To correct this error

  1. 使用限制性较弱的访问修饰符,比如 FriendUse a less restrictive access modifier, such as Friend.

  2. 在另一种类型中声明该类型。Declare the type within another type.

另请参阅See also