Title here
Summary here
Define your own source block. This block generates data from a your own custom written functions.
List<string> Data = new List<string>()
{
"Test1", "Test2", "Test3"
};
var source = new CustomSource<MyRow>();
source.ReadFunc = progressCount =>
{
return new MyRow()
{
Id = progressCount + 1,
Value = Data[progressCount]
};
return result;
};
source.ReadCompletedFunc = progressCount => progressCount >= Data.Count;
Type | Name | Description |
---|---|---|
Func<int, ExpandoObject> | readFunc | |
Predicate<int> | readingCompleted |