in Source/Tx.Network/Snmp/ObjectIdentifier.cs [38:69]
public bool IsSubOid(ObjectIdentifier otherOid)
{
if (this.Oids == null && otherOid.Oids == null)
{
return true;
}
if (this.Oids == null && otherOid.Oids != null)
{
return false;
}
if (this.Oids != null && otherOid.Oids == null)
{
return false;
}
if (otherOid.Oids.Count > this.Oids.Count)
{
return false;
}
for (int i = 0; i < otherOid.Oids.Count; i++)
{
if(otherOid.Oids[i] != this.Oids[i])
{
return false;
}
}
return true;
}