Generate new property "PropertyChanged"

It would be nice if resharper could generate ( alt + insert ) new property "PropertyChanged" also :)

Now I use live template :


and i get :

        private int _someThing;         public int SomeThing         {             get { return _someThing; }             set             {                 if (_someThing != value)                 {                     _someThing = value;                     RaisePropertyChanged("SomeThing");                 }             }         }

but if this could r# generate it would be great :)

Just a suggestion ( dont know if it's a smart one )
2 comments

Hello Frane,

There's a similar request in our tracker: http://youtrack.jetbrains.net/issue/RSRP-233045
and you're welcome to vote for it. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

It would be nice if resharper could generate ( alt + insert ) new
property "PropertyChanged" also

Now I use live template :

public $type$ $property$
{
get { return $field$; }
set
{
if ($field$ != value)
{
$field$ = value;
RaisePropertyChanged("$property$");
}
}
}
and i get :

private int _someThing;

public int SomeThing
{
get { return _someThing; }
set
{
if (_someThing != value)
{
_someThing = value;
RaisePropertyChanged("SomeThing");
}
}
}
but if this could r# generate it would be great


Just a suggestion ( dont know if it's a smart one )

---
Original message URL:
http://devnet.jetbrains.net/message/5319842#5319842



0

Please sign in to leave a comment.