I've created a new settings file named AppList.setting s for a Winform
app. In the Program.cs file, I can access values in settings.settin gs
fine. However, when I do this:
SettingsPropert yValueCollectio n propertyColl =
MyNameSpace.Pro perties.AppList .Default.Proper tyValues;
No values come back; the collection is empty. There are three entries
in the file. However, if I set a breakpoint anywhere in the Program.cs
file, I get values from the AppList file. The breakpoint can be after
the above assignment and I still get values. The Settings.settin gs
file works fine regardless.
Any ideas why that is?
Thanks,
Brett
app. In the Program.cs file, I can access values in settings.settin gs
fine. However, when I do this:
SettingsPropert yValueCollectio n propertyColl =
MyNameSpace.Pro perties.AppList .Default.Proper tyValues;
No values come back; the collection is empty. There are three entries
in the file. However, if I set a breakpoint anywhere in the Program.cs
file, I get values from the AppList file. The breakpoint can be after
the above assignment and I still get values. The Settings.settin gs
file works fine regardless.
Any ideas why that is?
Thanks,
Brett
Comment