Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 830 Bytes

File metadata and controls

18 lines (13 loc) · 830 Bytes
uid title product categories summary
constraints
Validating Architecture
postsharp
PostSharp;AOP;Metaprogramming
PostSharp allows users to validate their source code against architecture and design rules, known as constraints, at build time. It also supports custom constraints.

Validating Architecture

Besides aspect-oriented programming, you can use PostSharp to validate your source code against architecture and design rules named constraints. Constraints are piece of codes that validate the code against specific rules at build time.

PostSharp provides ready-made constraints for the following scenarios:

  • xref:control-implementation
  • xref:control-visibility Additionally, you can develop custom constraints to enforce your own design rules. For details, see xref:custom-constraints.