Live Templates: Getting type of another macro variable?
Hi,
Is there a way to create a template like this:
if ( $VAR$.Equals(default($VARTYPE$)) )
...
where $VARTYPE$ should evaluate to the type used for $VAR$ ?
e.g.
myMethod(int param)
{
//Live template would here evaluate to below (after I changed $VAR$ to "param"):
if ( param.Equals(default(int)) )
...
}
Thanks.
Please sign in to leave a comment.