Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change data without recompiling in C#

Tags:

c#

I am writing a program that will be running continually on a server. I would like to be able to change some of the inputs without hard coding requiring recompiling.

I know this is possible to do by using a text file, however I don't want to have a text file for each value.

I also know that I could use a table, but I also don't want to have a table with one row for this program.

Is there another solution?

As you can probably guess, I am new to the .NET/C# world, so pardon if this is too basic of a question.

like image 393
Mason240 Avatar asked Dec 01 '22 22:12

Mason240


1 Answers

Use the appsettings section of the app.config.

like image 185
James Curtis Avatar answered Dec 05 '22 09:12

James Curtis