Conceptual Documentation

API Reference

PostSharp Namespace

PostSharp.Aspects Namespace

PostSharp.Aspects.Advices Namespace

PostSharp.Aspects.Configuration Namespace

PostSharp.Aspects.Dependencies Namespace

PostSharp.Aspects.Internals Namespace

PostSharp.Aspects.Serialization Namespace

PostSharp.Collections Namespace

PostSharp.Constraints Namespace

PostSharp.Extensibility Namespace

PostSharp.Patterns.Caching Namespace

PostSharp.Patterns.Caching.Backends Namespace

PostSharp.Patterns.Caching.Backends.Azure Namespace

PostSharp.Patterns.Caching.Backends.Redis Namespace

PostSharp.Patterns.Caching.Dependencies Namespace

PostSharp.Patterns.Caching.Formatters Namespace

PostSharp.Patterns.Caching.Implementation Namespace

PostSharp.Patterns.Caching.Serializers Namespace

PostSharp.Patterns.Caching.ValueAdapters Namespace

PostSharp.Patterns.Collections Namespace

PostSharp.Patterns.Common.Utilities Namespace

PostSharp.Patterns.Contracts Namespace

PostSharp.Patterns.Diagnostics Namespace

PostSharp.Patterns.Diagnostics.Audit Namespace

PostSharp.Patterns.Diagnostics.Backends Namespace

PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights Namespace

PostSharp.Patterns.Diagnostics.Backends.Audit Namespace

PostSharp.Patterns.Diagnostics.Backends.CommonLogging Namespace

PostSharp.Patterns.Diagnostics.Backends.Console Namespace

PostSharp.Patterns.Diagnostics.Backends.EnterpriseLibrary Namespace

PostSharp.Patterns.Diagnostics.Backends.EventSource Namespace

PostSharp.Patterns.Diagnostics.Backends.Frigate Namespace

PostSharp.Patterns.Diagnostics.Backends.Log4Net Namespace

PostSharp.Patterns.Diagnostics.Backends.Loupe Namespace

PostSharp.Patterns.Diagnostics.Backends.NLog Namespace

PostSharp.Patterns.Diagnostics.Backends.Null Namespace

PostSharp.Patterns.Diagnostics.Backends.Serilog Namespace

PostSharp.Patterns.Diagnostics.Backends.Trace Namespace

PostSharp.Patterns.Diagnostics.Backends.TraceSource Namespace

PostSharp.Patterns.Diagnostics.Contexts Namespace

PostSharp.Patterns.Diagnostics.Custom Namespace

PostSharp.Patterns.Diagnostics.Formatters Namespace

PostSharp.Patterns.Diagnostics.RecordBuilders Namespace

PostSharp.Patterns.Diagnostics.ThreadingInstrumentation Namespace

PostSharp.Patterns.Formatters Namespace

PostSharp.Patterns.Model Namespace

PostSharp.Patterns.Model.Controls Namespace

PostSharp.Patterns.Model.TypeAdapters Namespace

PostSharp.Patterns.Recording Namespace

PostSharp.Patterns.Recording.Operations Namespace

PostSharp.Patterns.Threading Namespace

PostSharp.Patterns.Threading.Models Namespace

PostSharp.Patterns.Utilities Namespace

PostSharp.Patterns.Xaml Namespace

PostSharp.Reflection Namespace

PostSharp.Reflection.MethodBody Namespace

PostSharp.Serialization Namespace

XamlGeneratedNamespace Namespace

This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

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.Internals
 
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.Caching
 
PostSharp.Patterns.Caching.Backends
 
PostSharp.Patterns.Caching.Backends.Azure
 
PostSharp.Patterns.Caching.Backends.Redis
 
PostSharp.Patterns.Caching.Dependencies
 
PostSharp.Patterns.Caching.Formatters
 
PostSharp.Patterns.Caching.Implementation
 
PostSharp.Patterns.Caching.Serializers
 
PostSharp.Patterns.Caching.ValueAdapters
 
PostSharp.Patterns.Collections
The PostSharp.Patterns.Collections namespace defines collection classes that work with the Aggregatable pattern.
PostSharp.Patterns.Common.Utilities
 
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.Diagnostics.Audit
 
PostSharp.Patterns.Diagnostics.Backends
 
PostSharp.Patterns.Diagnostics.Backends.ApplicationInsights
 
PostSharp.Patterns.Diagnostics.Backends.Audit
 
PostSharp.Patterns.Diagnostics.Backends.CommonLogging
 
PostSharp.Patterns.Diagnostics.Backends.Console
 
PostSharp.Patterns.Diagnostics.Backends.EnterpriseLibrary
 
PostSharp.Patterns.Diagnostics.Backends.EventSource
 
PostSharp.Patterns.Diagnostics.Backends.Frigate
 
PostSharp.Patterns.Diagnostics.Backends.Log4Net
 
PostSharp.Patterns.Diagnostics.Backends.Loupe
 
PostSharp.Patterns.Diagnostics.Backends.NLog
 
PostSharp.Patterns.Diagnostics.Backends.Null
 
PostSharp.Patterns.Diagnostics.Backends.Serilog
 
PostSharp.Patterns.Diagnostics.Backends.Trace
 
PostSharp.Patterns.Diagnostics.Backends.TraceSource
 
PostSharp.Patterns.Diagnostics.Contexts
 
PostSharp.Patterns.Diagnostics.Custom
 
PostSharp.Patterns.Diagnostics.Formatters
 
PostSharp.Patterns.Diagnostics.RecordBuilders
 
PostSharp.Patterns.Diagnostics.ThreadingInstrumentation
 
PostSharp.Patterns.Formatters
 
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.Patterns.Xaml
 
PostSharp.Reflection
The PostSharp.Reflection namespace complements the System.Reflection namespace.
PostSharp.Reflection.MethodBody
 
PostSharp.Serialization
The PostSharp.Serialization namespace implements a portable serializer.
XamlGeneratedNamespace