0
我想从我的部件上卸下ObfuscationExclude属性:Mono.Cecil能删除自定义属性
我尝试:
但我不知道我可怎么办这个,有人可以帮我吗?
public static void CleanCustomAttributes(AssemblyDefinition asmdef)
{
foreach(ModuleDefinition ModuleDef in asmdef.Modules)
{
foreach(TypeDefinition TypeDef in ModuleDef.Types)
{
foreach(CustomAttribute CustomAttrib in TypeDef.CustomAttributes)
{
if (CustomAttrib.AttributeType = // ?)
{
}
}
}
}
}
将您的代码发布为文本,而不是图片。 –
好的,我已经编辑了我的主帖。 –