MetalamaConceptual documentationMigrating from Post­SharpFeature status
Open sandboxFocusImprove this doc

Status of the migration of PostSharp features to Metalama

PostSharp Framework (PostSharp.dll)

The PostSharp Framework has been entirely ported to Metalama, with a few notable differences:

  • Methods from an external assembly cannot be intercepted; only those from the current project can be.
  • The event of suspending and resuming an async state machine, as in PostSharp, cannot be advised. Specifically, the await keyword cannot be advised.
  • The raise semantic of an event cannot be intercepted, only the add and remove semantics can be.
  • The specific architecture constraints under the PostSharp.Constraints namespace have yet to be ported. However, the underlying features are already available in Metalama.


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