/Home /Archive /Syndicate /Blog /Support /About /Contact  
All Visual Basic Feeds in one place!





A great set of power point slides from Erik's 2006 Dev Days presentation on VB and LINQ .   feel that VB love !
continuing the discussion on closures ….   A rarely used, somewhat obscure feature of VB, is by enclosing a variable in ()'s it is passed ByVal instead of ByRef.  Consider the following code:   (1)    Dim s As String = "hello"    Foo(s)    Console.Writeline(s)   versus:   (2)    Dim s As String = "hello"    Foo((s))    Console.Writeline(s)     where Foo is defined as: Sub Foo(ByRef value as string)   value = "goodbye" End sub    In second case the out ... [ read more ]


© 2005 Serge Baranovsky. All rights reserved.
All feed content is property of original publisher. Designated trademarks and brands are the property of their respective owners.

This site is maintained by SubMain(), a division of vbCity.com, LLC