Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I overload override methods/properties?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00976420
Message ID:
00976459
Vues:
8
Einar,

You can't overload methods by return value but you can overload the method signature/parameter list and use the C# out keyword on parameter by parameter basis. This will allow you to propogate a single/series of values back to the caller and still return a value. The following snippet is taken from MSDN:-
class MyClass 
{
   public void MyMethod(int i) {i = 10;}
   public void MyMethod(out int i) {i = 10;}
}
Regards
Neil
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform