PostSharp: Free Yourself from Repetitive Code
PostSharp is the #1 pattern-aware extension to C# and VB.
As developers, we usually think in terms of design patterns but with conventional programming languages which lack support for implementing patterns, we end up writing repetitive code. PostSharp solves this by extending the C# and VB languages with a notion of pattern. It includes ready-made implementations of the most common patterns found in .NET and gives you a framework to automate your own patterns.
The result: shorter, cleaner code that’s easier to write and understand, contains fewer defects and is less expensive to maintain.
PostSharp is a commercially-developed product with a highly popular free edition named PostSharp Essentials.
Over 50,000 developers and more than 10% of Fortune 500 companies including Microsoft, Intel, Bank of America, Volkswagen, BP, Siemens, and Oracle rely on PostSharp to save 10 - 25 % lines of code and thus:
PostSharp includes the following components:
PostSharp Framework: the #1 aspect-oriented framework for .NET
Automate your own patterns with aspect-oriented programming:
Automate your code reviews with architecture validation:
PostSharp Logging: the no-brainer instrumentation toolbox for .NET
Add extensive logging to your application in minutes and direct it to any logging framework.
PostSharp MVVM: the must-have companion for your XAML developments
Stop writing repeating code for:
PostSharp Threading: the pragmatic way to write verifiably thread-safe code
Address multithreading at the right level of abstraction with threading models,
Starting new threads and tasks in .NET languages is simple, but ensuring that objects are thread-safe is not. Choose the threading models that you want and have the built-in verification detect errors in your code before they cause random data races.
PostSharp Caching: the straightforward way to improve performance
Add caching to an existing method with just a custom attribute. Works with Redis, MemoryCache, and your custom cache framework.