Reporter | Daniel Hilgarth (DanielH) |
---|---|
Created | Jan 12, 2011 5:01:35 PM |
Updated | Jan 26, 2012 12:43:10 AM |
Priority | Major |
Type | Bug |
Fix versions | Next |
State | Open |
Assignee | Slava Tutushkin (slava.tutushkin) |
Subsystem | Live templates |
Affected versions | 6.0 |
Fixed in build | No Fixed in build |
I have the following template:
private $type$ $fieldname$;
public $type$ $propertyname$
{
get { return $fieldname$; }
set
{
if(value != $fieldname$)
{
$fieldname$ = value;
InvokePropertyChanged(new PropertyChangedEventArgs("$propertyname$"));
}
}
}
with the following settings:
type: Choose macro
fieldname: suggest name for a variable
propertyname (Not editable): Value of fieldname with the first character in upper case
the suggested name for fieldname is correctly "_type".
The macro "Value of another variable with the first character in upper case" should use the first alphanumeric character of the variable...
Right now, I can't use the template like this
private $type$ $fieldname$;
public $type$ $propertyname$
{
get { return $fieldname$; }
set
{
if(value != $fieldname$)
{
$fieldname$ = value;
InvokePropertyChanged(new PropertyChangedEventArgs("$propertyname$"));
}
}
}
with the following settings:
type: Choose macro
fieldname: suggest name for a variable
propertyname (Not editable): Value of fieldname with the first character in upper case
the suggested name for fieldname is correctly "_type".
The macro "Value of another variable with the first character in upper case" should use the first alphanumeric character of the variable...
Right now, I can't use the template like this