Class DataTypeConvertor
Provides functionality to convert data types within the Telerik reporting framework.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Export
Assembly: Telerik.WinControls.dll
Syntax
public class DataTypeConvertor
Constructors
DataTypeConvertor()
Declaration
public DataTypeConvertor()
Methods
CanConvert(Object)
Determines whether the specified object can be converted to a different data type.
Declaration
public virtual bool CanConvert(object obj)
Parameters
System.Object
obj
The object to be checked for conversion capability. |
Returns
System.Boolean
True if the specified object can be converted; otherwise, false. |
Convert(Object)
Converts the specified object to a different data type.
Declaration
public virtual string Convert(object obj)
Parameters
System.Object
obj
The object to be converted. |
Returns
System.String
A string that represents the converted result. |
Convert(Object, Boolean)
Converts the specified object to a different data type based on the provided flag.
Declaration
public virtual string Convert(object obj, bool escapeStrings)
Parameters
System.Object
obj
The object to be converted. |
System.Boolean
escapeStrings
A boolean value indicating whether to special characters in when the object is of type string. |
Returns
System.String
Returns the converted object if successful; otherwise, returns null or the default value, depending on the useDefault parameter. |
ConvertDataEnumToString(DataType)
Converts a specified DataType enum value to its corresponding string representation.
Declaration
public virtual string ConvertDataEnumToString(DataType dataType)
Parameters
DataType
dataType
The DataType enum value to be converted. |
Returns
System.String
A string that represents the specified DataType enum value. |
ConvertToDataType(Object)
Converts the specified object to its corresponding data type.
Declaration
public virtual DataType ConvertToDataType(object obj)
Parameters
System.Object
obj
The object to be converted. |
Returns
DataType
The converted value in the appropriate data type. |
ConvertToDataType(String)
Converts a specified string representation to a corresponding data type.
Declaration
public virtual DataType ConvertToDataType(string dateType)
Parameters
System.String
dateType
The string representation of the value to be converted. |
Returns
DataType
The converted value of type |