Click or drag to resize
ValidationHelperGetValueT Method (Object, T, CultureInfo)
Converts the value to specified type. If the value is null, default value is used.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax
C#
public static T GetValue<T>(
	Object value,
	T defaultValue,
	CultureInfo culture = null
)

Parameters

value
Type: SystemObject
Value to convert
defaultValue
Type: T
Default value
culture (Optional)
Type: System.GlobalizationCultureInfo
Culture

Type Parameters

T
Result type

Return Value

Type: T
See Also