I am starting c#, and from what i read lists<> are most often preffered. But i kind use to; to think in arrays from my PLC coding past. I work a lot with blackwhite raw instrument image data. Which i currently put in a color array ea BWcolor[x,y] = 255;
it could also be done with lists in which the same point could be defined as element nr: x+stride * y
I wonder should i convert image handling to use list data or keep thinking in arrays. Because i read about that arrays should not be used in most cases. And that lists are faster?; or are lists in general better since lists have more buildin functions ? (like inserting elements). And if thats so it would only be handy to code so if my functions would depend on their functions.
I not realy get it why a lists are prefered when thinking in 2dimensional spaces, but if it is beneficial i would better start converting my code to use lists.