Feature request: Tie existing property to member variable

Say I for some reason have an "empty" property definition like

it would be very convenient to be able to generate


-essentially the reverse of the Alt+Insert property generation

2 comments
Comment actions Permalink

Hello Oskar,

I am just curious, how does your "empty" Property get generated?

-Michael

Say I for some reason have an "empty" property definition like

 public bool SortDescending
> {
> get { return false; }
> set { }
> }
> ]]>

it would be very convenient to be able to generate

 private bool _sortDescending
> public bool SortDescending
> {
> get { return _sortDescending; }
> set { _sortDescending = value; }
> }
> ]]>


-essentially the reverse of the Alt+Insert property generation


0
Comment actions Permalink

Well, for now it would typically be generated by the Interface member stub generator in VS.NET.

Now I now a replacement for this is in the works in ReSharper, but I still quite frequently find myself creating the property first, field second.

Not a must have, but a like to have for sure.

0

Please sign in to leave a comment.