コード例 #1
0
ファイル: CodeBase.cs プロジェクト: gkarwchan/metropolis
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SourceBaseDirectory != null ? SourceBaseDirectory.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ProjectFile != null ? ProjectFile.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ProjectFolder != null ? ProjectFolder.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (IgnoreFile != null ? IgnoreFile.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)SourceType;
         return(hashCode);
     }
 }