private AddInteropXmlElementEntry ( String xmlElementName, String xmlElementNamespace, String urtTypeName, String urtAssemblyName ) : void | ||
xmlElementName | String | |
xmlElementNamespace | String | |
urtTypeName | String | |
urtAssemblyName | String | |
return | void |
} // ProcessClientActivatedNode private static void ProcessInteropXmlElementNode(ConfigNode node, RemotingXmlConfigFileData configData) { String xmlElementName = null; String xmlElementNamespace = null; String urtTypeName = null; String urtAssemName = null; foreach (DictionaryEntry entry in node.Attributes) { String key = entry.Key.ToString(); switch (key) { case "xml": { RemotingConfigHandler.ParseType((String)entry.Value, out xmlElementName, out xmlElementNamespace); break; } case "clr": { RemotingConfigHandler.ParseType((String)entry.Value, out urtTypeName, out urtAssemName); break; } // case "clr" default: break; } // switch } // foreach // check for errors if ((xmlElementName == null) || (xmlElementNamespace == null)) ReportMissingXmlTypeAttributeError(node, "xml", configData); if ((urtTypeName == null) || (urtAssemName == null)) ReportMissingTypeAttributeError(node, "clr", configData); configData.AddInteropXmlElementEntry(xmlElementName, xmlElementNamespace, urtTypeName, urtAssemName); } // ProcessInteropNode
private static void ProcessInteropXmlElementNode(ConfigNode node, RemotingXmlConfigFileData configData) { string typeName = null; string assemName = null; string str3 = null; string str4 = null; foreach (DictionaryEntry entry in node.Attributes) { string str6 = entry.Key.ToString(); if (str6 != null) { if (!(str6 == "xml")) { if (str6 == "clr") { goto Label_006A; } } else { RemotingConfigHandler.ParseType((string) entry.Value, out typeName, out assemName); } } continue; Label_006A: RemotingConfigHandler.ParseType((string) entry.Value, out str3, out str4); } if ((typeName == null) || (assemName == null)) { ReportMissingXmlTypeAttributeError(node, "xml", configData); } if ((str3 == null) || (str4 == null)) { ReportMissingTypeAttributeError(node, "clr", configData); } configData.AddInteropXmlElementEntry(typeName, assemName, str3, str4); }