ExcelReportGenerator.AsObject method

namespace: Serenity.Reporting   assemblySerenity.Extensions

Converts the specified XLCellValue to its corresponding .NET object.

public static object AsObject(this XLCellValue value)
parameter description
value The cell value to convert.

Return Value

The converted object, or null for a blank cell.

Exceptions

exception condition
InvalidCastException The cell value type is not supported.

See Also