|
Argh!!! Static is C#, the VB way to do that is Shared. On that note, anyone know how to make strike through text?
I just wanted to point out, in VB 6 a shared method or class or member variable was pain. That was because of a limitation in VB 6 itself and or in COM. This isn't a problem anymore in .NET. In fact, it's quite the opposite. Calling a static method means the framework doesn't have to do null checks on the object, and the same goes for a static class. Plus, of course, you don't have to actually create an instance. So, for two reasons, it's actually faster under ASP.NET to use static classes and methods, if they're truly stateless.
Just wanted to point that out for anyone reading this thread, who might be curious and moving from ASP to ASP.NET.
|