{
ReadStatus status = btree
switch (status)
{
case ReadStatus
dataStream
dataStream
put = (IPut)formatter
return true;
case ReadStatus
if (key
{
keyStream
key = DbEntry
}
if (data
{
dataStream
data = DbEntry
}
continue;
case ReadStatus
case ReadStatus
default:
return false;
}
}
}
五
{
List<IPut> custList = new List<IPut>();
using (DbBTreeCursor cursor = btree
{
IPut cust = null;
while (GetNextRecord(cursor
custList
}
return custList;
}
private bool GetNextRecord(DbBTreeCursor cursor
{
ReadStatus status;
keyStream
dataStream
DbEntry key = DbEntry
DbEntry data = DbEntry
do
{
status = cursor
switch (status)
{
case ReadStatus
case ReadStatus
case ReadStatus
if (key
{
keyStream
key = DbEntry
[
From:http://tw.wingwit.com/Article/program/net/201311/14804.html