API Reference
PostSharp is a design pattern automation tool for Microsoft .NET.
Namespaces
NamespaceDescription
PostSharp
The PostSharp namespace is the root namespace of PostSharp.
PostSharp.Aspects
The PostSharp.Aspects namespace provides the primitives of the PostSharp aspect-oriented framework, such as abstract aspect classes, aspect interfaces, and advise argument classes.
PostSharp.Aspects.Advices
The PostSharp.Aspects.Advices provides custom attributes that allow developing composite aspects with advices and pointcuts.
PostSharp.Aspects.Configuration
The PostSharp.Aspects.Configuration namespace contains classes and custom attributes configuring the aspects of the PostSharp.Aspects namespace.
PostSharp.Aspects.Dependencies
The PostSharp.Aspects.Dependencies namespace contains types and custom attributes that allow to define dependencies between aspects and advices, so that the aspect weaver behaves determistically even if the same element of code is the target of several aspects provided by multiple vendors.
PostSharp.Aspects.Serialization
The PostSharp.Aspects.Serialization namespace contains types taking care of the process of serializing aspects at build time and deserializing them at run time.
PostSharp.Collections
The PostSharp.Collections namespace contains collection types used by the PostSharp library.
PostSharp.Constraints
The PostSharp.Constraints namespace allows you to validate your code against predefined or custom design rules.
PostSharp.Extensibility
The PostSharp.Extensibility namespace defines the semantics of the attribute multicasting mechanism and exposes other types that allow user code to interact with the PostSharp,platform.
PostSharp.Patterns
 
PostSharp.Patterns.Collections
The PostSharp.Patterns.Collections namespace defines collection classes that work with the Aggregatable pattern.
PostSharp.Patterns.Contracts
The PostSharp.Patterns.Contracts namespace contains ready-made contracts that validate fields, properties and parameters at runtime.
PostSharp.Patterns.Diagnostics
The PostSharp.Patterns.Diagnostics namespace contains a logging aspect.
PostSharp.Patterns.Model
The PostSharp.Patterns.Model namespace contains an implementation of the Observer, Aggregatable and Disposable patterns.
PostSharp.Patterns.Model.Controls
 
PostSharp.Patterns.Model.TypeAdapters
 
PostSharp.Patterns.Recording
The PostSharp.Patterns.Recording namespace implements the undo/redo feature.
PostSharp.Patterns.Recording.Operations
The PostSharp.Patterns.Recording.Operations namespace defines recordable operations.
PostSharp.Patterns.Threading
The PostSharp.Patterns.Threading namespace contains an implementation of several threading models, and other thread dispatching aspects.
PostSharp.Patterns.Threading.Models
 
PostSharp.Patterns.Utilities
 
PostSharp.Reflection
The PostSharp.Reflection namespace complements the System.Reflection namespace.
PostSharp.Reflection.GenericArgs
The PostSharp.Reflection.GenericArgs namespace contains classes that can be used instead of unbound generic type arguments.
PostSharp.Reflection.Syntax
The PostSharp.Reflection.Syntax namespace contains classes and interfaces that can represent the decompiled abstract syntax tree of method bodies.
PostSharp.Serialization
The PostSharp.Serialization namespace implements a portable serializer.