コード例 #1
0
ファイル: Image.cs プロジェクト: zeppu/shipbot
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Repository != null ? Repository.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TagProperty != null ? TagProperty.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Policy != null ? Policy.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #2
0
ファイル: Image.cs プロジェクト: zeppu/shipbot
 protected bool Equals(TagProperty other)
 {
     return(string.Equals(Path, other.Path) && ValueFormat == other.ValueFormat);
 }
コード例 #3
0
ファイル: Image.cs プロジェクト: zeppu/shipbot
 public Image(string repository, TagProperty tagProperty, ImageUpdatePolicy policy)
 {
     Repository  = repository;
     TagProperty = tagProperty;
     Policy      = policy;
 }