Welcome to MSDN Blogs Sign in | Join | Help

Wriju's BLOG

.NET and everything

Browse by Tags

All Tags » VB.NET 10   (RSS)
VB.NET 10 : Optional Nullable Parameter
If you want to assign Nothing to the optional parameter in VB.NET 10, it is just like to obvious now, Sub Main() 'Passing value for the optional parament _age MyFunc( "Wriju" , "wriju@contoso.com" , 30 ) 'No value is supplied for the optional parament Read More...
VB.NET 10 : Multiline Lambdas
With implicit line continuation VB.NET 10 now allows you to write the multiline Lambdas. That means like your normal Functions you can write functions under Lambdas. So now you may write like, Dim arrInt As Integer () = { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 Read More...
VB.NET 10 : Array Literals
VB.NET has another exiting feature which helps us to declare and initialize an array without explicitly specifying the type and dimension. This infers at compile time. Good for Lazy developer like me J Dim arrInt = {1, 2, 3, 4, 5, 6, 7} 'becomes Integer() Read More...
VB.NET 10 : Nullable Optional Parameter
You can create method with optional parameter and also make them Nullable. Optional with default value Sub Test( ByVal _name As String , ByVal _email As String , Optional ByVal _age As Integer = 30) Optional and Nullable Sub Test( ByVal _name As String Read More...
VB.NET 10 : Collection Initializer
Another useful feature which was missing in VB.Net 9 is available in Visual Studio 2010. This provides option to declare and initialize with series of values with the keyword Form . Dim myList As New List ( Of Integer ) From {1, 2, 3, 4, 5, 6, 7, 8, 9, Read More...
Visual Basic 10 : Line Continuation Magic
There are some new enhancements in Visual Basic 2010 or Visual Basic 10 where you can really have greater flexibility on how you handle multiple lines for continuous statements, 'Explicit Continious Line (no need to use & _ ) Dim sContinuation As Read More...
VB.NET 10 : Automatic Property
Now in VB.NET 10 we have automatic property, Public Property myName As String = "Test" Sub Main() Console .WriteLine(myName) End Sub In ildasm it shows like, Namoskar!!! Read More...
Page view tracker