Get the Typeclass for the object and check it.
Type t = reader.GetValue(ordinalId).GetType();
if (t.IsValueType){
} else {
}
I suspect you'll be using the Type object later in your code if you are trying to dynamically process the results.
source
share