D
Dotnetjunky
Hi,
I'm really get confused on this issue. Hope that someone can help me get
clear after this post.
Take the class System.Web.Caching.Cache for example. In the documentation,
there's a property called Item and the description is:
"Gets or sets the cache item at the specified key. In C#, this property is
the indexer for the Cache class."
But when I tried to access this property, using Cache.Item["keyVaule"], the
compiler complains:
'System.Web.Caching.Cache' does not contain a definition for 'Item'
Can someone explain this strange behavior to me ?
Thanks a lot.
I'm really get confused on this issue. Hope that someone can help me get
clear after this post.
Take the class System.Web.Caching.Cache for example. In the documentation,
there's a property called Item and the description is:
"Gets or sets the cache item at the specified key. In C#, this property is
the indexer for the Cache class."
But when I tried to access this property, using Cache.Item["keyVaule"], the
compiler complains:
'System.Web.Caching.Cache' does not contain a definition for 'Item'
Can someone explain this strange behavior to me ?
Thanks a lot.