Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

Declaring a static function in vb.net

Hi,

I have written a getTempFile() function as part of a class in vb.net.

I now need to access this function from another class.

Would this be better if I put it into a "tools"static class?

Mike
Friday, January 07, 2005

I wouldn't create a utilities class - it will end up with all sorts of unrelated functions (low cohesion)
Rather create a filesystem class and put it into a Utilities namespace.

Jon Spokes
Friday, January 07, 2005

O.K. I agree

Thanks

Mike
Monday, January 10, 2005

Why would you create a class with all static functions instead of declaring the functions in a vb.net module? 

Russell Ryba
Sunday, January 16, 2005

*  Recent Topics

*  Fog Creek Home