Hi Anup,
> My doubts are:
> 1. Does a non-static local variable of static methods works fine in
> multi-user environment (Web Application) where method is expected to
> return different results?
Yes indeed, local variables (function / proc ) are always non-static (even
in static methods) and allocated on the call stack (of course reference types
are created on the heap, but pointers to these objects are local too)
> 2. Is there any other performance a benefit using the static methods
> except the non-requirement of creation of object of class in which
> method resides?
I was you I wouldn't bother. But if you really want to know - it depends. If
the instance method is virtual, one extra jump is required to dereference
method address in V-table, so it’s more expensive (but as I said – these days
it’s really a tiny thing). Please note that algorithm and logic is more
important that language related improvements, in addition to that, if you are
going to call this method once (not in multi thousand step loop), there is
no point to bother. Anyway, if you are interested in this topic, there are
nice articles out there,, for instance
http://www.codeguru.com/csharp/.net/...php/c11849__1/
Regards
Milosz