Leaf<T>

References
public sealed class Leaf<T> : ILeaf
Generic implementation of ILeaf.
T

Constructors

Leaf

#
Construct a new leaf.
public Leaf(
Pear<T>
pear,
Item and meta data pear.
site
Site, may not be null.
)

Properties

Explicit

ILeaf.Pear

#
Pear

Pear

#
Item and meta pear.
public Pear<T> Pear { get; }

Site

#
Gets the site for this entry.
public Site Site { get; }
Site

Methods

MergeMeta

#
Merge the existing meta data with other meta data.
public Leaf<T> MergeMeta(
data,
Data to add.
mergeBehaviour
Merge behaviour.
)
New leaf.

ReplaceItem

#
Create a new leaf with a new item.
public Leaf<T> ReplaceItem(
T
item
New item, must be of the same type as the old item.
)
New leaf.

ReplaceMeta

#
Replace the meta data.
public Leaf<T> ReplaceMeta(
data
New meta data.
)
New leaf.