How would I check if an ObjectIdentifier
is parent/root of another ObjectIdentifier
?
For example:
ObjectIdentifier rootId = ...;
Variable variable = ...;
if (rootId.IsRootOf(variable.Id))
{
// The variable's id is a child of root id!
}
I can't seem to find any method like that in SnmpSharpNet.