PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / Dynamically­Advisable­Object Class

DynamicallyAdvisableObject Class

Base class for objects into which advices can be dynamically injected. This class is not meant to be used in user code.
Inheritance Hierarchy

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: (
public abstract class DynamicallyAdvisableObject : IQueryInterface, 
	ISerializable, IDeserializationCallback

The DynamicallyAdvisableObject type exposes the following members.

Protected methodExecuteWithAdvices<TResult, TAction>
Executes an action wrapped by all custom advices added to the current object.
Public methodGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
Public methodOnDeserialization
Runs when the entire object graph has been deserialized.
Extension Methods
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also