public bool GetValue(string fieldName, out object fieldValue)
{
switch (fieldName)
{
case "Name":
fieldValue = this.mOrders[this.mRecordIndex].Name;
return true;
case "Quantity":
fieldValue = this.mOrders[this.mRecordIndex].Quantity;
return true;
default:
// A field with this name was not found,
// return false to the Aspose.Words mail merge engine.
fieldValue = null;
return false;
}
}