Hi,
I have a problem with part of my code. I am trying to Cache a Generic
Collection
Private nodeCollection As New Generic.List(Of MenuNode)
If (Cache("MainMen u")) = Nothing Then
...
nodeCollection = menudal.FetchMe nu()
Cache.Insert("M ainMenu", nodeCollection)
End If
Then I read from Cache to populate my menu. When I run the project though, I
get
"InvalidCastExc eption"
Operator '=' is not defined for type 'List(Of MenuNode)' and 'Nothing'.
at the line If (Cache("MainMen u")) = Nothing Then
Any ideas?
I have a problem with part of my code. I am trying to Cache a Generic
Collection
Private nodeCollection As New Generic.List(Of MenuNode)
If (Cache("MainMen u")) = Nothing Then
...
nodeCollection = menudal.FetchMe nu()
Cache.Insert("M ainMenu", nodeCollection)
End If
Then I read from Cache to populate my menu. When I run the project though, I
get
"InvalidCastExc eption"
Operator '=' is not defined for type 'List(Of MenuNode)' and 'Nothing'.
at the line If (Cache("MainMen u")) = Nothing Then
Any ideas?
Comment