Fixed Document.Equals(..)

pull/2/head
Harald Wolff 2019-10-04 12:19:19 +02:00
parent 7edb8c3db8
commit 318eae9869
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ namespace ln.types.odb.ng
}
public override bool Equals(object obj)
{
if (obj is Document)
if (Equals(GetType(), obj.GetType()) && (obj is Document))
{
Document you = obj as Document;
return ID.Equals(you.ID);