本文整理汇总了C#中AssemblyNode.SetupDebugReader方法的典型用法代码示例。如果您正苦于以下问题:C# AssemblyNode.SetupDebugReader方法的具体用法?C# AssemblyNode.SetupDebugReader怎么用?C# AssemblyNode.SetupDebugReader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AssemblyNode
的用法示例。
在下文中一共展示了AssemblyNode.SetupDebugReader方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadAssembly
private AssemblyNode ReadAssembly()
{
try
{
AssemblyNode assembly = new AssemblyNode(new Module.TypeNodeProvider(this.GetTypeFromName),
new Module.TypeNodeListProvider(this.GetTypeList), new Module.CustomAttributeProvider(this.GetCustomAttributesFor),
new Module.ResourceProvider(this.GetResources), this.directory);
assembly.reader = this;
this.ReadModuleProperties(assembly);
this.ReadAssemblyProperties(assembly); //Hashvalue, Name, etc.
this.module = assembly;
this.ReadAssemblyReferences(assembly);
this.ReadModuleReferences(assembly);
AssemblyNode cachedAssembly = this.GetCachedAssembly(assembly);
if (cachedAssembly != null) return cachedAssembly;
if (this.getDebugSymbols) assembly.SetupDebugReader(null);
assembly.AfterAssemblyLoadProcessing();
return assembly;
}
catch (Exception e)
{
if (this.module == null) return null;
if (this.module.MetadataImportErrors == null) this.module.MetadataImportErrors = new ArrayList();
this.module.MetadataImportErrors.Add(e);
return this.module as AssemblyNode;
}
}