Saltar al contenido principal

 none
Is there any way to suppress Inconsistent accessibility RRS feed

  • Pregunta

  • 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?

    viernes, 11 de enero de 2019 19:28

Todas las respuestas