PostSharp automates the implementation of patterns so they don't turn into boilerplate.
It allows developers to eradicate boilerplate by offloading repeating work from humans to machine. PostSharp contains ready-made implementations of the most common patterns and gives you the tools to build automation for your own patterns.
Developers usually think in terms of design patterns, but with conventional programming languages, they end up writing boilerplate code. PostSharp extends the C# and VB languages with a notion of pattern. The result: shorter, cleaner code that’s easier to write and understand, contains fewer defects and is less expensive to maintain.
If it's repetitive, it can be automated.
Think about the following requirements. Have you ever hoped there would be a better way to implement them?
- Code contracts (preconditions)
- Transaction handling
- Exception handling
- Thread dispatching
- Thread synchronization
Eliminate the INotifyPropertyChanged boilerplate and focus on business.
- Massive code reduction.
- Consistent and reliable implementation.
- Customizable to your needs.
Give your users the familiar Undo/Redo experience without breaking the bank.
- Undo/Redo any object state change.
- Handle multiple changes as one step.
- Expose in the UI with built-in or custom controls.
Protect your code from invalid inputs with custom attributes.
- Works consistently on fields, properties or parameters.
- Rich built-in contracts.
Add comprehensive logging to your app without impact on source code.
- Super easy. You'll be done in minutes.
- Multi-Framework Support
- High Performance
Make your C# or VB applications thread-safe without rewriting them.
- Decreased Complexity
- Faster feedback
- Take control
Build automation for your own patterns to reduce development effort and improve architecture.
- Amplify developer skills
- Build custom patterns
- Exceptional performance
Validate your design at each build against standard and custom rules.
- Code level declaration
- Compile time feedback
- Customizable rules
Visual Studio Tooling
Get started faster and find clarity
when things become more complex.
- Easily add patterns to your code.
- Visualize and understand where and how patterns are used in your code