private AddInteropXmlTypeEntry ( String xmlTypeName, String xmlTypeNamespace, String urtTypeName, String urtAssemblyName ) : void | ||
xmlTypeName | String | |
xmlTypeNamespace | String | |
urtTypeName | String | |
urtAssemblyName | String | |
return | void |
} // ProcessInteropNode private static void ProcessInteropXmlTypeNode(ConfigNode node, RemotingXmlConfigFileData configData) { String xmlTypeName = null; String xmlTypeNamespace = 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 xmlTypeName, out xmlTypeNamespace); break; } case "clr": { RemotingConfigHandler.ParseType((String)entry.Value, out urtTypeName, out urtAssemName); break; } // case "type" default: break; } // switch } // foreach // check for errors if ((xmlTypeName == null) || (xmlTypeNamespace == null)) ReportMissingXmlTypeAttributeError(node, "xml", configData); if ((urtTypeName == null) || (urtAssemName == null)) ReportMissingTypeAttributeError(node, "clr", configData); configData.AddInteropXmlTypeEntry(xmlTypeName, xmlTypeNamespace, urtTypeName, urtAssemName); } // ProcessInteropNode
private static void ProcessInteropXmlTypeNode(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.AddInteropXmlTypeEntry(typeName, assemName, str3, str4); }