@inherits umbraco.MacroEngines.DynamicNodeContext @using System.Collections; @{ List qa = new List(); } //this is not defined in the recursi
Define the variable in a @functions section.
@functions
The normal @{ places your code in some method body. Use @functions to define class members.
@{
@functions{ List qa = new List(); }
More reading on this matter: SLaks Dissecting razor series.