G
Guest
Hi
I have a problem with the ArrayList and the property access. i.e.
Public Class RSSChannel
{
private string _title
private ArrayList _rssitems
public string Title
{
get { return _title; }
set { _title = value; }
}
public ArrayList RSSItems
{
get { return _rssitems;}
set { _rssitems =value; }
}
etc.....
}
I then try and add a RSSitem to the array list like so:
rsschannel.RSSItems.Add(rssitem);
But looking at the debug output it calls the get accessor; I'am clearly doing
something wrong here as I what to call set (and add the RSSitem to the
ArrayList)
What am I doing wrong.
Many thanks
DH
I have a problem with the ArrayList and the property access. i.e.
Public Class RSSChannel
{
private string _title
private ArrayList _rssitems
public string Title
{
get { return _title; }
set { _title = value; }
}
public ArrayList RSSItems
{
get { return _rssitems;}
set { _rssitems =value; }
}
etc.....
}
I then try and add a RSSitem to the array list like so:
rsschannel.RSSItems.Add(rssitem);
But looking at the debug output it calls the get accessor; I'am clearly doing
something wrong here as I what to call set (and add the RSSitem to the
ArrayList)
What am I doing wrong.
Many thanks
DH