Click or drag to resize

ExtensionMethods Class

Extension methods for the IExportProvider interface.
Inheritance Hierarchy
SystemObject
  TomsToolbox.CompositionExtensionMethods

Namespace:  TomsToolbox.Composition
Assembly:  TomsToolbox.Composition (in TomsToolbox.Composition.dll)
Syntax
public static class ExtensionMethods

The ExtensionMethods type exposes the following members.

Methods
  NameDescription
Public methodStatic memberContractNameMatches
Checks whether the contractName matches the value stored in the metadata.
Public methodStatic memberGetContractName(IDictionaryString, Object)
Reads the well known ContractName property from the metadata.
Public methodStatic memberGetContractName(IMetadata)
Reads the well known ContractName property from the metadata.
Public methodStatic memberGetContractType
Reads the well known ContractType property from the metadata.
Public methodStatic memberGetContractTypeFor
Gets the contract type for the specified elementType.
Public methodStatic memberGetDefaultMetadata(Type, String)
Gets the default metadata for the specified service.
Public methodStatic memberGetDefaultMetadata(Type, Type, String)
Gets the default metadata for the specified service.
Public methodStatic memberGetExportsTMetadata(IExportProvider, Type, FuncIMetadata, TMetadata)
Gets the exports for the specified parameters.
Public methodStatic memberGetExportsTMetadata(IExportProvider, Type, String, FuncIMetadata, TMetadata)
Gets the exports for the specified parameters.
Public methodStatic memberGetValueT
Gets the metadata with the specified name.
Public methodStatic memberGetValueOrDefault(IMetadata, String)
Gets the value, or default if no item with this name exists.
Public methodStatic memberGetValueOrDefaultT(IMetadata, String)
Gets the value, or default if no item with this name exists.
Public methodStatic memberTryGetExportedValueT
Tries to the get exported value.
Public methodStatic memberTryGetValueT
Gets the metadata with the specified name.
Top
See Also