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