Euqlas for IUniquieID

This commit is contained in:
schedpas
2021-10-27 10:16:58 +02:00
parent 2415feaca3
commit 4ca12b19da
2 changed files with 2 additions and 1 deletions

View File

@@ -11,5 +11,6 @@ namespace Pilz.Cryptography
void GenerateIfNull();
void Generate();
bool Equals(object obj);
}
}

View File

@@ -92,7 +92,7 @@ namespace Pilz.Cryptography
{
var iD = obj as UniquieID<TargetType>;
return iD != null &&
_iD == iD._iD;
_iD.Equals(iD._iD);
}
public override int GetHashCode()