将通用字典存储在asp.net配置文件中? [英] Store a generic dictionary in an asp.net profile?

查看:166
本文介绍了将通用字典存储在asp.net配置文件中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在asp.net配置文件中存储通用字典对象?我已经尝试使用这个,但它仍然不喜欢它:
http:// weblogs.asp.net/pwelter34/default.aspx



谢谢,
Nick

解决方案

查看 KeyedCollection 。它是一个可以序列化为xml的通用字典。 但是有一些限制


Is there any way of storing a generic dictionary object in an asp.net profile? I have tried using this but it still doesn't like it: http://weblogs.asp.net/pwelter34/default.aspx

Thanks, Nick

解决方案

Check out the KeyedCollection. Its a generic dictionary that is serializable to xml. There are some limitations, however.

这篇关于将通用字典存储在asp.net配置文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆