Click or drag to resize

ExtensionMethodsGetContractType Method

Reads the well known ContractType property from the metadata.

Namespace:  TomsToolbox.Composition
Assembly:  TomsToolbox.Composition (in TomsToolbox.Composition.dll)
Syntax
public static Type? GetContractType(
	this IDictionary<string, Object?> metadata
)

Parameters

metadata
Type: System.Collections.GenericIDictionaryString, Object
The metadata.

Return Value

Type: Type
The contract type

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDictionaryString, Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also