Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
STATIC (shared) versus non static
Message
From
13/07/2014 11:55:33
 
General information
Forum:
ASP.NET
Category:
Class design
Environment versions
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01603606
Message ID:
01603609
Views:
48
>>>I wonder what the best practice would be when it comes to declare classes (and more importantly methods) static. I have found that in most cases pundits declare non static classes and methods where it would be perfectly workable to have them static.
>>>
>>>The way I see it is that static is easier to test no?
>>
>>http://msdn.microsoft.com/en-us/library/79b3xss3%28v=vs.80%29.aspx
>>Here's what MSDN says.
>>Basically, I use them the way MSDN suggests.
>
>So the wisdom is "when in doubt, refrain from declaring 'm static" right?

Yes, that's it.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform