Re: Class Function in WinForms project

"R. Rogers" <[email protected]> Mon, 29 Oct 2007 11:44:36 -0400
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <003501c81a42$9c02c4d0$6800a8c0@Speedster>
Thanks John,

All I had to do was add the keyword public to the enum UploadTypes.

I appreciate your help.

Richard
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps and
controls [mailto:[email protected]] On Behalf Of John
Brett
Sent: October 29, 2007 11:20 AM
To: [email protected]
Subject: Re: [DOTNET-WINFORMS] Class Function in WinForms project

<snip>
> . Why am I getting a CS0050 compile error? Inconsistent accessibility:
> return type 'type' is less accessible than method 'method'

Ensure that UploadTypes is at least as visible as GetUploadType.
In practice, this probably means that the UploadTypes needs to be
public. If it is itself in a contained class, then that class also
needs to be public.

John