public DotnetObject ParseConfigurationObject(Type appConfigType, bool addToCollection = false) { var typeParser = new Westwind.TypeImporter.TypeParser() { ParseXmlDocumentation = true }; var dotnetObject = typeParser.ParseObject(appConfigType); if (dotnetObject == null) { return(null); } if (addToCollection) { ConfigObjects.Add(dotnetObject); } return(dotnetObject); }