daveander
02-29-2008, 05:42 PM
I'm looking at someone else's code, and I see them passing httpcontext to an object method. is this necessary? I thought the httpcontext was a global object.
existing code looks like
methodname(HttpContext context)
{
x = context.something;
}
can't I just use
methodname()
{
x = HttpContext.something;
}
?
existing code looks like
methodname(HttpContext context)
{
x = context.something;
}
can't I just use
methodname()
{
x = HttpContext.something;
}
?