Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To Overload Or Not To Overload. This Is The Question
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01475465
Message ID:
01475499
Vues:
44
>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 ?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform