If I perform .Select()
on a collection, will the resulting collection share exact index values between the two collections.
Perhaps I haven't explained myself well. Here's what I mean:
int[] nums = new int[]{ 50, 100, 200};
var moreNums = nums.Select(num => num / 2);
Will moreNums[0] = 25? [1] = 50? [2] = 100?
Can you bank on this, 100% of the time? I always feel a sense of ambiquity with LINQ because of this. This is important because I have two lists where I can use a single index to refer to a pair of values between the two lists. I don't want my lists to go out of sync.