Methods
Format a pear with support for nullness.
Parameters:
| pear (IPear) |
Format a pear with support for nullness.
Parameters:
| pear (Pear<T>) |
Test whether a pear has meta data in a null-safe way. I.e. if the pear is null, false is returned.
Parameters:
| pear (IPear) |
Merge the existing meta data with other meta data.
Parameters:
| pear (IPear) | |
| meta (MetaData) | |
| mergeBehaviour (MergeBehaviour) |
public static Pear<T> MergeMetaData<T>(this Pear<T> pear, MetaData meta, MergeBehaviour mergeBehaviour)
Merge the existing meta data with other meta data.
Parameters:
| pear (Pear<T>) | |
| meta (MetaData) | |
| mergeBehaviour (MergeBehaviour) |
Format a pear with support for nullness.
Parameters:
| pear (IPear) |
Format a pear with support for nullness.
Parameters:
| pear (Pear<T>) |
Convert this pear to a target type if possible. This method only attempts direct casting from whatever the current type is to T.
Parameters:
| pear (Pear<T>) |
Returns: A pear of the target type, possible a null value if the cast was not successful.
Convert this pear to a target type if possible. This method only attempts direct casting from whatever the current type is to T.
Parameters:
| pear (IPear) |
Returns: A pear of the target type, possible a null value if the cast was not successful.
Gets a specific meta value in a null-safe way. If the pear is null or lacks metadata, false is returned.
Gets the meta data of a pear in a null-safe way. I.e. if the pear is null, null is returned.
Parameters:
| pear (IPear) |
Create a new pear with a new item.
Create a new pear with a new item.
Parameters:
| pear (Pear<T>) | |
| item (T) |
Replace the meta data of a pear.