예제 #1
0
        public override bool Equals(
            object obj)
        {
            if (obj == this)
            {
                return(true);
            }

            UserAttributeSubpacket other = obj as UserAttributeSubpacket;

            if (other == null)
            {
                return(false);
            }

            return(type == other.type &&
                   Arrays.AreEqual(data, other.data));
        }
 public UserAttributePacket(
     UserAttributeSubpacket[] subpackets)
 {
     this.subpackets = subpackets;
 }