Please consider this live template:
private readonly $MyType$ $FieldName$;
public $ClassName$($MyType$ $FieldName$) //class constructor
{
this.$FieldName$ = $FieldName$;
}
public $MyType$ $PropName$
{
get { return $FieldName$; }
}
where the order of parameters is:
- PropName
- ClassName (in Choose Macro select "Containing type name")
- MyType
- FieldName (in Choose Macro select "Value of another variable with the first character in lower case" and then specify PropName there) - also select "Not editable" in right-top dropdown
It should look like this http://screencast.com/t/aRQi0xVezXMb
Hope it helps!