This project has moved. For the latest updates, please go here.

Code Snippet for neophyte

Feb 17, 2012 at 11:06 PM
Edited Feb 17, 2012 at 11:14 PM

Can someone please post the code to actually retrieve the information from the Config File.   I followed the tutorial and it was great, and the intellisense in the config file is awesome, but there is no reference to the call to retreive the data from the config file in the documentation or any of the discussions.   I've searched elsewhere and I've even coded the classes by hand in a similar manner using an example on the internet and was able to use the Confguration.GetSection call to load a variable from the config.  But no matter what I try with the one created by the designer it returns a null object.   Help is greatly appreciated.



Feb 19, 2012 at 9:43 AM

Use <NameOfYourSection>.Instance