❔ Getting a value from an class in a list that is an attribute from another class
This code is an exmaple
I have an instance of
class a
, and I want to get the string text
from 1 of the objects in the list List<b> listB
how can I do that?
I'm new to OOP and making this project to get better5 Replies
yourAObject.listB[index].text
(also, it's not an attribute but a property)
$structure
For C# versions older than 10, see
$StructureOld
Knowing proper nomenclature helps search for answers faster
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.