Generic version of FillCollection fills a List custom business object of a specified type from the supplied DataReader

Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static ArrayList FillCollection(
	IDataReader dr,
	ref Type objType,
	ref int totalRecords
)
Visual Basic
Public Shared Function FillCollection ( 
	dr As IDataReader,
	ByRef objType As Type,
	ByRef totalRecords As Integer
) As ArrayList

Parameters

dr
Type: System.Data..::..IDataReader
The IDataReader to use to fill the object
objType
Type: System..::..Type%
The type of the Object
totalRecords
Type: System..::..Int32%
The total No of records

Return Value

A List of custom business objects

Remarks