FillCollection fills a Collection of objects from a DataReader

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

Syntax

C#
public static ArrayList FillCollection(
	IDataReader dr,
	Type objType,
	bool closeReader
)
Visual Basic
Public Shared Function FillCollection ( 
	dr As IDataReader,
	objType As Type,
	closeReader As Boolean
) As ArrayList

Parameters

dr
Type: System.Data..::..IDataReader
The Data Reader
objType
Type: System..::..Type
The type of the Object
closeReader
Type: System..::..Boolean
Flag that indicates whether the Data Reader should be closed.

Return Value

returnsM:DotNetNuke.Common.Utilities.CBO.FillCollection(System.Data.IDataReader,System.Type,System.Boolean)

See Also