Persistate API documentation
SerialiserFilter Delegate
NamespacesPersistateSerialiserFilter

[This is preliminary documentation and is subject to change.]

Contains a method used for node filtering when serialising data using the TreeSerialiser class.
Declaration Syntax
C#
public delegate bool SerialiserFilter(
	bool association,
	IClassified target,
	Persistent parent,
	Persistent root
)
Parameters
association (Boolean)
If true, the node being serialised is an association, if false, a contained node.
target (IClassified)
The target node being serialised.
parent (Persistent)
The parent of the target node. For associations, this is not the actual parent of the target object, but the associator - the object with an association to the target.
root (Persistent)
The root object of the tree being serialised.
Return Value
True if the node should be serialised, false if it should not.
Remarks
The TreeSerialiser serialises first the containment tree, and then makes another pass to serialise associations. In the first pass, the filter is applied for every contained node, scalar and collection. In the second pass, the filter is also applied to the contained nodes, and assuming the node passes, is then applied to any associations within that node.

Assembly: Persistate (Module: Persistate) Version: 0.6.1.20 (0.6.1.20)