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); } }
protected bool Equals(TagProperty other) { return(string.Equals(Path, other.Path) && ValueFormat == other.ValueFormat); }
public Image(string repository, TagProperty tagProperty, ImageUpdatePolicy policy) { Repository = repository; TagProperty = tagProperty; Policy = policy; }