Inconsistent accessibility

  • Thread starter Thread starter Lou
  • Start date Start date
L

Lou

I have a form that I want to pass a collection into the constructor but
can't seem to do it.

I keep getting the error "Inconsistent accessibility: "



public frmDeviceManager(Dictionary<string,Data> Devices)

{

InitializeComponent();



}





Data is a class



-Lou
 
I have a form that I want to pass a collection into the constructor but
can't seem to do it.

I keep getting the error "Inconsistent accessibility: "



public frmDeviceManager(Dictionary<string,Data> Devices)
....

Data is a class
From the code provided it appears the Data class' visibility is less
than public.

regards
A.G.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Constructors and UserControls 11
trouble passing reference to instance. 6
Follow up 6
referencing ref variables in forms 13
Properties? 1
private and internal 5
Dictionary<T,U> 6
Fill Dictionary in a Fluent Way 4

Back
Top