Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Your Opinion On This Syntax
Message
De
07/10/2009 07:59:14
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01427920
Message ID:
01428017
Vues:
54
>>>>I would make GetShopOrderDetails static and call it with:
>>>>
>>>>dtShopOrder = ERP.GetShopOrderDetails(txtSerialNum.Text);
>>>>
>>>
>>>Why static? Isn't an instance the desired return value?
>>
>>Because you wouldn't need to instantiate ERP in order to call GetShopOrderDetails()
>>
>>This is one object less to create and one object less to garbage collect
>
>Thanks. That famous C trickery? ;-)

trickery ? Not really, just efficiency
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform