When I call this method is always change the values in original List "printRowList", I don not want to change the original values. I just need to change the values of temp List which is "tempRowModellist". What can I do?
private List<PrintRowModel> SetTemplateSettingsData(
List<PrintRowModel> printRowList,
object value)
{
List<PrintRowModel> tempRowModellist = new List<PrintRowModel>();
tempRowModellist.AddRange(printRowList);
foreach (PrintRowModel printRow in tempRowModellist )
{
foreach (PrintColumnModel printColumn in printRow)
{
printColumn.Value =
GetObjectValues(printColumn.Value, value).ToString();
}
}
return newList;
}