Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to do like this,

C#
List<Products> p=Cache["Product"];


Help me how can i do this.

Thanks in advance
Posted

1 solution

You need to cast the type.

C#
List<products> p=Cache["Product"] as List<products>;
 
Share this answer
 
v2
Comments
shaprpuff 27-Aug-14 8:02am    
Thanks David Jonghan Lee

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900