E
eugenet
Hello,
I am writing a Windows Forms application using .NET Framework 2.0 and
Visual Studio 2005.
I would like to use Properties.Settings class to persist a collection
of custom objects. For that I am creating a setting called Connections
of type System.Collections.ArrayList using the Properties designer in
VS.
At run-time I populate an arraylist with instances of my class and then
I set the Connections property to this arraylist. Then, I execute the
Save command on the Settings.Default.
The Save command does not generate an error, but no settings are
persisted either.
Do I need to do something special with ArrayList and my class
(serialization, perhaps) in order for settings to be persisted
correctly?
Many thanks for your help!
Evgueni
I am writing a Windows Forms application using .NET Framework 2.0 and
Visual Studio 2005.
I would like to use Properties.Settings class to persist a collection
of custom objects. For that I am creating a setting called Connections
of type System.Collections.ArrayList using the Properties designer in
VS.
At run-time I populate an arraylist with instances of my class and then
I set the Connections property to this arraylist. Then, I execute the
Save command on the Settings.Default.
The Save command does not generate an error, but no settings are
persisted either.
Do I need to do something special with ArrayList and my class
(serialization, perhaps) in order for settings to be persisted
correctly?
Many thanks for your help!
Evgueni