public static AspNet_Page map_ControlBuilders(this AspNet_Page aspNetPage, BaseParser pageParser) { var rootBuilder = (ControlBuilder)pageParser.property("RootBuilder"); aspNetPage.CodeBlock = rootBuilder.mapControlBuilder(); return aspNetPage; }
public static AspNet_Page map_Parser(this AspNet_Page aspNetPage, BaseParser parser) { aspNetPage.Virtual_Path = parser.property("CurrentVirtualPathString").str(); aspNetPage.ConfigItems.add("CurrentVirtualPathString",parser.property("CurrentVirtualPathString").str()) .add("DefaultBaseType",parser.property("DefaultBaseType").str()) .add("DefaultFileLevelBuilderType",parser.property("DefaultFileLevelBuilderType").str()) .add("HasCodeBehind",parser.property("HasCodeBehind").str()) .add("IsCodeAllowed",parser.property("IsCodeAllowed").str()); if (aspNetPage.Store_AspNet_SourceCode) aspNetPage.AspNet_SourceCode = parser.property("Text").str(); foreach(DictionaryEntry namespaceEntry in (Hashtable)parser.property("NamespaceEntries")) aspNetPage.Namespaces.add(namespaceEntry.Key.str());// foreach(var sourceDependencies in (IEnumerable)parser.property("SourceDependencies")) aspNetPage.SourceDependencies.add(sourceDependencies.str());// return aspNetPage; }