AdvisableDictionary.Keys implementation error

michal.debiec's Avatar

michal.debiec

31 Jul, 2018 03:34 PM

Hello, there is an error in explicit IDictionary<TKey, TValue> interface implementation.

IDictionary<TKey, TValue>.Keys property returns null but IDictionary.Keys and AdvisableDictionary.Keys return proper value.
After accessing IDictionary.Keys or AdvisableDictionary.Keys, IDictionary<TKey, TValue>.Keys also starts to return proper value.

AdvisableDictionary.Keys probably has some side effect, which causes to IDictionary<TKey, TValue>.Keys work properly.

It is important for us, because we are using FluentAssertions equivalence check, which treats AdvisableDictionary as IDictionary<TKey, TValue> and throws NullReferenceException due to this bug.

Please fix is ASAP (if possible).

  1. Support Staff 1 Posted by PostSharp Techn... on 31 Jul, 2018 03:52 PM

    PostSharp Technologies's Avatar

    Hello,

    thank you for reporting this issue. We can confirm that this is a bug on our side. Is it OK for you to have it fixed by the end of this week? We have filed the bug internally as an issue #16446.

    Best regards,
    -tony

  2. 2 Posted by michal.debiec on 31 Jul, 2018 06:11 PM

    michal.debiec's Avatar

    Yes, I can wait be the end of this week. Does it mean, that nuget package will also be published the end of this week?

    Best regards
    Michał Dębiec

  3. Support Staff 3 Posted by PostSharp Techn... on 01 Aug, 2018 08:20 AM

    PostSharp Technologies's Avatar

    Yes, the NuGet packages are planned to be published by the end of this week.

    We're closing the ticket for now as the bug has been internally filed as issue #16446. We will contact you as soon as the bug fix has been released.

    For more details on our support policies and prioritization of bug fixes, please visit https://www.postsharp.net/support/policies.

    Best regards,
    -tony

  4. PostSharp Technologies closed this discussion on 01 Aug, 2018 08:20 AM.

  5. PostSharp Technologies re-opened this discussion on 03 Aug, 2018 01:38 PM

  6. Support Staff 4 Posted by PostSharp Techn... on 03 Aug, 2018 01:38 PM

    PostSharp Technologies's Avatar

    Hello,

    the bug #16446 has been fixed in the current releases of PostSharp 4.3.44, 5.0.54 and 6.0.24.

    Should you need further help with this issue, don't hesitate to re-open this discussion.

    Best regards,
    -tony

  7. PostSharp Technologies closed this discussion on 03 Aug, 2018 01:38 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac