private AddPreLoadEntry ( String typeName, String assemblyName ) : void | ||
typeName | String | |
assemblyName | String | |
Résultat | void |
} // ProcessInteropNode private static void ProcessPreLoadNode(ConfigNode node, RemotingXmlConfigFileData configData) { String typeName = null; String assemblyName = null; foreach (DictionaryEntry entry in node.Attributes) { String key = entry.Key.ToString(); switch (key) { case "type": { RemotingConfigHandler.ParseType((String)entry.Value, out typeName, out assemblyName); break; } case "assembly": { assemblyName = (String)entry.Value; break; } // case "type" default: break; } // switch } // foreach // check for errors if (assemblyName == null) { ReportError( Environment.GetResourceString("Remoting_Config_PreloadRequiresTypeOrAssembly"), configData); } configData.AddPreLoadEntry(typeName, assemblyName); } // ProcessPreLoadNode
private static void ProcessPreLoadNode(ConfigNode node, RemotingXmlConfigFileData configData) { string typeName = null; string assemName = null; foreach (DictionaryEntry entry in node.Attributes) { string str4 = entry.Key.ToString(); if (str4 != null) { if (!(str4 == "type")) { if (str4 == "assembly") { goto Label_0063; } } else { RemotingConfigHandler.ParseType((string) entry.Value, out typeName, out assemName); } } continue; Label_0063: assemName = (string) entry.Value; } if (assemName == null) { ReportError(Environment.GetResourceString("Remoting_Config_PreloadRequiresTypeOrAssembly"), configData); } configData.AddPreLoadEntry(typeName, assemName); }