public class DateRangeViewModel<T>
{
public int IxExpiring { get; set; }
public List<T> IxChecks { get; set; }
}
CollectedClientsNew = new List<ClientViewModelUpdated>;
var typeArg0 = CollectedClientsNew.GetType().GenericTypeArguments[0];
xDateRangeViewModel = new DateRangeViewModel<typeArg0>();
public class DateRangeViewModel<T>
{
public int IxExpiring { get; set; }
public List<T> IxChecks { get; set; }
}
var list3 = new List<MyCustomType>();
var var3 = list3.MakeDefault();
xDateRangeViewModel = new DateRangeViewModel<var3>();