Open sandboxFocusImprove this doc

Model Pattern Errors and Warnings

Messages reported by PostSharp.Patterns.Model: INotifyPropertyChanged, aggregatable objects, undo/redo and weak events.

Message Severity Description
DOM001 Error A property getter reads a mutable static field or a field of another object.
DOM002 Error A property getter calls a static method or a method of another object that returns a value.
DOM003 Error A property getter creates a delegate from a method group or a lambda expression.
DOM004 Error A method marked with [Pure] has a parameter of a type that is not immutable.
DOM007 Warning A property getter reads more than five fields whose type is compatible with the type of the property.
DOM008 Error A class implements INotifyPropertyChanged itself but has no OnPropertyChanged(string) method for the aspect.
DOM009 Error A class defines a ChildPropertyChanged event or an OnChildPropertyChanged method, whose names the aspect reserves.
DOM011 Error The getter of a property calls a virtual method, whose dependencies cannot be analyzed.
DOM012 Error Depends.On is called deeper in the call chain than the getter of the property or a method that it calls directly.
DOM021 Error A recordable class has a field of a mutable struct type.
DOM022 Error A child field of a recordable class has a type that is not recordable.
DOM023 Warning A property depends on a property of an object whose type does not notify its changes.
DOM025 Error A property depends on a local variable that is assigned inside a try statement.
DOM026 Error A recordable class has a public or internal async or iterator method.
DOM027 Error The [AggregateAllChanges] attribute is applied to a property whose type is not a collection.
DOM028 Warning A method assigns the individual fields of a structure that a field of the class holds.
DOM030 Warning The [IgnoreAutoChangeNotification] attribute is applied to a method instead of a property.