Hi, I have the next question:
in foreach (type identifier in expression) where expresion is a structure if I say identifier.a = value than the value is changed in expression structure too?
As far as I know you cannot make changes to objects that you get from the foreach command - they are read only.
To change the data, you would need to do a traditional for loop.
Yeah I got the answer, thank you.
You are right Larsson. I've made a program and followed it step by step. You can change data into objects with foreach.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.