[Solved] ForEach List Extension method – Value Or Reference Type? [duplicate]
Regardless of whether the type of c is a reference type or a value type, when setting a variable c = something, you are overwriting whatever the variable referred to. So the original object that c referred to is no longer referenced. This does not change the list from updating its reference either though, that’s … Read more