Pear<T>

References
public sealed class Pear<T> : IPear
This class is the generic implementation of the IPear interface.
T

Properties

Explicit

IPear.Item

#
Gets the Item.
Item

Item

#
Gets the item value.
public T Item { get; }

Meta

#
Gets the meta data associated with the item.
public MetaData Meta { get; }
Meta

Type

#
Gets the exact (cached) type of the Item.
public Type Type { get; }
Type

Methods

Create

#
Create a pear from a value and metadata. If the value is null, a null pear will be returned.
public static Pear<T> Create(
T
item,
meta
)

Create

#
Create a pear from a value. If the value is null, a null pear will be returned.
public static Pear<T> Create(
T
item
)

Iterate

#
Iterate over a collection of items and a collection of meta data.
public static IEnumerable<Pear<T>> Iterate(
items,
Items to iterate over.
metaData
Matching collection of meta data.
)
Pear iterator.

Iterate

#
Iterate over a collection and wrap each one in a pear.
public static IEnumerable<Pear<T>> Iterate(
items
Items to iterate over.
)
Pear iterator.

ToString

#
Describe this pear.
public override string ToString()
Object.ToString