Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Rani Singh   on Nov 27 In Asp.net Category.

  
Question Answered By: Haboos Kauser   on Nov 27

Optional arguments are probably the wrong way and not CLS compliant.

Overloading is better.


Sub MySub( )
Dim strParm() As String = {"up", "down", "left", "right"}
Call MySub(strParm())
End Sub


Sub MySub(MyString as String() )
.....
End Sub

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Using an array as an optional parameter Or get search suggestion and latest updates.


Tagged: