TStringsHelper.GetValueOrDefault<T>(string,T) Method

Gets the corresponding value of the name entry if there is such an entry and the value is not empty, otherwise, returns the default value specified by the defaultparam.

Namespace: Spring.Helpers
public
 function GetValueOrDefault<T>(const name: string; const default: T): T; experimental;

Type Parameters

T

Parameters

name
Type: string

default
Type: T

Return Value

Type: T