I'm trying to pass a child object in a Base class defined parameter but it doesn't work. I think I'm doing something wrong but I can't seem to figure out what.
This is the method I'm trying to execute:
public static Tuple<List<AutoTaskBriljant>, List<TransactionResult>> MakeXMLFromObjectList(List<AutoTaskBriljant> lstObjects,
Func<BriljantObjects, IEnumerable<TransactionResult>> CheckObjectInput, string name)
The base class I was talking about is AutoTaskBriljant
I'm trying to execute the method here:
public static Tuple<List<Herstelling>, List<TransactionResult>> MakeXMLFromHerstellingenList(List<HerstellingTicket> lstTickHerst, string fileNameStart)
{
return TransactionHelper.MakeXMLFromObjectList(lstTickHerst, CheckHerstellingInput, fileNameStart);
}
The class HerstellingTicket is a child of AutoTaskBriljant
public class HerstellingTicket:AutoTaskBriljant
{
public HerstellingTicket(Ticket atObj, Herstelling brObj) : base(atObj, brObj)
{
}
}
Thanks in advance