FillCollection fills a Collection of objects from a DataReader

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

Syntax

C#
public static List<TItem> FillCollection<TItem>(
	IDataReader dr
)
Visual Basic
Public Shared Function FillCollection(Of TItem) ( 
	dr As IDataReader
) As List(Of TItem)

Parameters

dr
Type: System.Data..::..IDataReader
The Data Reader

Type Parameters

TItem
The type of object

Return Value

returnsM:DotNetNuke.Common.Utilities.CBO.FillCollection``1(System.Data.IDataReader)

See Also