Hi !
GTi wrote:
[...snip...]
THANKS!!!
Looks nice, but...if (selectedTags.Includes(item.Tag))
.Includes is unknown...
I can't find anything similar.
That's why I wrote:
[...snip...]
(Warning: untested pseudocode)
[...snip...]
You might want to write another method like:
private bool includes(ArrayList list, object testObject)
{
foreach (object item in list)
{
// Here, you might want to use a different
// comparison, maybe item == testObject
// or (int)item == int(testObject),
// depending on your unique tags
if (item.Equals(testObject))
return true;
}
return false;
}
and call it like
if (this.includes(selectedTags, item.Tag))
{
....
};
Wouldn't it be nice if we could extend existing classes ;-)