Hi all,
Can anybody please tell me in brief what is going on in "App_Code/ConfigSection.cs"?
why are we calling base[] in every get method? what does it return? Thank you!
Code:
[ConfigurationProperty("defaultCacheDuration", DefaultValue = "600")]
publicint DefaultCacheDuration
{
get { return (int)base["defaultCacheDuration"]; }
set { base["defaultCacheDuration"] = value; }
}
[ConfigurationProperty("contactForm", IsRequired=true)]
publicContactFormElement ContactForm
{
get { return (ContactFormElement) base["contactForm"]; }
}