I have two sets of data I have in my C# config file that are related to each other. So for example.
Config:
- <add key="shownames" value="Show 1 Name,Show 2 Name"/>
- <add key="showurls" value="https://URL1,https://URL2"/>
- string[] ShowNames = ConfigurationManager.AppSettings["shownames"].Split(',').Select(s => s.Trim()).ToArray();
- string[] ShowUrls = ConfigurationManager.AppSettings["showurls"].Split(',').Select(s => s.Trim()).ToArray();
- foreach (string shownames in ShowNames)
- searchListRequest.ChannelId = shownames;
Thanks.
JR

Sachin SinghRank #66 · 26.2K reputationPosted Nov 10, 2020, 4:47 AM EST
John Riker98 reputationPosted Nov 10, 2020, 4:52 AM EST
Sachin SinghRank #66 · 26.2K reputationPosted Nov 10, 2020, 4:54 AM EST