Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ (PurchaseOrderNumber != null ? PurchaseOrderNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DateCreated.GetHashCode();
         hashCode = (hashCode * 397) ^ CreatedBy;
         hashCode = (hashCode * 397) ^ (StatusId != null ? StatusId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ WorkCycleId.GetHashCode();
         hashCode = (hashCode * 397) ^ Active.GetHashCode();
         hashCode = (hashCode * 397) ^ (Lines != null ? Lines.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (StatusId != 0)
            {
                hash ^= StatusId.GetHashCode();
            }
            if (ApplicationStatus.Length != 0)
            {
                hash ^= ApplicationStatus.GetHashCode();
            }
            if (CurrentNotes.Length != 0)
            {
                hash ^= CurrentNotes.GetHashCode();
            }
            return(hash);
        }