C
C#2y ago
plushechka

❔ Output information

I have two constructors that take a surname or surname and a collection with salaries . How can I get all the information from the "ListObjects" collection?
8 Replies
Angius
Angius2y ago
Just do...? In the loop, item.Surname will be the surname And item.CollectionSalary will be the list of strings you have there
plushechka
plushechkaOP2y ago
plushechka
plushechkaOP2y ago
not everything is so good
Angius
Angius2y ago
Ah Well, it's a list of values So you need to either loop through it, or use string.Join() (as a side note, why do you store clearly numeric values as strings...?)
plushechka
plushechkaOP2y ago
so the task requires
Angius
Angius2y ago
Damn, I knew schools were shit but I had no idea they were this shit Oh well, carry on then
plushechka
plushechkaOP2y ago
Yes, thank you
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server