ReSharper 8.0 Web Help

ReSharper | Templates Explorer | Surround Templates | ASP.NET | VB.NET

ASP.net

VB.net

Template name Description
foreach

Purpose
Puts a selection into a foreach statement block.

<%For Each $VAR$ As $TYPE$ In $COL$ %>
$SELECTION$
<%Next%>

Before expansion

After expansion

Parameters

  • VAR - iterator variable.
  • TYPE - type to cast the array elements to.
  • COL - instance to iterate over.
  • SELECTION - selected code.

See Also

Reference