Open sandboxFocus
  • TOC

Post­Sharp Documentation

Introduction

Deployment and Configuration

Adding Aspects to Code

Logging

Contracts

INotify­Property­Changed

Weak Event

XAML

Parent/Child, Visitor and Disposable

Undo/Redo

Caching

Multithreading

Developing Custom Aspects

Validating Architecture

Testing and Debugging

Miscellaneous

API Reference

Post­Sharp

Post­Sharp.​Aspects

Post­Sharp.​Aspects.​Advices

Post­Sharp.​Aspects.​Configuration

Post­Sharp.​Aspects.​Dependencies

Post­Sharp.​Aspects.​Internals

Post­Sharp.​Aspects.​Serialization

Post­Sharp.​Collections

Post­Sharp.​Constraints

Post­Sharp.​Extensibility

Post­Sharp.​Extensibility.​Build­Time­Logging

Post­Sharp.​Patterns

Post­Sharp.​Patterns.​Caching

Post­Sharp.​Patterns.​Caching.​Backends

Post­Sharp.​Patterns.​Caching.​Backends.​Azure

Post­Sharp.​Patterns.​Caching.​Backends.​Redis

Post­Sharp.​Patterns.​Caching.​Dependencies

Post­Sharp.​Patterns.​Caching.​Formatters

Post­Sharp.​Patterns.​Caching.​Implementation

Post­Sharp.​Patterns.​Caching.​Locking

Post­Sharp.​Patterns.​Caching.​Serializers

Post­Sharp.​Patterns.​Caching.​Value­Adapters

Post­Sharp.​Patterns.​Collections

Post­Sharp.​Patterns.​Collections.​Advices

Post­Sharp.​Patterns.​Contracts

Post­Sharp.​Patterns.​Diagnostics

Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Asp­Net­Core

Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Asp­Net­Framework

Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Diagnostic­Source

Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Http­Client

Post­Sharp.​Patterns.​Diagnostics.​Audit

Post­Sharp.​Patterns.​Diagnostics.​Backends

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Application­Insights

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Audit

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Common­Logging

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Console

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Event­Source

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Log4Net

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Microsoft

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Multiplexer

Post­Sharp.​Patterns.​Diagnostics.​Backends.​NLog

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Null

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Serilog

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Trace

Post­Sharp.​Patterns.​Diagnostics.​Backends.​Trace­Source

Post­Sharp.​Patterns.​Diagnostics.​Contexts

Post­Sharp.​Patterns.​Diagnostics.​Correlation

Post­Sharp.​Patterns.​Diagnostics.​Custom

Post­Sharp.​Patterns.​Diagnostics.​Custom.​Messages

Post­Sharp.​Patterns.​Diagnostics.​Formatters

Post­Sharp.​Patterns.​Diagnostics.​Record­Builders

Post­Sharp.​Patterns.​Diagnostics.​Threading­Instrumentation

Post­Sharp.​Patterns.​Diagnostics.​Transactions

Post­Sharp.​Patterns.​Diagnostics.​Transactions.​Model

Post­Sharp.​Patterns.​Dynamic­Advising

Post­Sharp.​Patterns.​Formatters

Post­Sharp.​Patterns.​Model

Post­Sharp.​Patterns.​Model.​Controls

Post­Sharp.​Patterns.​Model.​Type­Adapters

Post­Sharp.​Patterns.​Recording

Post­Sharp.​Patterns.​Recording.​Operations

Post­Sharp.​Patterns.​Threading

Post­Sharp.​Patterns.​Threading.​Models

Post­Sharp.​Patterns.​Utilities

Post­Sharp.​Patterns.​Xaml

Post­Sharp.​Reflection

Post­Sharp.​Reflection.​Method­Body

Post­Sharp.​Serialization

  • Article

Namespace PostSharp.Serialization

Classes

ActivatorProvider

Provides instances of classes implementing the IActivator interface. You should not use this class in user code.

ActivatorSecurityToken

Security token passed to the CreateInstance(Type, ActivatorSecurityToken) method of the IActivator interface.

ActivatorTypeAttribute

Custom attribute that, when applied to an assembly, points to a type in the assembly implementing IActivator.

ImportSerializerAttribute

Custom attribute that, when applied to a serializable type, specifies that the serializer of this type has a dependency on another serializer. The custom attribute can be applied at assembly level; it then applies to all serializable types in this assembly.

PNonSerializedAttribute

Custom attribute that, when applied to a field of a class annotated with PSerializableAttribute, specifies that this field should not be serialized.

PSerializableAttribute

Custom attribute that, when applied to a type, causes PostSharp to generate a serializer for use by the PortableFormatter.

PortableFormatter

A serializer designed to serialize the internal structure of types with support for cyclic object graphs. The PortableFormatter is very similar in function and design to the BinaryFormatter, but is supported on most platforms and does not require full trust. Both formatters have similar usage: SerializableAttribute is replaced by PSerializableAttribute and NonSerializedAttribute by PNonSerializedAttribute.

PortableSerializationBinder

Binds types to names and names to types. Used by the PortableFormatter.

PortableSerializationException

Exception thrown by the PortableFormatter.

ReferenceTypeSerializer

Base serializer for all reference types.

SerializationServices

Provides some utility method for the current namespace.

SerializerAttribute

Custom attribute that, when applied to a type, specifies its serializer for use by the PortableFormatter.

SerializerFactoryProvider

Provides instances of the ISerializerFactory interface for object types that have been previously registered using AddSerializer(Type, Type).

ValueTypeSerializer<T>

Base serializer for all value types.

Structs

DottedString

Encapsulates dotted strings such as namespaces and type names, so their serialization by PortableFormatter can be optimized.

Interfaces

IActivator

Exposes a method CreateInstance(Type, ActivatorSecurityToken), which allows to create an instance of a type using the Activator facility.

IArgumentsReader

Provides read access to the collection of deserialized arguments.

IArgumentsWriter

Provides write access to a collection of arguments that need to be serialized.

ISerializationCallback

Interface that can be implemented by serializable classes. It defines methods OnDeserialized() and OnSerializing() called during serialization.

ISerializer

Defines the semantics of an object serializer.

ISerializerDiscoverer

Exposes a method DiscoverSerializers(Type) that allows implementations of the ISerializerFactoryProvider interface to discover serializer types for each type being serialized.

ISerializerFactory

Defines a method CreateSerializer(Type), which creates instances of the ISerializer interface for given object types.

ISerializerFactoryProvider

Provides instances of the ISerializerFactory interface given the object type.