Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArsenShnurkov/5d25a86e9b8b4f75237153ed769f01d7 to your computer and use it in GitHub Desktop.
Save ArsenShnurkov/5d25a86e9b8b4f75237153ed769f01d7 to your computer and use it in GitHub Desktop.
var section = WebConfigurationManager.GetSection ("system.web/httpRuntime");
var sectionType = section.GetType();
var theType = typeof(HttpRuntimeSection);
if (Type.Equals(sectionType, theType) == false)
{
Debug.WriteLine(sectionType.AssemblyQualifiedName);
Debug.WriteLine(theType.AssemblyQualifiedName);
Debug.Assert(sectionType == typeof(HttpRuntimeSection));
}
runtime_section = (HttpRuntimeSection)section;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment