Geeks With Blogs
Darren Fieldhouse September 2010 Entries
Reversing assignment statements with Find and Replace in VS 2010
One of the blogs I read is Zain Naboulsi’s Visual Studio Tips and Tricks. In a recent post he discussed the power of using Find and Replace with regular expressions and it gave me an idea about how to quickly reverse a set of assignment statements. Lets say you have the following code: Me.FirstNameTextBox.Text = customer.FirstName Me.LastNameTextBox.Text = customer.LastName Me.TelephoneTextBox.Text = customer.Telephone Me.EmailTextBox.Text = customer.Email And you want to reverse the assignments ......

Posted On Wednesday, September 15, 2010 4:34 AM

Copyright © DarrenFieldhouse | Powered by: