GetHashcode and Equals usage

This commit is contained in:
glax 2024-02-12 02:04:45 +01:00
parent f6e8ddb91d
commit 1eed03ac14
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ public abstract class Api : IDisposable
public override int GetHashCode()
{
return HashCode.Combine(ApiType);
return ApiType.GetHashCode();
}
public void Dispose()

View File

@ -27,7 +27,7 @@ public abstract class OpenShockApi : Api
private bool Equals(OpenShockApi other)
{
return base.Equals(other) && Endpoint == other.Endpoint && ApiKey == other.ApiKey;
return base.Equals(other) && Endpoint.Equals(other.Endpoint) && ApiKey.Equals(other.ApiKey);
}
public override int GetHashCode()