Inconsistent accessibility: property type X is less accessible than property Y

I am trying to add the C# event below to a custom control.  However I am getting the follwing error, please help.

Inconsistent accessibility: property type 'CA.UI.CustomControls.uccPostalCodeSearchEditor.SelectedItemHandler' is less accessible than property 'CA.UI.CustomControls.uccPostalCodeSearchEditor.SelectedItem'

//Definitions for the SelectedItem Event
//SelectedItem event is raised when the user selects a Record.
delegate void SelectedItemHandler(object sender, PostalCodeSearchEditorSelectedEventArgs e);
private SelectedItemHandler SelectedItemEvent;
public event SelectedItemHandler SelectedItem
            SelectedItemEvent = (SelectedItemHandler) System.Delegate.Combine(SelectedItemEvent, value);
                               SelectedItemEvent = (SelectedItemHandler) System.Delegate.Remove(SelectedItemEvent, value);
}  // END: public event SelectedItemHandler SelectedItem

Also below is the working VB code:

Delegate Sub SelectedItemHandler(ByVal sender As Object, ByVal e As PostalCodeSearchEditorSelectedEventArgs)
Public Event SelectedItem As SelectedItemHandler
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
It means that you can't expose an internal member from a public member:

public delegate void SelectedItemHandler(object sender, PostalCodeSearchEditorSelectedEventArgs e);


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bob LearnedCommented:
I try to get in the habit of always specifying scope modifiers to all declarations, like classes, properties, events, etc.

wenyonkAuthor Commented:
Thank you LearnedOne!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.