本文整理汇总了C#中System.Runtime.Remoting.Activation.RemotingXmlConfigFileData.AddInteropXmlTypeEntry方法的典型用法代码示例。如果您正苦于以下问题:C# RemotingXmlConfigFileData.AddInteropXmlTypeEntry方法的具体用法?C# RemotingXmlConfigFileData.AddInteropXmlTypeEntry怎么用?C# RemotingXmlConfigFileData.AddInteropXmlTypeEntry使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Runtime.Remoting.Activation.RemotingXmlConfigFileData
的用法示例。
在下文中一共展示了RemotingXmlConfigFileData.AddInteropXmlTypeEntry方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ProcessInteropXmlTypeNode
} // 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
示例2: ProcessInteropXmlTypeNode
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);
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:37,代码来源:RemotingXmlConfigFileParser.cs