Reversing Assignments Follow
I was wondering if R# had a good way of reversing an assignment
For example:
Texbox_FirstName.Text = someclass.FirstName;
Texbox_LasttName.Text = someclass.LasttName;
Texbox_Address.Text = someclass.Address;
A line by line refactor function that allows me to flip the assignments, to the following
someclass.FirstName = Texbox_FirstName.Text;
someclass.LasttName = Texbox_LasttName.Text ;
someclass.Address = Texbox_Address.Text;
I end up doing ALOT in ASP.net, I usually have the first one in my "page load" function, then the second on in my "save" function
Please sign in to leave a comment.
To swap assignment put cursor on your line and press 'Ctrl+Shift+Alt+Left arrow'.