Metalama 1.0 / / Metalama Documentation / Conceptual Documentation / Migrating from Post­Sharp / Feature Status

Status of the Migration of PostSharp Features to Metalama

PostSharp Framework (PostSharp.dll)

The whole PostSharp Framework has been ported to Metalama, with a few notable exceptions and limitations:

  • You cannot intercept methods of an external assembly, but only of the current project.
  • You cannot advise the event of suspending and resuming an async state machine like in PostSharp, i.e. you cannot advise the await keyword.
  • You cannot intercept the raise semantic of an event, only the add and remove semantics.
  • The concrete architecture constraints under the PostSharp.Constraints namespace have not been ported yet, but the underlying features are available in Metalama.

PostSharp.Patterns.*

NONE of the PostSharp.Patterns.* packages have been ported at the moment.