Click or drag to resize

CategorizedSettingsElementValueAsT(T) Method

Gets the setting value as the specified type.

Namespace: GSF.Configuration
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public T ValueAs<T>(
	T defaultValue
)
View Source

Parameters

defaultValue  T
The default value to return if the setting value is empty.

Type Parameters

T
Type to which the setting value is to be converted.

Return Value

T
The type-coerced value of the setting.
Remarks
If this function fails to properly coerce value to specified type, the default value is returned.
See Also