classes with optional parameters

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • gael

    #1

    classes with optional parameters

    How to writes classes or functions with optinal parameters in c# ot vb.net?
  • William Ryan

    #2
    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

    Working...