Skip to content
RobertTheGrey edited this page Jan 12, 2013 · 1 revision

<default />

Declares local variables if a symbol of a given name is not known to be in scope.

<default x="a" y="b"/>

Results in C#:

var x = a;
var y = b;

If a symbol x or y is known to exist in scope as a local variable, or already declared in viewdata or global property, the line declaring the variable will not be generated.

with type=""

<default x="a" y="b" type="T"/>

Results in C#:

T x = a;
T y = b;