This project has moved and is read-only. For the latest updates, please go here.

Code Snippet for neophyte

Feb 18, 2012 at 12:06 AM
Edited Feb 18, 2012 at 12:14 AM

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 10:43 AM

Use <NameOfYourSection>.Instance