Save array to settings in C#2.0

Hi Martin,

Can you post the code where you initialize the "settings" variable   That might give some clues about what could be wrong.


Answer this question

Save array to settings in C#2.0

  • GeoK

    Ok, well if I can't use the settings file, whats the best way to save an array of objects as a setting

  • Angela Zhou

    by defualt most setting types are that of a string and this when you try to throw an array of objects into that setting type like you are now. I would suppose it would give you an error. I think though you can tell that setting object to except an array and that error may go away. Sadly I do not have VS express on this machine :(


  • MattiasJ

    I have already done that, in the settings designer I have set the Type to

    FTPConnection[]

  • Justahobby

    I didn't initialize it, I'm using the built in Settings class that Visual Studio 2005 Express made for me...

  • Save array to settings in C#2.0