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) Version: 2.20.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public static class ExtensionMethods

The ExtensionMethods type exposes the following members.

Methods
 NameDescription
Public Extension MethodContractNameMatches Checks whether the contractName matches the value stored in the metadata.
Public Extension MethodGetContractName(IDictionaryString, Object) Reads the well known ContractName property from the metadata.
Public Extension MethodGetContractName(IMetadata) Reads the well known ContractName property from the metadata.
Public Extension MethodGetContractType Reads the well known ContractType property from the metadata.
Public Extension MethodGetContractTypeFor Gets the contract type for the specified elementType.
Public Extension MethodGetDefaultMetadata(Type, String) Gets the default metadata for the specified service.
Public Extension MethodGetDefaultMetadata(Type, Type, String) Gets the default metadata for the specified service.
Public Extension MethodGetExportsTMetadataView(IExportProvider, Type, FuncIMetadata, TMetadataView) Gets the exports for the specified parameters.
Public Extension MethodGetExportsTMetadataView(IExportProvider, Type, String, FuncIMetadata, TMetadataView) Gets the exports for the specified parameters.
Public Extension MethodGetValueT Gets the metadata with the specified name.
Public Extension MethodGetValueOrDefault(IMetadata, String) Gets the value, or default if no item with this name exists.
Public Extension MethodGetValueOrDefaultT(IMetadata, String) Gets the value, or default if no item with this name exists.
Public Extension MethodTryGetExportedValueT Tries to the get exported value.
Public Extension MethodTryGetValueT Gets the metadata with the specified name.
Top
See Also