Click here to Skip to main content
15,884,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Comments
[no name] 8-Jun-14 10:57am    
using System.Collections
JayantaChatterjee 8-Jun-14 10:59am    
I don't understand..
[no name] 8-Jun-14 11:00am    
Okay... what is it exactly that you do not understand?
JayantaChatterjee 8-Jun-14 11:05am    
actually I want to create a setting that is Queue data type, but in the list of all namespaces but I couldn't find System.collections namespace in that list..
so How to bring System.Collections Namespace in that list??
[no name] 8-Jun-14 11:11am    
Well first thing that you need to tell us what "list" you are even talking about. Did you even try adding "using System.Collections" to the top of your file and trying to use Queue?

1 solution

AFAIK, you can't directly store any generic Collection class into the Settings, becasu enone of them implement the
C#
[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.
 
Share this answer
 
Comments
JayantaChatterjee 8-Jun-14 11:27am    
Sir,
is there any other way to do this(I mean, to stored array of data)??

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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