Ejemplo n.º 1
0
        ///<summary>
        ///Returns a value that indicates whether this instance is equal to a specified object.
        ///</summary>
        ///
        ///<returns>
        ///true if obj equals the type and value of this instance; otherwise, false.
        ///</returns>
        ///
        ///<param name="obj">An <see cref="T:System.Object"></see> to compare with this instance or null. </param><filterpriority>2</filterpriority>
        public override bool Equals(object obj)
        {
            bool ret = false;
            LogPacketAttribute attr = obj as LogPacketAttribute;

            if (attr != null)
            {
                // Check all fields
                ret  = attr.m_direction == m_direction;
                ret &= attr.m_packetCode == m_packetCode;
                ret &= attr.m_version == m_version;
            }

            return(ret);
        }
Ejemplo n.º 2
0
 public LogPacketData(ConstructorInfo constructor, LogPacketAttribute attribute, Type type)
 {
     this.CapacityConstructor = constructor;
     this.Attribute           = attribute;
     this.Type = type;
 }
 public LogPacketData(ConstructorInfo constructor, LogPacketAttribute attribute, Type type)
 {
     this.CapacityConstructor = constructor;
     this.Attribute = attribute;
     this.Type = type;
 }