Ejemplo n.º 1
0
        /// <summary>
        /// Returns true if DeviceType instances are equal
        /// </summary>
        /// <param name="other">Instance of DeviceType to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DeviceType other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Vendor == other.Vendor ||
                     Vendor != null &&
                     Vendor.Equals(other.Vendor)
                     ) &&
                 (
                     HwRev == other.HwRev ||
                     HwRev != null &&
                     HwRev.Equals(other.HwRev)
                 ) &&
                 (
                     SwRev == other.SwRev ||
                     SwRev != null &&
                     SwRev.Equals(other.SwRev)
                 ) &&
                 (
                     SerNum == other.SerNum ||
                     SerNum != null &&
                     SerNum.Equals(other.SerNum)
                 ) &&
                 (
                     Model == other.Model ||
                     Model != null &&
                     Model.Equals(other.Model)
                 ) &&
                 (
                     Owner == other.Owner ||
                     Owner != null &&
                     Owner.Equals(other.Owner)
                 ) &&
                 (
                     PrimeOps == other.PrimeOps ||
                     PrimeOps != null &&
                     PrimeOps.Equals(other.PrimeOps)
                 ) &&
                 (
                     SecondOps == other.SecondOps ||
                     SecondOps != null &&
                     SecondOps.Equals(other.SecondOps)
                 ));
        }