IMetadata<T>.

Get(string, T) Method

Summary

Gets the value associated with the specified key converted to T.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Meta
Containing Type
IMetadata<T>

Syntax

T Get(string key, T defaultValue)

Parameters

Name Type Description
key string The key of the value to get.
defaultValue T The default value to use if either the key is not found or the underlying type is not convertible.

Return Value

Type Description
T The converted value for the specified key or defaultValue if not found.
GitHub