Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (ClaimType != 0)
            {
                hash ^= ClaimType.GetHashCode();
            }
            if (dateRange_ != null)
            {
                hash ^= DateRange.GetHashCode();
            }
            if (room_ != null)
            {
                hash ^= Room.GetHashCode();
            }
            if (MaintenanceHoldReason.Length != 0)
            {
                hash ^= MaintenanceHoldReason.GetHashCode();
            }
            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            return(hash);
        }
        public virtual int _GetUniqueIdentifier()
        {
            var hashCode = 399326290;

            hashCode = hashCode * -1521134295 + (Id?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ClaimType?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ClaimValue?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (ClaimValueType?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (Issuer?.GetHashCode() ?? 0);
            hashCode = hashCode * -1521134295 + (OriginalIssuer?.GetHashCode() ?? 0);
            return(hashCode);
        }