|
using System;
using System.Collections.Generic;
using System.Text;
namespace DbfDotNet
{
public class DbfIndex<TRecord> : IEnumerable<TRecord>
where TRecord : DbfRecord, new()
{
internal Core.NdxFile<TRecord> mIndexTable;
internal DbfIndex() { }
#region IEnumerable<TRecord> Members
public IEnumerator<TRecord> GetEnumerator()
{
return mIndexTable.GetEnumerator();
}
#endregion
#region IEnumerable Members
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
{
return mIndexTable.GetEnumerator();
}
#endregion
public void Dump()
{
this.mIndexTable.Dump();
}
public TRecord GetRecord(UInt32 p)
{
return mIndexTable.GetRecordByRowIndex(p);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am a French programmer.
These days I spend most of my time with the .NET framework, JavaScript and html.