Synopsis
String typeName
= DataReader.GetDataTypeName(Int32 columnOrdinal);
Retrieves the name of the native data type used for a specified
column. In C#, you can also use the typeof( )
operator to retrieve type information.
Example
The following code displays the data type of the second column:
Console.WriteLine(r.GetDataTypeName(1));