In Visual Studio, you can use the find and replace utitlity in regular expression mode, with the expressions below to turn code such as this...
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue = false, Order = 0)]
public string executeSoapV1Result;
into
private string _executeSoapV1Result;
[System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue = false, Order = 0)]
public string executeSoapV1Result
{
get
{
return _executeSoapV1Result;
}
set
{
_executeSoapV1Result = value;
}
}
Find What:
{\[System\.Runtime\.Serialization\.DataMemberAttribute(.*)\]}\n{(.*)}public {(.*)} {(.*)};$
Replace with:
private \3 _\4;\n\1\npublic \3 \4\{\nget\{ return _\4;\n\}\nset\{ _\4 = value;\n\}\n\}
With Use:
Regular expressions option.
Then do a Ctrl+K, Ctrl+D shortcut to reformat the output correctly.