Parameter type is less accessible than method?

Trips

Well-known member
Joined
Aug 7, 2010
Messages
2,788
Ive got an error :

"Inconsistent accessibility: parameter type System.Collections.Generic.List<EpisodeSummary> is less accessible than method MainForm.Notify(System.Collections.Generic.List<EpisodeSummary>)

<div style="text-align:left Not sure what it means.  Heres the method :
<div class=codeseg>
<div class=codecontent>
<div class=codesniptitle><span style="width:100%         public void Notify(List<EpisodeSummary> queue)
<span style="width:100%         {
<span style="width:100%             if (queue.Count >= 1)
<span style="width:100%             {
<span style="width:100%                 displayedEpisode = queue.First;
<span style="width:100%                 queue.RemoveFirst();
<span style="width:100%                 trayIcon.ShowBalloonTip(5000);
<span style="width:100%                 System.Threading.Thread.Sleep(5000);
<span style="width:100%                 Notify(queue);
<span style="width:100%             }
<span style="width:100%         }<span style="width:100%


<div style="text-align:left and heres the method that calls it :
<div class=codeseg>
<div class=codecontent>
<div class=codesniptitle><span style="width:100%         public void t_Tick(Object sender, System.EventArgs e)
        {
            List<String> showList = shows.GetShowList();
            foreach (String showName in showList)
            {
                RSSFeed feed = new RSSFeed(showName);
                EpisodeSummary[] eps = feed.GetEpisodes();<span style="width:100% <span style="width:100% <span style="width:100%

<div style="margin-left:40px <span style="width:100%            System.Collections.ArrayList storedEps =       shows.GetShowEpisodes(showName);

<div style="margin-left:40px <span style="width:100% <span style="width:100%                 List<EpisodeSummary> notifyQueue = new List<EpisodeSummary>();
                foreach (EpisodeSummary ep in eps)
                {
                    if (!storedEps.Contains(ep))
                    {
                        storedEps.Add(ep);
                        notifyQueue.Add(ep);
                    }
                }
                Notify(notifyQueue);
            }
        }


<div style="text-align:left Anyone have any idea why its happening?

Many thanks

<div style="text-align:left

<div style="text-align:left

<div style="text-align:left


View the full article
 
Back
Top