Beispiel #1
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (ResourceUri.Length != 0)
                    {
                        hash ^= ResourceUri.GetHashCode();
                    }
                    if (Severity != global::Grafeas.V1.Severity.Unspecified)
                    {
                        hash ^= Severity.GetHashCode();
                    }
                    if (FixableCount != 0L)
                    {
                        hash ^= FixableCount.GetHashCode();
                    }
                    if (TotalCount != 0L)
                    {
                        hash ^= TotalCount.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
 public override int GetHashCode()
 {
     return((Resource?.GetHashCode() ?? 0) * 31 ^
            (BaseAddress?.GetHashCode() ?? 0) ^
            (ResourceUri?.GetHashCode() ?? 0) ^
            TypeNameHandling.GetHashCode());
 }
 /// <summary>
 /// Serves as a hash function.
 /// </summary>
 /// <returns>A hash code for the current <see cref="object" />.</returns>
 public override int GetHashCode() => Name.GetHashCode() + ResourceUri.GetHashCode() + Id.GetHashCode() + Created.GetHashCode() + LastModified.GetHashCode();
Beispiel #4
0
 /// <summary>
 /// Serves as a hash function.
 /// </summary>
 /// <returns>A hash code for the current <see cref="object" />.</returns>
 public override int GetHashCode() => Name.GetHashCode() | ResourceUri.GetHashCode();