I have a three class which is having following properties
Class A
{
public int CustID { get; set; }
public string Name{ get; set; }
}
Class B
{
Inheritance will work
public abstract class ABBase
{
public int CustID { gete; set; }
}
public class A : ABBase
{
public string Name { get; set; }
}
public class B : ABBase
{
public string Age { get; set; }
}
Then rather than a generic method use
public void ProcessData(IList param1, string date)
{
Parallel.ForEach(T, (currentItem) =>
{
GetDetails(CustID )
});
}