Created
October 4, 2016 16:35
-
-
Save ArsenShnurkov/5d25a86e9b8b4f75237153ed769f01d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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