Hey,
If you've been enjoying C# 3.0's object initializer syntax, but have to
work on a VB.NET project, you might like to know that there's something similar
in VB.NET 9.0.
You could do it like this:
Dim
point1
As
New
MapPoint()
With
point1
.Latitude
= 0
.Longitude = 0
End
With
Or now you can do it like this:
Dim
point1
As
New
MapPoint()
With
{.Latitude =
0,
.Longitude =
0}
Doesn't make a huge difference, but enough of one that I'm glad it's there!