Class MetadataExtensions
- Namespace
- Motiv
- Assembly
- Motiv.dll
Provides extension methods over custom metadata objects..
public static class MetadataExtensions
- Inheritance
-
MetadataExtensions
- Inherited Members
Methods
GetFalseMetadata<TMetadata>(IEnumerable<BooleanResultBase<TMetadata>>)
Get the metadata from a collection of boolean results that are false.
public static IEnumerable<TMetadata> GetFalseMetadata<TMetadata>(this IEnumerable<BooleanResultBase<TMetadata>> results)
Parameters
resultsIEnumerable<BooleanResultBase<TMetadata>>The collection of BooleanResultBase<TMetadata> to get metadata from.
Returns
- IEnumerable<TMetadata>
A collection of metadata from the boolean results that are false.
Type Parameters
TMetadataThe type of the metadata.
GetTrueMetadata<TMetadata>(IEnumerable<BooleanResultBase<TMetadata>>)
Get the metadata from a collection of boolean results that are true.
public static IEnumerable<TMetadata> GetTrueMetadata<TMetadata>(this IEnumerable<BooleanResultBase<TMetadata>> results)
Parameters
resultsIEnumerable<BooleanResultBase<TMetadata>>The collection of BooleanResultBase<TMetadata> to get metadata from.
Returns
- IEnumerable<TMetadata>
A collection of metadata from the boolean results that are true.
Type Parameters
TMetadataThe type of the metadata.
GetValues<TMetadata>(IEnumerable<BooleanResultBase<TMetadata>>)
Gets the metadata from a collection of boolean results.
public static IEnumerable<TMetadata> GetValues<TMetadata>(this IEnumerable<BooleanResultBase<TMetadata>> results)
Parameters
resultsIEnumerable<BooleanResultBase<TMetadata>>The collection of BooleanResultBase<TMetadata> to get metadata from.
Returns
- IEnumerable<TMetadata>
A collection of metadata from the boolean results.
Type Parameters
TMetadataThe type of the metadata.
GetValues<TMetadata>(IEnumerable<MetadataNode<TMetadata>>)
Gets the metadata from a collection of metadata nodes.
public static IEnumerable<TMetadata> GetValues<TMetadata>(this IEnumerable<MetadataNode<TMetadata>> results)
Parameters
resultsIEnumerable<MetadataNode<TMetadata>>The metadata nodes.
Returns
- IEnumerable<TMetadata>
The aggregation of the metadata contained within the supplied metadata nodes.
Type Parameters
TMetadataThe type of the metadata.