In visual studio you can set accessors by using the encapsulate field refactoring operation on a declaration (Ctrl + E,R shortcut).
Is it possible to generate (using the default settings) the accessors of several field at once ?
Having :
private int one;
private int two;
//etc
and generating :
public int One
{
get { return one; }
set { one = value; }
}
public int Two
{
get { return two; }
set { two = value; }
}
//etc
without selecting each declaration.