Kentico 10 API Reference
Kentico 10 API Reference
Namespaces
CMS.Helpers Namespaces
CMS.Helpers
ConversionService Class
ConversionService Methods
GetBoolean Method
GetCodeName Method
GetDateTime Method
GetDouble Method
GetGuid Method
GetIdentifier Method
GetInteger Method
GetString Method
GetValue(T) Method
ConversionService
GetValue
T
Method
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#
Copy
public
T
GetValue
<T>(
Object
value
, T
defaultValue
)
Parameters
value
Type:
System
Object
Value to convert
defaultValue
Type:
T
Default value
Type Parameters
T
Result type
Return Value
Type:
T
Implements
IConversionService
GetValue
T
(Object, T)
See Also
Reference
ConversionService Class
CMS.Helpers Namespace
Copyright (c) 2016 Kentico Software
Send comments on this topic to
support@kentico.com