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

  • SEARCH
  • Home
  • 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 6711697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:10:17+00:00 2026-05-26T08:10:17+00:00

I am in the process of writing a service using C# and I need

  • 0

I am in the process of writing a service using C# and I need to store a list of strings within the app.config file. I have 161 of these.

How can I store this information in the app.config file? There must be a way, because these are strongly typed values and thus I’m supposed to easily use any valid .NET type in the code to access them!

I want to avoid having one value that uses a comma-separated list for obvious performance issues.

  • 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-05-26T08:10:18+00:00Added an answer on May 26, 2026 at 8:10 am

    I use Microsoft’s Visual Studio 2010.

    1. In Solution Explorer, expand the Properties node of your project.

    2. In Solution Explorer, double-click the .settings file in which you want to add a new setting. The default name for this file is Settings.settings.

    3. In Settings Designer, set the Name, Type, Scope, and Value for your setting. Each row represents a single setting.

    4. The Type that you need is System.Collections.Specialized.StringCollection. This can be located after clicking Browse at the end of the DropDownList that appears when you click to set the Type.

    5. Click on the button that appears towards the end of the Value TextBox.

    6. Type in your strings, one-by-one, in the dialog that appears.

    This is how it goes.

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

Sidebar

Related Questions

We are in the process of writing a WCF service using the same pattern
I'm in the process of writing a duplex WCF service using NetTcpBinding, and I've
I'm in the process of writing a small text-editor that is supposed to have
I am in the process of writing some validation code based on these assumptions:
I have a service running that can invoke an external process to modify a
I'm writing a background service that needs to process a series of jobs, stored
I have some code like this in a winforms app I was writing to
I have two distinct repositories that I will be using simultaneously throughout my app.
I am writing a task manager service and need to force close any running
I am in the process of writing a web-app that uses multiple web APIs.

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.