Invert assignment extensionFeatures With InvertAssignment extension you can invert assignment in your selected code. Select your code, use Invert assignment command (CTRL+E,I) from text editor context menu. For example from next code: C# Edit|Remove csharpif (dataRow != null){ person.FirstName = dataRow("FirstName"); person.LastName = dataRow("LastName"); person.Address = dataRow("Address");} if (dataRow != null) { person.FirstName = dataRow("FirstName"); person.LastName = dataRow("LastName"); person.Address = dataRow("Address"); } extension create: C# Edit|Remove csharpif (dataRow != null){ dataRow("FirstName") = person.FirstName; dataRow("LastName") = person.LastName; dataRow("Address") = person.Address;} if (dataRow != null) { dataRow("FirstName") = person.FirstName; dataRow("LastName") = person.LastName; dataRow("Address") = person.Address; }
Context menu -> Invert assgnment (CTRL+E,I) Screenshots
|