FillCollection fills a Collection of objects from a DataReader

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

Syntax

C#
public static IList FillCollection(
	IDataReader dr,
	Type objType,
	ref IList objToFill
)
Visual Basic
Public Shared Function FillCollection ( 
	dr As IDataReader,
	objType As Type,
	ByRef objToFill As IList
) As IList

Parameters

dr
Type: System.Data..::..IDataReader
The Data Reader
objType
Type: System..::..Type
The type of the Object
objToFill
Type: System.Collections..::..IList%
An IList to fill

Return Value

returnsM:DotNetNuke.Common.Utilities.CBO.FillCollection(System.Data.IDataReader,System.Type,System.Collections.IList@)

See Also