Skip to content

Commit eb2b83f

Browse files
committed
Change TupleDescriptor.Equals()
1 parent 2cc6de2 commit eb2b83f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Orm/Xtensive.Orm/Tuples/TupleDescriptor.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ IEnumerator IEnumerable.GetEnumerator()
8686
/// <inheritdoc/>
8787
public bool Equals(TupleDescriptor other)
8888
{
89-
if (FieldCount!=other.FieldCount) {
89+
if (FieldTypes == null) {
90+
return other.FieldTypes == null;
91+
}
92+
if (other.FieldTypes == null || FieldCount != other.FieldCount) {
9093
return false;
9194
}
9295

0 commit comments

Comments
 (0)