Store String Array In appSettings?

前端 未结 5 1723
借酒劲吻你
借酒劲吻你 2020-11-29 07:57

I\'d like to store a one dimensional string array as an entry in my appSettings. I can\'t simply separate elements with , or | because

5条回答
  •  無奈伤痛
    2020-11-29 08:48

    You may also consider using custom configuration section/Collection for this purpose. Here is a sample:

    
        

    You can also check on this excellent Visual Studio add-in that allows you to graphically design .NET Configuration Sections and automatically generates all the required code and a schema definition (XSD) for them.

提交回复
热议问题