internal static object CreateStatic(object inheritedObject, XmlNode node) {
CodeDomCompilationConfiguration inherited = (CodeDomCompilationConfiguration)inheritedObject;
CodeDomCompilationConfiguration result;
if (inherited == null)
result = new CodeDomCompilationConfiguration();
else
result = new CodeDomCompilationConfiguration(inherited);
HandlerBase.CheckForUnrecognizedAttributes(node);
//
// Handle child elements (if they exist)
// - compilers
//
foreach (XmlNode child in node.ChildNodes) {
// skip whitespace and comments
// reject nonelements
if (HandlerBase.IsIgnorableAlsoCheckForNonElement(child))
continue;
// handle <compilers>
if (child.Name == "compilers") {
ProcessCompilersElement(result, child);
}
else {
HandlerBase.ThrowUnrecognizedElement(child);
}
}
return result;
}