using System; using System.Collections; namespace BCG { /// /// This enumertaor is used to iterate through an IBlueRow when the IBlueRow is /// used as an IDictionary /// 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 } }