示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = StationYear.GetHashCode();//(StationYear != null ? StationYear.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Priority;
         hashCode = (hashCode * 397) ^ RequestTime.GetHashCode();
         hashCode = (hashCode * 397) ^ LastRun.GetHashCode();//(LastRun != null ? LastRun.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Kind.Length != 0)
            {
                hash ^= Kind.GetHashCode();
            }
            if (Path.Length != 0)
            {
                hash ^= Path.GetHashCode();
            }
            if (Manifest.Length != 0)
            {
                hash ^= Manifest.GetHashCode();
            }
            hash ^= events_.GetHashCode();
            if (lastRun_ != null)
            {
                hash ^= LastRun.GetHashCode();
            }
            if (Weight != 0)
            {
                hash ^= Weight.GetHashCode();
            }
            hash ^= deletePolicies_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }