How to writes classes or functions with optinal parameters in c# ot vb.net?
classes with optional parameters
Collapse
This topic is closed.
X
X
-
gaelTags: None -
William Ryan
Re: classes with optional parameters
In C# you are going to have to Overload, in VB.NET
Sum SomeSub(Optiona l ByVal myName as String = "Default")
However, many consider optional params to be bad form and recommend
overloading instead (present company included)
"gael" <anonymous@disc ussions.microso ft.com> wrote in message
news:BF6EBE32-B553-4F74-9AC7-2E78E3DB19BE@mi crosoft.com...[color=blue]
> How to writes classes or functions with optinal parameters in c# ot[/color]
vb.net?
Comment