Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To Overload Or Not To Overload. This Is The Question
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01475465
Message ID:
01475499
Views:
43
>Now with 4.0's optional params, there seems to be little need to overload.
>
>What's your opinion?

Different animals. How would optional (or, for that matter, named) parameters help here:
public class WhatEver
    {
        public void DoSomething(string a) { }
        public void DoSomething(int i) { }
    }
OhOh Michel - something wrong with the pre tags. What I actually wrote (in tags) was:

public class WhatEver
{
public void DoSomething(string a) { }
public void DoSomething(int i) { }
}

UPDATE for Michel: This looks OK in the posted version but in 'preview' although the code segment showed up with the white background it had a bunch of embedded span elemtents ?
Previous
Reply
Map
View

Click here to load this message in the networking platform