{"id":795,"date":"2023-01-24T08:47:06","date_gmt":"2023-01-24T08:47:06","guid":{"rendered":"https:\/\/turtleflyblog.com\/?p=795"},"modified":"2023-01-24T08:50:25","modified_gmt":"2023-01-24T08:50:25","slug":"extract-list-or-array-data-from-net-framework-appconfig-or-net-core-appsetting-file","status":"publish","type":"post","link":"https:\/\/turtleflyblog.com\/en\/2023\/01\/24\/extract-list-or-array-data-from-net-framework-appconfig-or-net-core-appsetting-file\/","title":{"rendered":"Extract List or Array data from .NET Framework AppConfig or .NET Core AppSetting file"},"content":{"rendered":"\n
When a programmer writes code, he or she doesn\u2019t want to have every specific custom data and settings in the code. Instead, they want to have those written in a configuration file. This article will introduce how to set an object list in .Net Framework App.config and .Net Core Appsetting.json respectively and also how to extract those data from a configuration file.<\/p>\n\n\n\n
.Net Core<\/strong><\/p>\n\n\n\n appsettings.json<\/p>\n\n\n\n