Method sequence

pelyem's Avatar


16 Jul, 2014 01:27 PM

I have observed your framework and it looks great!
but, I think it can't help me with this problem:
Say i have a class with two methods A() and B() and I want that the client\user would call those methods in a very specific sequence, like first B() and only afterward A().
This can be done in runtime using your framework, but I would like it in compile time - such that in case the user calls it in the wrong sequence a compiler error would be generated, in build time.
Correct me if I am wrong - but you don't support that , right?

  1. Support Staff 1 Posted by PostSharp Techn... on 16 Jul, 2014 02:19 PM

    PostSharp Technologies's Avatar


    this a kind of program analysis that can be done using PostSharp during compilation. However this particular problem can get quite complex (imagine when these two functions run on threads) and thus we did not implement it.

    If you take a look at architectural constraints that we provide, it contains resolution of similar problems.

    So to wrap it up - we do not officially support this scenario , but it is certainly possible to implement it.

    Best regards,

  2. PostSharp Technologies closed this discussion on 17 Sep, 2014 02:24 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