Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the .Net 4.5 new features for Visual Basic?

.net 4.5 is out for Windows 8! What are the new exciting features for VB.NET?

Is that worth to download the preview now or should I wait for final release?

like image 822
Predator Avatar asked Oct 07 '11 18:10

Predator


1 Answers

You will now be able to override the root namespace.

Namespace Global.NewNamespace
    Public Class Class1


    End Class
End Namespace

Public Class Class1

End Class

Which means the above can be called like this.

Dim _class1 As New NewNamespace.Class1
Dim _class1_1 As New VB_Console.Class1

And

Iterators are also new.

In other words you get the yield keyword like you already had in C#

http://msdn.microsoft.com/en-us/library/dscyy5s0%28v=vs.110%29.aspx#Y0

like image 120
chrissie1 Avatar answered Sep 29 '22 07:09

chrissie1