Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Your Opinion On This Syntax
Message
From
07/10/2009 07:59:14
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01427920
Message ID:
01428017
Views:
55
>>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform