如何创建队列数据类型“设置变量”? [英] how to create Queue data type "Setting Variable"?
问题描述
我想在VS 2010中创建队列类型设置变量,但我在列表中找不到该类型。我试图浏览,但没有 System.Collection
命名空间。
我需要这个因为,我想在我的项目中创建一个最近的文档列表。
我不想用注册表存储列表..
怎么回事可能吗?
Regard
Jayanta
I want to create a Queue type "Setting Variable" in VS 2010, but I couldn't find that type in the list. I tried to browse but there is no System.Collection
Namespace.
I need this because, I want to create a recent document list in my project.
I don't want to use registry to store the list..
how is it possible ??
Regard
Jayanta
推荐答案
AFAIK,你可以直接将任何通用Collection类存储到Settings中,因为它们实现了
AFAIK, you can't directly store any generic Collection class into the Settings, becasu enone of them implement the
[SettingsSerializeAs(System.Configuration.SettingsSerializeAs.Xml)]
属性,这是必需的。
我认为你必须自己序列化各个元素,然后将结果存储在合适的数据类型中。显然要反过来提取它们。
attribute, which is required.
I think you will have to serialize the individual elements yourself, and then store the result in a suitable datatype. And obviously reverse the process to extract them.
这篇关于如何创建队列数据类型“设置变量”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!