public static Int32 ProtocolTaxonomyPortComparison(NBAR2TaxonomyProtocol p1, NBAR2TaxonomyProtocol p2) { { Int32 port1; Int32 port2; Int32.TryParse(p1.selectorid, out port1); Int32.TryParse(p2.selectorid, out port2); if (port1 <= port2) { return(1); } return(-1); } }
public Boolean Equals(NBAR2TaxonomyProtocol obj) => obj.name == this.name;