I need some refractors as used at [Original]https://github.com/NeVeSpl/CodeRefactoringsForVisualStudio However, these should full fill the following points:
- work with SetProperty from Prism
- shorten the property text
- keep the DataAnnotations
- use the notation stored in Visual Studio for the private variables
From
public string SomeProperty { get; set; } To
private string _someProperty;
public string SomeProperty
{
get
{
return _someProperty;
}
set
{
SetProperty(ref _someProperty, value);
}
}It works.
I want to bring the Code from:
private string _someProperty;
public string SomeProperty
{
get
{
return _someProperty;
}
set
{
SetProperty(ref _someProperty, value);
}
}To
private string _someProperty;
public string SomeProperty
{
get{return _someProperty;}
set{SetProperty(ref _someProperty, value);}
}But at now, it does't work
From
[Required]
public string SomeProperty { get; set; } To
private string _someProperty;
[Required]
public string SomeProperty
{
get{return _someProperty;}
set{SetProperty(ref _someProperty, value);}
}But at now, it does't work