Tag Archives: TryParse

Yeah SessionTryParse

So I got tired of seeing If Session["SomeKey"] != null… blah blah blah and thought it would be a semi worthwhile task to create a TryParse method because I’m bad like that. Not a Bad Enough Dude to Save the President, but bad. public static Boolean SessionTryParse<K&gt;(HttpSessionState session, String key, out K itemToSet) where K [...]

Leave a comment Continue Reading →