M
Mark
I code in C# ... could someone explain what Type is being returned by the
VB.NET property below? I'm confused because the _session object is of type
Hashtable, and the Session is of type
System.Web.SessionState.HttpSessionState. The both appear to implement
ICollection, but don't you have to specify that in the definintion of a
VB.NET property? Or is that "implied" in VB.NET?
Thanks in advance.
-Mark
Shared _session as New Hashtable
Public Shared ReadOnly Property session()
Get
If IsNothing(System.Web.HttpContext.Current) Then
Return _session
Else
Return System.Web.HttpConext.Current.Session
End If
End Get
End Property
VB.NET property below? I'm confused because the _session object is of type
Hashtable, and the Session is of type
System.Web.SessionState.HttpSessionState. The both appear to implement
ICollection, but don't you have to specify that in the definintion of a
VB.NET property? Or is that "implied" in VB.NET?
Thanks in advance.
-Mark
Shared _session as New Hashtable
Public Shared ReadOnly Property session()
Get
If IsNothing(System.Web.HttpContext.Current) Then
Return _session
Else
Return System.Web.HttpConext.Current.Session
End If
End Get
End Property