要列出的类型转换对象 [英] typecast object to list
本文介绍了要列出的类型转换对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在将会话强制转换为列表,但是我的会话不为null,但是列表显示为null.
我这样写代码:
Hi,
i am type casting the session to a list, but my session is not null, but the list is showing me null.
I written code like this:
List <classname.method> listname= Session["obj"] as List <classname.method>;
有什么可以帮到我吗?
问候,
Raghu
Can any help me.
Regards,
Raghu
推荐答案
^ ]或 ^ ]可能会有所帮助.
This[^] or This[^] may help.
这篇关于要列出的类型转换对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文