This question is locked. New answers and comments are not allowed.
Hi,
According to the convertor:
C#
Converts to:VB.NET
But that gives errors in Visual Studio. As far as I can tell it should be:
Thanks
Gareth
According to the convertor:
C#
private
static
IQueryable<product> fake =
new
List<product> {
new
product { name =
"test"
, Price = 25 },
new
product { name =
"test"
, Price = 25 }}.AsQueryable();
Converts to:VB.NET
Private
Shared
fake
As
IQueryable(Of product) =
New
List(Of product)()
With
{ _
New
product()
With
{ _
.name =
"test"
, _
.Price = 25 _
}, _
New
product()
With
{ _
.name =
"test"
, _
.Price = 25 _
} _
}.AsQueryable()
But that gives errors in Visual Studio. As far as I can tell it should be:
Private
Shared
fake
As
IQueryable(Of product) =
New
List(Of product)
From
{ _
New
product()
With
{ _
.name =
"test"
, _
.Price = 25 _
}, _
New
product()
With
{ _
.name =
"test"
, _
.Price = 25 _
} _
}.AsQueryable()
Thanks
Gareth