24 lines
702 B
C#
24 lines
702 B
C#
using System;
|
|
using System.Collections;
|
|
|
|
namespace BCG
|
|
{
|
|
/// <summary>
|
|
/// This enumertaor is used to iterate through an IBlueRow when the IBlueRow is
|
|
/// used as an IDictionary
|
|
/// </summary>
|
|
public class BlueRowDictionaryEnumerator : BlueRowEnumerator, IDictionaryEnumerator
|
|
{
|
|
public BlueRowDictionaryEnumerator (IBlueRow row) : base (row) {}
|
|
public override object Current {get{return Entry;}}
|
|
|
|
#region IDictionaryEnumerator members
|
|
public object Key {get{return myRow.schema[myPos].colName;}}
|
|
|
|
public object Value {get{return myRow[myPos];}}
|
|
|
|
public DictionaryEntry Entry {get{return new DictionaryEntry (Key, Value);}}
|
|
#endregion
|
|
}
|
|
}
|