C#
Other
This group contains non-categorized templates. Templates for creating arrays, declaring public variables and creating empty methods are provided here, among others.
| Template name | Description |
| asrt |
Purpose System.Diagnostics.Debug.Assert($END$); Before expansion Parameters
|
| ear |
Purpose
$TYPE$[] $NAME$ = new $TYPE$[] {};
Before expansion Parameters
|
| from |
Purpose from $VAR$ in $COLLECTION$ $END$ Before expansion Parameters
|
| hal |
Purpose
Html.ActionLink("$TEXT$", "$ACTION$", "$CONTROLLER$")
Before expansion Parameters
|
| join |
Purpose join $NAME$ in $COL$ on $EXPR1$ equals $EXPR2$ $END$ Before expansion Parameters
|
| out |
Purpose
System.Console.Out.WriteLine("$END$");
Before expansion Parameters
|
| outv |
Purpose
System.Console.Out.WriteLine("$EXPR$ = {0}", $EXPR$);
Before expansion Parameters
s = in the example above) is automatically synchronized with the name of the selected variable.
|
| pci |
Purpose public const int Before expansion |
| pcs |
Purpose public const string Before expansion |
| prop |
Purpose
public $TYPE$ $NAME$ { get; set; }
Before expansion Parameters
|
| psr |
Purpose public static readonly Before expansion |
| psvm |
Purpose
public static void Main (string[] args)
{
$END$
}
Before expansion Parameters
|
| rta |
Purpose
RedirectToAction("$ACTION$", "$CONTROLLER$")
Before expansion Parameters
|
| sfc |
Purpose
$VARTYPE$ $VAR$ = $VAR1$ as $TYPE$;
if ($VAR$ != null)
{
$END$
}
Before expansion Parameters
|
| thr |
Purpose throw new Before expansion |
| toar |
Purpose ($TYPE$[])$ARRAYLIST$.ToArray(typeof($TYPE$)) Before expansion Parameters
|
| ua |
Purpose
Url.Action("$ACTION$", "$CONTROLLER$")
Before expansion Parameters
|
