PostSharp 4.3 / / Post­Sharp Documentation / Standard Patterns
Standard Patterns

PostSharp offers ready-made implementation of several of the most common patterns.

You can read this part from start to end to learn about what PostSharp makes possible, or jump directly to the chapters that covers the patterns you are interested in.

This part includes the following chapters:




This chapter explains how to automatically implement the INotifyPropertyChanged interface.

Parent/Child Relationships

This chapter describes the Aggregatable pattern, which automatically implement parent/child relationships. This pattern is the foundation of the Recordable pattern (undo-redo) and threading models.


This chapter describes the Recordable pattern, implementing the undo/redo feature.


This chapter shows how to add code contracts as custom attributes to fields, parameters and properties.


This chapter describes how to instrument your applications.

Adding Aspects to Code

This chapter shows advanced techniques to add aspects to your code.