Quote:Original post by Zahlman
Quote:Original post by MaulingMonkey
This is the one that always irks me:
*** Source Snippet Removed ***
Wow, it doesn't translate += for a property into a get/set pair? Epic fail. :(
/me feels increased motivation to target .NET bytecode with that language design...
No, you missed the point entirely. He's accessing an inner property of the Line. Since Vector2 is a value type, its getter returns a copy, and therefore the access of member X would only update the copied version, not the original. Therefore, C# marks this as an error for you so that you don't get confused as to why the value isn't updating.