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

Click here to load this message in the networking platform