Click or drag to resize

AppEnvReaderGetValueT Method

Returns exactly one value for a key. If there is no value for the key, defaultValue is returned. Wildcards of the form %Name% are replaced recursively if possible; An attempt is made to cast the determined string value to the return type T.

Namespace: NetEti.ApplicationEnvironment
Assembly: NetEti.AppEnvReader (in NetEti.AppEnvReader.dll) Version: 1.0.0+903a007d8850bcbaf700b4fedc513f6c16da77d4
Syntax
public T GetValue<T>(
	
	string key,
	T defaultValue
)

Parameters

key  String
The access key (string)
defaultValue  T
The default result of type T

Type parameters

T
The desired return type

Return value

T
Value cast to the key in the return type

Implemented

IGetValueGetValueT(String, T)
Exceptions
ExceptionCondition
InvalidCastExceptionTypecast error
See also