How do I check is the type class or struct?
protected T GetNullValue<T>(IDataReader reader, int ordinalId)
{
if (reader.IsDBNull(ordinalId))
{
//if T is struct.....
//else if I is class
}
return (T)reader.GetValue(ordinalId);
}