Summer.Batch.Data.Converter Class Reference

Utility class for converting data to unify the type of the values read from the database providers. More...

Static Public Member Functions

static T Convert< T > (object obj)
 Converts an object to the specified type. More...
 
static object Convert (object obj, Type type)
 Converts an object to the specified type. More...
 

Detailed Description

Utility class for converting data to unify the type of the values read from the database providers.

Member Function Documentation

static object Summer.Batch.Data.Converter.Convert ( object  obj,
Type  type 
)
static

Converts an object to the specified type.

Parameters
objthe object to convert
typethe type to convert to
Returns
obj converted to type type .
Exceptions
InvalidOperationException  if obj cannot be converted to type type
static T Summer.Batch.Data.Converter.Convert< T > ( object  obj)
static

Converts an object to the specified type.

Template Parameters
T the type to convert to
Parameters
objthe object to convert
Returns
obj converted to type T .
Exceptions
InvalidOperationException  if obj cannot be converted to type T

The documentation for this class was generated from the following file:
  • Summer.Batch.Data/Converter.cs