Перейти к основному контенту
Центр разработки для Windows

 none
Is there any way to suppress Inconsistent accessibility RRS feed

  • Вопрос

  • In a form I need to be able to create multiple instance of a class.  I also need to to be able to iterate through them, such as in a List.

    public static List<Class> ListName

    But I get Inconsistent accessibility: field type 'List<Class>' is less accessible than Form.Class  Accessing a single instance of the class through the Form is fine, but its not possible to iterate through multiple instance of a class unless using a List or array perhaps.   This inconsistent accessibility is restrictive to say the least.  Is there a workaround?

    11 января 2019 г. 19:28

Все ответы