Where does the exportStoredProc method exist? Is it in a common ancestor that each class inherits from or does each class implement it independently?
If the former, then use the base class in the list's template class:
private static void ExportItemsToSBS(List<YourBaseClass> itemsToExport, String sbsBatchNumber, String generatedDate)
{
foreach (var item in itemsToExport)
{
item.exportStoredProc(sbsBatchNumber);
}
}
If the latter, then declare an interface that has that exportStoredProc method in it, add the interface to each classes' declaration, and use the interface in the method:
public interface IExportItem
{
void exportStoredProc(string batchNumber);
}
public class CashReceipt : IExportItem
{
...
}
private static void ExportItemsToSBS(List<IExportItem> itemsToExport, String sbsBatchNumber, String generatedDate)
{
foreach (var item in itemsToExport)
{
item.exportStoredProc(sbsBatchNumber);
}
}
Hope that helps.