PostSharp is the #1 pattern-aware extension to C# and VB. It allows developers to eradicate boilerplate by offloading repeating work from humans to machines. 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.
PostSharp started as an open-source project in 2004 and due to its popularity, it soon became a commercial product trusted by over 50,000 developers worldwide and over 1,000 leading corporations. More than 10% of all Fortune 500 companies including Microsoft, Intel, Bank of America, Phillips, NetApp, BP, Comcast, Volkswagen, Hitachi, Deutsche Bank, Bosch, Siemens, and Oracle rely on PostSharp to reduce their development and maintenance costs.
PostSharp helps you:
stop writing boilerplate code and deliver features faster, at lower cost;
build more reliable software;
add or modify functionality after the first release;
build thread-safe applications that everyone understands;
get team members productive quicker.
Advanced aspect framework
Automate complex patterns with composite aspects and dynamic aspect providers.
Build faster applications thanks to the aspect optimizer.
Scale to large teams and projects with robust aspect composition.
Diagnostics pattern library
Add comprehensive logging to your whole application in just one click.
Support for System.Diagnostics, Enterprise Library, NLog, and Log4Net.
Get highly-optimized code you could not beat by hand.
Broad platform support
Build apps that target Silverlight, Windows Phone and Windows Store.
Write cross-platform aspects using Portable Class Libraries.
PostSharp differentiates itself from similar technologies by the following characteristics:
PostSharp does not require you to change your architecture like dependency injection (IoC) does.
PostSharp does not generate source code that you then have to maintain. New behaviors are added during compilation.
PostSharp is very fast at runtime because it is basically a build-time technology.
PostSharp comes with Visual Studio tooling so that you can still understand your code even if behaviors are not implemented in source code.
Improved build-time performance: up to 3x faster
Improved debugging experience
Alternative to NuGet-based deployment
Improvements in the NotifyPropertyChanged aspect
Some licensing goodness for everybody.