Beispiel #1
0
        public override int GetHashCode()
        {
            int hashcode = Type.GetHashCode();

            if (SourceFolder != null)
            {
                hashcode += SourceFolder.GetHashCode();
            }
            if (SourceRelPath != null)
            {
                hashcode += SourceRelPath.GetHashCode();
            }
            if (PackageName != null)
            {
                hashcode += PackageName.GetHashCode();
            }
            if (PackageVersion != null)
            {
                hashcode += PackageVersion.GetHashCode();
            }
            if (GitUrl != null)
            {
                hashcode += GitUrl.GetHashCode();
            }
            if (GitBranch != null)
            {
                hashcode += GitBranch.GetHashCode();
            }
            return(hashcode);
        }
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(GitUrl != null ? GitUrl.GetHashCode() : 0);
     }
 }
Beispiel #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((Name != null ? Name.GetHashCode() : 0) ^ (Path != null ? Path.GetHashCode() : 0) ^ (Sha != null ? Sha.GetHashCode() : 0) ^ (Size != null ? Size.GetHashCode() : 0) ^ (Url != null ? Url.GetHashCode() : 0) ^ (HtmlUrl != null ? HtmlUrl.GetHashCode() : 0) ^ (GitUrl != null ? GitUrl.GetHashCode() : 0) ^ (Type != null ? Type.GetHashCode() : 0));
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         return((Type != null ? Type.GetHashCode() : 0) ^ (Sha != null ? Sha.GetHashCode() : 0) ^ (Path != null ? Path.GetHashCode() : 0) ^ (GitUrl != null ? GitUrl.GetHashCode() : 0) ^ (HtmlUrl != null ? HtmlUrl.GetHashCode() : 0) ^ (DownloadUrl != null ? DownloadUrl.GetHashCode() : 0) ^ (Encoding != null ? Encoding.GetHashCode() : 0) ^ (Url != null ? Url.GetHashCode() : 0) ^ (Size != null ? Size.GetHashCode() : 0) ^ (Name != null ? Name.GetHashCode() : 0) ^ (Content != null ? Content.GetHashCode() : 0));
     }
 }