FillSortedList fills a SortedList of objects from a DataReader
Namespace: DotNetNuke.Common.UtilitiesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static SortedList<TKey, TValue> FillSortedList<TKey, TValue>( string keyField, IDataReader dr ) |
Visual Basic |
---|
Public Shared Function FillSortedList(Of TKey, TValue) ( keyField As String, dr As IDataReader ) As SortedList(Of TKey, TValue) |
Parameters
- keyField
- Type: System..::..String
The key field used for the Key
- dr
- Type: System.Data..::..IDataReader
The Data Reader
Type Parameters
- TKey
- The key for the SortedList
- TValue
- The value for the SortedList Item