Hidden Features of VB.NET? -
i have learned quite bit browsing through hidden features of c# , surprised when couldn't find similar vb.net.
so of hidden or lesser known features?
the exception when
clause largely unknown.
consider this:
public sub login(host string, user string, password string, _ optional bretry boolean = false) try ssh.connect(host, user, password) catch ex timeoutexception when not bretry ''//try again, once. login(host, user, password, true) catch ex timeoutexception ''//log exception end try end sub
Comments
Post a Comment