If I have a list like:
I can use var obj = _sourceBarListLong.ElementAt(abc) to get the Object obj of type SetupInfo at Index abc;
If I change the derived object from the list, e.g. obj.Direction = Right;
Do I habe to write the changed object back to the list or did I change it within the list ?
My understanding is, that I have to write it back: _sourceBarListLong[abc] = obj;
C#:
Snippetprivate List<SetupInfo> _sourceBarListLong { get; set;} = new ();
I can use var obj = _sourceBarListLong.ElementAt(abc) to get the Object obj of type SetupInfo at Index abc;
If I change the derived object from the list, e.g. obj.Direction = Right;
Do I habe to write the changed object back to the list or did I change it within the list ?
My understanding is, that I have to write it back: _sourceBarListLong[abc] = obj;