public static bool Equals(ProtocolItem a, ProtocolItem b) { if (a == null && b == null) { return(true); } if (a == null || b == null) { return(false); } if (a.GetType() != b.GetType()) { return(false); } return(a.Equals(b)); }
private static void WriteSupportedBy(StringBuilder sb, ProtocolItem type) { WriteSupportedBy(sb, type.SupportedBy); }