serialization of a property which was defined in several interfaces (#1586)

This commit is contained in:
testfirstcoder
2018-01-19 16:31:03 +13:00
committed by James Newton-King
parent 6dfc5c46e5
commit e1dfefe00b
2 changed files with 42 additions and 1 deletions
@@ -104,6 +104,12 @@ namespace Newtonsoft.Json.Serialization
// current property is hidden by the existing so don't add it
return;
}
if (_type.ImplementInterface(existingProperty.DeclaringType) && _type.ImplementInterface(property.DeclaringType))
{
// current property was already defined on another interface
return;
}
}
}
@@ -176,4 +182,4 @@ namespace Newtonsoft.Json.Serialization
return null;
}
}
}
}