ReSharper Web Help

ReSharper | Live Templates | Surround Templates | Predefined | 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
Reference__Options__Templates__Surround_With_Templates__Predefined__ASP.NET__VB.NET__foreach__before.png
After expansion
Reference__Options__Templates__Surround_With_Templates__Predefined__ASP.NET__VB.NET__foreach__after.png

Parameters

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

See Also

Reference