Aspects on interface properties are not inherited by descendants

alexander.jesner's Avatar


20 Sep, 2017 03:10 PM

Have a look at the following interface.
The [NotNull] aspect of the method is correctly applied on the derivative (the implementor of the interface).
The [NotNull] aspect of the property is lost.

    public interface IMyInterface
        string Property { get; set; }

        void Method([NotNull] string arg);

If I add [NotNull] to the property in the implementor it works as expected.

P# 4.3.32

  1. Support Staff 1 Posted by PostSharp Techn... on 21 Sep, 2017 03:52 PM

    PostSharp Technologies's Avatar


    I can confirm that this is a bug. We will be working on a fix.

    (issue #15522)

    Best regards,

  2. Support Staff 2 Posted by PostSharp Techn... on 02 Oct, 2017 03:30 PM

    PostSharp Technologies's Avatar


    We're closing the ticket for now as the bug has been internally filed as issue #15522. 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

    PostSharp Team

  3. PostSharp Technologies closed this discussion on 02 Oct, 2017 03:30 PM.

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

Keyboard shortcuts


? 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