This question is locked. New answers and comments are not allowed.
Dear Telerik,
i have the following template to generate a field with a propery within a single template. Problem now is i need to type the full fieldname and the full property name, while the only difference will be the first character, namelijk lowercase vs uppercase.
Is there any way to implement this in the template, so i can simply type the name once, and the template will capitalize the first letter of the property for me? Thanks!
Code generated:
Template:
i have the following template to generate a field with a propery within a single template. Problem now is i need to type the full fieldname and the full property name, while the only difference will be the first character, namelijk lowercase vs uppercase.
Is there any way to implement this in the template, so i can simply type the name once, and the template will capitalize the first letter of the property for me? Thanks!
Code generated:
private string example;
public string Example
{
get
{
return example;
}
set
{
if (example != value)
{
example = value;
OnPropertyChanged("Example");
}
}
}
Template:
private $1$ $2$;
public $1$ $3$
{
get
{
return $2=SELECT_VARIABLE($1$)$;
}
set
{
if($2$ != value)
{
$2$ = value;
OnPropertyChanged(\"$3$\");
}
}
}