﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Casey commented on Did I miss something? Since when can you do it?</title><description>Can;t remember how long ago, but I have used something like this - but then stopped doing things like this as I tried to be more "pure" ... aint it amazing what weird things the framework does let you do, when it won't let you do really basic stuff due to paranoia from the FCL team
</description><link>http://ayende.com/3816/did-i-miss-something-since-when-can-you-do-it#comment2</link><guid>http://ayende.com/3816/did-i-miss-something-since-when-can-you-do-it#comment2</guid><pubDate>Sun, 18 Jan 2009 10:24:07 GMT</pubDate></item><item><title>Nick Berardi commented on Did I miss something? Since when can you do it?</title><description>You can use the constructor in this way since .NET 2.0
  
  
[http://msdn.microsoft.com/en-us/library/c2zzwa6y](http://msdn.microsoft.com/en-us/library/c2zzwa6y)(VS.80).aspx
  
  
And you can set the Current property since at least .NET 1.1
  
  
[msdn.microsoft.com/.../....web.httpcontext.current](http://msdn.microsoft.com/en-us/library/system.web.httpcontext.current)(VS.71).aspx
  
  
I have actually used this method to test some of my code that relies on the HttpContext being initialized.
</description><link>http://ayende.com/3816/did-i-miss-something-since-when-can-you-do-it#comment1</link><guid>http://ayende.com/3816/did-i-miss-something-since-when-can-you-do-it#comment1</guid><pubDate>Sun, 18 Jan 2009 01:15:42 GMT</pubDate></item></channel></rss>