更新:2007 年 11 月
大多数表达式都可以转换为表达式树,但多维数组无法进行这样的转换。例如,下面的代码将导致此错误:
Module Module1
Sub Main()
'' A multi-dimensional array cannot be converted.
'Dim expTree As Expressions.Expression(Of Func(Of Object)) = _
' Function() New Integer(1, 1) {{1, 2}, {2, 3}}
' A one-dimensional array can be converted.
Dim expTree2 As Expressions.Expression(Of Func(Of Object)) = _
Function() New Integer() {1, 2, 3}
End Sub
End Module
**错误 ID:**BC36603