I have a line of c# that I'm looking to convert into vb. It looks like the following:
return GetFromSession("CurrentUser") as Account; "GetFromSession" is a method which returns an object. Here's the code for that method if it helps:private static object GetFromSession(string key)
{
if (HttpContext.Current == null || HttpContext.Current.Session == null)
{
return null;
}
return HttpContext.Current.Session[key];
} My problem is the "as Account" part of my one line of c# code needs to be converted into vb but I'm not sure of the equivalent. Currently, my vb.net won't allow ...
Go to the complete details ...