I have 2 classes which have some identical properties. I stock into a list properties from 1st class, and after that, I want to take some needed properties and put them into
Just use Select:
if(sil != null) { var iweil = sil.Select(item=>new InvoiceWithEntryInfo() { IdIWEI = item.ID, AmountIWEI = item.Amount, DateIWEI = item.Date }).ToList(); }