serialization of a property which was defined in several interfaces (#1586)
This commit is contained in:
committed by
James Newton-King
parent
6dfc5c46e5
commit
e1dfefe00b
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user