{"action":"created","issue":{"url":"https://api.github.com/repos/RickStrahl/Westwind.ApplicationConfiguration/issues/13","repository_url":"https://api.github.com/repos/RickStrahl/Westwind.ApplicationConfiguration","labels_url":"https://api.github.com/repos/RickStrahl/Westwind.ApplicationConfiguration/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/RickStrahl/Westwind.ApplicationConfiguration/issues/13/comments","events_url":"https://api.github.com/repos/RickStrahl/Westwind.ApplicationConfiguration/issues/13/events","html_url":"https://github.com/RickStrahl/Westwind.ApplicationConfiguration/issues/13","id":64510770,"number":13,"title":"IList<string> type always overrides values in config file","user":{"login":"sashazjukov","id":3774787,"avatar_url":"https://avatars3.githubusercontent.com/u/3774787?v=4","gravatar_id":"","url":"https://api.github.com/users/sashazjukov","html_url":"https://github.com/sashazjukov","followers_url":"https://api.github.com/users/sashazjukov/followers","following_url":"https://api.github.com/users/sashazjukov/following{/other_user}","gists_url":"https://api.github.com/users/sashazjukov/gists{/gist_id}","starred_url":"https://api.github.com/users/sashazjukov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sashazjukov/subscriptions","organizations_url":"https://api.github.com/users/sashazjukov/orgs","repos_url":"https://api.github.com/users/sashazjukov/repos","events_url":"https://api.github.com/users/sashazjukov/events{/privacy}","received_events_url":"https://api.github.com/users/sashazjukov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-03-26T12:09:19Z","updated_at":"2018-02-18T12:25:59Z","closed_at":null,"author_association":"NONE","body":"Using Interface IList in property declaration will force overriding List values in config files.\npublic IList<string> ServerList { get; set;  }\n"},"comment":{"url":"https://api.github.com/repos/RickStrahl/Westwind.ApplicationConfiguration/issues/comments/366512409","html_url":"https://github.com/RickStrahl/Westwind.ApplicationConfiguration/issues/13#issuecomment-366512409","issue_url":"https://api.github.com/repos/RickStrahl/Westwind.ApplicationConfiguration/issues/13","id":366512409,"user":{"login":"dragnilar","id":33742520,"avatar_url":"https://avatars1.githubusercontent.com/u/33742520?v=4","gravatar_id":"","url":"https://api.github.com/users/dragnilar","html_url":"https://github.com/dragnilar","followers_url":"https://api.github.com/users/dragnilar/followers","following_url":"https://api.github.com/users/dragnilar/following{/other_user}","gists_url":"https://api.github.com/users/dragnilar/gists{/gist_id}","starred_url":"https://api.github.com/users/dragnilar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragnilar/subscriptions","organizations_url":"https://api.github.com/users/dragnilar/orgs","repos_url":"https://api.github.com/users/dragnilar/repos","events_url":"https://api.github.com/users/dragnilar/events{/privacy}","received_events_url":"https://api.github.com/users/dragnilar/received_events","type":"User","site_admin":false},"created_at":"2018-02-18T12:25:59Z","updated_at":"2018-02-18T12:25:59Z","author_association":"NONE","body":"2 years later...\r\n\r\nI was having this problem too. It was driving me nuts, because Rick was doing it without any problems in the unit tests for CustomConfigFileConfiguration.  I took a look around and discovered that he wasn't using a custom configuration file in his test.  I tried using the default file in mine, and lo and behold I was able to retrieve my list after writing and restarting or making a new config object.  I then went back to his unit test and tried using a custom file, and his test would fail.\r\n\r\nI dug a little deeper and found out that it's because the library doesn't do the same thing with Lists that it does when you don't tell it to use a custom file.  I had to make a change to the source to get Lists to work with custom config files. I'm not sure if it's worth sharing though, since it feels like a hack. For what it's worth, the same \"problem\" exists in the full WestWind.Utilities' configuration class as well.  But of course I could have just been doing it wrong this entire time, but I couldn't find any examples that would say otherwise and unfortunately the documentation website for this library seems to be down at the moment (http://west-wind.com/westwind.applicationconfiguration/docs). \r\n\r\n"}}
{"actor":{"display_login":"dragnilar"}}