Subject: Matrix.Xmpp.Roster.Roster trouble
void rc_OnRosterItem(object sender, Matrix.Xmpp.Roster.RosterEventArgs e)
{
if (e.RosterItem != null)
r.AddRosterItem(e.RosterItem);
}
Works fine, I can add roster items to it no problem and read the whole roster as a string with r.ToString(). It's definitely loading
foreach (Matrix.Xmpp.Roster.RosterItem ri in r.GetRoster())
Doesn't complain for lack of a GetEnumerator, but doesn't seem to find any RosterItems to iterate
foreach (Matrix.Xmpp.Roster.RosterItem ri in r)
Complains that Matrix.Xmpp.Roster.Roster does not contain a public definition for GetEnumerator.
Have I missed something obvious?
{
if (e.RosterItem != null)
r.AddRosterItem(e.RosterItem);
}
Works fine, I can add roster items to it no problem and read the whole roster as a string with r.ToString(). It's definitely loading
foreach (Matrix.Xmpp.Roster.RosterItem ri in r.GetRoster())
Doesn't complain for lack of a GetEnumerator, but doesn't seem to find any RosterItems to iterate
foreach (Matrix.Xmpp.Roster.RosterItem ri in r)
Complains that Matrix.Xmpp.Roster.Roster does not contain a public definition for GetEnumerator.
Have I missed something obvious?