Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8193219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:24:45+00:00 2026-06-07T04:24:45+00:00

I have a simple question (I think) that I’m not making much progress finding

  • 0

I have a simple question (I think) that I’m not making much progress finding an answer to with Google. I have a structure as follows:

/// <summary>
/// A class to represent the sync settings for a single camera.
/// </summary>
public class CameraSyncSettings
{
    public string ID { get; set; }
    public string SyncPath { get; set; }
    public bool OverwriteExisting { get; set; }
};

And then an array of these in the program, one for each camera:

List<CameraSyncSettings> MyCameraSettings = new List<CameraSyncSettings>();

Now, what I want to do is have a property in my settings such that I can read/write this array into it to persist the information between sessions.

How can I do this and what is the best/most efficient way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:24:46+00:00Added an answer on June 7, 2026 at 4:24 am

    You can achieve it by using Properties.Settings of type ListDictionary

        Example:
        Properties.Settings.Default.Example.Add("Setting1", new CameraSyncSettings());
        Properties.Settings.Default.Example.Add("Setting2", new CameraSyncSettings());
        Properties.Settings.Default.Example.Add("Setting3", new CameraSyncSettings());
    
        Properties.Settings.Default.Save();
    

    see link for more information : http://msdn.microsoft.com/en-us/library/aa730869(v=vs.80).aspx

    NB: You can set the Scope of Properties.Settings.Default.Example to Application or User

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple question that I think someone will answer very fast, but
this is a simple question (I think), but I have not been able to
I have quite a simple question I think, but I need a definitive answer.
I think this should be a simple question to answer. I have the next
fairly simple question I think that I couldn't find the answer to in the
I think this is a simple question. Imagine you have a page that initializes
I am learning LINQ and have a very simple question that I think will
I have a simple question about the java classloading mechanism. I think that the
Simple question for I bet a not so simple answer. Think of a project
I have what I think is probably quite a simple question to answer (for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.