Hello everyone, I'm stuck while adding custom tags to app.config file in a C# application. Below is the sample code I have to implement. I also have to fetch all the values in a list using C# codebehind like:

{EnvironmentName = Environment1, MFName = {list containing MF1, MF2, MF3, MF4}} and so on

please help me out.

<ParentTag>
<value>
        <add key="Environment1" value="environmentName" />
        <add key="MachineFunctionList" value="MF1, MF2, MF3, MF4" />
<value>   
<value>
        <add key="Environment2" value="environmentName" />
        <add key="MachineFunctionList" value="MF1, MF2, MF3, MF4" />
<value> 
<value>
        <add key="Environment3" value="environmentName" />
        <add key="MachineFunctionList" value="MF1, MF2, MF3, MF4" />
<value> 
<value>
        <add key="Environment4" value="environmentName" />
        <add key="MachineFunctionList" value="MF1, MF2, MF3, MF4" />
<value>    
</ParentTag>

Related posts

Recent Viewed