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.
 
Back
Top