Merging changes
This commit is contained in:
1 parent
c4216d2272
commit
797816be7e
437 files changed
+54228
-28
No files matched your search
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
namespace BCG
|
||||
{
|
||||
/// <summary>
|
||||
/// Used for enumerating an IEnumerable (ex ICollection). Furthermore, this is the
|
||||
/// default Enueramtor used when enumerating asn IBlueRow
|
||||
/// </summary>
|
||||
public class BlueRowEnumerator : IEnumerator
|
||||
{
|
||||
protected int myPos = -1;
|
||||
protected int myRowSize = -1;
|
||||
protected IBlueRow myRow;
|
||||
|
||||
public BlueRowEnumerator (IBlueRow row)
|
||||
{
|
||||
myRow = row;
|
||||
myRowSize = row.schema.columnNames.Length;
|
||||
}
|
||||
|
||||
#region IEnumerator members
|
||||
public void Reset() {myPos = 0;}
|
||||
|
||||
public bool MoveNext ()
|
||||
{
|
||||
if (myPos == myRowSize - 1)
|
||||
return false;
|
||||
myPos ++;
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual object Current {get{return myRow[myPos];}}
|
||||
#endregion
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user