Brad
Brad

Reputation: 21160

How do I save an ArrayList to the application settings

I would like to save a arraylist to the settings class...does any one have an example I could follow.

c#, .net 2.0

Upvotes: 0

Views: 1461

Answers (1)

womp
womp

Reputation: 116977

In your Settings file editor, add a new setting that is of type System.Collections.Arraylist.

In your code, you can then set this value by doing:

Properties.Settings.Default.MySetting = myArrayList;

Upvotes: 2

Related Questions