Well, here is one for people who have a lot of handy little extras for the visual studio or can help with the keystroke sequence.
Say I have a Person class:
class Person
{
string Name { get; set; }
int Age { get; set; }
}
And I'm busy coding away happily. I often get a situation where I need to assign values to all the properties of this class or assign all the values of the properties to something else.
public override void CopyTo(Person myPerson)
{
myPerson.Name = "XXX";
myPerson.Age = 11;
}
I would like to generate this part:
myPerson.Name
myPerson.Age
those. Just reset all myPerson properties under each other in a small list. In the editor of Visual Studio.
I have resharper installed, and I quickly looked through a utility that does this on purpose, but I could not find it. Who can help?