Example #1
0
 public override int GetHashCode()
 {
     return(ProjectFile.GetHashCode() +
            Name.GetHashCode() +
            Platform.GetHashCode() +
            Configuration.GetHashCode() +
            Architecture.GetHashCode());
 }
Example #2
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);
        }
Example #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.GetHashCode() * 345));
 }