TestSettings.

Get<T>(string) Method

Summary

Gets the value for the specified key converted to the specified type. This method never throws an exception. It will return default(T) if the key is not found or the value cannot be converted to T.
Assembly
Wyam.Testing.dll
Namespace
Wyam.Testing.Configuration
Containing Type
TestSettings

Syntax

public T Get<T>(string key)

Type Parameters

Name Description
T The desired return type.

Parameters

Name Type Description
key string The key of the value to get.

Return Value

Type Description
T The value for the specified key converted to type T or default(T) if the key is not found or cannot be converted to type T.
GitHub