我有一段C#代碼轉換,但翻譯的代碼是無效的...有人可以幫忙嗎?爲什麼不這(翻譯)VB.NET代碼工作?
C#
<table>
<% Html.Repeater<Hobby>("Hobbies", "row", "row-alt", (hobby, css) => { %>
<tr class="<%= css %>">
<td><%= hobby.Title%></td>
</tr>
<% }); %>
</table>
VB
<% Html.Repeater(of Hobby)(Model.Hobbies, "row", "row-alt", Function(hobby, css) Do %>
<tr class="<%= css %>">
<td><%= hobby.Title%></td>
</tr>
<% End Function)%>
類型參數Jrc3.BLL.Product與類型不一樣Hobby – Jimmy 2010-03-27 23:40:47
Lol,忘記了改變...我的意思是語法上它沒有被接受......「函數(hobby,css)」讓VS說: 'Do'預計不會在那裏... – Ropstah 2010-03-28 00:24:15