Click or drag to resize

MetadataAdapter Class

An adapter to provide a dictionary with metadata as IMetadata
Inheritance Hierarchy
SystemObject
  TomsToolbox.CompositionMetadataAdapter

Namespace: TomsToolbox.Composition
Assembly: TomsToolbox.Composition (in TomsToolbox.Composition.dll) Version: 2.20.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public class MetadataAdapter : IMetadata

The MetadataAdapter type exposes the following members.

Constructors
 NameDescription
Public methodMetadataAdapter Initializes a new instance of the MetadataAdapter class.
Top
Methods
 NameDescription
Public methodStatic memberCreateTMetadataView Create a typed metadata view for the specified metadata.
Public methodGetValue Gets the metadata with the specified name.
Public methodTryGetValue Gets the metadata with the specified name.
Top
Extension Methods
 NameDescription
Public Extension MethodContractNameMatches Checks whether the contractName matches the value stored in the metadata.
(Defined by ExtensionMethods)
Public Extension MethodGetContractName Reads the well known ContractName property from the metadata.
(Defined by ExtensionMethods)
Public Extension MethodGetValueT Gets the metadata with the specified name.
(Defined by ExtensionMethods)
Public Extension MethodGetValueOrDefault Gets the value, or default if no item with this name exists.
(Defined by ExtensionMethods)
Public Extension MethodGetValueOrDefaultT Gets the value, or default if no item with this name exists.
(Defined by ExtensionMethods)
Public Extension MethodSafeCastT Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions)
Public Extension MethodTryGetValueT Gets the metadata with the specified name.
(Defined by ExtensionMethods)
Top
See Also