Beispiel #1
0
        /// <summary>
        /// Gets a hash code for this object
        /// </summary>
        /// <returns>Hash code for the object</returns>
        public override int GetHashCode()
        {
            int Hash = 17;

            Hash = (Hash * 31) + Type.GetHashCode();
            Hash = (Hash * 31) + ((ProjectDir == null) ? 0 : ProjectDir.GetHashCode());
            Hash = (Hash * 31) + Platform.GetHashCode();
            Hash = (Hash * 31) + SectionName.GetHashCode();
            Hash = (Hash * 31) + KeyName.GetHashCode();
            return(Hash);
        }
Beispiel #2
0
 /// <summary>
 /// Returns a stable hash of this object
 /// </summary>
 /// <returns>Hash value for this object</returns>
 public override int GetHashCode()
 {
     return(((ProjectDir != null) ? ProjectDir.GetHashCode() : 0) + ((int)Type * 123) + (Platform.GetHashCode() * 345));
 }
Beispiel #3
0
 /// <summary>
 /// Returns a stable hash of this object
 /// </summary>
 /// <returns>Hash value for this object</returns>
 public override int GetHashCode()
 {
     return(((ProjectDir != null)? ProjectDir.GetHashCode() : 0) + ((int)Type * 123) + ((Platform != null ? Platform.ToString() : "None").GetHashCode() * 345));
 }