PostSharp.Patterns.Model Namespace
The PostSharp.Patterns.Model namespace contains an implementation of the Observer, Aggregatable and Disposable patterns.
Classes
  ClassDescription
Public classAggregatableAttribute
Custom attribute that, when applied to class, enables instances of this class to be involved in a parent-child relationship.
Public classAggregatableAttributeTargetClass
Describes the members that are introduced or overridden by the AggregatableAttribute aspect. You can define one or many of these members in classes that are the target of AggregatableAttribute to reacts to events of the Aggregatable pattern.
Public classAggregatableClientAttribute
Base class for aspects that consume functionalities from the AggregatableAttribute aspect. This class provides functionalities to advise and unadvise children.
Public classAggregatableExtensions
Provides extension methods to the IAggregatable interface.
Public classAggregatableServices
Provide static methods to aid with implementation of the IAggregatable interface.
Public classAggregateAllChangesAttribute
Custom attribute that, when applied to a property of a class enhanced with the NotifyPropertyChangedAttribute, specifies that a change of any property of the property value will be considered as a change of the property itself.
Public classAncestorChangedEventArgs
Arguments of the AncestorChanged event.
Public classChildAttribute
Custom attribute that, when applied to a field or automatic property, specifies that the object assigned to this field or property is a child of the instance of the declaring type.
Public classChildInfo
Describes a location (typically a field or collection item) on which a child can be attached to a parent.
Public classDepends
Provides a way to specify dependencies of a method to properties or chains of properties. This class should be used from methods marked with the SafeForDependencyAnalysisAttribute custom attribute.
Public classDisposableAttribute
Custom attribute that, when applied to a class, implements the IDisposable in such a way that the Dispose() method executes the Dispose() method for all children objects that also implement the IDisposable interface.
Public classDynamicallyAdvisableObject
Base class for objects into which advices can be dynamically injected. This class is not meant to be used in user code.
Public classIgnoreAutoChangeNotificationAttribute
Custom attribute that, when applied to a method, prevents the NotifyPropertyChangedAttribute aspect to raise change notifications for this property.
Public classMemberRelationshipAttribute
Base class for custom attributes that determine the kind of relationship of objects in a graph.
Public classNotifyPropertyChangedAttribute
Custom attribute that, when applied on a type, implements the INotifyPropertyChanged interface for this class and all children classes.
Public classNotifyPropertyChangedAttributeTargetClass
Describes the members that are consumed by the NotifyPropertyChangedAttribute aspect. You can define one or many of these members in classes that are the target of NotifyPropertyChangedAttribute to customize the behavior of the NotifyPropertyChangedAttribute aspect.
Public classNotifyPropertyChangedOverflowException
Exception thrown at runtime when the NotifyPropertyChangedAttribute aspect encounters an excessively long chain is dependency. This situation is typically caused by a cyclic dependency.
Public classNotifyPropertyChangedServices
Utility methods to work with the NotifyPropertyChangedAttribute aspect.
Public classNotifyPropertyChangingAdapter
Provides a unified adapter to the different variants of the INotifyPropertyChanging interface.
Public classParentAttribute
Custom attribute that, when applied to a field or automatic property, specifies that this field or property should be automatically set to the parent of the instance of the declaring type, whenever this instance is attached as a child to another object.
Public classPropertyPath
Immutable property path with all components interned.
Public classPureAttribute
Custom attribute that, when applied on a method, specifies that this method is a pure function, i.e. the method always returns the same result given the same parameter values. In the context of NotifyPropertyChangedAttribute, it is also assumed that pure functions have only parameters of primitive types (Int32, String, ...). The Object parameter type is also accepted, but then it is assumed that instances passed are immutable (and changes to these objects will not be tracked).
Public classQueryInterfaceExtensions
Provides methods to aid with the use of dynamic interfaces.
Public classReferenceAttribute
Custom attribute that, when applied to a field or automatic property, specifies that this field or property is a simple reference, and is not involved in a parent-child relationship.
Public classSafeForDependencyAnalysisAttribute
Custom attribute that, when applied on a property, prevents the dependency analysis algorithm used by the NotifyPropertyChangedAttribute aspect from emitting errors when it encounters constructs that it cannot analyze.
Structures
  StructureDescription
Public structureRelationshipInfo
Describes the relationship between a parent and a child.
Interfaces
  InterfaceDescription
Public interfaceIAggregatable
Defines members (principally Parent and VisitChildren(ChildVisitor, ChildVisitorOptions, Object)) that allow to consume parent-child relationships in an object tree.
Public interfaceIAttachable
Defines setter methods for the IAggregatable.
Public interfaceIAttacher
Describes the semantics of a service through which a child IAggregatable object can attach itself to a parent object. This interface is typically implemented by the parent object by composition.
Public interfaceIDynamicInterfaceImplementation
Interface that must be implemented by objects implementing dynamic interfaces, which can be queried using QueryInterface<T>(). The IDynamicInterfaceImplementation interface provides a mean to get a reference back to the principal object.
Public interfaceIInvocable<TResult>
Exposes an Invoke() method.
Public interfaceIQueryInterface
Interface implemented by objects that can implement interface dynamically by composition, without implementing the interface directly at MSIL level. The QueryInterface<T>() method must then be used instead of a normal cast.
Delegates
  DelegateDescription
Public delegateChildVisitor
Encapsulates a method that is invoked by the VisitChildren(ChildVisitor, ChildVisitorOptions, Object) method.
Public delegateDescendantVisitor
Enumerations
  EnumerationDescription
Protected enumerationAggregatableClientAttribute.AspectInitializationStatus
Possible values for the InitializationStatus property.
Public enumerationChildVisitorOptions
Public enumerationDescendantVisitorStatus
Type of the return value of ChildVisitor. Determines how the visitor should continue enumerating other objects.
Public enumerationObjectAccessLevel
Enumeration of access levels that methods of execution scopes can require on an object.
Public enumerationRelationshipKind
Enumeration of the kinds of relationship between objects in a object graph.