예제 #1
0
파일: Pc.cs 프로젝트: HappyEmu/rust_ffi
    public override int GetHashCode()
    {
        int hash = 1;

        if (Id.Length != 0)
        {
            hash ^= Id.GetHashCode();
        }
        if (AgeYears != 0)
        {
            hash ^= AgeYears.GetHashCode();
        }
        if (AgeDays != 0)
        {
            hash ^= AgeDays.GetHashCode();
        }
        if (BirthDate != 0)
        {
            hash ^= BirthDate.GetHashCode();
        }
        if (AdmDate != 0)
        {
            hash ^= AdmDate.GetHashCode();
        }
        if (SepDate != 0)
        {
            hash ^= SepDate.GetHashCode();
        }
        if (LeaveDays != 0)
        {
            hash ^= LeaveDays.GetHashCode();
        }
        if (Sex.Length != 0)
        {
            hash ^= Sex.GetHashCode();
        }
        if (Adm.Length != 0)
        {
            hash ^= Adm.GetHashCode();
        }
        if (Sep.Length != 0)
        {
            hash ^= Sep.GetHashCode();
        }
        if (Gestage != 0)
        {
            hash ^= Gestage.GetHashCode();
        }
        if (Los != 0)
        {
            hash ^= Los.GetHashCode();
        }
        if (Hmv != 0)
        {
            hash ^= Hmv.GetHashCode();
        }
        if (Bh != false)
        {
            hash ^= Bh.GetHashCode();
        }
        hash ^= diagnoses_.GetHashCode();
        hash ^= procedures_.GetHashCode();
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
예제 #2
0
 public override int GetHashCode()
 {
     return(DetailsId.GetHashCode() ^ DetailsName.GetHashCode() ^ Jan.GetHashCode() ^ Feb.GetHashCode() ^ Apr.GetHashCode() ^ May.GetHashCode() ^ Jun.GetHashCode() ^ Jul.GetHashCode() ^ Aug.GetHashCode() ^ Sep.GetHashCode() ^ Oct.GetHashCode() ^ Nov.GetHashCode()
            ^ Dec.GetHashCode() ^ UOM.GetHashCode() ^ UOMID.GetHashCode());
 }