GetInverseProperty() performs wrong check

Issue #9 resolved
Boris Spinner created an issue

Hi folks,

in ReflectionsExtensions the method GetInverseProperty() performs a wrong check.

if (inverseAttribute != null && elementType.IsAssignableFrom(inverseType))

should be

if (inverseAttribute != null && inverseType.IsAssignableFrom(elementType))

Comments (2)

  1. Guillermo GutiƩrrez

    Hmm... I should definitely add a test case for that. I'll review it as soon as possible.

  2. Log in to comment