thanks mostafa90 for your quick reply, I did quick test, seems it's a bit slow, and only cover parameter side of element, I used the following code, seems working OK, but don't know if it's 100% covered.
foreach (Element e in all)
{
if (e.Name.Contains("ABC"))
{
searched.Add(e);
continue;
}
foreach (Parameter p in e.Parameters)
{
string n = p.AsString();
if (string.IsNullOrEmpty(n)) continue;
if (n.Contains("ABC"))
{
searched.Add(e);
continue;
}
}
// anything else?
}