FillCollection fills a Collection of objects from a DataReader

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

Syntax

C#
public static IList<TItem> FillCollection<TItem>(
	IDataReader dr,
	ref IList<TItem> objToFill
)
Visual Basic
Public Shared Function FillCollection(Of TItem) ( 
	dr As IDataReader,
	ByRef objToFill As IList(Of TItem)
) As IList(Of TItem)

Parameters

dr
Type: System.Data..::..IDataReader
The Data Reader
objToFill
Type: System.Collections.Generic..::..IList<(Of <(<'TItem>)>)>%
The List to fill

Type Parameters

TItem
The type of object

Return Value

returnsM:DotNetNuke.Common.Utilities.CBO.FillCollection``1(System.Data.IDataReader,System.Collections.Generic.IList{``0}@)

See Also