|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Inconsistent accessibilitycan't seem to do it. I keep getting the error "Inconsistent accessibility: " public frmDeviceManager(Dictionary<string,Data> Devices) { InitializeComponent(); } Data is a class -Lou Make sure that Data class is public?
Show quoteHide quote "Lou" <lou.gar***@comcast.net> wrote in message news:OMMzBJ36JHA.5180@TK2MSFTNGP04.phx.gbl... > 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 > >
Show quote
Hide quote
On Fri, 12 Jun 2009 11:27:10 -0400, "Lou" <lou.gar***@comcast.net> From the code provided it appears the Data class' visibility is lesswrote: >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 > than public. regards A.G. On Fri, 12 Jun 2009 08:27:10 -0700, Lou <lou.gar***@comcast.net> wrote:
> I have a form that I want to pass a collection into the constructor but So, make the accessibility consistent.> can't seem to do it. > > I keep getting the error "Inconsistent accessibility: " You can't have method declarations that include types that are less visible than the method itself.
not all code paths return a value?
Controlling the properties of a TextBox from a different Form c# newbie needs help with backgroundworker Making an exe that doesn't need .NET framework Button Skinnning stripping newlines from xml stuck on operator overloading??? Problem reading special characters into a list box Re: Making an exe that doesn't need .NET framework Re: Same old faeces here I see, like Peter Dungho |
|||||||||||||||||||||||