コード例 #1
0
        /// <summary>
        /// Returns true if PININFO instances are equal
        /// </summary>
        /// <param name="other">Instance of PININFO to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(PININFO other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Presence == other.Presence ||
                     Presence != null &&
                     Presence.Equals(other.Presence)
                     ) &&
                 (
                     Format == other.Format ||
                     Format != null &&
                     Format.Equals(other.Format)
                 ) &&
                 (
                     Label == other.Label ||
                     Label != null &&
                     Label.Equals(other.Label)
                 ) &&
                 (
                     Description == other.Description ||
                     Description != null &&
                     Description.Equals(other.Description)
                 ));
        }
コード例 #2
0
        /// <summary>
        /// Returns true if OTPINFO instances are equal
        /// </summary>
        /// <param name="other">Instance of OTPINFO to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OTPINFO other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Presence == other.Presence ||
                     Presence != null &&
                     Presence.Equals(other.Presence)
                     ) &&
                 (
                     Type == other.Type ||
                     Type != null &&
                     Type.Equals(other.Type)
                 ) &&
                 (
                     Format == other.Format ||
                     Format != null &&
                     Format.Equals(other.Format)
                 ) &&
                 (
                     Label == other.Label ||
                     Label != null &&
                     Label.Equals(other.Label)
                 ) &&
                 (
                     Description == other.Description ||
                     Description != null &&
                     Description.Equals(other.Description)
                 ) &&
                 (
                     ID == other.ID ||
                     ID != null &&
                     ID.Equals(other.ID)
                 ) &&
                 (
                     Provider == other.Provider ||
                     Provider != null &&
                     Provider.Equals(other.Provider)
                 ));
        }