S
sam
I use a List<T> and the method FindLastIndex like this:
List<XmlNode> ListArticle;
int iIndex = ListArticle.FindLastIndex(TheSameYear);
....
private bool TheSameYear(XmlNode n)
{
if(....)
return true;
else
return false;
}
I need to add a parameter to the callback method, but the prototype
refused add some custom value.
how can I do to pass a value to the callback like this:
int iIndex = ListArticle.FindLastIndex(TheSameYear, "a custom parameter");
private bool TheSameYear(XmlNode n, string MyString)
Sam
List<XmlNode> ListArticle;
int iIndex = ListArticle.FindLastIndex(TheSameYear);
....
private bool TheSameYear(XmlNode n)
{
if(....)
return true;
else
return false;
}
I need to add a parameter to the callback method, but the prototype
refused add some custom value.
how can I do to pass a value to the callback like this:
int iIndex = ListArticle.FindLastIndex(TheSameYear, "a custom parameter");
private bool TheSameYear(XmlNode n, string MyString)
Sam