Converts any collection of records to a DataTebla using reflection. If the number of records is 0 this methods returns an empty DataTable with the columns based on the fields of the Type.
[Visual Basic] Overloads Public Shared Function RecordsToDataTable( _ ByVal records As ICollection, _ ByVal recordType As Type, _ ByVal maxRecords As Integer _ ) As DataTable