static bool TryRemoveTag (string tagid, ArrayList otags)
{
if (otags == null || otags.Count == 0)
return false;
for (int idx = otags.Count - 1; idx >= 0; idx--) {
string otagid = (string) otags [idx];
if (0 == String.Compare (tagid, otagid, true, Helpers.InvariantCulture)) {
do {
otags.RemoveAt (idx);
} while (otags.Count - 1 >= idx);
return true;
}
}
return false;
}