Пример #1
0
        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));
        }
Пример #2
0
 private static void WriteSupportedBy(StringBuilder sb, ProtocolItem type)
 {
     WriteSupportedBy(sb, type.SupportedBy);
 }